express-recon は何をしますか?
Express 4/5のルートサーフェスを対象とするインベントリ&監査ハーネスです(CLI、ライブラリ、MCP、Claudeスキルに対応)。未認証のエンドポイントを特定します。
機能
- Express 4/5アプリケーションのルートをスキャン
- 認証ミドルウェアが欠落しているエンドポイントを特定
- CLI、プログラムライブラリ、MCPサーバー、Claude Codeスキルとして動作
- 結果をJSONやその他の形式でエクスポート
使用方法
CLIとして
npx express-recon --path ./my-express-app
ライブラリとして
const { scanRoutes } = require('express-recon');
const result = await scanRoutes('./my-express-app');
console.log(result);
Claude Codeスキルとして
Claude Code内でこのスキルを有効にすると、/express-recon コマンドを使用してExpressアプリケーションをスキャンできます。
出力例
{
"routes": [
{ "path": "/api/users", "method": "GET", "authenticated": false },
{ "path": "/api/admin", "method": "POST", "authenticated": true }
]
}
サポートプラットフォーム
- Node.js 18+
- Express 4.x および 5.x
ライセンス
MIT