Skip to main content
Version: 1.6

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 shows the formats supported by security tools.

Security toolFile formatFormat name
AquaHTML inside JSONCustom HTML Report
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, specify the security tool and generate 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 conforms to the SARIF specification. Not all security tools generate SARIF reports in full and strict compliance 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 ends the import with a parsing error and doesn't upload the report.

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

  • It doesn't create issues that weren't present in 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 detected issues with Partial import enabled is 7 rather than 2, which would remain if you disabled the option.

Upload a report to the system​

To upload a report from 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 scan.

Import 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"
}
}
]
}
]
}