---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/pentest/use-cases/check-information-disclosure/claude
---
# How to Check Information Disclosure with Claude

Claude transforms penetration testing into a conversational security review where each discovered vulnerability leads to deeper investigation. Ask Claude to scan your application, explain each finding in context, chain additional targeted tests based on initial results, and generate remediation code for every issue found. Its analytical depth is ideal for security-conscious developers who want to understand not just what is vulnerable but why and how to fix it permanently.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Check my application for information disclosure issues using pentest" and provide the URL
3. Claude scans for exposed files, verbose errors, debug endpoints, and data leakage
4. Review each disclosure finding and assess the risk of the exposed information
5. Remove or restrict access to all sources of information leakage

## Example Prompt

```
Check https://staging.myapp.com for information disclosure. Look for exposed config files, verbose error messages, debug endpoints, and API over-sharing.
```

## Tips

- Ask Claude to check for common exposed files like .env, .git, package.json, and debug logs
- Test error handling by triggering 404, 500, and malformed request errors
- Check API responses for fields that should not be exposed to the client
