Reporting & Export Subsystem
TraceForge features a multi-format export pipeline that generates executive briefings, relational spreadsheets, geospatial maps, and standard threat intelligence feeds.
1. Supported Export Formats
Format |
Output File / Directory |
Dependencies |
Primary Use Case |
|---|---|---|---|
Markdown |
|
Zero (Built-in) |
Technical documentation, GitHub PRs, Obsidian/Logseq notes |
HTML (Dark Mode) |
|
Zero (Built-in) |
Standalone browser viewing, executive briefings |
Relational CSV |
|
Zero (Built-in) |
Spreadsheet ingestion (Excel, Google Sheets) with formula injection protection |
TSV |
|
Zero (Built-in) |
Command-line pipelines and AWK scripts |
JSON |
|
Zero (Built-in) |
Programmatic ingestion and API exchange |
JSONL Streams |
|
Zero (Built-in) |
Timesketch, SIEM, and log analytics pipelines |
STIX 2.1 |
|
Zero (Built-in) |
Threat Intelligence Platforms (OpenCTI, MISP, Anomali) |
MISP Event |
|
Zero (Built-in) |
Malware Information Sharing Platform (MISP) ingestion |
GeoJSON |
|
Zero (Built-in) |
QGIS, Mapbox, and web mapping interfaces |
Google Earth KML |
|
Zero (Built-in) |
Google Earth 3D geospatial overlays |
Excel (XLSX) |
|
|
Multi-tab formatted Excel workbook |
Word (DOCX) |
|
|
Formatted corporate Word document |
|
|
Formatted PDF executive report |
2. Generating Case Exports
Run the export subcommand against the active case:
# Export all supported formats
traceforge export
# Export with automatic PII redaction
traceforge export --redact
# Export to a custom directory
traceforge export CASE-20260825-A1B2C3 --out /tmp/case_deliverables/
3. CSV Formula Injection Defense
Exporting untrusted evidence strings into CSV files poses a risk of CSV Formula Injection (=, +, -, @, \t, \r) when opened in spreadsheet software like Microsoft Excel or LibreOffice Calc.
TraceForge defensively sanitizes every exported field:
Any cell value beginning with
=,+,-,@or control characters is automatically prefixed with a single quote (').Prevents remote command execution or data exfiltration via DDE links in spreadsheets.
4. PII & Threat Indicator Redaction
When sharing case reports with external parties or third-party vendors, enable the --redact flag:
traceforge export --redact
TraceForge applies context-aware redaction:
IPv4 / IPv6 Addresses: Masked (e.g.
198.51.100.45➔198.51.***.***).Email Addresses: Sanitized (e.g.
analyst@example.com➔a***t@e***e.com).Original unredacted case evidence in
workspace/remains unmodified.
5. Optional Document Renderers
If openpyxl, python-docx, or wkhtmltopdf are not installed, TraceForge gracefully outputs the core formats (HTML, Markdown, CSV, STIX, MISP) and notifies the operator.
To enable optional document renderers:
pip install openpyxl python-docx
# macOS: brew install wkhtmltopdf
# Linux: sudo apt-get install -y wkhtmltopdf