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

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

貼り付け用メッセージ

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

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

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

0

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

コメント

  • …

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

似ているスキル