$ the-wire · showcase
agent-scan stops leaking credentials in verbose output
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
snyk/agent-scan redacted the credential paths that leaked through debug logs and MCP server stderr, and now tells you when a firewall, not a scan failure, blocked your upload.
fix: redact credentials in debug logs, server stderr, and local errors [PRODSECSTG-7680] [ASCAN-12] snyk/agent-scan
Running with --verbose or --suppress-mcpserver-io=false used to print raw URL query parameters, auth and custom header values, and third-party httpx/httpcore/mcp request URLs to your terminal and JSON output; the CLI now redacts all of them, tracking CWE-532. Anyone who has captured agent-scan output into CI logs should treat the previously emitted values as exposed.
fix: add firewall block message when firewall blocks a scan upload [ASCAN-50] snyk/agent-scan
When Snyk's web application firewall blocks a scan upload, the CLI now prints a message carrying the firewall's error ID instead of a bare 403, or worse, a false "submitted" confirmation. The message points at the likely cause, since a scanned skill or MCP server whose content looks like an attack can trigger the block, and asks you to pass the ID to Snyk support.
feat(guard): [ADS-1758] identify the runtime hook surface snyk/agent-scan
The guard hooks now resolve which agent runtime they are running under and send a fixed X-Agent-Surface label, so Codex hooks report desktop or vscode and Claude Code print mode reports sdk-cli. Installer events and runtimes without a marker omit the header entirely, and an unrecognized marker produces the literal label unrecognized rather than nothing.
fix: redact credentials in debug logs, server stderr, and local errors [PRODSECSTG-7680] [ASCAN-12] (#562) snyk/agent-scan
The commit behind the redaction work also handles IPv6 URLs and quoted bearer tokens, and shares a single fail-closed redact_url helper between config and text redaction. Fail-closed matters here: a URL the redactor cannot parse gets suppressed rather than passed through.
Action items
- → Upgrade snyk/agent-scan to a build containing the redaction fix before running it with --verbose in any logged or sha... snyk/agent-scan [immediate]