security-audit
Application security audit covering OWASP Top 10, STRIDE threat modeling, and secrets archaeology. Use when: security review, pre-launch audit, dependency scanning.
- License 许可
- Apache-2.0
- 所属仓库
- bravew/Neumar
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 4
01 前言 Front Matter
- icon
- shield
- name
- security-audit
- trigger
- /security
- version
- 1.0.0
- category
- development
- description
- Application security audit covering OWASP Top 10, STRIDE threat modeling, and secrets archaeology. Use when: security review, pre-launch audit, dependency scanning.
03 SKILL.md 正文
When generating output, use the user's preferred language for all headings, labels, and prose.
Overview
A comprehensive application security audit methodology. Covers code-level vulnerabilities, architectural threats, and supply chain risks.
Phase 1: Threat Model (STRIDE)
Before scanning code, understand the attack surface:
| Threat | Question | Example |
|---|---|---|
| Spoofing | Can someone pretend to be another user? | Missing auth, weak session management |
| Tampering | Can someone modify data in transit or at rest? | Unsigned cookies, unvalidated input |
| Repudiation | Can actions be denied without evidence? | Missing audit logs |
| Information Disclosure | Can sensitive data leak? | Verbose errors, debug endpoints |
| Denial of Service | Can the system be overwhelmed? | Missing rate limits, unbounded queries |
| Elevation of Privilege | Can someone gain unauthorized access? | Broken access control, IDOR |
Phase 2: OWASP Top 10 Scan
Check each vulnerability category systematically:
A01: Broken Access Control
- [ ] Authorization checks on every endpoint
- [ ] No IDOR (Insecure Direct Object Reference) vulnerabilities
- [ ] CORS policy properly configured
- [ ] Directory traversal protections
A02: Cryptographic Failures
- [ ] Sensitive data encrypted at rest and in transit
- [ ] Strong algorithms (no MD5/SHA1 for security)
- [ ] Proper key management (no hardcoded keys)
A03: Injection
- [ ] SQL injection — parameterized queries everywhere
- [ ] Command injection — no user input in shell commands
- [ ] XSS — output encoding in templates
- [ ] LDAP/NoSQL injection where applicable
A04: Insecure Design
- [ ] Rate limiting on authentication endpoints
- [ ] Account lockout after failed attempts
- [ ] Secure defaults (deny by default)
A05: Security Misconfiguration
- [ ] Debug mode disabled in production
- [ ] Default credentials changed
- [ ] Error messages don't leak stack traces
- [ ] Unnecessary features/endpoints removed
A06: Vulnerable Components
- [ ] Dependencies have no known CVEs
- [ ] Dependencies are actively maintained
- [ ] Lockfile integrity verified
A07: Authentication Failures
- [ ] Strong password requirements
- [ ] MFA available for sensitive operations
- [ ] Session management secure (httpOnly, secure, sameSite)
A08: Data Integrity Failures
- [ ] CI/CD pipeline integrity
- [ ] Dependency integrity verification
- [ ] Unsigned data deserialization guarded
A09: Logging Failures
- [ ] Security events logged (login, access denied, errors)
- [ ] Logs don't contain sensitive data
- [ ] Log injection prevented
A10: SSRF
- [ ] User-supplied URLs validated
- [ ] Internal network access blocked
- [ ] Cloud metadata endpoints blocked
Phase 3: Secrets Archaeology
Scan for hardcoded credentials and leaked secrets:
-
Pattern scan — Search codebase for:
- API keys, tokens, passwords in source code
.envfiles committed to git- Private keys or certificates
- Connection strings with credentials
-
Git history — Check if secrets were ever committed:
git log --all -p | grep -i "password\|secret\|key\|token"- Check for
.envfiles in history even if now in.gitignore
-
Configuration files — Verify:
.gitignoreincludes sensitive files- Environment variables used for secrets
- No secrets in CI/CD configuration
Phase 4: Dependency Audit
- Check for known CVEs in dependencies
- Review dependency age and maintenance status
- Assess permission scope of packages
- Verify no typosquatting in package names
Output Format
## Security Audit Report
**Scope**: [what was audited]
**Date**: [audit date]
**Risk Level**: Critical | High | Medium | Low
### Findings
#### [CRITICAL] Finding Title
- **Vulnerability**: [type, e.g., SQL Injection]
- **Location**: [file:line]
- **Impact**: [what an attacker could do]
- **CWE**: [CWE reference if applicable]
- **Remediation**: [specific fix]
### Summary
| Severity | Count |
|----------|-------|
| Critical | N |
| High | N |
| Medium | N |
| Low | N |
04 同仓库更多 Skills
yt-dlp
A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.
weather
Get current weather and forecasts (no API key required).
video-editing
Video Mode editing guidance for agentic storyboard, timeline, caption, audio, render, and publish work through video_* MCP tools.
video-edit
Conversational video editing workflow for cuts, transcript-based edits, overlays, captions, subtitle burn-in, and render planning with ffmpeg. Use when the user asks to edit video by instruction, cut silence or words, add subtitles, add overlays, transcribe video, or render a final clip.
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
ship
Full shipping workflow: test, review, version, changelog, and PR creation. Use when: preparing to ship code, creating releases, merging PRs.