Kind of amusing how the more authority in the system (as manfiest by Navy and Scout bases), the higher chance of piracy.
Perhaps there's some level of collusion and corruption being manifest here.
Less a matter of collusion/corruption and more a matter of camouflage.
After all, where is the best place to hide a tree?

Duh ...
in a forest.



So if a pirate is going to masquerade as being "legit" until they can dock and board

... the best way to do so is in a star system where "legit" system defense assets are expected to be present (and opening hailing frequencies to order rendezvous for inspections while in flight as a matter of routine). The EXPECTATION is that any orders to "pull over for inspection" OUGHT TO be coming from "legit" parties ... but what if that isn't the case?
As I'm sure most of us reading these forums are aware ... it's illegal to impersonate a government official (police, judge, etc.).
Think that's going to stop thieves/pirates from plying their trade, by impersonating government officials?
Serious answer: only if they get caught ...
Remember, for a pirate ... until you've got your prey right where you want them (in your power and at your mercy) ... subterfuge and guile is the name of the game.

You HIDE your True Flag ... until you're ready to hoist your colors.
Even something as simple as a variety of Two Factor Authentication ("Copy that, SDB-12. We're going to need to authenticate you with SPA Control before we will comply with your orders to go delta-v zero and prepare to be boarded for inspection. Please stand by while we authenticate your authority. Until then, we will be maintaining course without deviating. Over.") is something that some targets will fail to attempt (for reasons various, petty and sundry). As with so many things ... including security ... You Get What You Pay For.