Skip to main content

scanfuse

A local command-line tool that reads pentest scanner reports and writes one report from them.

Scan files from Nmap, Nuclei, ZAP, Burp, Nessus and Trivy go into scanfuse, which writes index.md, report.html, report.json and report.csv

It imports Nmap, Nuclei, ZAP, Burp, Nessus and Trivy files and writes Markdown (with an index and a standalone HTML page), JSON or CSV. It runs offline and sends nothing anywhere.

Version 0.2.0, a pre-release. See CHANGELOG.md.

Example

The summary of a report A finding in the report

report.html follows the light or dark setting of your system; the screenshots show the dark one.

The report above was made from six real scan files (Nmap, ZAP, Trivy, Burp, Nessus). The input files, the command and the full report are in examples/.

Install

You need Python 3.12 or newer.

pipx install scanfuse                                   # from PyPI
pipx install git+https://github.com/gencay-e/scanfuse   # latest state from GitHub

pip install scanfuse works as well. From a checkout of this repository: pipx install .

Ready-made programs for Linux, Windows and macOS (no Python needed) are on the Releases page, with a SHA256SUMS file. To build one yourself, see Build a standalone program.

Use

scanfuse scan.xml -o report
scanfuse nmap.xml nuclei.json zap.xml -o report
scanfuse scan.json -f trivy --format-out json -o report
scanfuse scan.xml --min-severity High --host 192.0.2.1 -o report
cat scan.json | scanfuse -o report

scanfuse takes one or more files, or - for standard input. It finds the format by itself. Use -f to choose one: nmap, nuclei, zap, burp, nessus, trivy.

Option Meaning
-o, --output Output directory. Default report.
--format-out markdown (default), json or csv. markdown writes one file per finding, index.md and report.html.
-s, --min-severity Critical, High, Medium, Low or Info. Case does not matter.
--host Only findings on this host. Must match the IP or host name exactly, ignoring case. * and ? are wildcards, for example 10.0.0.*.
-t, --template-dir Folder with your own finding.md.j2 and index.md.j2. The folder must exist. Missing files fall back to the built-in templates.
--replace Overwrite an existing report. See below.
--csv-excel CSV with a byte order mark and ; as separator, which German-language Excel expects.
--version Print the version.

Existing reports

scanfuse never overwrites files by accident. If the output directory already contains a file that the new report would write, it stops with exit code 2 and changes nothing. Add --replace to overwrite the report. With --replace, files of the earlier report that are no longer part of it are removed. Files that scanfuse did not write are left alone.

The report is built in a temporary folder first. If moving the files fails, scanfuse tries to restore the old report. If restoration also fails, the error gives the location of the retained backup. A process or system crash during replacement can still leave a mixed report.

Incomplete runs

If one input file cannot be read, scanfuse still writes the findings from the other files and exits with code 1. The report says so:

  • report.json: "complete": false and the list of errors.
  • index.md and report.html: an INCOMPLETE notice with the errors.
  • report.csv: the column Import Status says incomplete (...) in every row.

An invalid .scanfuse.yaml counts as an error too. The report is then incomplete, because ignore rules were not applied.

Exit codes

Code Meaning
0 Complete.
1 Incomplete or failed: an input could not be read, .scanfuse.yaml is invalid, nothing could be written, or no input was given.
2 Invalid option, or the output files already exist (use --replace).

Merging duplicates

Findings from several files are merged when they are the same finding:

  • the titles are equal, ignoring case and surrounding spaces,
  • they carry the same CVE or GHSA ids,
  • they have the same port, and
  • the same tool does not give them different tool ids (for example two Nessus plugin ids).

Titles that are only similar are not merged. A merged finding keeps all hosts and all evidence. Evidence shows which tool reported it. What each tool wrote (description, remediation, severity, CVSS score and vector, ids) is listed under Reported by in the Markdown and in sources in the JSON. The summary severity is the highest of all reports. The summary CVSS score is the highest score, together with its own vector.

Output

JSON

report.json is an object:

{
  "schema_version": 2,
  "complete": true,
  "errors": [],
  "findings": [ { "title": "...", "severity": "High", "identifiers": ["CVE-2024-0001"], "port": "443/tcp", "sources": [] } ]
}

CSV

Columns: Title, Severity, CVSS, Hosts, Source Tool, Description, Remediation, Evidence, CVSS Vector, Port, Identifiers, References, Other Reports, Import Status. Hosts shows ip (host name) when a host name is known.

Cells that start with =, +, - or @ get a leading ' to reduce the risk of spreadsheet formulas. This also covers look-alike characters such as a full-width = and a leading no-break space. These cases were tested by reading the files back.

In Excel, import --csv-excel output with Data > From Text/CSV and use the semicolon delimiter. In a Windows Excel test, this preserved a multiline evidence field; the older Text Import Wizard split it across rows. Formula handling and LibreOffice remain unverified in those applications.

Scanner text in the report

Scanner output is untrusted. scanfuse treats it like this:

  • Titles, host names, ids and tool names are shown as plain text. They cannot add links, headings or HTML.
  • Descriptions and remediation text keep Markdown formatting, including links. Raw HTML is escaped, and the text cannot create a heading. A link in a scanner description is shown as the scanner wrote it, so check it before you click.
  • Evidence is shown unchanged in a code block.
  • The HTML page removes scripts, images, frames and javascript: links.
  • XML with entity declarations is rejected.

Configuration: .scanfuse.yaml

scanfuse reads .scanfuse.yaml from the current directory.

ignore_titles:
  - "Wappalyzer"
  - "Header Missing"

Findings whose title contains one of these texts (ignoring case) are left out. ignore_titles must be a list of strings. A single string is read as a list with one entry. Anything else, a file that is not a mapping, or a YAML syntax error is reported as an error and the rules are not applied.

Build a standalone program

uv sync --extra dev
uv run python build.py

The program is written to dist/. To check it against the test suite:

SCANFUSE_EXE=dist/scanfuse uv run pytest tests/test_packaged_cli.py     # Linux, macOS
$env:SCANFUSE_EXE = (Resolve-Path .\dist\scanfuse.exe).Path             # Windows PowerShell

A program built on Linux depends on the C library of the system it was built on. Build on the oldest system you want to support.

Development

uv sync --locked --extra dev
uv run ruff check .
uv run mypy scanfuse
uv run pytest tests/

Limits

  • scanfuse was tested with real output from nmap (7.94, 7.12, 6.40), ZAP 1.4, Burp, Nessus and Trivy (three file layouts), taken from the public DefectDojo sample-scan-files. Those files are old. Newer versions of the tools may add fields that scanfuse does not read yet. Nuclei has no real sample file in the tests. Open an issue with a cleaned sample if a file fails.
  • Format detection looks at the start of the file. Use -f if it guesses wrong.
  • The HTML page and the CSV file were checked by reading the files. They were not opened by hand in a browser, Excel or LibreOffice.
  • 100,000 results were processed completely in all three output formats on one Linux machine (4 CPUs, 16 GB). JSON took 14 seconds, CSV 10 seconds, Markdown with HTML 124 seconds, and the peak memory was between 0.7 and 1.0 GB. The HTML page for that many findings is large. You can repeat the check with python tools/large_check.py 100000.
  • Standalone programs are built and tested in CI on Ubuntu 22.04 (x86_64), Windows (x86_64) and macOS (arm64). Other Linux distributions, Linux on ARM and macOS on Intel were not tested.

License

MIT, see LICENSE.

Metadata

Release files for scanfuse 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scanfuse 0.2.0
File Size Uploaded Provenance Actions
scanfuse-0.2.0.tar.gz 870.8 kB With provenance Details for scanfuse-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scanfuse 0.2.0
File Interpreter ABI Platform Actions
scanfuse-0.2.0-py3-none-any.whl Python 3 none any Details for scanfuse-0.2.0-py3-none-any.whl

Total release size: 906.4 kB

Release files / scanfuse-0.2.0.tar.gz

Download URL scanfuse-0.2.0.tar.gz
Size 870.8 kB
Tags Source
SHA-256 checksum
How to use checksums
469d774d1e9872a5c92f89281b7d9f39c692070b3aacb956e50d77aaca1693c4
BLAKE2b-256 checksum
How to use checksums
c7ff7b29727f8e7872d6fc1660c42a85246170ed5290d0c353d518c47cad8ab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / scanfuse-0.2.0-py3-none-any.whl

Download URL scanfuse-0.2.0-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a509bafc25749e98d7a07abbdcf42e730566bcc2889c6e49fbf2e856ffd6e48
BLAKE2b-256 checksum
How to use checksums
e3f26cff29177454b429284130bcc9ec9f5c919e7296b17c7374db6f18b456ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for scanfuse 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scanfuse-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page