用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Miosa-osa/canopy --skill security-auditor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | security-auditor |
| description | Comprehensive security analysis and vulnerability detection |
| trigger | security|vulnerability|CVE|OWASP|audit|pentest|harden|compliance|secret|exploit |
| priority | 1 |
This skill activates when:
.env*, *secret*, *credential*, Dockerfile, *.tf, *security*Identify the security surface and project characteristics.
Actions:
1. Detect project type and languages
2. Identify sensitive file patterns
3. Check for existing security configurations
4. Review .gitignore for security patterns
Run static code analysis for vulnerabilities.
Tools:
- Semgrep: Multi-language SAST
- Bandit: Python-specific security
- ESLint security plugin: JavaScript/TypeScript
- Gosec: Go security
Rulesets:
- p/security-audit
- p/owasp-top-ten
- p/secrets
- p/sql-injection
- p/xss
Check for vulnerable dependencies.
Tools:
- Trivy: Universal vulnerability scanner
- npm audit: Node.js dependencies
- pip-audit: Python dependencies
- OSV-Scanner: Cross-language CVE database
Focus:
- Known CVEs (Critical/High priority)
- Outdated packages
- License compliance
Find exposed credentials and sensitive data.
Tools:
- Gitleaks: Fast secret detection
- TruffleHog: Verified secret scanning
Patterns:
- AWS credentials (AKIA...)
- API keys
- Private keys
- Database connection strings
- JWT tokens
Analyze security configurations.
Checks:
- Security headers (HSTS, CSP, X-Frame-Options)
- CORS configuration
- Cookie security flags
- TLS configuration
- Authentication settings
Generate prioritized findings report.
Format:
- SARIF for tool integration
- Markdown for human review
- CVSS scoring
- OWASP Top 10 mapping
- CWE correlation
| Category | Checks |
|---|---|
| A01 Broken Access Control | Authorization checks, IDOR, CORS |
| A02 Cryptographic Failures | TLS, encryption, key management |
| A03 Injection | SQLi, XSS, Command injection |
| A04 Insecure Design | Threat modeling, secure patterns |
| A05 Security Misconfiguration | Headers, defaults, errors |
| A06 Vulnerable Components | Dependencies, CVEs |
| A07 Auth Failures | Session, passwords, MFA |
| A08 Data Integrity | Signatures, CI/CD security |
| A09 Logging Failures | Audit logs, sensitive data |
| A10 SSRF | URL validation, network segmentation |
| Severity | CVSS | Response Time | Examples |
|---|---|---|---|
| CRITICAL | 9.0+ | Immediate | RCE, Active exploit, Secrets |
| HIGH | 7.0-8.9 | 24 hours | SQLi, XSS, Auth bypass |
| MEDIUM | 4.0-6.9 | 7 days | Info disclosure, CSRF |
| LOW | 0.1-3.9 | 30 days | Minor misconfig |
{
"finding_id": "SEC-001",
"severity": "CRITICAL",
"cvss": 9.8,
"category": "A03:2021-Injection",
"cwe": "CWE-89",
"title": "SQL Injection",
"location": {
"file": "src/db/queries.ts",
"line": 45,
"column": 12
},
"description": "User input directly interpolated in SQL query",
"evidence": "const query = `SELECT * FROM users WHERE id = ${userId}`",
"remediation": "Use parameterized queries with prepared statements",
"references": [
# Security Audit Summary
## Risk Assessment: HIGH
## Findings Overview
| Severity | Count | Categories |
|----------|-------|------------|
| Critical | 2 | A03, A06 |
| High | 5 | A01, A02, A07 |
| Medium | 8 | A05, A09 |
| Low | 3 | A05 |
## Critical Issues (Immediate Action)
1. SQL Injection in user input handling
2. Hardcoded AWS credentials
## Recommendations
1. Fix critical issues within 24 hours
2. Update vulnerable dependencies
3. Add security headers
4. Implement proper secret management
@dependency-analyzer: Deep SCA analysis@code-reviewer: Security-focused code review@devops-engineer: Infrastructure security@master-orchestrator: Status updatesAfter completing security audits:
/mem-save pattern "SQL injection pattern in TypeScript template literals"
/mem-save solution "Remediated XSS by switching to React's built-in escaping"
/mem-save decision "Adopted parameterized queries project-wide"