OWASP security principles include:
- *Minimise attack surface area*: [[Attack Surface]] refers to all the potential vulnerabilities a threat actor could exploit.
- *Principle of least privilege*: Users have the least amount of access required to perform their everyday tasks.
- *Defence in depth*: Organisations should have varying security controls that mitigate risks and threats.
- *Separation of duties*: Critical actions should rely on multiple people, each of whom follow the principle of least privilege.
- *Keep security simple*: Avoid unnecessarily complicated solutions. Complexity makes security difficult.
- *Fix security issues correctly*: When security incidents occur, identify the root cause, contain the impact, identify vulnerabilities, and conduct tests to ensure that remediation is successful.
- *Establish secure defaults*: This principle means that the optimal security state of an application is also its default state for users; it should take extra work to make the application insecure.
- *Fail securely*: Fail securely means that when a control fails or stops, it should do so by defaulting to its most secure option. For example, when a firewall fails it should simply close all connections and block all new ones, rather than start accepting everything.
- *Don’t trust services*: Many organisations work with third-party partners. These outside partners often have different security policies than the organization does. And the organisation shouldn’t explicitly trust that their partners’ systems are secure. For example, if a third-party vendor tracks reward points for airline customers, the airline should ensure that the balance is accurate before sharing that information with their customers.
- *Avoid security by obscurity*: The security of key systems should not rely on keeping details hidden. Consider the following example from OWASP (2016):
The security of an application should not rely on keeping the source code secret. Its security should rely upon many other factors, including reasonable password policies, defence in depth, business transaction limits, solid network architecture, and fraud and audit controls.