feat(reporting): Enhance CSV, extend JSON schema, and add Markdown export
Description:
Nettacker already supports HTML, CSV and JSON exports as part of its comprehensive reporting features. These formats are a major strength compared to other tools. However, there are opportunities to enhance and extend reporting to make results more reliable and more useful for modern workflows.
Motivation:
-
CSV: While supported, there have been bug reports (e.g., API crashes) and inconsistencies. Stabilizing CSV export will improve reliability.
-
JSON: Current JSON output is useful, but extending it into a SIEM‑friendly schema (with fields like severity, CVE, tags, timestamp) would allow direct ingestion into Splunk/ELK.
-
Markdown: A new format, useful for sharing results in GitHub issues, documentation, or wikis.
Scope:
-
Keep implementation modular in a new reporting module (e.g., nettacker/lib/report_export/).
-
Avoid changes to core scanning logic.
-
Add CLI option --report-format with choices: html, json, csv, markdown, siem-json.
-
Default remains HTML/JSON for backward compatibility.
Deliverables:
-
CSV stabilization — fix bugs and ensure consistent schema across CLI and API.
-
Markdown export — generate tables for easy sharing.
-
Extended JSON schema — add SIEM‑friendly fields.
-
Documentation updates in docs/Usage.md.
-
Unit tests for each format.
Example outputs for each format.
Non‑Goals:
No changes to core scanning logic.
No external dependencies beyond Python standard library.
No dashboard or visualization work (future scope).
Benefits:
-
Builds on Nettacker’s existing strengths (CSV/JSON).
-
Adds new formats (Markdown, SIEM‑JSON) for broader usability.
-
Improves reliability and integration with modern security workflows.
Testing:
-
[X] Verify CSV export works for CLI and API across multiple modules/targets.
-
[X] Validate JSON schema against SIEM ingestion requirements.
-
[X] Confirm Markdown tables render correctly.
-
[X] Add unit tests for each format.
Hi @maintainers 👋
I would like to work on this issue by improving the documentation and adding examples for better clarity.
Please let me know if that sounds good!
"Hi! I'm Bhavitha, a developer from Bangalore applying for GSoC 2026 with OWASP Nettacker. I've been studying the existing reporting module at nettacker/core/report.py and understand the current CSV and JSON export structure. I'd like to implement the Markdown export feature from this issue. My plan is to add a markdown_export() function following the same pattern as the existing exporters, with a table-based format showing host, port, module, severity and description columns. Could you confirm this approach before I start? I'll submit a draft PR within 2 days."
Hi ! I would like to contribute to this issue.
I've gone through the existing reporting structure and understand how CSV and JSON exports are currently handled. I would like to start by implementing the Markdown export feature as a separate module, ensuring it follows the existing design patterns and remains modular.
My plan is to generate clean, table-based Markdown output for scan results (including fields like target, port, module, severity, etc), keeping compatibilty with current CLI usage.
Please let me know if this approach aligns with your expectations, or if you'd like me to focus on a different part of this issue.