Skip to content
Cisco AI Defense logo
CiscoAI Security

defenseclaw-gateway scan — DefenseClaw

Overview

defenseclaw-gateway scan — Run security scanners.

Reference

Synopsis

scan

Subcommands

SubcommandDescription
codeScan 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

FlagTypeDefaultDescription
--jsonboolOutput results as JSON (v7 scan-result contract)
--schemaboolPrint 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.

Related