Skip to content

Scope and coverage

This catalogue is oriented towards software developers. It contains patterns for software security1: behaviour to build into the software itself to ensure it fulfils its security requirements. This catalogue therefore does not contain patterns for operational security, network security, hardware security, physical security, etc.

To illustrate the coverage of this catalogue, we have mapped its entries to four lists of security flaws:

  1. The OWASP Top 10 (2021)
  2. The OWASP Top 10 (2017)
  3. The OWASP API Security Top 10 (2019)
  4. The flaws from IEEE's "Avoiding the top 10 software security design flaws"

A more elaborate mapping to CWE's is planned in the future.

OWASP Top 10 (2021)

Problems

A01: Broken access control
A02: Cryptographic failures
A03: Injection
A04: Insecure design
This is a very broad category that covers multiple problems, but none in particular. The goal of this catalogue is to prevent insecure design as a whole.
A05: Security misconfiguration
This is out of scope, because it does not fall under software security.
A06: Vulnerable and outdated components
This is out of scope, because it does not fall under software security.
A07: Identification and authentication failures
A08: Software and data integrity failures
A09: Security logging and monitoring failures
A10: Server-side request forgery (SSRF)

Solutions

A01: Broken access control
A02: Cryptographic failures
Mostly covered by Cryptographic action and related patterns.
A03: Injection
A04: Insecure design
This is a very broad category that covers multiple problems, but none in particular. The goal of this catalogue is to prevent insecure design as a whole.
A05: Security misconfiguration
This is out of scope, because it does not fall under software security.
A06: Vulnerable and outdated components
This is out of scope, because it does not fall under software security.
A07: Identification and authentication failures
Authentication and related patterns.
A08: Software and data integrity failures
Partially overlaps with Data validation and will be covered more extensively by Verifiable transmission.
A09: Security logging and monitoring failures
Logging is mentioned in Authentication Authorisation Data validation, and will be covered more extensively by Log entity actions
A10: Server-side request forgery (SSRF)
The application-specific part of SSRF is covered by Data validation

OWASP Top 10 (2017)

Problems

A1: Injection
A2: Broken Authentication
A3: Sensitive Data Exposure
A4: XML External Entities (XXE)
A5: Broken Access Control
A6: Security Misconfiguration
This is out of scope, because it does not fall under software security.
A7: Cross-Site Scripting (XSS)
A8: Insecure Deserialisation
A9: Using components with known vulnerabilities
This is out of scope, because it does not fall under software security.
A10: Insufficient Logging and Monitoring

Solutions

A1: Injection
A2: Broken Authentication
Authentication and related patterns.
A3: Sensitive Data Exposure
A4: XML External Entities (XXE)
A5: Broken Access Control
A6: Security Misconfiguration
This is out of scope, because it does not fall under software security.
A7: Cross-Site Scripting (XSS)
A8: Insecure Deserialization
A9: Using components with known vulnerabilities
This is out of scope, because it does not fall under software security.
A10: Insufficient Logging and Monitoring
Logging is mentioned in Authentication Authorisation Data validation, and will be covered more extensively by Log entity actions

OWASP API Security Top 10 (2019)

Problems

API1: Broken Object Level Authorization
API2: Broken User Authentication
API3L Excessive Data Exposure
API4: Lack of Resources & Rate Limiting
API5: Broken Function Level Authorization
API6: Mass Assignment
API7: Security Misconfiguration
This is out of scope, because it does not fall under software security.
API8: Injection
API9: Improper Assets Management
This is out of scope, because it does not fall under software security.
API10: Insufficient Logging & Monitoring

Solutions

API1: Broken Object Level Authorization
API2: Broken User Authentication
Authentication and related patterns.
API3: Excessive Data Exposure
API4: Lack of Resources & Rate Limiting
API5: Broken Function Level Authorization
API6: Mass Assignment
API7: Security Misconfiguration
This is out of scope, because it does not fall under software security.
API8: Injection
API9: Improper Assets Management
This is out of scope, because it does not fall under software security.
API10: Insufficient Logging & Monitoring
Logging is mentioned in Authentication Authorisation Data validation, and will be covered more extensively by Log entity actions

IEEE software security design flaws

Problems

Earn or Give, but Never Assume, Trust
Use an Authentication Mechanism that Cannot be Bypassed or Tampered With
Authorize after You Authenticate
Strictly Separate Data and Control Instructions, and Never Process Control Instructions Received from Untrusted Sources
Define an Approach that Ensures all Data are Explicitly Validated
Use Cryptography Correctly
In the context of this catalogue this is not a problem on its own, but the result of incorrectly applying solutions that involve cryptography.
Identify Sensitive Data and How They Should Be Handled
The actual identification of sensitive data is out of scope. Several problems can aid in handling data that was identified as sensitive: Leak data or action request in transit Tamper with data or action request in transit Leak data at rest Tamper with data at rest
Always Consider the Users
This is a very broad category that covers multiple problems and solutions. Some mentioned problems correspond to problems in this catalogue, e.g. privilege escalation is covered by Entity performs disallowed action. Other mentioned aspects, e.g. secure defaults, are covered by the corresponding patterns, or are out of scope for software security.
Understand How Integrating External Components Changes Your Attack Surface
This is a very broad category that covers multiple problems and solutions. It is partially covered through contexts and problems concerning interacting with uncontrolled entities.
Be Flexible When Considering Future Changes to Objects and Actors
This is partially out of scope, because it does not fall under software security. The aspects that are within scope are covered as part of the appropriate patterns.

Solutions

Earn or Give, but Never Assume, Trust
Use an Authentication Mechanism that Cannot be Bypassed or Tampered With
Authentication and related patterns.
Authorize after You Authenticate
Strictly Separate Data and Control Instructions, and Never Process Control Instructions Received from Untrusted Sources
Define an Approach that Ensures all Data are Explicitly Validated
Use Cryptography Correctly
Cryptographic action and related patterns.
Identify Sensitive Data and How They Should Be Handled
Always Consider the Users
Some suggestions, such as secure defaults, are dealt with in the appropriate patterns. Other suggestions are outside our scope of software security.
Understand How Integrating External Components Changes Your Attack Surface
This is a very broad category that covers multiple solutions. Several patterns contain suggestions for using external components and treating them as external entities.
Be Flexible When Considering Future Changes to Objects and Actors
This is a very broad category that covers multiple solutions. Several of the suggested solutions are considered in appropriate patterns, e.g. the password reset in Password-based authentication.

  1. Software security is sometimes also called application security, although that term is also used for protecting the software after it has been built. ↩


Last update: January 21, 2022