Vulnerability Analysisのロゴ

Vulnerability Analysis

コミュニティ
hypnguyen1209
vulnerability-analysis

ソースコードの脆弱性監査に使用します。CodeQL/Semgrep/Joernを活用して、インジェクション、メモリ安全性、デシリアライゼーション/プロトタイプ汚染、シークレット/暗号/認可/競合状態、サプライチェーンのリスクを対象に、信頼できないデータのソースからシンクまでの汚染を追跡します。

Add to TypingMind

概要

公開者hypnguyen1209
リポジトリoffensive-claude
スキル名vulnerability-analysis
スター
396
フォーク
71
同梱ファイル
21
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 21個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Vulnerability Analysis

Every vulnerability you miss is one an attacker finds first. Systematic source auditing traces untrusted data from source to sink, evaluates every sanitizer for bypass, and questions each trust-boundary assumption. This skill is the router; depth lives in references/, and every technique cluster is backed by a runnable tool in scripts/.

When to Activate

  • Auditing any codebase (white/grey box) for security vulnerabilities
  • Writing/driving CodeQL queries, Semgrep taint rules, or Joern CPGQL flows
  • Tracing injection, deserialization, prototype-pollution, or memory-safety paths
  • Reviewing auth/authorization (IDOR/BOLA), cryptography, or concurrency (TOCTOU)
  • Triaging dependency CVEs and hunting malicious/compromised packages (SCA)
  • Variant hunting — generalizing one finding into a codebase-wide pattern

Technique Map

TechniqueATT&CKCWEReferenceScript
Taint analysis (source/sink/sanitizer modeling)T1190CWE-20references/taint-engines-static-analysis.mdscripts/taint_trace.py
CodeQL/Semgrep/Joern engine orchestration + mergeT1190CWE-20references/taint-engines-static-analysis.mdscripts/sast_runner.py, scripts/joern_taint.sc
SQL injection (raw/ORM/identifier/2nd-order/NoSQL)T1190CWE-89references/injection-source-patterns.mdscripts/taint_trace.py
OS command / argument injectionT1059CWE-78 / CWE-88references/injection-source-patterns.mdscripts/taint_trace.py
Server-side template injectionT1190CWE-1336references/injection-source-patterns.mdscripts/taint_trace.py
Path traversalT1083CWE-22references/injection-source-patterns.mdscripts/taint_trace.py
SSRF (tainted server-side URL)T1190CWE-918references/injection-source-patterns.mdscripts/taint_trace.py
Integer overflow -> heap/stack overflowT1203CWE-190 / CWE-787references/memory-safety-c-cpp.mdscripts/joern_taint.sc
Use-after-free / double-freeT1203CWE-416 / CWE-415references/memory-safety-c-cpp.mdscripts/joern_taint.sc
Unbounded copy / NULL derefT1203CWE-120 / CWE-476references/memory-safety-c-cpp.mdscripts/joern_taint.sc
Insecure deserialization + gadget preconditionsT1059CWE-502references/deserialization-prototype-pollution.mdscripts/deser_gadget_scan.py
Prototype pollution -> gadget -> RCET1059.007CWE-1321references/deserialization-prototype-pollution.mdscripts/deser_gadget_scan.py
Hardcoded secrets / high-entropy literalsT1552.001CWE-798 / CWE-321references/secrets-crypto-authz-concurrency.mdscripts/secret_crypto_audit.py
Weak / misused cryptographyT1600CWE-327 / CWE-328 / CWE-330 / CWE-347references/secrets-crypto-authz-concurrency.mdscripts/secret_crypto_audit.py
Broken authorization / IDOR / BOLAT1190CWE-639 / CWE-862references/secrets-crypto-authz-concurrency.mdscripts/secret_crypto_audit.py
TOCTOU / race conditionT1190CWE-367 / CWE-362references/secrets-crypto-authz-concurrency.mdscripts/secret_crypto_audit.py
Known-CVE dependency (SCA)T1195.001CWE-1395 / CWE-1104references/supply-chain-dependency-audit.mdscripts/dep_audit.py
Malicious package / install worm / typosquatT1195.002CWE-506 / CWE-829 / CWE-1357references/supply-chain-dependency-audit.mdscripts/dep_audit.py
Variant hunting — one finding -> all siblings, root-cause clusteredT1190CWE-20references/variant-hunting.mdscripts/variant_hunt.py
Path feasibility — branch guards -> tri-state SAT/UNSAT (Z3 optional)T1190CWE-20references/taint-engines-static-analysis.mdscripts/path_conditions.py
Evidence grounding + FP gate (structured proof, EVD citations)T1190CWE-20references/finding-validation-runtime.mdscripts/validate_findings.py, scripts/evidence_kit.py
Runtime reachability confirmation (Frida sink-executed)T1190CWE-20references/dynamic-instrumentation.mdscripts/merge_runtime_evidence.py

Quick Start

bash
# 0. Intake from recon-osint: languages, frameworks, trust boundaries, entry points.

# 1. Fast triage — rank files by unsanitized source->sink flows (heuristic, multi-lang)
python3 scripts/taint_trace.py trace ./src --lang py,js,php,java --json triage.json
python3 scripts/taint_trace.py config --lang py > seed.semgrep.yml   # seed a real rule

# 2. Deep interprocedural — drive the real engines, then merge into one ranked list
python3 scripts/sast_runner.py semgrep --src ./src --config p/owasp-top-ten --pro --out sg.sarif
python3 scripts/sast_runner.py codeql  --src ./src --lang python \
    --suite codeql/python-queries:codeql-suites/python-security-extended.qls --out cq.sarif
python3 scripts/sast_runner.py joern   --src ./src --script scripts/joern_taint.sc --out joern.json
python3 scripts/sast_runner.py merge   sg.sarif cq.sarif joern.json --out merged.json --top 50

# 3. Class-specific deep passes
python3 scripts/deser_gadget_scan.py  all ./src --json deser.json     # deser sinks + gadget libs
python3 scripts/secret_crypto_audit.py all ./src --json sca.json      # secrets+crypto+authz+TOCTOU
python3 scripts/dep_audit.py          all ./repo --json dep.json      # CVE SCA + worm/typosquat
trufflehog filesystem ./src --only-verified                          # confirm LIVE secrets

# 4. Exploitability gate (per finding): reachable? controllable? real impact? sanitizer real?
#    -> write confirmed issues to templates/exploit/findings/ with
#       severity, CWE, CVSS, taint path, PoC, evidence, ATT&CK ID, remediation.
python3 scripts/evidence_kit.py verify --store evidence.json            # re-hash every artifact
python3 scripts/validate_findings.py --findings findings.json \
    --evidence ./evidence --evidence-store evidence.json --strict       # tier + EVD-citation gate

# 5. After a CONFIRMED finding: hunt every sibling, then prune false-positive paths
python3 scripts/variant_hunt.py ./src --seed-finding findings.json --lang py,js --json variants.json
python3 scripts/taint_trace.py trace ./src --lang py --json trace.json   # trace carries branch guards
python3 scripts/path_conditions.py --trace trace.json --json feasibility.json  # Z3 prune (tri-state)
python3 scripts/merge_runtime_evidence.py --events events.jsonl --findings findings.json --out merged.json

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma/EDR)OPSEC note
SAST engine runscodeql database create, semgrep --sarif, joern-parse process trees; large codeql-db//cpg.binCI process-creation Sigma (informational)offline & silent; CodeQL --command runs target build -> sandbox hostile repos; purge DBs/SARIF on teardown
Injection (SQLi/cmdi/SSTI/SSRF)SQL keywords/SLEEP, web svc spawning sh/curl, template engine errors, OOB DNSwebserver regex + EDR child-shell Sigmasource review is noiseless; validate with time-based/DNS-OOB, never --dump
Memory safety (C/C++)SIGSEGV/SIGABRT, glibc corrupted/double free, ASan reportsauditd ANOM_ABEND Sigma; EDR RWX/W^X alertsCPG review silent; fuzz a local copy in a container, purge cores (may hold secrets)
Deserialization / proto-pollutionJava rO0AB/.NET AAEAAAD///// in bodies; JVM->LDAP/RMI; POST / w/ Next-Action (CVE-2025-55182)egress Sigma to 389/636/1099/1389; body-marker rulesprove gadget chain exists; id/DNS callback not reverse shell; proto-pollution is global -> revert
Secrets / crypto / authz / TOCTOUAKIA*/ghp_* patterns; alg:none; sequential-id 200s; symlink-race auditdsecret-scanning push protection; symlink/PATH auditdsecret verification makes a logged provider API call -> only in scope; read one record for IDOR/TOCTOU evidence
Supply chain (SCA / worm)install hook spawning shell/net; bundle.js/setup_bun.js; new public Shai-Hulud repoinstall-script process-creation Sigma; agentless SBOM lookupnever npm install a suspect tree; --ignore-scripts in a disposable container; treat a compromised dep as full host compromise

Deep Dives

  • references/taint-engines-static-analysis.md — taint theory + propagation rules; Semgrep (taint mode, Pro interfile, Opengrep), CodeQL modular dataflow API, Joern CPG/reachableBy; engine orchestration + multi-tool merge; CPG+LLM (2025).
  • references/injection-source-patterns.md — source-code shapes of SQLi (incl. identifier/ORDER BY/2nd-order/NoSQL), OS command & argument injection, SSTI, path traversal, SSRF; per-language safe/vuln pairs; Joern/Semgrep confirmation.
  • references/memory-safety-c-cpp.md — integer overflow->overflow, UAF/double-free, unbounded copy, NULL deref; the 2025 libxml2 CVE cluster; ASan/UBSan + fuzzing confirmation; unsafe Rust surface.
  • references/deserialization-prototype-pollution.md — CWE-502 sinks + gadget preconditions (ysoserial/phpggc/ysoserial.net), JS prototype pollution->RCE; React2Shell CVE-2025-55182, Tomcat CVE-2025-24813, lodash CVE-2025-13465, Silent Spring.
  • references/secrets-crypto-authz-concurrency.md — hardcoded secrets (gitleaks/ trufflehog/Kingfisher), weak crypto, IDOR/BOLA, TOCTOU/race; LLM-augmented secret detection (2025).
  • references/supply-chain-dependency-audit.md — OSV/SCA, malicious-package & install worm heuristics, typosquats; Shai-Hulud 1.0/2.0/Mini (CVE-2026-45321), the SLSA provenance-bypass lesson.
  • references/variant-hunting.md — HUNT protocol: one confirmed finding -> tree-wide sibling sweep, same-function taint qualification, root-cause clustering (copy-paste/shared-util/ framework-misuse) to decide one-fix-or-many; backed by variant_hunt.py. Pairs with evidence_kit.py (re-verifiable EVD evidence), path_conditions.py (Z3 path-prune, tri-state), and merge_runtime_evidence.py (Frida runtime sink confirmation).

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

ソースコードの脆弱性監査に使用します。CodeQL/Semgrep/Joernを活用して、インジェクション、メモリ安全性、デシリアライゼーション/プロトタイプ汚染、シークレット/暗号/認可/競合状態、サプライチェーンのリスクを対象に、信頼できないデータのソースからシンクまでの汚染を追跡します。

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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