This paper addresses the problem of protecting security-related information in security extensions, e.g. the detection policy in an Intrusion Detection System (IDS) or the filtering policy in a firewall. Knowledge of the security policy would potentially facilitate the penetrationof an intruder into the target system, the short-circuiting of a firewall or the circumvention of the IDSs detection mechanisms. To avoid this risk we suggest that thepolicy be protected using one-way functions and the paper suggests a scheme for protecting stateless policies. A stateless policy is a policy that takes only the current event into consideration when decisions are made and not the preceding chain of events. Thus, theprocess of comparing events towards the policy, i.e. making decisions, can be done in much the same way that passwords are hashed and compared in UNIX systems. However, one important distinction is that security policies contain a certain variability that must bemanaged, and a method for this is discussed. Finally, we discuss an automated tool for compiling a policy into a protected policy.