Gun safes aren't normally immune to an EMP attack. You may find the best big gun safe that features built-in EMP protection, or you can even add an upgrade that ensures your safe's survival in the event of an EMP pulse. This way, your safe can still function without issue.