Skip to main content
Authorization required. aspex-attack calls real tools with malicious payloads. Only run it against servers you own or have explicit written permission to test. Unauthorized probing may violate computer-misuse law. The tool asks you to confirm before sending anything.
aspex scan tells you what a server could do. aspex-attack checks whether it actually falls for it: it connects to your configured servers, enumerates their tools, sends adversarial inputs to matching parameters, and inspects the responses for signs of success (reflected injection text, file contents that should not be readable, cloud metadata, stack traces).

Flags

There is no positional target. aspex-attack probes servers it discovers in your client configs, the same way aspex scan does. To test a server that is not configured yet, add it to a client config first (or to a project .mcp.json).

What it sends

Payloads are chosen per tool parameter from the tool’s input schema, so a path parameter gets traversal payloads, a URL parameter gets SSRF payloads, and a free-text parameter gets injection and leakage payloads. 18 payloads across 6 categories: Each payload comes with detectors that decide whether the response indicates the attack landed. A finding is only raised on a positive detector, not on the mere act of accepting the input.

Reading results

Exit code is 1 when a finding reaches --fail-on (default high).

In CI

Only against a staging or test deployment, never production.

Relationship to aspex scan

aspex scan redteam runs the same probes from inside the scanner and is kept for compatibility; aspex-attack is the standalone binary with the confirmation prompt and its own exit code. Use aspex scan for everyday auditing and reach for aspex-attack when you need proof, not a score.