Skip to main content
Version: 1.7

Import reports from security tools

The system supports importing scan results from external security tools. It processes scan results in the following ways:

  • parsing based on universal output formats (SARIF);
  • parsing based on report formats supported by security tools.

The following list includes the formats supported by security tools.

Security toolFile formatFormat name
AquaJSONAqua Report JSON
CodeScoringJSONCustom CodeScoring JSON
ESLintJSONESLint Report JSON
ExternalJSONSARIF 2.1.0
GitLab Advanced SASTJSONGitLab SAST Report JSON
GitleaksJSONGitleaks JSON Report
GrypeJSONGrype Vulnerability Report JSON
KCSJSONKCS (Kubescape) JSON
KICSJSONKICS Scan Results JSON
ManualJSONASOC Manual Issue Format JSON
OWASP Dependency TrackJSONCycloneDX-based JSON
PT AIJSONPT Application Inspector JSON
PVSJSONSARIF 2.1.0
SASTAVJSONSASTAV Security Scan Report JSON
SemgrepJSONSemgrep Results JSON
Solar AppscreenerJSONCustom JSON (SCA/DAST/SAST)
StingrayJSONStingray Defect Report JSON
TrivyJSONTrivy Vulnerability Report JSON
TruffleHogJSON / NDJSONTruffleHog Findings JSON

Recommendations for choosing a report format​

For the most accurate import, we recommend specifying the specific security tool and generating the report in the format listed for that tool in the table above. We've verified the reliability of these tool and format combinations, so TRON.ASOC recognizes these reports with the highest accuracy.

You can also import a report in the universal SARIF 2.1.0 format without specifying a security tool, or by specifying a tool that isn't listed above. However, the completeness and accuracy of data recognition depend on how closely the security tool's report complies with the SARIF specification. Not all security tools generate SARIF reports that fully and strictly comply with the specification.

The system doesn't impose technical limits on the size of an imported report or the number of vulnerabilities it contains. However, importing a very large amount of data can slow down the import process. If the file content doesn't match the format, the system stops the import with a parsing error and doesn't upload the report.

When you upload a scan report from the same tool again, the system does the following:

  • It doesn't create issues that were absent from previously uploaded reports—it considers the issues present in the uploaded report.
  • It updates the last detected time for issues that appear again in the new report.

When you enable the Partial import option, the system doesn't overwrite issues imported from earlier reports when it imports subsequent reports. For example, if the first report contains 5 issues and the second contains 2 new issues, the total number of found issues with Partial import enabled is 7 (rather than the 2 that would remain if the option were disabled).

Upload a report to the system​

To upload a report for a scan performed outside the system, follow these steps:

  1. Go to Projects → Project name → Security layers.
  2. Select the additional actions button (Additional actions) next to the required check.

Import an external report

tip

You can upload SBOM reports for some tools. For more information about uploading SBOM reports, see SBOM reports.

  1. Select Import results.
  2. In the form that opens, upload the SARIF file with the results.
  3. Select Partial import if you don't want to close missing issues.
  4. Select Save.

Upload a report to the system

The following example shows a report in SARIF format.

{
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "MySecurityScanner",
"rules": [
{
"id": "SEC001",
"name": "InsecureLibraryUse",
"helpUri": "https://example.com/rules/SEC001-CVE-2023-12345",
"properties": {
"tags": ["security", "CWE-79", "injection"],
"references": [
"https://cwe.mitre.org/data/definitions/79.html",
"https://nvd.nist.gov/vuln/detail/CVE-2023-12345"
]
}
}
]
}
},
"properties": {
"category": "dependency-analysis"
},
"results": [
{
"ruleId": "SEC001",
"level": "error",
"message": {
"text": "Vulnerable library detected: lodash@4.17.11"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/utils/parser.js"
},
"region": {
"startLine": 42,
"snippet": {
"text": "const _ = require('lodash');"
}
}
}
}
],
"codeFlows": [
{
"threadFlows": [
{
"locations": [
{
"location": {
"physicalLocation": {
"artifactLocation": {
"uri": "src/utils/parser.js"
},
"region": {
"startLine": 42
}
}
}
}
]
}
]
}
],
"properties": {
"input_issue_id": "ISSUE-00123",
"security-severity": 8.5,
"info_links": [
"https://cwe.mitre.org/data/definitions/79.html",
"https://nvd.nist.gov/vuln/detail/CVE-2023-12345"
],
"library_name": "lodash",
"library_version": "4.17.11"
}
}
]
}
]
}