SATraits
Overview
SATraits calculates the expected risk-reduction effectiveness of applicable AST tools for an application, based on application context and source code languages. SATraits determines which vendor tools provide the greatest risk reduction for important defects. AST coverage is evaluated by examining which tool identifies the most defects that matter to the application, tempered by each detection rule’s confidence. SATraits is meant to be a general guide. It should not be used to predict the results that any project will observe.
SATraits utilizes a multi-factor weighting system with two major components: a breadth assessment (breadth of findings, distribution of defect types, and language weights) and a risk assessment mirroring SATriage (severity of consequence, ease of exploitation, rule accuracy/false-positive rate, and application context).
How to Use: Languages and Purpose
Because many AST tools are language-specific, configuration follows two steps:
- Specify Languages: Enter the percentage of source code written in each programming language across the project. The sum must total 100%.
- Choose Evaluation Lens: Select Set Priorities for technical prioritization or select Use Regulations for a regulatory compliance perspective.
SATraits: Prioritization
Under “Set Priorities”, assign an integer ranking (1 to 8) to prioritize each risk category relative to others:
- Unauthorized Access: Violations of authentication and entry control barriers where an adversary can assume control of a user’s account and access permitted data or functionality.
- Unauthorized Permissions or Privileges: Flaws permitting privilege escalation where an adversary gains super-user, administrator, or root access.
- Unintended Exposure of Data or Functionality: Adversary gains access to data or functionality not associated with an account or readily accessible by an administrator (including host data).
- Availability: Defects impacting application uptime via resource exhaustion, denial of service, crashes, or instability.
- Safety: Critical risks impacting execution integrity that could affect human health or life in transportation, medical, or defense software.
- Correctness: Functional flaws and computational errors causing invalid behavior.
- Performance: Excessive resource consumption (compute time and memory).
- Convention and Style: Coding standards and lint deviations affecting maintainability, clarity, or portability rather than direct functionality.
SATraits: Regulatory
Under the Regulatory option, select your industry sector, application purpose, software properties, and deployment locations. SATraits lists all applicable regulatory frameworks, and selections are applied against the defect ruleset.
Evaluating AST Tool Risk-Reduction Effectiveness
- Coverage vs. Risk Reduction: SATraits is a measure of weighted risk reduction rather than raw rule counts or coverage. Comparing the risk-effectiveness of tools in current use against the total theoretical risk-effectiveness gives an accurate measure of your program’s false-negative position.
- Margin of Error: Scores reflect statistical benchmarks across billions of lines of code. Individual projects typically experience a 4–5% variation. Ratings should be treated as guidelines (e.g., a score of 18 versus 17 is equivalent, whereas 18 versus 5 represents a substantial effectiveness gap).
- Duplicates vs. Overlaps: Duplicates (a single tool reporting the same finding multiple times) do not inflate SATraits effectiveness. Overlaps occur when two or more tools report the same finding. Across distinct AST tools, less than 1% of security findings overlap.
- Total Scores Exceeding 100: The cumulative risk-effectiveness across all tools in a portfolio can exceed 100 due to shared open-source rule engines (e.g., GitLab incorporating Semgrep rules).
- Penalization of Aggressive Scanners: Tools that flag critical defect categories but exhibit high false-positive rates receive penalized rankings, as high noise diminishes practical risk reduction.
Approach to Tool Risk-Reduction Effectiveness
SATraits operates on the same core statistical engine as SATriage, utilizing a multi-factor weighting system. Following defect realignment into canonical CWE definitions, each AST rule is evaluated across breadth and risk components. Overall risk reduction represents the product of breadth and risk effectiveness across all evaluated rules or tests, tempered by application context.