| 1 |
``sec-scan`` command |
| 2 |
==================== |
| 3 |
|
| 4 |
The command reads an SBOM and checks all referenced source packages for vulnerability |
| 5 |
based on the Debian security tracker data. The output can be written in various formats, |
| 6 |
including OpenVEX and SARIF. |
| 7 |
|
| 8 |
.. note:: |
| 9 |
This command can be executed in an air-gapped environment if the db |
| 10 |
is already downloaded. |
| 11 |
|
| 12 |
.. automodule:: debsbom.commands.security_scan.SecurityScanCmd |
| 13 |
|
| 14 |
.. argparse:: |
| 15 |
:module: debsbom.cli |
| 16 |
:func: setup_parser |
| 17 |
:prog: debsbom |
| 18 |
:path: sec-scan |
| 19 |
|
| 20 |
JSON Output Schema |
| 21 |
------------------ |
| 22 |
|
| 23 |
When the application is run with JSON output enabled (via the ``--json`` flag), |
| 24 |
status messages are emitted as single-line JSON objects to standard output. |
| 25 |
Each line represents a distinct scan result (e.g. vulnerability affecting a package). |
| 26 |
|
| 27 |
The schema for these JSON objects is as follows: |
| 28 |
|
| 29 |
.. literalinclude:: ../../../src/debsbom/schema/schema-sec-scan.json |
| 30 |
:language: json |