Overview
defenseclaw-gateway scan — Run security scanners.
Reference
Synopsis
scan
Subcommands
| Subcommand | Description |
|---|---|
code | Scan source code with CodeGuard |
Description
Run DefenseClaw security scanners against targets.
defenseclaw-gateway scan code
Synopsis
code <path>
Description
Scan a file or directory for security issues using the CodeGuard static scanner.
Checks for hardcoded secrets, unsafe exec calls, SQL injection, weak crypto, path traversal, and more across Python, JS/TS, Go, Java, Ruby, PHP, Shell, YAML, JSON, XML, C/C++, and Rust files.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | — | Output results as JSON (v7 scan-result contract) |
--schema | bool | — | Print scan-result.json schema (for downstream validators) and exit |
Usage
Concrete invocation recipes are added by the cli-commands subagents.
Pair this with the equivalent Python wrapper command under
Python CLI — most gateway operations are
also available one layer up.