This is even worse than I had imagined. I always thought that "the good news" is that no country with on-orbit assets would do this, as it would take out their satellites as well.
Aside from the last thing you do before deciding on a nuclear assault on land targets, that's a fair assumption, isn't it?
This is based on declassified info, of which the last real-world data we got is over 60 years old (Starfish Prime).
What can be done today is certainly very different.
Here's North Korea own Hormuz Straight.
had to model EMP coupling for a sat com board once, the margins you need for hardening are brutal even for small yields
This is one reason why weaponizing space is a bad idea. Even hardened orbital weapon platforms will be easy to destroy with imprecise detonations, as shown here, so space-based weapon capabilities will be short-lived in any meaningful conflict. However, their mere presence in orbit makes it far more likely that all other satellites will be destroyed, possibly even in minor conflicts. A strike against offensive military satellites (with all civilian satellites in the area as collateral damage) would likely be viewed as less of a taboo than a strike against cities.
This is a bad path to go down.