Skip to content

-srv, -ptr and -follow-records run only from the CLI (not TUI, MCP or library) #476

Backlog

Description

@TMHSDigital

Summary

The v0.12 discovery passes -srv, -ptr and -follow-records are orchestrated inside internal/cli. The library has FollowRecords but no SRV or PTR option, the TUI has no fields for any of the three (it warns they are ignored), and MCP offers none of them.

Where

  • internal/cli/session.go:825-830 (SRV names), internal/cli/session.go:914 and internal/cli/ptr.go:192 (runPTRPass)
  • pkg/subenum/subenum.go:50, :115 (Config: FollowRecords, no SRV/PTR)
  • internal/tui/form.go:88 (field spec: -axfr and -nsec-walk since -tui silently ignores -axfr, -stats, -exclude-file and -sarif #418, none of these three)
  • internal/cli/mcp_tools.go:94, :218 (remediationProps, scanArgs)
  • Also: -hosts is refused with -tui (internal/cli/cli.go:374)

Impact

TUI, MCP and library users get fewer names than CLI users on the same target. Missed SRV, HTTPS and CNAME targets also mean missed dangling-target takeover hints, which are the highest-value findings these passes produce. This kind of drift has been filed repeatedly (#405, #418).

Suggested fix

  1. Move the SRV name list and the PTR pass behind library options (Config.ServiceNames, Config.PTR) so the CLI, TUI and MCP all call one implementation.
  2. Add three toggle rows to the TUI field spec.
  3. Add follow_records, srv and ptr to MCP remediationProps (all stay within max_queries).
  4. Extend the parity tests (TestMCPInputSchemasMatchArgs, the TUI flags wiring test).

Filed by repo-audit/full-audit at a45b999. Severity: medium. Effort: M. audit-key: enhancement|internal/cli/session.go|srv/ptr passes

Activity

  1. added
    enhancement
    help wanted
    severity: medium
    on Nov 29, 2026
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