Skip to content

Record which source (wordlist, ct, wayback, axfr, permute) found each name #273

Closed

Description

@TMHSDigital

Summary

Results don't say where a name came from. The only provenance field is Permutation bool, and the summary counts names proposed per source, not how many resolved.

Where

  • internal/output/writer.go:56-65 (Result)
  • main_summary.go:39-41, internal/output/summary.go (SourceSummary)

Proposal

  • Add sources: ["wordlist","ct","wayback","axfr","permute"] to each result in JSON, JSONL and CSV.
  • Add a found count per source to SourceSummary.

Who benefits

Users who want to know whether ct or wayback earns its requests, and which names came only from the archive. It also helps tune wordlists.

Open questions

  • How to label names that come from several sources (a list, as above), and whether text output shows it.

Getting started

  • Relevant files: internal/output/writer.go, internal/output/summary.go, main_session.go
  • How to run tests: go test ./internal/output/ .
  • Related docs: README.md (output formats)

Filed by repo-audit/full-audit at 3f671b2. Severity: medium. Effort: M. audit-key: enhancement|internal/output/writer.go|provenance

Activity

  1. added
    enhancement
    help wanted
    severity: medium
    on Nov 14, 2026
  2. TMHSDigital commented on Nov 15, 2026

    @TMHSDigital
    OwnerAuthor

    Partly done in 826e908; leaving this open for the rest.

    Done (command line): JSON and JSONL results carry a sources list naming every source that proposed the name (wordlist, ct, wayback, axfr), or permute alone for a -permute hit. CSV has a new last column, sources, joined with ;. The run report gains found per passive source and axfr_found per target, counted even when another source also had the name. A resumed run recomputes sources from the saved source names. Text output is unchanged.

    Decisions on the open questions: several sources are a list; a name found by -recursive below another found name is labelled wordlist; there is no separate found count for the wordlist.

    Not done: results written by the TUI, subenum mcp reports and pkg/subenum results do not carry sources yet.

    Verified by extended tests (TestCandidates, TestE2EPassiveSources, TestE2EPermute, TestE2EZoneTransfer), which check the JSONL field, the CSV header and column, and the per-source counts. go test ./... and golangci-lint run pass.

    Note for CSV consumers that read by position from the end of the row: sources is now the last column.

  3. TMHSDigital commented on Nov 15, 2026

    @TMHSDigital
    OwnerAuthor

    The rest is done in 7d64244. pkg/subenum's Result.Sources names what proposed each result, built with the same candidate set the CLI and TUI use (internal/candidates, 32bde28): wordlist, and each Config.Sources entry that returned it, named by a Name() method when it has one (ct, wayback, and now axfr for ZoneTransfer) or as Sources[i]. The TUI already writes sources to its output file when Sources or Permute is on. The subenum mcp server has no passive sources, so every result there would be wordlist; its report is left without the field. Verified: TestSources (named, unnamed and repeated names) and TestZoneTransferSource (the axfr label); go test -race ./... and golangci-lint v2.15.0 pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions