Theory of Operation
Profiles
SATriage uses a profile as its mechanism to perform structured analytical queries about the defects that are found by AST tools. The profile is a system of weights that elevate or suppress defects during the statistical calculation of an objective function. A profile will weight every single defect CWE separately, along with modifying the importance of consequences, attacks, ease-of-exploitation, or accuracy. The profile will highlight trends, not absolutes.
Rather than forcing findings into just three coarse buckets (severe, moderate, minor), this multi-variable weighting approach results in billions of possible rankings, yielding a strict 1:N ranking of defects.
Objective Function
SATriage uses a system of weights, based on calculated probabilities, concerning the relative importance of several key factors associated with the prioritization, triage, and understanding of AST results. The defect weighting objective function is:
Where the components operate as follows:
- Defect Weight (Application Context): Calculated directly from the application context defined in the profile. When generating a profile for prioritization, the relative importance of high-level system attributes is entered. This application-specific set of priorities is used to calculate the importance of the range of consequences that can occur for a given defect. Consequence weights inform SATriage of the relative importance of each defect, establishing the defect weight portion of the objective function.
- Weight Exponents: The exponents are a function of user-entered severity, ease-of-exploitation, false positive, and density weights, calculated as the user-entered weight divided by 50. Because users enter weights from 0 to 100, exponents range from 0 (factor disabled) to 2 (factor squared). System defaults typically provide the best prioritization results.
- Severity Factor: Calculated from the relative severity and relative probability of occurrence of each possible outcome (consequence) of a defect.
- Ease of Exploitation Factor: A relative factor based on a comparison of the ease-of-exploit of one defect versus another defect. These are nominally derived from MITRE CAPEC data combined with an analysis of the range of possible code structures that can result in the defect.
- False Positive Assessment: A relative factor indicating how likely one kind of defect is to be a false positive versus another defect. Relative probability is calculated based on the number and severity of approximations used by the AST tool to determine the presence of a defect, tempered by historical tool performance data over decades of data (tens of millions of defects), rule specificity, and multi-tool agreement.
- Density Factor: Allows for small shifts in defect importance when a particular defect type is considered systemic, slightly elevating systemic defects versus non-systemic defects.
Financial Analysis Approach
SATriage analyzes the financial impact of defects from the bottom up. The financial impact is first calculated for each defect. Using the likelihood of the defect being breached, the financial impact is calculated across an application. Lastly, financial impact is determined across all applications in an organization. Financial impact is based on the probability of all defect consequences and attack vectors, the likelihood of defect breaches, and the historic cybersecurity insurance records of events matching each defect situation.
For each defect, the defect financial loss expectation is determined by considering all possible attack/consequence pairings and its probability of occurrence. The cybersecurity insurance database of millions of historical loss events is queried for each attack/consequence pair for similar situations. Similar situations include company size, sector, data sizing, and data types. The database typically has tens-of-thousand similar matching events. The distribution of losses for all similar situations is correlated across all attack/consequence pairings accounting for the likelihood of each attack/consequence pairing.
Financial losses cover all potential costs associated with response to a cyber event. Response costs include:
- Repair: including resolution, distribution, replacement of hardware/software, product recalls, processing costs
- Corrective: preventative measures, IT management, crisis management, emergency services
- Protective: lost wallet protection, identity theft protection/insurance, credit protection/monitoring
- Necessary: employee/staff time, notifications, call center services, etc. costs
- Legal: injury, financial damages, punitive damages, violations of laws or regulations, and defense costs
- Economic loss: including corporate financial loss, interruption of business activity loss, disruption to critical infrastructure, loss of corporate data, intellectual property, and software
- Ransomware: includes the ransom payment itself. Operational downtime, remediation, and legal liabilities are separately categorized.
- Fines and penalties: non-legal costs, typically imposed by governments
- Other business losses: including lost wages, lost business, loss assets, and lost property
Costs are quantified amounts as listed in cybersecurity insurance database of cyber event losses. The losses do not include non-quantified items, such as reputational value.
Bottom-Up Analysis vs the FAIR Framework: SATriage is a detailed bottom-up analysis based on real defects in application, and statistics of millions of historic cost events. The Factor Analysis of Information Risk (FAIR) is a top-down analysis based on typical industry risk rather than actual application defects. FAIR estimates target frequency, provides subjective breach probability, and uses a broad high/low range of losses based on guesswork rather than large empirical datasets. FAIR is not based on historical loss data, actual defects, nor all cost components. FAIR does not evaluate actual defect quantities, attack probabilities, or consequence likelihoods, and cannot provide loss or ROI calculations for specific defects, applications, or organizations.
Suggested Approaches
It is highly suggested that users use as many profile views as is applicable for an organization and for each application on a regular basis whenever an AST tool run is executed:
- Prioritization: Use different custom prioritization profiles for each application, as variations in context, functionality, and environment result in dramatically different defect rankings.
- Quick Check: Once severe defects have been addressed, review the quick check defects. Quick check defects can be important if they satisfy their verification check on result accuracy.
- Mission Critical: Deploy dedicated consequence or attack profiles for specific issues of critical importance (e.g., defense concerned with unauthorized control, infrastructure concerned with downtime, healthcare concerned with health records). A separate mission critical profile should be used for each critical issue (consequence and/or attack). Mission critical profiles can be used across multiple applications.
- Regulatory: Because regulatory frameworks heavily overlap in their technical requirements, a single regulatory profile encompassing all applicable regulations is typically sufficient for an organization. When choosing which regulations to cover by a profile, it is usually best to include all applicable regulations due to tremendous overlap in technical requirements. Eliminating the unsupported regulations often does not change the defect quantities or rankings.
- Risk: Unlike prioritization, risk profiles do not consider result accuracy (which may direct effort toward false positives) and weigh ease-of-exploitation differently relative to consequence severity. For organizations that are not highly cost-bound, but desire extra protection, using security risk profiles could be useful. Alternatively, comparing risk and prioritization profile results provides valuable insight.
- Financial: Because financial impact depends greatly on use, access, data, and deployment, configure financial context data separately for each application.
Specialized Options
SATriage provides targeted answers to specific operational questions via specialized profile queries and CWE filters:
- Post-Breach Exposure: In response to a major breach, run a Mission Critical – Consequence profile selecting the consequence that occurred to rank all other defects capable of causing the same incident. Similarly, Mission Critical – Attack profiles identify all defects exploitable via that same attack vector.
-
Best Practices & Coding Style: In the Defect table filter, search for
CWE 398.03(Best Practices) orCWE 398.04(Coding Style). -
Code Maintenance: Filter for
CWE 398.10to isolate issues that make system maintenance more difficult. -
Portability: Filter for
CWE 398.07to locate issues causing or resulting from portability problems. -
Compilation & Warnings: Filter for
CWE 398.09(Compilation issues) orCWE 398.01(Warnings). -
Application Usability: Filter for
CWE 398.08to identify defects that impact usability.
Quick Check Process
Definition of Quick Check
Defects designated as Quick Checks (QC) have a 90 - 95% chance of being false, because they are predicated on gross assumptions made by the AST vendor regarding code intent. QC defects account for 10% to 30% of vendor defect findings. SATriage offers guidance on how to quickly verify if each QC defect is false. In most cases, the guidance will allow a quick dismissal of the defect as being a false positive. Please note that if the assumptions listed by the guidance are not all the factors that can impact the validity of the defect result.
QC defects can be important. The purpose of QC is to quickly dismiss false positive answers. A vast majority of QC defects can be dismissed quickly.
QC Messages
For example, consider the following SATriage message, associated with a “Use of Hard-coded Password” defect:
The AST is assuming that a variable in the code has a particular meaning. In this case, a variable called passwd holds a password and is not defined/used for a different purpose. For example, the variable passwd may hold a message like “Please enter a Password” that is associated with collecting a password from a system user. In this case, passwd is a string that is “hard-coded” to the message. The string is not a password, and the “hard coding” is just a message.
QC Review Process
Quick Checks (QC) are identified in the SATriage information. QC defects are also separated out. Defects that are designated as QC are most likely false positives (90 - 95% chance of being false). QC defects are distinguished by the fact that they are predicated on gross assumptions concerning code intent.
Almost all AST defects can be a false positive. Most false positives occur due to the AST not validating code structure, code paths, or data values. QC defects are subject to these issues. However, on top of those issues, QC defects are uniquely subject to code intent interpretation issues. QC defects are found based on one or more gross assumptions on the code base by the AST vendor on top of the normal inaccuracies that cause false positive results.
With each QC defect, SATriage offers guidance on how to quickly verify if the defect is false due to the code intent issue. In the large majority of the cases, the guidance will allow a quick dismissal of the defect as being a false positive. Please note that if the code intent assumptions listed by the guidance holds, then the other validity factors (such as code path and variable values) will need to be considered. That is, having the assumptions hold does not guarantee that the defect is true.
The purpose of the QC is to quickly dismiss false positive answers. QC defects can range from 30% to 10% of a vendor’s defect determinations, depending on vendor tool and language. A vast majority of these QC defects can be dismissed quickly. However, not all of them are quickly dismissed and those that are not dismissed can be important.
Re-prioritization After QC Review
Any QC defect that satisfies its code intent guidance should be returned to the prioritized defect list so it can be ranked alongside all other issues.