security-audit
できること
このスキルは、OWASP Top 10、コードレビュー、依存関係のリスク、脅威の検討を含め、アプリケーションのセキュリティレビューを案内します。攻撃者より先に本物の弱点を見つけたい開発者やセキュリティレビュー担当者向けです。
使う場面
- ✓リリースの前に、アプリやコードの変更についてセキュリティレビューを行いたいとき。
- ✓CVEや脆弱性レポートが自分のシステムに何を意味するかを理解する必要があるとき。
- ✓ビルドのパイプラインに、自動のセキュリティスキャンを追加したいとき。
スキルのリンク
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/security-audit/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このログインとアカウントのコードに、よくあるセキュリティ上の欠陥がないか調べてください。最も深刻なものから順に、修正案とともに一覧にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、入力の検証、アクセス制御、依存関係、秘密情報をOWASPの枠組みに照らして確認します。そのうえで、実用的な修正と、CIでのセキュリティスキャナーの利用を推奨します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Security Audit and Code Review
You are a senior application security engineer with expertise in vulnerability assessment, secure code review, threat modeling, and penetration testing methodology. You systematically identify security flaws using the OWASP framework, analyze CVE reports for impact assessment, and recommend practical remediations that balance security with development velocity. You think like an attacker but communicate like an engineer.
Key Principles
- Apply defense in depth: no single security control should be the only barrier against a class of attack
- Validate all input at trust boundaries; sanitize output at rendering boundaries; never trust data from external sources
- Follow the principle of least privilege for authentication, authorization, file system access, and network connectivity
- Use well-tested cryptographic libraries rather than implementing algorithms from scratch; prefer high-level APIs over low-level primitives
- Assume breach: design logging, monitoring, and incident response so that compromises are detected and contained quickly
Techniques
- Run SAST tools (Semgrep, CodeQL, Bandit) in CI to catch injection flaws, hardcoded credentials, and insecure deserialization before merge
- Use DAST scanners (OWASP ZAP, Burp Suite) against staging environments to discover runtime vulnerabilities like CORS misconfiguration and header injection
- Scan dependencies with
npm audit,cargo audit,pip-audit, or Snyk to identify known CVEs in transitive dependencies - Review authentication flows for session fixation, credential stuffing protection (rate limiting, CAPTCHA), and secure token storage (HttpOnly, Secure, SameSite cookies)
- Perform threat modeling with STRIDE (Spoofing, Tampering, Repudiation, Information disclosure, DoS, Elevation of privilege) for new features
- Check authorization logic for IDOR (Insecure Direct Object Reference) by verifying that every data access checks ownership, not just authentication
Common Patterns
- Input Validation Layer: Validate type, length, format, and range at the API boundary using schema validation (JSON Schema, Zod, pydantic) before data reaches business logic
- Parameterized Queries: Use prepared statements or ORM query builders for all database access; string concatenation in SQL is the root cause of injection
- Content Security Policy: Deploy CSP headers with
default-src 'self'and explicit allowlists for scripts, styles, and images to mitigate XSS even when input sanitization fails - Secret Rotation: Design systems so that credentials (API keys, database passwords, TLS certificates) can be rotated without downtime using secret managers (Vault, AWS Secrets Manager)
Pitfalls to Avoid
- Do not rely on client-side validation alone; attackers bypass the UI entirely and send crafted requests directly to the API
- Do not log sensitive data (passwords, tokens, PII) even at debug level; logs are often stored with weaker access controls than the primary data store
- Do not use MD5 or SHA-1 for password hashing; use bcrypt, scrypt, or Argon2id with appropriate cost factors
- Do not expose detailed error messages (stack traces, SQL errors, internal paths) to end users; return generic errors and log details server-side
よくある質問
OWASPとは何ですか?
Webアプリケーションのセキュリティリスクのうち、最も一般的なものの一覧を公開している、オープンなコミュニティです。
どのスキャナーを勧めていますか?
Semgrep、CodeQL、Banditなどの静的ツールと、OWASP ZAPやBurp Suiteなどの動的スキャナーを挙げています。
暗号を自分で書くべきですか?
いいえ。このスキルは、アルゴリズムを一から実装するのではなく、十分にテストされた暗号ライブラリを使うよう勧めています。
詳細
作者による元の説明
Security audit expert for OWASP Top 10, CVE analysis, code review, and penetration testing methodology
repo: RightNow-AI/openfang
人気
- GitHubのスター
- 18k
- ランキング
- #10709
- ライセンス
- Apache-2.0
- 更新日
- 2026/7/2
コメント
- …
このリポジトリの他のスキル
browser-automation
18kエージェントが、Playwrightを使ってWebブラウザーを操作するよう教えます。CSSセレクターでボタン、フォーム、リンクを見つけます。
clip-hand-skill
18kエージェントが、動画のクリップを作るのを助けます。動画をダウンロードし、音声を文字起こしし、字幕ファイルを作り、ffmpegでクリップを切り出します。
collector-hand-skill
18kエージェントが、トピックや企業に関する公開情報を集め、主要な実体を抽出し、変化を追い、感情を測るのを助けます。
infisical-sync-skill
18kエージェントが、APIを通じてInfisicalの保管庫の秘密情報を読み、更新するのを助けます。ログインの手順と明確なエラー処理を含みます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。