agentleFS
nuwansamaranayakenuwansamaranayake/AiGNITEClaudeAssets/security-audit/SKILL.md

security-audit

Skill0 starsChanged 7 months agoMITView on GitHub

Runs the three-pass AiGNITE security audit on any mobile or backend project before deployment. Identifies vulnerabilities, applies fixes, and re-audits to catch regressions introduced by the fixes. Produces a tier-classified SECURITY_AUDIT.md with CWE references. Use this skill whenever the user mentions a security audit, pre-deploy check, asking whether code is safe to ship, vulnerability check, security review, or auditing an app, even if they do not name the skill by name.

140 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest 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.
  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +10 more from cenconq25

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 118 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default-open database policies (CWE-732)

    line 36
  2. Distinctive:

    If pass 3 surfaces new findings, fix them, run a fourth pass.

    line 55

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

Purpose

Find the security gaps that block a clean TestFlight or Play Store submission. Fix the Critical and High issues. Confirm the fixes did not introduce new gaps. Hand back a signed audit document.

When to trigger

Trigger on these user phrases. Match loosely.

  • "security audit"
  • "pre-deploy check"
  • "is this safe to ship"
  • "check for vulnerabilities"
  • "security review"
  • "audit my app"
  • "OWASP check"
  • "ready for App Store"

Behavior: three passes

Pass 1: identify

Scan the entire project. Produce findings tagged Critical, High, Medium, Low with CWE references. Write to SECURITY_AUDIT.md.

Checks the skill runs:

  • Hard-coded secrets in source (CWE-798)
  • Exposed environment variables in client bundles (CWE-200)
  • Missing server-side validation on API routes (CWE-20)
  • Default-open database policies (CWE-732)
  • Missing or inconsistent auth middleware (CWE-287)
  • Hallucinated package imports (CWE-829)
  • Console logs leaking request bodies or tokens (CWE-532)
  • Missing rate limiting on expensive operations (CWE-770)
  • CORS misconfigurations (CWE-942)
  • SQL injection patterns in raw queries (CWE-89)
  • XSS in user-supplied content paths (CWE-79)
  • Insecure deep linking handlers (CWE-925)
  • Hard-coded API URLs pointing at staging (CWE-1188)

Pass 2: fix

Implement fixes for every Critical and High finding. Apply Medium and Low fixes if the user opts in. After each fix, update SECURITY_AUDIT.md with the resolution and the diff link.

Pass 3: re-audit

Run the full scan again from a fresh context. Compare to pass 1. Flag any new finding introduced by a pass-2 fix. The most common new findings: a fix that broadens an auth check, a fix that adds a console log, a fix that imports a new package without validating it.

If pass 3 surfaces new findings, fix them, run a fourth pass. Stop when a pass introduces zero new Critical or High findings.

Output: SECURITY_AUDIT.md

The skill writes SECURITY_AUDIT.md at the project root using the template in assets/templates/SECURITY_AUDIT.md.template. The document includes:

  • Project name and audit date
  • Pass-1 findings table
  • Pass-2 resolution log
  • Pass-3 regression check
  • Final tier counts
  • Sign-off block

The audit fails (returns non-zero) until every Critical and High finding has a resolution.

Refusals

Refuse to mark an audit complete if:

  • Any Critical finding remains unresolved.
  • Any High finding remains unresolved without explicit user override.
  • Pass 3 surfaced a Critical or High introduced by a pass-2 fix.

Composes with

  • Runs after supabase-bootstrap to verify the schema and policies.
  • Runs before app-store-submission. The submission skill refuses if no recent audit exists.
  • The mcp-to-mobile skill invokes this skill in step 9.

References

  • references/vulnerability-patterns.md - the full taxonomy with examples.
  • references/aignite-security-baseline.md - what AiGNITE products must meet before launch.
  • references/cwe-reference.md - the CWE codes cited.

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.