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

axguard-remediate

Skill17 starsChanged 47 days agoMITView on GitHub

Apply concrete defensive fixes for confirmed AXguard findings and re-audit. Use with /axguard-fix after triage. Prefer minimal patches, critical first, then verify with axguard audit/scan.

  • Pipes a download into a shell

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Do not invent attack PoCs.

    line 10
  2. Distinctive:

    If fix and exploit PoC both requested: fix only.

    line 54
  3. Distinctive:

    If a finding was wrong, say so and leave code unchanged — prefer triage honesty over cosmetic edits.

    line 55

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

Fix confirmed findings only (post /axguard-triage). Critical → high → medium. Minimal diffs. Re-audit and report delta.

Do not invent attack PoCs. Do not “fix” by deleting scanner rules. Class patterns: axguard-knowledge.

Workflow

  1. Input: triaged Keep list or .findings/axguard/axguard-report.json (kept items only).
  2. Patch one class of issue at a time when possible.
  3. Re-run:
axguard audit . --out-dir .findings/axguard
# or faster check:
axguard scan .
  1. Report: fixed IDs, remaining blockers, new deltas.

Fix patterns (defensive)

ClassDoDon't
IDOR / AuthZScope queries by principal/tenant; central authorize(object); deny defaultHide id only; check authn but skip authz
JWTPin alg allowlist; always verify; secrets from env/KMSdecode for auth; accept none
CSRFRe-enable for cookie-session browsers; SameSiteExempt entire API “for convenience”
SQLiBound parameters / query builder placeholdersEscape-and-concat; trust “ORM = safe” with .raw
Command injsubprocess argv list, shell=False; allowlist argsos.system; interpolate into shell strings
DeserJSON; reject pickle/unserialize on untrusted“Only internal” queues without auth
SSTIFile templates only; autoescape onrender_template_string(user)
Pathresolve() + prefix jail; random ids for filesTrust ../ strip alone
SSRFScheme/host allowlist; block link-local/metadataBlacklist-only hostnames
XSStextContent / framework escape; CSPAd-hoc regex “sanitize”
UploadUUID names; magic-byte allowlist; store outside web rootOriginal filename in static/
GraphQLAuth per field/mutation; introspection off in prodGlobal CSRF off with cookies
Cryptoargon2/bcrypt; CSPRNG; TLS verify onMD5 passwords; hard-coded IV/key
SecretsRotate + purge history if leaked; secret managerComment out key and leave in git
CORSExplicit origins; never * with credentialsReflect Origin unchecked
Cloud ACLPrivate buckets; signed URLspublic-read for “speed”
SupplyLockfile + hash pin; remove curl|shExtra indexes without pin
DebugDEBUG=False in prod settings; generic 500sRely on “we won't deploy this file”
AgentAllowlisted tools; no shell-from-LLM; human gatePass tool args straight to bash

Patch quality bar

  • Fix the root cause, not only the matched line if control belongs one layer up.
  • Match project style; no drive-by refactors.
  • If fix and exploit PoC both requested: fix only; refuse exploit/PoC in one short sentence.
  • If a finding was wrong, say so and leave code unchanged — prefer triage honesty over cosmetic edits.

Output contract

Fixed: [ids]
Partial: [ids + why]
Unchanged (disputed FP): [ids]
Re-audit: Critical/High/Medium/Low before → after
Reports: .findings/axguard/axguard-report.{md,html,json}

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.

Reviews can't be read right now.

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.