Import nmap, nuclei, ffuf and Burp output into the surface inventory

Aperta
#73 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
data, security

Direzione di ricerca

The payload names no source files, so start by finding the existing surface command parser and its normalization and evidence code in the repository. Check how the current text parsers feed the inventory and how evidence artifacts are stored. Done means each of the four formats imports a fixture into the expected hosts, ports and URLs, out-of-scope entries are reported, duplicate imports merge, and a malformed file errors without writing anything.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: security enhancement priority: P2

Problem

surface parses nmap/HTTP/TLS text pasted or produced by a command, but there is no importer for the machine-readable output the tools already write. A user running nuclei or ffuf gets JSON/JSONL that must be pasted or re-parsed by hand, and Burp XML is not handled at all.

Importing results is passive: it reads files the user already has. It should not run the tools or expand scope.

Inspiration

  • nmap XML output (-oX).
  • nuclei JSONL (-jsonl).
  • ffuf JSON (-of json).
  • Burp Suite XML export.
  • The existing surface normalization and evidence model.

Proposal

Add surface action="import" with format and path:

  • nmap-xml: hosts, addresses, hostnames, ports, services, versions, scripts.
  • nuclei-jsonl: template id, severity, matched URL, matcher, request/response hashes.
  • ffuf-json: target, word, status, length, words, lines, redirect.
  • burp-xml: issues with severity, confidence, request/response, host, path.

Normalize into the surface inventory and findings, dedupe by target + rule + location, attach the raw file as an evidence artifact with a SHA-256, and record the import command and timestamp. Refuse entries outside the active scope and list what was skipped.

Acceptance criteria

  • Each format imports a fixture and produces the expected hosts/ports/URLs.
  • Raw files are stored as evidence with a digest.
  • Out-of-scope entries are skipped and reported, not silently dropped.
  • Duplicate imports merge instead of duplicating.
  • No tool is executed by the importer.
  • A malformed file fails with the parser error and writes nothing.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.