Static scanner & install gate
afw scan · verify · install ./artifact
Why it's needed. Most agents/skills come from strangers, like npm packages or browser extensions. You need to know what an artifact does before granting it your machine and your credentials.
Use cases
- Vet a skill you downloaded before copying it into
~/.claude/skills
- Gate installs so a BLOCK verdict refuses to copy the artifact
- Fail a CI pipeline on any high-risk finding
Pros
- Never executes code — safe on untrusted input
- Fast, offline, zero required dependencies
- Text / JSON / SARIF output; shell-friendly exit codes
Cons
- Signature/heuristic based — a novel or heavily obfuscated payload can slip past
- Can false-positive on legitimate but scary-looking code
- Sees intent in text, not actual runtime behavior
Broad detection coverage
afw rules # 59 detections · 23 categories
Why it's needed. Attacks don't come in one shape. Coverage has to span credential theft, exfiltration, obfuscation, prompt injection, tool/memory poisoning, deserialization, typosquatting and more — under one policy.
Catches, among others
Secret & credential theft SEC
Data exfiltration NET
Obfuscation / dynamic exec OBF
Prompt injection PI
Tool poisoning TPZ
Memory poisoning MEM
Unsafe deserialization DES
Hidden Unicode HID
Typosquatting TYP
Auto-fetch exfil NET-007
Pros
- Wide, real-world-driven rule set out of the box
- Adding a new signature is usually one line
- Every finding cites its category and severity
Cons
- Breadth is not completeness — new classes need new rules
- More rules means more tuning to keep noise down