搜索

PythonReactSEOPDF
GitHub Skill

security-review

Security audit patterns and OWASP Top 10 vulnerability detection. Auto-triggers when reviewing code for security, handling authentication, or processing user input.

bigdegenenergy☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Security Review Skill

OWASP Top 10 (2021) Checklist

A01: Broken Access Control
  • Authorization checks on every endpoint
  • Deny by default policy
  • CORS properly configured
  • Directory listing disabled
  • JWT tokens validated server-side
A02: Cryptographic Failures
  • No sensitive data in URLs
  • HTTPS enforced everywhere
  • Strong encryption algorithms (AES-256, RSA-2048+)
  • Passwords hashed with bcrypt/argon2
  • No hardcoded secrets
A03: Injection
  • Parameterized queries for SQL
  • Input validation and sanitization
  • Output encoding for context
  • No eval() or dynamic code execution
  • Command arguments properly escaped
A04: Insecure Design
  • Threat modeling completed
  • Rate limiting implemented
  • Resource quotas enforced
  • Fail securely (deny on error)
A05: Security Misconfiguration
  • Default credentials changed
  • Debug mode disabled in production
  • Error messages don't leak info
  • Security headers configured
  • Unnecessary features disabled
A06: Vulnerable Components
  • Dependencies up to date
  • No known CVEs in dependencies
  • Dependency audit in CI/CD
  • License compliance checked
A07: Authentication Failures
  • Multi-factor authentication available
  • Strong password policy
  • Account lockout after failures
  • Secure session management
  • Password reset is secure
A08: Data Integrity Failures
  • Code signing in place
  • CI/CD pipeline secured
  • Deserialization validated
  • Update mechanisms secure
A09: Logging & Monitoring
  • Security events logged
  • Logs don't contain sensitive data
  • Alerting on suspicious activity
  • Log integrity protected
A10: SSRF
  • URL validation for external requests
  • Allowlist for permitted hosts
  • No raw URL from user input
  • Metadata endpoints blocked

Code Patterns to Flag

# DANGEROUS: SQL Injection
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")

# SAFE: Parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
// DANGEROUS: XSS
element.innerHTML = userInput;

// SAFE: Text content
element.textContent = userInput;
# DANGEROUS: Command injection
os.system(f"ping {hostname}")

# SAFE: Use subprocess with list
subprocess.run(["ping", hostname], check=True)

Security Headers

Content-Security-Policy: default-src 'self'
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), microphone=()

Severity Classification

Level Description Response Time
CRITICAL Exploitable, high impact Immediate
HIGH Exploitable, medium impact 24 hours
MEDIUM Limited exploitability 1 week
LOW Defense in depth Next sprint

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!