An Environmental Paradigm for Defending Security Protocols