agentleFS
cohen-lielcohen-liel/hivemind/.claude/skills/security-review/SKILL.md

security-review

Skill110 starsChanged 9 months agoApache-2.0View on GitHub

Security review checklist for web applications. Use when reviewing code for security vulnerabilities, auth issues, input validation, or any security-sensitive code.

  • Reads credentials

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

The file

Files
SKILL.md

Security Review Checklist

Authentication & Authorization

  • Passwords hashed with bcrypt/argon2 (NEVER md5/sha1/plain)
  • JWT tokens have expiry (access: 15min, refresh: 7d)
  • JWT secret is long (32+ chars), loaded from env var
  • Refresh token rotation implemented (old token invalidated on use)
  • Rate limiting on login (max 5 attempts, then lockout/slowdown)
  • CSRF protection on state-changing endpoints (cookies)
  • Auth check on EVERY protected route (not just the frontend)
  • Admin endpoints have separate, stricter auth check

Input Validation

  • ALL user input validated server-side (never trust client)
  • File uploads: check MIME type, extension, size limit, scan for malware
  • URL parameters parsed and validated (no direct string concat in SQL)
  • JSON bodies have max size limit (e.g., 1MB)
  • HTML/Markdown user content sanitized before rendering (XSS)

SQL & Data

  • ALL queries use parameterized statements (no f-string SQL)
  • ORM used for CRUD — raw SQL only for complex analytics
  • Database user has minimum required permissions (not superuser)
  • Sensitive fields (password, SSN, CC) never returned in API responses
  • PII encrypted at rest for sensitive columns

API Security

  • CORS: explicit allowed origins (never * in production)
  • Security headers: X-Content-Type-Options, X-Frame-Options, CSP
  • HTTPS enforced (redirect HTTP → HTTPS)
  • API keys/secrets never logged or included in error messages
  • 4xx errors don't reveal internal details (stack traces, file paths)

Dependency Security

  • No known CVEs in dependencies (run: pip audit / npm audit)
  • Dependencies pinned to exact versions
  • Secrets never in code or git history (use env vars / secrets manager)
  • .env files in .gitignore

Common Vulnerabilities to Check

OWASP Top 10:
1. Broken Access Control — can user A see/edit user B's data?
2. Cryptographic Failures — are secrets/passwords properly protected?
3. Injection — SQL, command, LDAP injection possible?
4. Insecure Design — is auth logic correct by design?
5. Security Misconfiguration — debug mode on? default credentials?
6. Vulnerable Components — any known CVEs in deps?
7. Auth Failures — session fixation? weak tokens?
8. Data Integrity — deserialization attacks? tampered JWTs?
9. Logging Failures — are attacks logged? are secrets in logs?
10. SSRF — can attacker make server fetch internal URLs?

Issue Format

For each finding: [CRITICAL|HIGH|MEDIUM|LOW] file.py:line — description — exact fix recommendation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.