BF Software Security Concepts
Irena Bojanova, Inventor, Creator, PI, Bugs Framework (BF)
We can observe a security vulnerability leads to a security failure. However, what are the building blocks of a vulnerability? What is the defect in software that triggers a vulnerability? How does it propagate through errors until a final, exploitable error is reached? How do the underlying weaknesses of a vulnerability relate to these propagating errors?
The following software security concepts definitions were developed iteratively, while creating the BF software security vulnerability model. They facilitated the reasoning about and the creation of the BF weakness taxonomies, allowing precise descriptions of existing vulnerabilities.
A software security vulnerability is a chain of weaknesses linked by causality. It starts with a bug and ends with a final error, which if exploited leads to a security failure.
A software security weakness is a ’(bug, operation, error)’ or ‘(fault, operation, error)’ triple. It is an instance of a weakness type that relates to a distinct phase of software execution, the operations specific for that phase and the operands required as input to those operations.
A software security bug is a code or specification defect – an operation defect.
A software fault is a name, data, type, address, or size error – an operand error. Name is in reference to a resolved or bound object, function, data type, or namespace. The others are in reference to an object.
A software error is the result from an operation with a bug or a faulty operand. It becomes a next fault or is a final error.
A software security final error is an exploitable or undefined system behavior that leads to a security failure.
A security failure is a violation of a system security requirement.
A chain of weaknesses starts with a bug, propagates through errors that become faults, and ends with a final error. The final error is the one exploited by attackers towards a security failure. For example, missing input validation may propagate to integer overflow, followed by buffer overflow, which if exploited may lead to a remote code execution failure.
The bug must be fixed to resolve the vulnerability; while, in most cases, fixing a fault would only mitigate the vulnerability. To fix a bug (code or specification defect), lines of code or configuration files, etc., must be changed. The bug is a concrete error; it is a wrong sequence of bits that must be changed. Fixing a specification is also code related, as it requires fixing its implementation.
A security failure may be caused by the converging final errors of several vulnerabilities. The bug in at least one of the chains must be fixed to avoid the failure.
Using the BF software security concepts definitions, a vulnerability description can be formalize at a high-level with the following rules (the complete current BF LL1 grammar is available xxxhere).
START := Vulnerability Converge Vulnerability := Bug Operation Error Error := Fault Operation Error | FinalError Converge := Vulnerability Converge | Failure END
I. Bojanova and C. E. Galhardo, “Bug, Fault, Error, or Weakness: Demystifying Software Security Vulnerabilities,” IT Professional, vol. 25, no. 1, pp. 7-12, Jan.-Feb. 2023, doi: 10.1109/MITP.2023.3238631 , Local Download .