agentleFS
HarambeeAIHarambeeAI/bayes-ship/skills/security-scan/SKILL.md

security-scan

Skill1 starsChanged 8 months agoMITView on GitHub

Security scanning against OWASP Top 10, secret detection, input validation, auth hardening. Used by the security reviewer during QA phase. Source: everything-claude-code.

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use springboot-security, django-security 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.
  • FaisalAlqarniSkill

    springboot-security

    Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.

    Also in 5 projects that use this

  • johnrtiptonSkill

    django-security

    This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.

    Also in 5 projects that use this

  • JamkrisSkill

    security-bounty-hunter

    Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.

    Also in 3 projects that use this

  • joneqianSkill

    postgres-patterns

    PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    iterative-retrieval

    Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.

    Also in 5 projects that use this

  • LangChainSkill

    docker-patterns

    Best practices for Docker containerization and multi-stage builds

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All user input parameterized (never string-concatenated into queries)

    line 10
  2. Distinctive:

    No secrets in code (API keys, passwords, tokens)

    line 21
  3. Distinctive:

    All secrets in environment variables

    line 22
  4. Distinctive:

    All user-generated content escaped before rendering

    line 27
  5. Distinctive:

    Remove default credentials and example pages

    line 36
  6. Very specific:

    Keep dependencies updated (run npm audit)

    line 38
  7. Distinctive:

    Verify transaction amounts match expected values

    line 42
  8. Distinctive:

    Never log full M-Pesa credentials

    line 44

“Common” is measured: kept by at least 6 in 10 of the 43 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 Scan

OWASP Top 10 checklist

1. Injection (SQL, NoSQL, command)

  • All user input parameterized (never string-concatenated into queries)
  • ORM used for database queries (Prisma, Drizzle, TypeORM)
  • No eval(), exec(), or dynamic code execution with user input

2. Broken authentication

  • Passwords hashed with bcrypt/argon2 (never stored in plain text)
  • Session tokens are cryptographically random, HTTPOnly, Secure, SameSite
  • Rate limiting on login endpoints (prevent brute force)
  • Account lockout after N failed attempts

3. Sensitive data exposure

  • No secrets in code (API keys, passwords, tokens)
  • All secrets in environment variables
  • HTTPS enforced (no HTTP)
  • Sensitive data not logged

4. XSS (Cross-Site Scripting)

  • All user-generated content escaped before rendering
  • React's JSX auto-escapes by default (don't use dangerouslySetInnerHTML)
  • Content-Security-Policy headers set

5. CSRF

  • CSRF tokens on all state-changing forms
  • SameSite cookie attribute set to "Strict" or "Lax"

6. Security misconfiguration

  • Remove default credentials and example pages
  • Disable verbose error messages in production
  • Keep dependencies updated (run npm audit)

M-Pesa specific security

  • Validate callback source IP against Safaricom's published ranges
  • Verify transaction amounts match expected values
  • Implement idempotent callback handling (Daraja can send duplicates)
  • Never log full M-Pesa credentials

Automated checks

# Dependency vulnerabilities
npm audit

# Secret detection
grep -r "password\|secret\|api_key\|token" --include="*.ts" --include="*.js" src/

# Check for console.log with sensitive data
grep -rn "console.log.*password\|console.log.*token\|console.log.*secret" src/

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.