security
Use when auditing code, dependencies, or infrastructure for security issues (SAST, dependency scanning, secret leak detection, OWASP-style checks), or when checking that a project or change follows secure defaults before committing or deploying.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- security
- triggers
- [ "user", "model" ]
- description
- Use when auditing code, dependencies, or infrastructure for security issues (SAST, dependency scanning, secret leak detection, OWASP-style checks), or when checking that a project or change follows secure defaults before committing or deploying.
02 资源文件 1
- 脚本scripts/check.py1.7 KB
03 SKILL.md 正文
Security
Two layers: secure-defaults check (fast pre-commit/deploy gate) and security audit (deeper defensive review). Defensive only — detect and report, never exploit.
Secure-defaults checklist (gate before commit/deploy)
| Check | Verify |
|---|---|
.env in .gitignore |
Secrets not committed |
.env.example exists |
Template for required vars |
| No hardcoded secrets | No keys/passwords/tokens in code |
| No public S3/URLs | Storage + endpoints not public |
| No unauthenticated endpoints | Auth required or documented exception |
| Destructive actions confirmed | DELETE/DROP/TRUNCATE need confirmation |
| Passwords hashed | bcrypt/argon2, never plaintext |
| No custom crypto | Standard libraries only |
| Dependencies updated | No known-vulnerable deps |
| Logs sanitized | No secrets/PII in logs |
Quick greps:
grep -r "api_key\|password\|secret" --include="*.py" --include="*.ts" .
grep -q "^\.env$" .gitignore || echo "FAIL: .env not in .gitignore"
grep -r "s3\.amazonaws\.com" --include="*.py" --include="*.ts" .
Helper: python3 scripts/check.py (this skill's scripts/). Any failure →
fix or document the exception before proceeding.
Security audit (deeper)
- Scope the surface — code paths, inputs, auth, secrets, network boundaries.
- Static analysis — project linters/SAST if available.
- Dependencies — CVEs, outdated packages, suspicious licenses.
- Hunt secrets — scanning tools or high-risk greps.
- Auth + input — auth checks, validation, output encoding, least privilege.
- Document — findings ranked by severity. Detect only.
Five security principles
| Principle | Flag |
|---|---|
| Minimize attack surface | Unnecessary code, unauthenticated endpoints, public storage, sequential IDs on reads, secrets in logs, timing leaks |
| Least privilege | Over-privileged service accounts, broad IAM, DB access outside VPC, frontend→DB direct, hardcoded creds |
| Secure defaults | Visible passwords, unconfirmed destructive actions, missing MFA, default creds |
| Standard crypto | Plaintext passwords, custom hashing, missing bcrypt/argon2 |
| Updates + monitoring | Vulnerable deps, missing Dependabot/SAST/WAF |
Output rule
Findings list: severity, file, issue, recommendation, verification command. Never expose real credentials or attack a live system.
04 同仓库更多 Skills
montador-de-ideias
Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.
git-github-adaptive-engineering
Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.
adaptive-agenda-calendar-routine-engine
Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.
demo
Use when demonstrating a skill in a fixture project.
duplicate-skill
Use when testing duplicate skill name detection.
duplicate-skill
Use when testing duplicate skill name detection.