Attack & Defend Security Lab
Test Attack & Defend security scenarios locally in your browser: exploit SQL injection in Postgres WASM, verify HMAC/AES-GCM with Web Crypto, test secret-scanner regexes, and lock down Linux VFS servers.
SQL (PGlite WASM)
Exploit login_unsafe() with OR TRUE, inspect hidden users/tenants, then compare against a safe EXECUTE ... USING query.
Objective: Return the admin account row (username = admin) via SQL injection OR inspect alice cleanly.
Code / Payload Editor (SQL (PGlite WASM))
Loading editor…
Sandbox Output
Click Run Sandbox to execute this Attack & Defend preset locally in your browser.