Guide

What is an AI coding session security scanner?

An AI coding session security scanner reads the local session logs that AI coding assistants write to disk and surfaces leaked credentials and the attacks that exploit them. It inspects the AI chat transcripts on the developer machine - Claude Code, Codex CLI, Cursor, Gemini CLI, and VS Code GitHub Copilot - a surface that git secret scanners and endpoint DLP do not cover.

Skarn is an AI coding session security scanner. It runs locally as a single binary, with no upload and no network call by default.

Last updated 2026-07-03.

What it does

Reads on-disk AI session logs

It parses the session transcripts the assistants persist locally, including the SQLite state databases Cursor and Copilot use, without touching your git repository.

Detects leaked credentials

API keys, cloud keys, database URIs, OAuth tokens, and .env contents pasted into a prompt - across 200-plus credential types - shown redacted, never in full.

Correlates attack chains

Prompt injection to secret read to exfiltration, correlated across MITRE ATLAS tactic-aligned stages and mapped to the OWASP Top 10 for LLM Applications 2025 and CWE, with a 0-100 risk score per session and team.

How it differs from tools you already run

vs git secret scanners (gitleaks, trufflehog)
They scan repositories and commit history; a session scanner scans the AI logs those tools never look at. Complementary layers - see the tools comparison.
vs endpoint and network DLP
DLP watches email, uploads, and endpoints, not the local AI session transcript. The session scanner covers that shadow-AI surface - see the shadow AI DLP guide.
vs inline AI-gateway or proxy tools
Those see traffic in transit; a session scanner reads the persisted local transcript after the fact, including tool-call detail, for forensic reconstruction and CI gating.

Related: how to scan AI coding sessions for secrets, what Skarn is, the standards crosswalk

See it on your data

Book a scoped, consent-first exposure assessment and watch an AI session security scanner run on a sample of your developer machines.

[email protected]