code-security-audit
БесплатноЗапускает вложенные скриптыНе проверенComprehensive code security audit toolkit combining OWASP Top 10 vulnerability scanning, dependency analysis, secret detection, SSL/TLS verification, AI Agent…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Code Security Audit
Unified security audit toolkit combining OWASP Top 10 vulnerability scanning, dependency analysis, secret detection, SSL/TLS verification, AI Agent security checks, and automated security scoring.
Overview
This skill merges the best of security-auditor and security-audit-toolkit into a comprehensive security auditing solution:
- ✅ OWASP Top 10 Vulnerability Detection - All 10 categories with code patterns
- ✅ Dependency Vulnerability Scanning - npm, pip, cargo, go modules
- ✅ Secret Detection - 70+ API key patterns, credentials, private keys, crypto wallets
- ✅ SSL/TLS Verification - Certificate validation, cipher suite checks
- ✅ AI Agent Security - Numeric risks, prompt injection, crypto wallet safety (NEW)
- ✅ Security Scoring - Quantified 0-100 security score
- ✅ Auto-Fix Suggestions - Actionable remediation recommendations
- ✅ Multi-Language Support - JS/TS, Python, Go, Java, Rust, PHP, Ruby, Solidity
- ✅ CI/CD Integration - GitHub Actions, GitLab CI templates
Quick Start
# Full security audit with scoring
./scripts/security-audit.sh --full
# Quick scan (secrets + dependencies only)
./scripts/security-audit.sh --quick
# OWASP Top 10 check
./scripts/security-audit.sh --owasp
# AI Agent security check (NEW - inspired by Lobstar Wilde incident)
./scripts/security-audit.sh --ai
# Dependency vulnerabilities only
./scripts/security-audit.sh --deps
# Secret detection only
./scripts/security-audit.sh --secrets
# SSL/TLS verification
./scripts/security-audit.sh --ssl example.com
Security Score Calculation
| Category | Weight | Max Points |
|---|---|---|
| OWASP Top 10 Compliance | 25% | 25 |
| AI Agent Security | 15% | 15 |
| Dependency Security | 20% | 20 |
| Secret Management | 15% | 15 |
| SSL/TLS Configuration | 10% | 10 |
| Code Quality (Security) | 10% | 10 |
| Documentation & Policies | 5% | 5 |
| Total | 100% | 100 |
Score Interpretation
| Score | Risk Level | Action |
|---|---|---|
| 90-100 | ✅ Low | Continue monitoring |
| 70-89 | ⚠️ Medium | Address findings within 1 week |
| 50-69 | 🔶 High | Priority fixes required |
| 0-49 | 🚨 Critical | Immediate remediation needed |
1. OWASP Top 10 Detection
A01:2021 - Broken Access Control
Detection Patterns:
# Find endpoints without authentication
grep -rn "app\.\(get\|post\|put\|delete\|patch\)" --include='*.ts' --include='*.js' . | \
grep -v "authenticate\|auth\|isLoggedIn\|requireAuth"
# Find direct object references without ownership check
grep -rn "params\.id\|req\.params\." --include='*.ts' --include='*.js' . | \
grep -v "userId\|authorId\|ownerId\|belongsTo"
Code Patterns:
// ❌ VULNERABLE: No authorization check
app.delete('/api/posts/:id', async (req, res) => {
await db.post.delete({ where: { id: req.params.id } })
res.json({ success: true })
})
// ✅ SECURE: Verify ownership
app.delete('/api/posts/:id', authenticate, async (req, res) => {
const post = await db.post.findUnique({ where: { id: req.params.id } })
if (!post) return res.status(404).json({ error: 'Not found' })
if (post.authorId !== req.user.id && req.user.role !== 'admin') {
return res.status(403).json({ error: 'Forbidden' })
}
await db.post.delete({ where: { id: req.params.id } })
res.json({ success: true })
})
Checklist:
- Every endpoint verifies authentication
- Every data access verifies authorization
- CORS configured with specific origins (not
*) - Rate limiting on sensitive endpoints
- JWT tokens validated on every request
A02:2021 - Cryptographic Failures
Detection Patterns:
# Find weak hashing algorithms
grep -rn "md5\|sha1\|SHA1\|MD5" --include='*.ts' --include='*.js' --include='*.py' . | \
grep -i "password\|secret\|token\|key"
# Find plaintext password storage
grep -rn "password\s*[:=]\s*['\"]" --include='*.ts' --include='*.js' --include='*.py' .
# Find disabled SSL verification
grep -rn "verify\s*=\s*False\|rejectUnauthorized.*false\|InsecureSkipVerify" \
--include='*.ts' --include='*.js' --include='*.py' --include='*.go' .
Code Patterns:
// ❌ VULNERABLE: Plaintext password
await db.user.create({ data: { password: req.body.password } })
// ✅ SECURE: Bcrypt with sufficient rounds
import bcrypt from 'bcryptjs'
const hashedPassword = await bcrypt.hash(req.body.password, 12)
await db.user.create({ data: { password: hashedPassword } })
// ❌ VULNERABLE: Disabled SSL verification
const agent = new https.Agent({ rejectUnauthorized: false })
// ✅ SECURE: Proper SSL verification
const agent = new https.Agent({ rejectUnauthorized: true })
Checklist:
- Passwords hashed with bcrypt (12+ rounds) or argon2
- Sensitive data encrypted at rest (AES-256)
- TLS/HTTPS enforced for all connections
- No secrets in source code or logs
- API keys rotated r
Установить code-security-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-security-audit?
Comprehensive code security audit toolkit combining OWASP Top 10 vulnerability scanning, dependency analysis, secret detection, SSL/TLS verification, AI Agent security checks, and automated security scoring. Use when auditing codebases, scanning for vulnerabilities, detecting hardcoded secrets, checking OWASP compliance, AI/LLM application security, or preparing for security reviews.
Как установить скилл code-security-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-security-audit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic