Skip to main content

AI-tool risk delta

For every AI-authored commit in the recent history window, Vulkro walks the file-by-file diff and reports:

  1. New sink categories reached. A file that did not reach a classified critical sink (SQL, shell, HTTP egress, payment, LLM, file-write, deserialization, email) before the commit now does.
  2. New third-party imports. A package newly imported in this commit. Catches typo-squat introductions and unauthorized dependency adds.
  3. Function parameter surface expansion. A function whose parameter count grew (foo (2 -> 4)). Often the shape that adds untrusted input without validation.

The output is a digest, not per-line findings. The CLI renders it as markdown; the desktop console hosts a tab.

What commits count as AI-authored?

Vulkro classifies a commit as AI-authored when any of these markers appear in the commit subject, body, or author field:

  • Co-Authored-By: Claude, Generated with Claude, @anthropic-generated -> Claude
  • GitHub Copilot, copilot-generated, @copilot -> Copilot
  • cursor.sh, @cursor-generated -> Cursor
  • aider:, // aider -> Aider
  • Generated by ChatGPT, OpenAI gpt- -> ChatGPT
  • ai-generated, generated by ai, # generated by -> generic AI

A commit can match multiple markers; the first match wins.

Sample headline

Cursor introduced 3 new SQL sinks in auth_service.py since Mar 4.

The report renders as a markdown table per commit, grouped by AI tool, sorted by file delta count.

Why this matters

The defender-side narrative for AI-generated code is that AI is fast but not careful. The risk delta surfaces the gap:

  • Sinks: did the AI add a new way for input to reach a critical third-party API?
  • Imports: did the AI pull in a dependency the team did not approve?
  • Params: did the AI broaden the function signature without adding validation?

The report is the artifact a security team can hand to a sceptical engineering lead.

Configuration

FlagDefault
--ai-risk-deltaoff
--ai-risk-delta-commits N50
--ai-risk-delta-format markdown|jsonmarkdown

Pairs with

  • --ai-code-segregation for the per-tool finding breakdown of the current scan (not the delta).
  • --attest-reviewed --reviewer <name> to mark every finding on an AI-touched file with a reviewer attestation.