agentleFS
yoonationyoonation/ai-grounded/.claude/skills/security/SKILL.md

security

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Security patterns and frameworks. Use when reviewing code for vulnerabilities, designing authentication/authorization, writing IAM policies, handling secrets, or discussing threat models.

  • Reads credentials

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cost-reducer, trigger-dev 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.
  • daianepepes-labSkill

    cost-reducer

    Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.

    Also in 5 projects that use this

  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    scalability

    Core foundational concepts and principles for Scalability

    Also in 4 projects that use this

  • daianepepes-labSkill

    self-healing

    Detect, diagnose, and automatically fix recurring errors, memory issues, and system degradation. Use when a system has recurring failures, memory leaks, performance degradation, or needs automatic recovery mechanisms.

    Also in 5 projects that use this

  • xfstudioSkill

    customer-support

    Elite AI-powered customer support specialist mastering

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • +1 more from daianepepes-lab

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use allowlists over denylists where possible

    line 17
  2. Distinctive:

    Use short-lived tokens over long-lived credentials

    line 23
  3. Distinctive:

    Prefer OIDC federation over stored credentials

    line 25
  4. Distinctive:

    Never store passwords in plaintext — use bcrypt/argon2

    line 26
  5. Distinctive:

    Never hardcode secrets in source code

    line 30
  6. Distinctive:

    Use AWS SSM Parameter Store or Secrets Manager

    line 31
  7. Distinctive:

    Use VPC with private subnets for backend services

    line 38
  8. Distinctive:

    Never expose model weights or training data publicly

    line 48
  9. Distinctive:

    Never disable SSL verification, even in dev

    line 51
  10. Very specific:

    Never use eval(), exec(), os.system(), shell=True

    line 52
  11. Distinctive:

    Never log sensitive data (tokens, passwords, PII)

    line 53
  12. Very specific:

    Never use chmod 777 or overly permissive file permissions

    line 54
  13. Distinctive:

    Never trust client-side validation as the only check

    line 55

“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Patterns

Frameworks

  • OWASP LLM Top 10 — primary reference for AI/ML application security
  • MITRE ATLAS — adversarial threat landscape for AI systems
  • STRIDE — threat modeling methodology (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege)
  • NIST AI RMF — AI risk management framework
  • ISO 42001 — AI management system standard

Input Validation

  • Validate at system boundaries — never trust external input
  • Use allowlists over denylists where possible
  • Parameterize all database queries — never concatenate
  • Sanitize output to prevent XSS
  • Validate file uploads: type, size, content inspection

Authentication & Authorization

  • Use short-lived tokens over long-lived credentials
  • Implement RBAC with least-privilege defaults
  • Prefer OIDC federation over stored credentials
  • Never store passwords in plaintext — use bcrypt/argon2
  • Rate-limit authentication endpoints

Secrets Management

  • Never hardcode secrets in source code
  • Use AWS SSM Parameter Store or Secrets Manager
  • Rotate credentials on a defined schedule
  • Audit secret access with CloudTrail
  • .env files are for local dev only — never in production

Infrastructure Security

  • Encrypt at rest (S3, EBS, RDS) and in transit (TLS 1.2+)
  • Use VPC with private subnets for backend services
  • Security groups: deny all inbound by default, open only what's needed
  • Enable CloudTrail, GuardDuty, Config for audit and detection
  • Container images: scan for CVEs, run as non-root, use distroless base

AI/ML Security

  • Validate and sanitize all LLM inputs and outputs
  • Implement guardrails for prompt injection defense
  • Log and monitor model inputs/outputs for abuse detection
  • Apply rate limiting to inference endpoints
  • Never expose model weights or training data publicly

Anti-Patterns

  • Never disable SSL verification, even in dev
  • Never use eval(), exec(), os.system(), shell=True
  • Never log sensitive data (tokens, passwords, PII)
  • Never use chmod 777 or overly permissive file permissions
  • Never trust client-side validation as the only check

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.