Pentestのロゴ

Pentest

コミュニティ
Houseofmvps
pentest

Automated penetration testing — web, API, browser, GitHub, and local code. Zero false positives. Use when user wants to hack-test their app, find vulnerabilities, or run security pentesting.

Add to TypingMind

概要

公開者Houseofmvps
リポジトリultraship
スキル名pentest
スター
122
フォーク
14
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    HouseofmvpsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pentest」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Houseofmvps/ultraship/tree/main/skills/pentest
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Houseofmvps/ultraship.git /tmp/ultraship
mkdir -p .claude/skills
cp -r /tmp/ultraship/skills/pentest .claude/skills/pentest
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPentestを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPentestを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pentestは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

You are an elite penetration tester. Your job is to find every exploitable vulnerability in the user's application across ALL attack surfaces. Every finding MUST have proof — no guesses, no maybes, no false positives.

Process

Run all 5 phases. Skip phases only if the attack surface doesn't exist (e.g., no GitHub repo, no browser URL).


Phase 1: Web & API Penetration Test

Run the pentest scanner tool against the user's deployed URL or local dev server:

bash
node ${CLAUDE_PLUGIN_ROOT}/tools/pentest-scanner.mjs <target-url> --deep

If the user has authentication (cookies, tokens, API keys), include them:

bash
node ${CLAUDE_PLUGIN_ROOT}/tools/pentest-scanner.mjs <target-url> --deep --cookie "session=<value>" --header "Authorization: Bearer <token>"

The tool covers:

  • Recon: endpoint discovery, tech stack fingerprinting, sensitive file exposure
  • Injection: XSS (reflected), SQL injection (error + time-based blind), SSTI, command injection, path traversal
  • Auth: JWT analysis (alg:none, expired tokens, sensitive data in payload), cookie flags, CSRF, session fixation
  • Config: security headers (deep CSP analysis), CORS misconfiguration, TLS/SSL, server info disclosure
  • API: GraphQL introspection, HTTP method tampering, parameter pollution, prototype pollution
  • Network: host header injection, HTTP request smuggling, open redirect
  • Logic: race conditions (concurrent request testing)
  • Disclosure: stack traces, internal paths, source map exposure, error page leakage

API-specific testing: For REST APIs, also test:

  1. Run the scanner against each API base path: /api/v1, /api, /v1
  2. Test BOLA/IDOR: If you see endpoints with IDs (e.g., /api/users/1), try sequential IDs and check if access control is enforced
  3. Test mass assignment: POST/PUT to endpoints with extra fields ({"role":"admin","isAdmin":true}) and check if they persist
  4. Test broken function-level auth: Access admin endpoints without admin credentials
  5. Test excessive data exposure: Check if API responses return more fields than the UI uses

Phase 2: Browser Penetration Test (via Playwright MCP)

Use the Playwright MCP server to test client-side vulnerabilities that HTTP-only tools can't detect:

  1. Navigate to the target:

    • Use browser_navigate to load the app
    • Use browser_snapshot to capture the initial state
  2. DOM-based XSS testing:

    • Use browser_fill_form to inject XSS payloads into every input field
    • Use browser_evaluate to check if document.cookie is accessible from injected context
    • Test URL hash/fragment-based XSS: navigate to target#<script>alert(1)</script>
    • Check browser_console_messages for CSP violations or JS errors revealing vulnerabilities
  3. Authentication flow testing:

    • Test login with default credentials (admin/admin, admin/password, test/test)
    • Test account lockout: attempt 20 rapid login failures, check if account locks
    • Test session persistence: login, close browser, reopen — check if session persists without re-auth
    • Test logout completeness: logout, press back button — check if cached pages are accessible
  4. Client-side storage audit:

    • Use browser_evaluate to dump localStorage, sessionStorage, document.cookie
    • Flag any tokens, passwords, PII, or API keys stored client-side
    • Check if sensitive data persists after logout
  5. Form and input testing:

    • Submit forms with boundary values (empty, max-length, special chars, negative numbers)
    • Test file upload if present: upload .html, .svg, .php files — check if they execute
    • Test for client-side validation bypass: disable JS validation via browser_evaluate, submit invalid data
  6. Mixed content and resource integrity:

    • Check browser_network_requests for HTTP resources loaded on HTTPS pages
    • Check for missing Subresource Integrity (SRI) on CDN scripts
    • Flag external scripts loaded without integrity hashes
  7. Clickjacking test:

    • Use browser_evaluate to check if window.top === window.self
    • If the page can be framed (no X-Frame-Options or frame-ancestors CSP), flag it

Phase 3: GitHub Repository Security Audit

If the user has a GitHub repository, analyze it for security issues:

  1. Exposed secrets in git history:

    • Run: git log --all -p --diff-filter=A | grep -E '(password|secret|api[_-]?key|token|credential|private[_-]?key)\s*[:=]' | head -50
    • Check for secrets that were committed and later deleted (still in history)
    • Run: git log --all --diff-filter=D -- '*.env' '*.pem' '*.key' to find deleted secret files
  2. Branch protection:

    • Check if main/master branch has protection rules
    • Check for force-push ability on protected branches
    • Check if PR reviews are required
  3. GitHub Actions security:

    • Read .github/workflows/*.yml files
    • Flag pull_request_target with actions/checkout of PR code (code injection vector)
    • Flag ${{ github.event.issue.title }} or similar untrusted input in run: blocks (injection)
    • Flag workflows with permissions: write-all or missing permissions block
    • Flag use of actions/checkout@v2 or other unpinned actions (should use SHA)
    • Flag secrets exposed via echo in workflow logs
  4. Dependency security:

    • Run npm audit / pnpm audit / yarn audit for dependency vulnerabilities
    • Check for postinstall scripts in dependencies that could be malicious
    • Check for typosquatting risks (packages with similar names to popular ones)
    • Verify lockfile integrity (no modified integrity hashes)
  5. .gitignore audit:

    • Verify .env, .env.*, *.pem, *.key, node_modules/, .DS_Store are ignored
    • Flag any sensitive file patterns NOT in .gitignore

Phase 4: Local Codebase Security Analysis

Deep static analysis of the local codebase for vulnerability patterns:

  1. Authentication & Authorization:

    • Search for hardcoded credentials: grep -r 'password\s*[:=]\s*["\x27][^"\x27]+' --include='*.{ts,js,py,go,java}'
    • Search for JWT secret in code: grep -r 'jwt.*secret\|JWT_SECRET' --include='*.{ts,js,env}'
    • Check for missing auth middleware on routes
    • Check for verify: false or rejectUnauthorized: false in HTTPS/TLS configs
    • Check for alg: 'none' or missing algorithm enforcement in JWT verification
  2. Injection vulnerabilities:

    • SQL injection: Search for string concatenation in queries ("SELECT.*" \+ |f"SELECT|\$\{.*\}.*SELECT)
    • Command injection: Search for exec(, execSync(, child_process, os.system(, subprocess.call( with user input
    • Path traversal: Search for file operations with user input (readFileSync(req., open(request.)
    • XSS: Search for innerHTML, dangerouslySetInnerHTML, v-html, | safe, mark_safe
    • NoSQL injection: Search for $where, $gt, $ne, $regex in query objects from user input
    • LDAP injection: Search for unsanitized input in LDAP filters
    • XML/XXE: Search for XML parsing without disabling external entities
  3. Cryptography issues:

    • Search for weak hashing: md5(, sha1(, crypto.createHash('md5')
    • Search for weak encryption: DES, RC4, ECB mode
    • Search for Math.random() used for security (tokens, IDs, secrets)
    • Search for hardcoded encryption keys/IVs
  4. Data exposure:

    • Search for PII in logs: console.log.*password|logger.*email|print.*ssn
    • Search for stack traces returned to clients: res.send(err), res.json({ error: err.stack })
    • Search for overly permissive CORS: origin: '*' or origin: true
    • Search for sensitive data in URL params (passwords, tokens in GET requests)
  5. Configuration security:

    • Check for debug mode enabled in production configs
    • Check for default/example credentials in config files
    • Check for overly permissive file permissions
    • Check for missing rate limiting on authentication endpoints
    • Check for missing input validation on API endpoints
  6. Prototype pollution vectors (Node.js specific):

    • Search for Object.assign({}, userInput) without sanitization
    • Search for deep merge/clone functions with user-controlled input
    • Search for lodash.merge, lodash.set, lodash.defaultsDeep with user input

Phase 5: Report

Present findings as a severity-ranked pentest report:

Report Structure
  1. Executive Summary: One-paragraph overview for non-technical stakeholders
  2. Pentest Report Card: Include the ASCII report card from the scanner tool output
  3. Attack Surface: What was tested (URLs, endpoints, repos, local paths)
  4. Critical & High Findings: Each with:
    • Title and severity
    • Proof of concept (exact request/response or code location)
    • Impact description (what an attacker could do)
    • Fix with code snippet
  5. Medium & Low Findings: Grouped by category
  6. Recommendations: Priority-ordered action items
Severity Definitions
  • CRITICAL: Remote code execution, full database access, authentication bypass, exposed secrets with active credentials
  • HIGH: XSS, SQL injection, CORS credential theft, exposed admin panels, missing critical security headers
  • MEDIUM: CSRF, open redirect, information disclosure, missing security headers, weak TLS
  • LOW: Version disclosure, missing optional headers, minor misconfigurations
Verification Standard

Every finding MUST include:

  • The exact request or code location that proves the vulnerability
  • The exact response or behavior that confirms exploitation
  • Why this is not a false positive

If you cannot verify a finding, DO NOT include it. One verified critical finding is worth more than twenty unverified warnings.

よくある質問

AIスキル「Pentest」では何ができますか?

Automated penetration testing — web, API, browser, GitHub, and local code. Zero false positives. Use when user wants to hack-test their app, find vulnerabilities, or run security pentesting.

TypingMindでPentestを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pentestはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPentestをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Houseofmvps/ultraship/tree/main/skills/pentestを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Pentestを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pentestで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPentestを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pentest」は無料ですか?

はい。HouseofmvpsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇