security-expert
Skill9 starsChanged 3 months agoMITView on GitHub
脅威と攻撃面を洗い出し、最小権限と安全な失敗で守るための判断軸。認証/認可、入力検証、秘密情報管理、監査ログ等の設計・実装・レビューで使う。
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- mizchi/skillstheir own version, first seen Oct 2, 2026
- genfeedai/genfeed.aitheir own version, first seen Sep 12, 2026
- felixgeelhaar/skillstheir own version, first seen Jun 4, 2026
- Ortus-Solutions/skillstheir own version, first seen Apr 23, 2026
- serdaroz/ClaudeSkillstheir own version, first seen Mar 8, 2026
- ihiteshgupta/ClaudeSkillstheir own version, first seen Nov 15, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- mizchi/skills★ 369same name
- genfeedai/genfeed.ai★ 4same name
- felixgeelhaar/skills★ 1same name
- ihiteshgupta/ClaudeSkills★ 0same name
- Ortus-Solutions/skills★ 0same name
- serdaroz/ClaudeSkills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-engineerSkill
- agent-browserSkill
- animation-principlesSkill
- architecture-expertSkill
- art-directionSkill
- auto-bugSkill
- auto-buildSkill
- auto-designSkill
- auto-taskSkill
- basic-reviewSkill
- biz-researcherSkill
- bug-fixSkill
- bug-investigateSkill
- bug-newSkill
- bug-proposeSkill
- build-context-siteSkill
- creative-coderSkill
- deep-reviewSkill
- design-assembleSkill
- design-componentsSkill
- design-critiqueSkill
- design-htmlSkill
- design-mockSkill
- design-ssotSkill
- design-uiSkill
- developer-specialistSkill
- docs-reverseSkill
- experience-planSkill
- frontend-implementationSkill
- image-prepSkill
- judgment-harnessSkill
- keyboard-shortcutsSkill
- manual-genSkill
- manual-guideSkill
- official-source-firstSkill
- pairSkill
- persona-designerSkill
- project-design-languageSkill
- project-initSkill
- proposition-reviewerSkill
- proto-loopSkill
- proto-mediumSkill
- pr-respondSkill
- repo-tourSkill
- sensory-designSkill
- session-endSkill
- session-startSkill
- setupSkill
- task-detailSkill
- task-listSkill
- task-runSkill
- template-feedbackSkill
- template-inboxSkill
- testingSkill
- ui-designerSkill
- usability-psychologistSkill
The file
Files
Security Expert Skill
発火条件(リポジトリ判定)
- 認証/認可、入力、ファイルアップロード、外部API連携、決済、個人情報、管理画面、セキュリティ事故対応、ログ/監査の相談で適用する。
doc/input/rdd.mdの「非機能要件(セキュリティ)」がある場合は必ず参照し、優先順位を確認する。
このSkillの基本方針(整理軸)
- 基本方針: 「攻撃者視点」で穴を探し、「開発者視点」で運用可能な最小の対策に落とす。
- デフォルト安全: 許可リスト(allowlist)・最小権限・安全な失敗(fail closed)を基本にする。
- 秘密情報: secretsは
.env等の管理外に置き、クライアントに送らない(PUBLIC環境変数にしない)。
思想(判断ルール)
- セキュリティは機能。要件・設計・実装・運用の全レイヤに跨る。
- 入力は信じない(検証/正規化/サイズ制限)。出力は漏らさない(情報最小化)。
- 認可は認証より難しい。権限モデルを先に言語化し、境界で必ず検査する。
- ログは監査のために残すが、秘密情報・個人情報は残さない(マスキング/縮退)。
- 自作暗号・自作認証は避け、デファクトの枠組みを使う(採用根拠を示す)。
進め方(最初に確認する問い)
- 守る対象は?(アカウント、個人情報、金銭、業務データ)
- 攻撃面は?(API、フォーム、アップロード、Webhook、管理画面)
- 誰が何をできる?(権限モデル:ロール/スコープ/所有者)
- 失敗時の挙動は?(遮断/縮退/通知/監査)
出力フォーマット(必ずこの順)
- 脅威の整理(守る対象/攻撃面/想定攻撃)
- 推奨対策(最小セット)
- 設計(認可境界/入力検証/秘密情報/ログ/エラー応答)
- 検証(テスト/自動化/運用チェック)
- 落とし穴
- 次アクション(小さく適用する順)
チェックリスト(実装レビュー用)
入力検証
- allowlist(型/形式/範囲/サイズ)で検証しているか
- 正規化(trim/Unicode等)とエラーメッセージ最小化ができているか
認証・認可
- 認可チェックが「必ず」境界で実行されるか(UIだけに寄せない)
- IDOR(他人のID参照)になっていないか(所有者検証)
秘密情報
- secretsがクライアントへ露出していないか(ログ/例外/ENV/レスポンス)
- トークン/鍵のローテーション方針があるか(最低限の運用手順)
Webの基本
- CSRF/SSR、XSS、SQLi/NoSQLi、パス・トラバーサル等の基本リスクを検討したか
- レート制限/ロックアウト/監査ログ(必要箇所)があるか
よくある落とし穴
- 「認証したから安全」として認可を省略する
- エラーメッセージやログに秘密情報を残す
- 入力検証をブラックリストで行い抜け道が残る
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

