بنقرة واحدة
audit-security
Security audit checklist for AI agent configurations, environment variables, and project dependencies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Security audit checklist for AI agent configurations, environment variables, and project dependencies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run one high-stakes decision through a council of 5 ephemeral advisor lenses that answer in parallel, peer-review each other anonymously, and get synthesised into a single verdict — agreements, clashes, blind spots, a recommendation, and the one thing to do first. Adapted from Karpathy's LLM Council. For genuine decisions with stakes and tradeoffs, not factual lookups or creation tasks.
PR-time dual-delta read of coverage/complexity/module-size/dependency-cycles vs. orphan-ref baseline; ratchet+absolute thresholds; LLM curation only on breach.
Shrink a SKILL.md without changing meaning — deterministic cleanup first, LLM rewrite only if the target isn't met. Test-file anchors preserved; frontmatter, headings, and code blocks never modified. Dry-run by default; --apply writes.
Capture insights, test hypotheses, and promote confirmed patterns to rules (adapted for multi-agent environments). Default mode is single- developer/session capture to knowledge/. Team mode aggregates recurring review feedback across the fleet into rule-promotion candidates — fleet-wide patterns promote to shared workspace rules, single-repo patterns stay local.
Create, update, and validate the team's Definition of Done (docs/definition- of-done.md). create/update scaffolds from a template and grills the manager for team items; validate walks a diff/PR against the checklist (met/unmet/not-applicable). Signal-only contract referencing existing enforcement (architect, security, audit-*, guardrails) — never gates a commit. Consumed by codereview.
Proactive cadence summary over a knowledge root — 'what changed / what needs you today' without being asked. Deterministic core (octopus briefing, over the octopus kr registry) computes the change-delta since a per-root watermark and composes octopus hygiene + synthesize; this skill narrates it, grounded to source nodes, on the cheapest tier.
| name | audit-security |
| model | sonnet |
| description | Security audit checklist for AI agent configurations, environment variables, and project dependencies |
| triggers | {"paths":[],"keywords":["auth","jwt","oauth","secret","password","credential"],"tools":[]} |
| pre_pass | {"file_patterns":"auth|jwt|oauth|secret|token|password|credential|permission|role|middleware|\\.env","line_patterns":"password|secret|Bearer|Authorization|SQL|querySelector"} |
Follow the Pre-Pass protocol in skills/_shared/audit-pre-pass.md.
Use this skill's pre_pass.file_patterns and pre_pass.line_patterns from the frontmatter.
Then follow the Cache protocol in skills/_shared/audit-cache.md before proceeding to audit areas.
Check for exposed secrets:
sk-, ghp_, Bearer, api_key=, password=.env.octopus and .env*.local are in .gitignore# Search for potential secrets in codebase
grep -rn "sk-\|ghp_\|api_key\|secret_key\|password\s*=" --include="*.ts" --include="*.cs" --include="*.py" .
Verify secret management:
.env.octopus files are in .gitignoreCheck for:
Review each MCP server in settings.json:
${VAR} syntax (not hardcoded)Check permissions:
permissions are not overly broaddangerouslySkipPermissions or equivalentReview hook scripts for:
eval with external inputRun dependency audits:
# Node.js
npm audit
# .NET
dotnet list package --vulnerable
# Python
pip-audit # or: safety check
.gitignore includes all generated and sensitive files| Severity | Description | Action |
|---|---|---|
| Critical | Exposed secrets, no auth on endpoints | Fix immediately |
| High | Missing input validation, overly permissive configs | Fix before deploy |
| Medium | Missing dependency audit, stale credentials | Fix within sprint |
| Low | Missing branch protection, unsigned commits | Track in backlog |
Security Scan Report
====================
Date: YYYY-MM-DD
Score: B (72/100)
CRITICAL (0)
(none)
HIGH (2)
[H1] .env.octopus not in .gitignore — secrets may be committed
[H2] MCP server 'notion' uses hardcoded token in settings.json
MEDIUM (1)
[M1] No npm audit in CI pipeline
LOW (1)
[L1] Branch protection not configured on main
Recommendations:
1. Add .env.octopus to .gitignore immediately
2. Move Notion token to environment variable
3. Add `npm audit` step to CI workflow
4. Enable branch protection rules
This audit is mechanical — it pattern-matches a diff against a fixed
checklist, not deep reasoning. Run it on the cheapest model tier
(--model haiku / each assistant's cheapest). Reserve frontier models
for the architect/dba/security roles that adjudicate the findings
(RM-130).