Skip to content

MCP lab_scan cannot practise Labs 7 and 8; scan cannot walk an NSEC zone #475

Backlog

Description

@TMHSDigital

Summary

MCP lab_scan offers the lab7-zone-transfer and lab8-nsec-walk scenarios but has no zone_transfer or nsec_walk argument, so an agent cannot practise either lesson. Live scan has zone_transfer but no NSEC walk, even though its report tells the agent when a zone is walkable.

Where

  • internal/cli/mcp.go:235 (labScenarios() lists every embedded zone)
  • internal/cli/mcp_tools.go:134-146 (labScanArgs: no zone arguments)
  • internal/cli/mcp_tools.go:218-228 (scanArgs: zone_transfer, no NSEC walk)
  • internal/cli/mcp_report.go:395 (schema text: "nsec means anyone can list every name by walking the zone")
  • docs/mcp.md:126 ("lab_scan has no zone_transfer yet")
  • pkg/subenum/zone.go:158 (NSECWalk(opts) already exported as a Source)

Impact

An agent following the lab guide hits a dead end on Labs 7 and 8. On a live scan it learns a zone is walkable but has to brute-force it anyway, spending max_queries on names a walk would list exactly.

Suggested fix

  1. Add zone_transfer and nsec_walk to lab_scan. They are safe there, since the traffic stays in-process, so no operator gate is needed.
  2. Add nsec_walk to scan, behind the existing -axfr operator opt-in or a new -nsec-walk server flag, paced by rate and bounded by max_queries/max_duration as the CLI does.
  3. Report the walked names the way zone_transfer names are reported.
  4. Update docs/mcp.md:126 and extend TestMCPInputSchemasMatchArgs.

Related: #405, #434


Filed by repo-audit/full-audit at a45b999. Severity: medium. Effort: M. audit-key: enhancement|internal/cli/mcp_tools.go|labScanArgs

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