Solution: If target is within x km of a highsec stargate or npc station increase resist by x%.
Could be achieved many ways, easiest and dirtiest would be to have stargates/stations radiate a constant command burst, code is already in the game just need to apply it to a different asset and change values.
20 mins work tops. Chuck it on sisi for a week or two and monitor change. Adjust as needed. Done.