kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / attack / run

kosa8 attack run

Run the scenarios and write a signed scorecard

Usage#

kosa8 attack run [SCENARIO...]

Policy mode (the default) puts each attempt to the decision code directly, with no daemon and no VM: it is what CI runs. --live also boots a sandbox per posture and runs the network and isolation scenarios inside it, taking the verdict from the audit entries the daemon writes; without a running daemon it says so and stays in policy mode.

The scorecard is signed with this machine's audit signing key (kosa8 audit key prints its id) and, when the daemon is running, anchored in the audit log as an attack.run entry. Check it with kosa8 attack verify FILE.

--fail-on allowed exits non-zero when any scenario of the hardened posture (or the only posture run) is ALLOWED; --fail-on approval also when one needs approval.

Options#

FlagTypeWhat it doesDefault
--fail-onstringexit non-zero when a result is allowed, or needs approval (allowed|approval)—
--liveboolalso run the network and isolation scenarios inside real sandboxes (needs the daemon)—
--no-recordbooldo not write the attack.run entry to the audit log—
-o, --outstringwrite the signed scorecard here (default ~/.kosa8/attack/RUN.json)—
--posturestringdefault (this machine's settings), hardened (the recommended setup), or bothboth
--uploadboolupload the signed scorecard to your kosa8 Cloud org (run kosa8 login first)—

Example#

  kosa8 attack run
  kosa8 attack run AK-01 AK-02 --posture hardened
  kosa8 attack run --live --fail-on allowed -o scorecard.json

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA