Their is already technology available that enables counter EMP. This techniques are implemented/commercialized in Integrated Circuits. This is the reason we have a different Military/Space grade components compared to commercial grade.
This is the reason we hear mass proliferation of EMPs.