agentleFS
rkalievrkaliev/eng-kit/skills/security-review/SKILL.md

security-review

Skill1 starsChanged 13 days agoMITView on GitHub

Use when changes touch authentication, authorization, user input, file uploads, secrets, cryptography, dependencies, payments or personal data, or when asked for a security review or audit

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-cve-sweep, fleet-standard-adoption 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.
  • berntpoppSkill

    dependency-cve-sweep

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

    Also in 12 projects that use this

  • berntpoppSkill

    fleet-standard-adoption

    Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.

    Also in 12 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 20 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 15 projects that use this

  • junimnjwSkill

    ralphinho-rfc-pipeline

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

    Also in 17 projects that use this

  • TironFoxSkill

    openclaw-persona-forge

    为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。

    Also in 7 projects that use this

  • +2 more from berntpopp

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 0

    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. Very specific:

    Mobile and desktop: no secrets in the binary; secure storage (Keystore/Keychain/DPAPI).

    line 38

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

Find the vulnerabilities an attacker would, before they do, and report them precisely enough to fix. Review with the attacker's question: what input or identity do I control, and where does it go?

Process

  1. Scope: the diff or the components under review, the assets (money, PII, credentials, availability), and the trust boundaries (client ↔ server, service ↔ service, app ↔ device, tenant ↔ tenant).
  2. Threat-model the data flows (STRIDE as a prompt): spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege. For each boundary, ask what is validated, authenticated, authorized and logged.
  3. Walk the checklist below against the actual code paths. Trace untrusted input to every sink.
  4. Run the project's tools, or propose them:
    • secrets scanning (gitleaks, trufflehog);
    • dependency audit (npm audit, osv-scanner, pip-audit, Dependabot or Renovate alerts);
    • SAST (Semgrep, CodeQL);
    • the platform linters (Android Lint security checks, for example).
  5. Report each finding with:
    • severity by real impact and likelihood (Critical / High / Medium / Low);
    • file:line;
    • the attack scenario (who, how, what they gain);
    • the fix. Separate Confirmed from Needs verification. Don't pad the report with generic advice.

Checklist

  • Injection: parameterized SQL/ORM (no string concatenation); no shell with user input (pass argument arrays); output encoding and a CSP for HTML; path traversal on file access; SSRF on server-side fetches of user-supplied URLs; template, LDAP, XPath and header injection.
  • AuthN: a vetted library or provider; password hashing with Argon2id/bcrypt/scrypt; MFA where it matters; rate limiting and lockout; secure session cookies (HttpOnly, Secure, SameSite); token expiry and rotation; logout that actually invalidates.
  • AuthZ: checked server-side on every request, for the specific resource (ownership or tenant; IDOR), deny by default, no trust in client-sent roles or prices.
  • Input and files: validate against a schema at the boundary; limit sizes; check upload type by content; store uploads outside the web root with generated names; scan them where required.
  • Secrets: none in code, the repo, logs, crash reports, client bundles or mobile binaries. Use a secret manager with least-privilege scopes, and rotate on exposure.
  • Crypto: platform or standard libraries only; AES-GCM or ChaCha20-Poly1305; no static IVs; CSPRNG tokens; TLS everywhere with certificate validation on (no "trust all" in production); constant-time comparison for secrets and signatures.
  • Data protection: minimize PII, encrypt it at rest where required, mask it in logs, set retention and deletion, and respect consent. Personal-data laws (GDPR, 152-ФЗ) can dictate storage location.
  • Web: CSRF protection for cookie auth, a strict CORS allowlist, security headers, no sensitive data in URLs, and open-redirect checks.
  • Mobile and desktop: no secrets in the binary; secure storage (Keystore/Keychain/DPAPI); exported components and deep links validated; WebView without universal file access; certificate pinning only with a rotation plan. See OWASP MASVS.
  • Supply chain: pinned versions and a lockfile, trusted registries, a review of new dependencies (maintenance, popularity, install scripts), a minimal CI token scope, and signed releases.
  • Agent- and LLM-specific: prompt injection through fetched content or user data reaching tools. Treat model output as untrusted input to any sink.
  • Logging and monitoring: security events logged without secrets, with alerts on anomalies and tamper-evident audit trails for privileged actions.

Map findings to OWASP Top 10 / ASVS (web), MASVS (mobile) and, for card data, PCI DSS (payments-and-money). Reference the current edition, and check it at the source rather than from memory.

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.