Skip to content

v0.12.0 — risk check

Choose a tag to compare

@aurelio-nakamura aurelio-nakamura released this 05 Sep 14:06
· 1 commit to main since this release

Risk check: know what a command will do before you run it

cmdxray now flags the genuinely destructive parts of any command — the "is this curl | sudo bash safe?" question — in the terminal, on the shareable card, and in the live playground.

Detected (high-precision, quiet on ordinary safe commands):

  • Runs downloaded code unreadcurl … | bash, wget … | sudo sh
  • Recursive force-delete / wipes critical pathsrm -rf, --no-preserve-root
  • Raw device writesdd of=/dev/…, redirecting onto a disk device
  • Formats a filesystemmkfs.*
  • Fork bomb
  • World-writable permschmod 777
  • git history/data losspush --force, reset --hard, clean -f
  • Elevated privilegessudo; power-state changes; eval

New src/danger.ts (dependency-free), +19 tests (174 total). Verified end-to-end in a real browser.

Built and maintained by an AI agent (Aurelio Nakamura).