security-patterns
Skill2 starsChanged 54 days agoMITView on GitHub
Security checklist covering XSS, injection, authentication, authorization, sessions, CSRF, CSP, secrets, dependency CVEs, input validation, and severity calls. Use when writing or reviewing code that handles auth, sessions, secrets, user input, or external data, or when the user asks about security, hardening, vulnerabilities, authentication, authorization, cookies, XSS, CSRF, SQL injection, CSP, or headers, even if "security" is not mentioned by name. Not loaded just because a project has such code.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- CrowdStrike/foundry-skillstheir own version, first seen Oct 1, 2026
- bdouble/pm-vibecode-opstheir own version, first seen Jun 24, 2026
- Eyadkelleh/awesome-skills-securitytheir own version, first seen Jun 8, 2026
- ShulkwiSEC/bb-hugetheir own version, first seen Jun 4, 2026
- terrene-foundation/pacttheir own version, first seen Apr 6, 2026
- bejranonda/LLM-Autonomous-Agent-Plugin-for-Claudetheir own version, first seen Apr 1, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- CloudAI-X/claude-workflow-v2★ 1.4ksame name
- Eyadkelleh/awesome-skills-security★ 387same name
- bdouble/pm-vibecode-ops★ 42same name
- CrowdStrike/foundry-skills★ 30same name
- bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude★ 28same name
- ShulkwiSEC/bb-huge★ 22same name
- terrene-foundation/pact★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- auditSkill
- backup-patternsSkill
- bash-patternsSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- logging-patternsSkill
- referenceSkill
- metaSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- storybook-patternsSkill
- tailwind-patternsSkill
- test-patternsSkill
- typescript-patternsSkill
- vps-provisioningSkill
- vue-patternsSkill
- wcag-auditSkill
- writeSkill
The file
Files
Security patterns
Apply the references that match the detected stack. Severity rubric below applies cross-cuttingly.
Severity rubric
failure: exploitable, or direct leak of credentials, or missing CSRF on authenticated mutating endpoint.warning: mitigated but weak (e.g. CSP present but withunsafe-inline), or pattern that will become exploitable if misused.info: hardening opportunity, not currently exploitable.
Reference files
| File | Covers |
| reference/anti-patterns.md | Cross-cutting severity-labeled anti-patterns: SQLi, XSS injection, CSRF, secrets |
| reference/frontend.md | XSS, Next.js client/server boundary, auth/sessions, JWT vs sessions, strict CSP (nonce/strict-dynamic/hash) |
| reference/backend-django.md | ORM safety, views/middleware, auth, templates, file uploads |
| reference/backend-node.md | Express/Fastify/Nest hardening, CSRF on JSON-only APIs |
| reference/dependencies.md | Lockfile audit vs OSV-Scanner, SLSA build levels |
| reference/secrets.md | Detection (gitleaks, trufflehog, push protection), rotation cadence |
References
- OWASP Top 10: https://owasp.org/www-project-top-ten/
- OWASP Cheat Sheet Series: https://cheatsheetseries.owasp.org/
- OWASP ASVS: https://owasp.org/www-project-application-security-verification-standard/
- MDN Web Security: https://developer.mozilla.org/en-US/docs/Web/Security
- MDN CSP: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
- WHATWG Fetch (CORS): https://fetch.spec.whatwg.org/
Version notes
Checked: 2026-09-26 against https://slsa.dev/spec/v1.2/build-track-basics, https://docs.djangoproject.com/en/stable/ref/csp/, https://docs.npmjs.com/cli/v12/commands/npm-audit
- SLSA 1.2: current spec; 1.0 retired. Build track is L0 (no requirements) through L3.
- Django 6.0: built-in CSP middleware (
SECURE_CSP,csp_nonce); 6.1 adds the{% csp_nonce_attr %}tag. - npm 12 (12.1.0): current CLI docs; v10 and v11 docs marked Legacy.
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
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.

