security-guard.mjs
- Event: PreToolUse Edit/Write
- Type: notice: informs or reminds, does not block
What it does
Section titled “What it does”WARNS (does not block; once per file and session) about injection sinks introduced into the code: XSS (dangerouslySetInnerHTML, v-html, set:html, {@html}, Blade {!! $x !!}, innerHTML/insertAdjacentHTML/document.write with a variable), SQL injection (Prisma $queryRawUnsafe, Laravel DB::raw/whereRaw with $, execute with an f-string or concatenation in Python) and command injection or dynamic execution (exec/execSync/shell_exec/os.system with a variable, shell=True, eval). It only looks at what is introduced and at code without comments. Per-line escape: senzu-allow.