本文へスキップ
Skillpedia
セキュリティ33k · #8518

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

  1. OWASP Top 10 (2021)
  2. OWASP ASVS 5.0
  3. OWASP MASVS v2.1.0
  4. OWASP API Security Top 10
  5. OWASP Kubernetes Top 10
  6. 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".

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8518
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル