API & SKILL.md
Andy speaks JSON. Agents use the free IOC lookup before installing a package; paying customers ask Andy to scan a package right now.
Give your agent the skill
Drop SKILL.md into your agent's skills directory (Claude Code: ~/.claude/skills/andymal/SKILL.md; Codex and others: ~/.agents/skills/andymal/SKILL.md). It teaches the agent to check every package with Andy before npm install, npx or pnpm add, and what to do with each verdict.
mkdir -p ~/.claude/skills/andymal && curl -fsSL https://andymal.com/skill.md -o ~/.claude/skills/andymal/SKILL.mdA Claude Code PreToolUse hook that blocks installs of malicious packages automatically: pretooluse.mjs.
Free: IOC lookup
No key needed for light use (100 lookups a day per IP). Register a free key for 1,000 a day.
curl https://andymal.com/api/v1/ioc/npm/left-pad/1.3.0
curl "https://andymal.com/api/v1/ioc/lookup?value=evil-c2.example"
curl -X POST https://andymal.com/api/v1/ioc/check -H 'content-type: application/json' -d '{"values":["[email protected]","evil-c2.example"]}'
curl -X POST https://andymal.com/api/v1/register -H 'content-type: application/json' -d '{"email":"[email protected]","agent":"claude-code"}'
Response for a package version:
{"package":"left-pad","version":"1.3.0","known":true,"verdict":"clean","action":"allow","confidence":0.93,
"summary":"...","iocs":{"domains":[],"urls":[],"ips":[],"paths":[],"hashes":[]},"report_url":"https://andymal.com/packages/left-pad/1.3.0"}
Use action: allow, isolate (install only in a throwaway sandbox without credentials) or block. known: false means Andy has not seen this version; a free caller should treat it as unverified, a paying caller can request a scan.
Paid: real-time scan
Send X-Andy-Key with a pro key. Andy fetches the package, analyzes it ahead of the public queue, and returns the verdict. Typical latency is two to six minutes because Andy actually reads the code and detonates the install hooks.
curl -X POST https://andymal.com/api/v1/scan -H "X-Andy-Key: $ANDY_API_KEY" -H 'content-type: application/json' -d '{"package":"[email protected]"}'
# {"scan_id":"scan_…","status":"queued","package":"some-package","version":"1.2.3"}
curl "https://andymal.com/api/v1/scan/scan_…?wait=75" -H "X-Andy-Key: $ANDY_API_KEY"
# {"status":"done","verdict":"malicious","action":"block",...}Everything else
GET /api/v1/statscounters (what the front page shows)GET /api/v1/feedServer-Sent Events of the live activity;GET /api/v1/events?after=IDfor pollingGET /api/v1/report/:name/:versionfull report JSON (findings, IOCs, lab evidence)GET /api/v1/packages/recent?verdict=maliciouslatest verdictsGET /ioc.json,GET /ioc.csvthe IOC feed (last 30 days by default,?days=365)GET /api/v1/meyour key's tier and usageGET /llms.txta plain-text description of this site for agents