Security reflexes
Skill pipipip169/fable5-handoff/sources/adamentwistle-fable-skills/security-reflexes
Security checklists for everyday diffs — parameterize at trust boundaries, allowlist enums, per-object authorization, secrets never in logs/bundles/errors. Apply while writing any code touching user input, authn/authz, secrets, paths, URLs, subprocesses, SQL, HTML rendering, or external APIs.From its SKILL.md
npx -y skills add pipipip169/fable5-handoff --skill security-reflexesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.4 KB, 654 tokens by cl100k_base, as published. Nobody here has run it
Security Reflexes
Not a pentest methodology — these are the reflexes that fire while writing ordinary code. Scan the diff you're producing against whichever sections its surfaces touch.
Input crossing a trust boundary
Any value originating from a user, client, LLM, or external system:
- Parameterize, never concatenate: SQL/queries via placeholders; shell via array-arg APIs (no string-built commands); paths via join + canonicalize + prefix check (traversal:
../). - Validate at the boundary, by allowlist: enums/slugs mapped through a server-side whitelist — especially LLM-generated values headed into external APIs. Reject unexpected keys, not just missing ones.
- HTML: rendering user/model text as raw HTML is an XSS. Keep markdown renderers raw-HTML-off (no rehype-raw equivalents); escape by default.
- URLs the server will fetch: validate scheme+host against an allowlist (SSRF) — a user-supplied URL fetched server-side can reach internal services/metadata endpoints.
AuthN / AuthZ
- Every mutating endpoint: WHO is calling (authentication) and MAY they touch THIS object (authorization — ownership check on the specific row/resource, not just "is logged in").
- Never trust client-supplied identity/scope fields (user IDs, account IDs, role flags, prices, approved-params). The server derives them from the session or its own records.
- Approval flows: bind execution to a server-recorded intent; the client conveys a reference, never the parameters.
Secrets
- Secrets come from env/secret managers only — never hardcoded, never in client bundles (watch framework prefixes that expose env to the browser), never in logs (including "debug" logs of full request/response objects), never in error messages echoed to users.
- External API errors: wrap/sanitize before showing users — raw provider errors leak internal detail.
- Never ask for or accept credentials that identify a human irreversibly (private keys, seed phrases) even "just to test".
Dangerous defaults to catch in review
JSON.parse/deserialization of external input without try/catch and shape validation.- Comparing secrets with
==/===(timing) where a constant-time compare exists — matters for tokens/signatures. - Missing rate limiting/size caps on endpoints that do expensive work or send messages.
- CORS
*on authenticated routes; cookies without httpOnly/secure/sameSite thought. - Temp files/predictable paths for sensitive data; world-readable perms.
When the change is security-relevant by nature
If the diff touches auth flows, crypto, session handling, or permission checks: slow down, find the existing pattern in the codebase and match it exactly (bespoke crypto/session logic is almost always the bug), and say explicitly in your report which security property you preserved and how you verified it.
Escalate, don't improvise
Discovering an existing vulnerability mid-task → report it clearly (what, where, exploitability) rather than silently fixing beyond scope or ignoring it. Destructive proof-of-concepts and exploit tooling need explicit authorization context.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 1 of the 12 instructions most security skills give in 654 tokens
Counted across 648 of the 828 authors here whose files we hold, read 2026-08-07
- Parameterize all database queriesin 68 of 648, across 51 files
- Hash passwords using bcrypt, scrypt, or argon2in 49 of 648, across 36 files
- Apply rate limiting to authentication endpointsin 48 of 648, across 24 files
- Configure security headersin 35 of 648, across 19 files
- Validate all inputsin 32 of 648, across 24 files
- Validate all external input at the system boundaryhere, and in 29 of 648, across 19 files
- Run containers as a non-root userin 28 of 648, across 15 files
- Use httponly secure samesite cookies for sessionsin 26 of 648, across 15 files
- Run dependency audits before every releasein 21 of 648, across 10 files
- Encode output to prevent cross-site scriptingin 21 of 648, across 11 files
- Copy dependencies before source codein 20 of 648, across 9 files
- Store secrets in environment variablesin 20 of 648, across 18 files
Said here and by no other author read
- parameterize queries, shell arguments, and paths
- reject unexpected keys, not just missing ones
- escape user-generated HTML by default
- validate server-fetched URLs by scheme and host
- check object ownership on every mutating endpoint
- bind approval flows to server-recorded intent
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.