a2a-auditor

v0.3.1
io.github.GuardBee/a2a-auditor Checked 1 hour ago Published 1 month ago

Scans Agent2Agent (A2A) protocol code for webhook SSRF, missing auth, and credential exposure

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_text

Scan Agent2Agent (A2A) protocol implementation code for anti-patterns found in the reference SDKs and sample agents: an Agent Card fetching a client-supplied push-notification webhook URL with no host allowlist (SSRF), a request handler wired up with no authentication at all, and a literal credential embedded directly in Agent Card metadata (which is served publicly).

ParameterTypeDescription
content *stringThe code content to scan
labelstringOptional label shown in findings (e.g. filename)

scan_file

Scan a single file for A2A (Agent2Agent) protocol anti-patterns

ParameterTypeDescription
path *stringAbsolute or relative path to the file to scan

scan_directory

Recursively scan a directory of A2A agent source for protocol anti-patterns

ParameterTypeDescription
path *stringAbsolute or relative path to the directory to scan
excludearraySkip files/dirs whose path contains one of these strings
includearrayOnly scan files whose path contains one of these strings
maxFilesintegerMaximum number of files to scan (default: 5000)

list_patterns

List every A2A (Agent2Agent) protocol pattern this auditor detects, grouped by category