You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP lab_scan cannot practise Labs 7 and 8; scan cannot walk an NSEC zone #475
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
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.
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.
Report the walked names the way zone_transfer names are reported.
Update docs/mcp.md:126 and extend TestMCPInputSchemasMatchArgs.
Activity