How to Enumerate Subdomains with Copilot
Subdomain enumeration in your IDE with Copilot and ToolRouter.
ToolSecurity HTTPxCopilot integrates HTTP service probing directly into your development environment, letting you audit security headers and discover exposed services without leaving your IDE. After probing your hosts, ask Copilot to generate the exact middleware, nginx config, or CDN rules needed to fix header issues. This code-first approach to security means fixes go directly into your codebase and get reviewed in pull requests alongside feature work.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Security HTTPx tool:
- In Copilot Chat: "Enumerate subdomains of my company domain"
- Copilot discovers subdomains and returns details
- Ask: "Help me set up DNS monitoring for new subdomain creation"
- Implement monitoring for your domain
Example Prompt
Try this with Copilot using the Security HTTPx tool
Enumerate subdomains of mycompany.dev. I want to find any test or staging services that developers may have exposed.
Tips
- Copilot can help write scripts to automate regular subdomain enumeration
- Check that all discovered subdomains are covered by your certificate
- Integrate subdomain discovery into your CI/CD pipeline for continuous monitoring