agentleFS
komlukkomluk/scaffolding/skills/security-review-checklists/SKILL.md

security-review-checklists

Skill16 starsChanged 6 days agoMITView on GitHub

OWASP Top 10, STRIDE threat modeling, and auth/compliance review checklists. TRIGGER when: reviewing code for vulnerabilities, threat-modeling a feature, or auditing auth. SKIP: general code-quality review (use pattern-recognition); test coverage review (use testing-strategy).

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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:

    Never use * origin in production.

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

OWASP Top 10 Checklist

VulnerabilityCheck
InjectionParameterized queries, input validation
Broken AuthSession management, MFA where needed
Sensitive DataEncryption, no logging PII
XXEDisable external entities in XML
Broken AccessAuthorization on all endpoints
MisconfigurationSecure defaults, no debug in prod
XSSOutput encoding, CSP headers
Insecure DeserializationValidate before deserialize
Vulnerable ComponentsCheck dependencies
LoggingAudit trails, no sensitive data in logs

STRIDE Threat Modeling

ThreatCheck For
SpoofingAuthentication weaknesses
TamperingData integrity issues
RepudiationMissing audit logs
Info DisclosureData exposure risks
Denial of ServiceRate limiting gaps
ElevationAuthorization bypasses

Authentication Review

AspectRequirements
Password policyMin length, complexity, no common passwords
Token handlingSecure storage, expiration, refresh
Session mgmtTimeout, invalidation, secure cookies
MFAAvailable for sensitive operations

Authorization Review

PatternCheck
RBACRoles properly defined and enforced
Resource accessPer-resource authorization
Least privilegeMinimal permissions granted
Default denyExplicit grants required

Data Protection Review

Data StateRequirement
In transitTLS 1.2+
At restAES-256 encryption
In logsNo PII, no secrets
In errorsNo stack traces to users

Compliance Quick Check

FrameworkKey Requirements
GDPRConsent, data minimization, deletion
HIPAAPHI encryption, access controls
PCI DSSCardholder data protection
SOC 2Security controls, audit

Input Validation Rules

Data TypeValidation
EmailRegex pattern, max 255 chars
PasswordMin 8 chars, upper + lower + number + special
URLProtocol whitelist (https only)
File uploadExtension whitelist, MIME check, size limit
IDsUUID format or positive integer
Free textMax length, HTML sanitization

Validate server-side always. Whitelist over blacklist. Fail fast.

Bundled References

Printable checklists in references/ for use during code reviews:

FileDescription
references/owasp-checklist.mdOWASP Top 10 (2021) with actionable checkboxes per category
references/auth-checklist.mdAuthentication and authorization review with JWT, RBAC, and session checks

Copy checklist items into PR review comments or use as a gate before merging security-sensitive changes.

JWT Token Standards

TokenExpiryStorage
Access15 minutesHttpOnly cookie
Refresh7 daysHttpOnly cookie

Include iat, exp, sub claims. Sign with RS256 or HS256. Never store in localStorage.

Rate Limiting Defaults

Endpoint TypeLimit
Login5/minute
Password reset3/hour
API general100/minute
File upload10/minute

Return headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After (on 429).

Security Headers

HeaderValue
X-Content-Type-Optionsnosniff
X-Frame-OptionsDENY
Strict-Transport-Securitymax-age=31536000; includeSubDomains
Content-Security-Policydefault-src 'self'
Referrer-Policystrict-origin-when-cross-origin

CORS Configuration

Never use * origin in production. Whitelist specific origins. Limit allowed methods and headers. Set Access-Control-Max-Age: 600.

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.