JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc

OWASP Top 10 2025

The categories list for each CodeSonar warning includes any relevant members of the OWASP® Top Ten Application Security Risks - 2025.

A broader set of correspondences is shown in Broad Mapping: OWASP Top Ten 2025.

CSV tables of warning classes by OWASP-2025 rule are provided in OWASP-2025-mapping.csv.



The OWASP Top 10 2025

"OWASP-2025" is shorthand for the OWASP Top 10 2025.

See the OWASP Top 10 2025 website for more information.

Relevant Warning Classes

The following table shows the CodeSonar warning classes that are associated with OWASP-2025 top ten security risks.

OWASP-2025 C/C++ Warning Classes Ada Warning Classes Java Warning Classes C# Warning Classes Kotlin Warning Classes Python Warning Classes
OWASP-2025:A01 Broken Access Control
OWASP-2025:A02 Security Misconfiguration -
OWASP-2025:A03 Software Supply Chain Failures -
OWASP-2025:A04 Cryptographic Failures - -
OWASP-2025:A05 Injection
OWASP-2025:A06 Insecure Design
OWASP-2025:A07 Authentication Failures - -
OWASP-2025:A08 Software or Data Integrity Failures -
OWASP-2025:A09 Security Logging and Alerting Failures - -
OWASP-2025:A10 Mishandling of Exceptional Conditions

Management Reports

The predefined OWASP Top Ten 2025 Report management report template allows you to automatically generate a report summarizing all the warnings from a particular analysis that are closely mapped to one or more of the OWASP Top 10 2025.

You can generate this report from the GUI Analysis page for the analysis of interest. For general instructions, see Task: Generate a Management Report

Enabling OWASP-2025 Rules

Because the rules are strongly tied to web application development, many of the associated checks are disabled by default.

CodeSonar ships with a taxonomy preset for OWASP-2025 checks:

owasp2025 Enables warning classes such that a given class C is enabled if all of the following are true.
  • C is closely mapped to one or more OWASP-2025 members (that is, it appears in the table above), and
  • no other classes enabled by the preset are more closely related to the same rules, and
  • C is not diagnostic-only (that is, it does not have a DIAG.* mnemonic).

You can apply the owasp2025 preset to the CodeSonar build/analysis as shown in the following table.

Command Line Specify -preset owasp2025 as part of your build/analysis command. For example:
codesonar analyze MyProj -preset owasp2025 localhost:7340 make
Define as a default preset Copy owasp2025.conf from $CSONAR/codesonar/presets/ to $CSONAR/codesonar/default_presets/.
OR
Use the CodeSonar Configuration Tool Modify Analysis Settings option.
Windows Build Wizard Select owasp2025 from the Preset list on screen 2.
Eclipse Plug-In Select owasp2025 from the Presets list in the Properties dialog.
Visual Studio Plug-In Select owasp2025 from the Presets list in the Project Properties dialog.

Enabling checks for specific security risks

To enable checks for all the warning classes associated with a specific OWASP-2025 security risk, include the following in the project configuration file:

WARNING_FILTER += allow categories:"OWASP-2025:Anum"

Enabling individual warning classes

To enable a single warning class check, follow the instructions in the documentation for the corresponding warning class. Warning class documentation links are provided above.


 

To report problems with this documentation, please visit https://support.codesecure.com/.