owasp-security
できること
このスキルは、AIエージェントに、広く使われている OWASP のセキュリティ標準と、確認すべきよくある弱点の参考情報を与えます。セキュリティレビュー、監査、安全な機能開発を行う開発者向けです。
使う場面
- ✓開発者が、Webアプリ、API、またはモバイルアプリのセキュリティレビューを求めているとき。
- ✓認証、暗号化、アクセス制御を安全に構築する必要があるとき。
- ✓AIやエージェントのシステムを、プロンプトインジェクションなどのリスクについて確認する必要がある場合。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ログインとアクセス制御のコードに、よくある OWASP のセキュリティ問題がないか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、6つの OWASP 標準からの指針をエージェントに与えます。各弱点の検出方法と修正方法を含みます。その後、エージェントはその指針を、指定されたコードに適用します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Comprehensive OWASP Security Skills
A developer-focused security reference covering six OWASP standards for securing web applications, APIs, mobile apps, containers, and AI/LLM systems. Each section provides concise detection guidance, key requirements, and mitigation strategies.
Quick Navigation
- OWASP Top 10 (2021)
- OWASP ASVS 5.0
- OWASP MASVS v2.1.0
- OWASP API Security Top 10
- OWASP Kubernetes Top 10
- OWASP Agentic Applications 2026
Section 1: OWASP Top 10 (2021)
The OWASP Top 10 represents the most critical security risks in web applications.
A01: Broken Access Control
Detection: URLs with direct ID references (/user/1234/orders); client-side only enforcement; missing authorization checks.
Mitigation: Enforce server-side authorization for every sensitive operation; verify user ownership of resources; implement default-deny principle.
Example:
// INSECURE: No authorization check
app.get('/users/:id/orders', (req, res) => {
const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
res.json(orders);
});
// SECURE: Authorization check
app.get('/users/:id/orders', (req, res) => {
if (req.user.id !== parseInt(req.params.id)) return res.status(403).json({error: 'Forbidden'});
const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
res.json(orders);
});
Checklist: ☐ Authorization on server for all sensitive ops ☐ Default-deny policy ☐ No ID-based obscurity ☐ Whitelist allowed fields
A02: Cryptographic Failures
Detection: Sensitive data in plaintext; weak encryption (DES, ECB); missing TLS; hardcoded secrets in code. Mitigation: Always use HTTPS/TLS; encrypt data at rest with AES-256; store secrets in environment variables or vaults; mask sensitive logs. Example:
# INSECURE: API key in code
api_key = "sk-abc123xyz789"
# SECURE: From environment
import os
api_key = os.getenv("API_KEY")
if not api_key: raise ValueError("API_KEY not set")
Checklist: ☐ HTTPS enforced ☐ AES-256 encryption at rest ☐ No secrets in code ☐ Sensitive data masked in logs
A03: Injection (SQL, Command, NoSQL)
Detection: String concatenation in queries; exec, query, run with user input; no prepared statements.
Mitigation: Use parameterized queries; whitelist input; avoid string concatenation; use safe APIs (subprocess.run with list args).
Example:
# INSECURE: String concatenation
os.system("tar -czf " + filename + " /var/data")
# SECURE: List-based API
import subprocess
subprocess.run(["tar", "-czf", filename, "/var/data"], check=True)
Checklist: ☐ Parameterized queries only ☐ No string concat ☐ Whitelist input ☐ Safe subprocess calls
A04: Insecure Design
Detection: No threat modeling; missing security controls by design; no authentication/authorization from the start. Mitigation: Implement threat modeling early; design security in from the beginning; use established security libraries/patterns. Checklist: ☐ Threat modeling completed ☐ Security controls in design ☐ Auth/authz from start ☐ Security review in SDLC
A05: Security Misconfiguration
Detection: Debug mode enabled; default credentials; verbose error messages; missing security headers; exposed APIs. Mitigation: Disable debug mode; change defaults; hide version info; implement security headers (HSTS, CSP, X-Frame-Options). Example:
# INSECURE: Debug enabled in production
app.debug = True
# SECURE: Debug disabled
app.debug = False
app.config['HSTS_MAX_AGE'] = 31536000
Checklist: ☐ Debug disabled ☐ Defaults changed ☐ Security headers set ☐ No version disclosure
A06: Vulnerable & Outdated Components
Detection: Old versions in package.json/requirements.txt; unpatched frameworks; deprecated libraries.
Mitigation: Regularly audit dependencies with npm audit, pip safety, Snyk; remove unused packages; keep frameworks patched.
Checklist: ☐ Dependency audits regular ☐ No outdated versions ☐ Unused deps removed ☐ CI/CD security scanning
A07: Authentication Failures
Detection: Weak passwords; no MFA; predictable
よくある質問
どの標準を扱っていますか?
OWASP Top 10、ASVS、MASVS、API Security Top 10、Kubernetes Top 10、エージェント型アプリケーションのガイダンスを扱っています。
安全なアプリであることを保証しますか?
いいえ。よくある問題を見つけて直すための参考資料であり、専門家による監査の代わりにはなりません。
AIシステムにも役立ちますか?
はい。LLMやエージェントのシステムにおける、プロンプトインジェクションなどのリスクに関する指針を含みます。
詳細
作者による元の説明
Comprehensive OWASP-aligned security guidance across six standards - Top 10 (2021) for web apps, ASVS 5.0, MASVS v2.1.0 for mobile, API Security Top 10 (2023), Kubernetes Top 10 (2022), and the Agentic Applications 2026 edition for AI/LLM. Use for security reviews, vulnerability audits, secure auth/crypto/access-control implementation, Kubernetes manifest hardening, and LLM/agent prompt-injection defense - including indirect requests like "is this login flow secure?", "review this endpoint", or "audit my pod spec".
人気
- GitHubのスター
- 33k
- ランキング
- #8518
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。
graph-query
33kエージェントが、コードの依存関係グラフに問い合わせて、呼び出し元、関連するコンポーネント、変更の影響を、コードを編集する前に見つけられるよう支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。