Cloud agent
user_service.py
1
2
zsh — agent shell
Corridor is scanning the staged changes…
Corridor
Pre-commit security scanning for cloud coding agents
01 · Title
Corridor · Pre-commit security

Pre-commit scanning for cloud coding agents

A cloud agent writes code and runs git commit. Before the commit is created, Corridor scans the staged diff, blocks the vulnerability, the agent fixes it, and the clean commit proceeds — before the code ever reaches a pull request.
Agent writes → git commit → Corridor scan → Blocked → Agent fixes → Clean commit
✗ blocked — before fix
def get_user(uid):
    return db.execute(
        "SELECT * FROM users WHERE id = " + uid)
✓ passed — after fix
def get_user(uid):
    return db.execute(
        "SELECT * FROM users WHERE id = ?", (uid,))
Commit blocked · 1 finding
HIGHSQL Injection (CWE-89)
User input concatenated directly into a SQL query. Caught at commit time in the staged diff.