agentleFS
awarexoneawarexone/AXguard/axguard-preship/SKILL.md

axguard-preship

Skill18 starsChanged 3 months agoMITView on GitHub

Pre-ship security review checklist for the current repository. Use for focused release reviews covering auth, SQL/injection/SSTI, path, SSRF, XSS, uploads, GraphQL, crypto, secrets, cloud, supply chain, debug, and agent risks when a full /axguard-audit is not requested.

  • Pipes a download into a shell

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Run when CLI available:

    line 15
  2. Distinctive:

    Verify each high/critical lead (source → sink → missing control).

    line 23
  3. Distinctive:

    Keep: missing control on a reachable ship path, even if “exploit steps” are incomplete — state impact + fix.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

AXguard — Pre-ship Review

Ship-blocking review. Prefer real bugs over volume. Defensive static review only.

Load axguard-knowledge when a class needs root-cause / fix depth.

Workflow

  1. Map surface: routes, APIs, auth boundaries, outbound HTTP, file/exec sinks, HTML sinks, upload handlers, GraphQL, CI/cloud, agent tools, debug flags.
  2. Run when CLI available:
axguard scan .
# shareable reports:
axguard audit . --out-dir .findings/axguard
  1. Verify each high/critical lead (source → sink → missing control).
  2. Report only issues you can defend with file:line.

Priority (ship blockers first)

#ClassCWE / OWASPStatic sniff
1AuthZ / IDORCWE-639, A01get-by-id without ownership/tenant
2RCE / cmd / deser / evalCWE-78/94/502, A03shell=True, pickle, eval, unserialize
3SQLi / SSTICWE-89/1336string-built SQL; render_template_string
4SSRF (esp. metadata)CWE-918, A10variable URL → fetch/requests; 169.254.169.254
5Secrets in tree/artifactsCWE-798AWS keys, PEM, PATs, hardcoded API secrets
6Path traversal / LFICWE-22/98open(join), sendFile(user), include($var)
7XSS on high-value pagesCWE-79innerHTML / dangerouslySetInnerHTML + user data
8JWT / CSRF footgunsCWE-347/352alg=none, decode w/o verify, csrf=False
9Upload RCE pathCWE-434original filename; multer.any; webroot writes
10Crypto / TLS misuseCWE-321/328/295hard-coded keys, MD5 passwords, verify=False
11CORS / cloud ACLCWE-942/284* + credentials; public-read buckets
12GraphQL exposureCWE-200/352prod introspection; CSRF off
13Supply / CICWE-494/506curl|sh; extra-index; shady postinstall
14Debug in prod pathCWE-489/209DEBUG=True; stack traces; open actuators
15Agent tool abuseLLM01/LLM06exec model output; unrestricted shell tool

Fast pass (15–30 min)

  • Auth on every object-id route; admin gated
  • No string-built SQL / shell / pickle on request data
  • Outbound URL allowlisted if user-influenced
  • No secrets in source, images, or CI logs
  • Client sinks not fed raw user HTML
  • Uploads renamed + type-checked + non-executable storage
  • Prod: DEBUG off, introspection off, TLS verify on
  • Agent tools allowlisted; no blind shell-from-LLM
  • Lockfiles present; no curl|sh install in ship path

False-positive discipline

Drop: tests/fixtures (unless those ship), constant-only sinks, verified mitigations on the same path, docs examples that never build.

Keep: missing control on a reachable ship path, even if “exploit steps” are incomplete — state impact + fix.

Output format

Title:
Severity:
CWE / OWASP:
Location:
Why it matters:
Evidence:
Fix:
Ship blocker? (Y/N)

End with: blocker count, non-blocker count, recommended next (/axguard-triage, /axguard-fix, or full /axguard-audit).

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.