DET-217 · agent · confidence High

Scanning Code and Files Agents Produce

Run static analysis, secret scanning and hidden-text checks on anything an agent writes before it ships.

Agents write code, configs, rule files, prompts and build outputs. Those can contain bugs, secrets, backdoors, or hidden instructions aimed at the next agent that reads them. This detection identifies agent-authored changes through commit metadata, PR labels and build records, and scans them before merge or deploy.

Run SAST, secret scanning, dependency checks and a hidden-character scan for zero-width Unicode and bidirectional controls. Give extra care to rules files, CI workflows, package manifests and install scripts, where a small change has wide reach.

Data sources
Git commit and PR metadataCI pipeline logsSAST and secret scanner resultsPackage registry logs
Platforms
SaaSLinuxAI Platform

Logic

On PRs where author or Co-Authored-By matches an agent: run semgrep, gitleaks and a unicode check (grep -P '[\x{200B}-\x{200F}\x{202A}-\x{202E}\x{2066}-\x{2069}]'). Block merge on hits. Alert when the diff touches .github/workflows, package.json scripts, postinstall hooks or *.mdc rules files.

False positives

Test fixtures that include emoji or RTL text. Scope unicode checks to code and config, not docs.

Catches 7 techniques