Security Scanのロゴ

Security Scan

コミュニティ
kazdenc
security-scan

Check code for OWASP top 10 vulnerabilities including injection, XSS, auth issues, and secrets exposure. Use when user says "security audit", "check for vulnerabilities", "security scan", "is this secure", "OWASP check", "find security issues", or needs to verify code security before shipping.

概要

公開者kazdenc
リポジトリbuilder-skills
スキル名security-scan
スター
46
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Scan code for OWASP Top 10 vulnerabilities. Report severity-rated findings with file:line references and fix recommendations. Flag what matters; skip what doesn't apply.

Scan Categories

Work through each OWASP category. For each, search for the specific code patterns listed.

1. Injection (A03:2021)

Pattern to findRiskWhat to verify
String concatenation in SQL queriesSQL injectionUse parameterized queries / prepared statements
Template literals in database callsNoSQL injectionUse query builders or ORM methods with bound parameters
exec(), spawn(), system() with user inputCommand injectionValidate/whitelist input, avoid shell execution
User input in LDAP filtersLDAP injectionEscape special characters, use parameterized filters
User input in regex constructorsReDoSValidate regex complexity, use re2 or set timeouts
eval(), Function(), vm.runInContext()Code injectionRemove entirely; never evaluate user-controlled strings

2. Broken Authentication (A07:2021)

Pattern to findRiskWhat to verify
Plain-text password storageCredential theftUse bcrypt/scrypt/argon2 with proper work factor
Missing rate limiting on login endpointsBrute forceImplement rate limiting and account lockout
Session tokens in URLs or localStorageSession hijackUse httpOnly secure cookies
JWT without expiration or with weak signingToken forgerySet short exp, use RS256 or ES256, rotate keys
Missing MFA on sensitive operationsAccount takeoverRequire step-up auth for destructive actions
Hardcoded credentials or default passwordsUnauthorized accessUse environment variables and secrets management

3. Sensitive Data Exposure (A02:2021)

Pattern to findRiskWhat to verify
API keys, tokens, passwords in sourceCredential leakMove to environment variables / secrets manager
Secrets in log outputLog exfiltrationRedact sensitive fields before logging
Missing TLS / HTTP used for sensitive dataMan-in-the-middleEnforce HTTPS, use HSTS header
PII in error responsesInformation disclosureReturn generic errors to clients, log details server-side
Sensitive data in client-side stateBrowser exposureKeep secrets server-side, minimize client-side PII
Missing encryption at restData breachEncrypt sensitive database columns and file storage

4. Cross-Site Scripting — XSS (A03:2021)

Pattern to findRiskWhat to verify
dangerouslySetInnerHTMLStored/reflected XSSSanitize with DOMPurify, validate input is trusted
innerHTML, outerHTML assignmentsDOM-based XSSUse textContent or framework-safe rendering
Unescaped template interpolation in HTMLReflected XSSUse framework auto-escaping, never bypass it
URL parameters rendered without encodingReflected XSSEncode output, validate URL parameters
javascript: URLs in href/srcXSS via navigationWhitelist URL schemes (http, https, mailto)
User-controlled src on script/iframe tagsRemote code executionValidate against allowlist of trusted origins

5. Broken Access Control (A01:2021)

Pattern to findRiskWhat to verify
Missing auth middleware on routesUnauthorized accessApply auth checks to every protected endpoint
Client-side-only permission checksPrivilege escalationEnforce permissions server-side
Direct object reference without ownership checkIDORVerify requesting user owns / has access to resource
Missing role/scope validationPrivilege escalationCheck roles on every sensitive operation
Unrestricted file uploadArbitrary file writeValidate file type, size, and store outside webroot
Path traversal in file operationsFile system accessNormalize paths, reject .., use allowlists

6. Security Misconfiguration (A05:2021)

Pattern to findRiskWhat to verify
Debug mode enabled in production configInformation disclosureDisable debug, verbose errors, stack traces in prod
Default credentials in config filesUnauthorized accessChange all defaults, enforce strong credentials
Missing security headersVarious attacksSee Security Headers Checklist below
Overly permissive CORS (*)Cross-origin attacksRestrict to specific trusted origins
Directory listing enabledInformation disclosureDisable in web server configuration
Unnecessary services or endpoints exposedAttack surfaceRemove unused routes, admin panels, debug endpoints

7. Server-Side Request Forgery — SSRF (A10:2021)

Pattern to findRiskWhat to verify
User-supplied URLs passed to fetch/requestInternal network accessValidate against URL allowlist
URL redirects without validationOpen redirect / SSRFCheck destination against trusted domains
DNS rebinding potentialFirewall bypassResolve DNS before validation, pin IPs
Internal service URLs constructable by userMetadata endpoint accessBlock RFC 1918 ranges and cloud metadata IPs

8. Dependency Vulnerabilities (A06:2021)

Pattern to findRiskWhat to verify
Outdated packages with known CVEsExploitation of known flawsRun npm audit / pnpm audit and review results
Unpinned dependency versions (^, ~, *)Supply chain attackPin exact versions or use lock files
Dependencies from untrusted sourcesMalicious codeVerify package provenance, check download counts
Post-install scripts in dependenciesArbitrary code executionAudit scripts, use --ignore-scripts where safe

Security Headers Checklist

Verify the following headers are set on HTTP responses:

HeaderRecommended ValuePurpose
Content-Security-PolicyStrict policy, no unsafe-inline / unsafe-evalPrevents XSS, injection
Strict-Transport-Securitymax-age=63072000; includeSubDomains; preloadForces HTTPS
X-Content-Type-OptionsnosniffPrevents MIME-type sniffing
X-Frame-OptionsDENY or SAMEORIGINPrevents clickjacking
Referrer-Policystrict-origin-when-cross-originLimits referrer leakage
Permissions-PolicyDisable unused features (camera, microphone, geolocation)Reduces attack surface
X-XSS-Protection0 (rely on CSP instead)Deprecated but set explicitly
Cache-Controlno-store on sensitive responsesPrevents caching of secrets

Output Format

Report findings organized by severity:

Finding Format

For each issue:

  • Severity: Critical / High / Medium / Low
  • OWASP Category: Which category (e.g., A01 Broken Access Control)
  • Location: file:line reference
  • Issue: What was found (one sentence)
  • Evidence: The specific code pattern or configuration
  • Fix: Concrete recommendation with code example
  • References: Relevant CWE number or documentation link

Summary

After all findings:

  • Total count by severity and OWASP category
  • Top 3 risks to address immediately
  • Attack surface assessment (one paragraph)
  • Headers status (pass/fail for each security header)

NEVER:

  • Report theoretical issues without evidence in the actual code
  • Skip a category because it "probably doesn't apply" — scan every one
  • Provide a fix that introduces a different vulnerability
  • Report low-severity style issues in a security scan (stay focused)
  • Assume a framework handles security automatically without verifying configuration

よくある質問

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

Check code for OWASP top 10 vulnerabilities including injection, XSS, auth issues, and secrets exposure. Use when user says "security audit", "check for vulnerabilities", "security scan", "is this secure", "OWASP check", "find security issues", or needs to verify code security before shipping.

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

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

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

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

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

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

Security Scanは何個のAIモデルで使えますか?

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

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

はい。kazdencがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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