Watch everything.

Secrets get pasted into AI coding assistants every day, and the session logs keep them on disk, unencrypted.

Skarn reads the session logs your AI coding assistants already write, and surfaces the leaked credentials and the attacks that exploit them. It runs entirely on the local machine - no upload, no network call by default, nothing leaves it.

Skarn is the local-first, no-egress forensic layer for the AI-session surface the inline and cloud tools disclaim: local-disk session content, MCP and tool-call detail, and post-hoc attack-chain reconstruction with a session risk score.

Nothing leaves the machine. The free tier is the full local scanner; Pro adds the paid controls and Team the organization around them. Built for regulated, audit-heavy, EU data-residency environments.

Not an engineer? Find your view.

What matters to you is not what matters to them. See what Skarn means for your role - the business risk, the security posture, the compliance position, or the developer view.

Every session is written to disk.

Every AI coding assistant - Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Copilot in Code, Kimi Code CLI, Grok Build, Grok Bot, OpenCode, Cline, Cowork, Claude Enterprise, Kiro CLI - writes the whole conversation to disk: every prompt, every file it read, every command it ran, unencrypted. Developers paste keys, passwords, and .env files into those sessions all day long, and commits co-authored by Claude Code leaked secrets at roughly twice the rate of all public GitHub commits (3.2% vs 1.5%, GitGuardian State of Secrets Sprawl 2026). A secret scanner pointed at a git repository never reads these logs, and a measured teardown of what those logs contain shows why that matters.

What you can answer today, and after one scan

The question With the assistants as installed After skarn assess on the same machine
Which credentials went into an AI coding session? Each assistant keeps its own session store on the developer's disk, in its own format and location. The vendor documentation we reviewed for Claude Code, Codex, Cursor, Copilot and Gemini describes transcripts, audit logs and usage metrics, and no report of the credentials inside sessions. Repository secret scanners read repositories. One list over every supported assistant on the machine: each credential masked, with its severity and what kind of credential it is. The HTML report adds the rule and the session for each.
Was a session steered into reading a secret and sending it somewhere? The steps are separate tool calls inside one transcript, or across several. Finding them means reading transcripts by hand. The read, the injection and the outbound call are linked into one attack chain. It raises the machine's risk score, and the HTML report maps each finding in it to MITRE ATLAS.
Can security see a finding without seeing the secret? The session files these assistants write hold the secret in full. A redacted Markdown or HTML report, or a dossier scoped to one finding. No report carries a secret in full.
How exposed is this machine, as a number? The assistants report none. A risk score from 0 to 100 with its band, and severity counts.
How far back does it go? As far as each assistant keeps its sessions. Claude Code and Gemini CLI delete sessions older than 30 days by default. The same. Skarn reads what is on disk and changes none of it.

skarn assess needs no account and no license, and the scan makes no network call. Install Skarn and run it, or open a sample report first.

What leaked, made visible.

Run Skarn on a machine and it reads the AI session logs already on disk, across every assistant, and shows the live credentials and the attacks around them. Redacted, scored, and attributed to the exact session. In minutes, on the machine, nothing uploaded.

Every credential, masked

254 detection rules - 155 community secret patterns plus 99 AI-specific - pulled straight out of past AI sessions: AWS keys, database URIs, and every major AI provider key (OpenAI, Anthropic, Bedrock, Cursor, and 30+ more), each shown masked, at a measured false-positive rate.

The attack around the key

The prompt-injection-to-exfiltration attack chain an ordinary secret scanner can't see: poisoned content driving a read, then a leak.

A risk score you can act on

One number per session and per team for a dashboard or a CI gate, so exposure becomes a number you measure and drive down.

skarn check
$ skarn check --hours 2 [══] SKARN v0.37.0 AI coding session security scanner licensed to skarn-demo (enterprise) Act on this first 1. CRITICAL aws-secret-access-key [v****Xn] - virtucon-billing - confidence high, active use, AWS credential, attack chain, last seen 2026-05-29 2. CRITICAL base64-exfiltration-pipeline [b****rl] - contoso-scraper - confidence high, active use, last seen 2026-06-10 3. HIGH redis-url [r****/0] - contoso-scraper - confidence high, database URI, last seen 2026-06-10 4. HIGH aws-access-token [A****BY] - virtucon-billing - confidence high, AWS credential, last seen 2026-05-29 5. HIGH connection-string-with-password [****] - acme-billing-api - confidence medium, database URI, last seen 2026-06-10 2 more ranked candidates not shown. Deprioritized: 1 low confidence. CRITICAL [LLM02:2025] AWS secret access key exposed in session [v****Xn] - virtucon-billing, tool result, tool input [confidence high] Reach: 2 sessions, 2 assistants, 1 project, execution unknown, chains 0 CRITICAL Multi-phase attack chain detected across kill chain stages (2-phase chain (taint-linked): aws-secret-access-key --[v****) - virtucon-billing, tool input [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 0 CRITICAL [LLM02:2025 AML.T0025] Encoded data piped to network command (base64, xxd, python, perl, ruby) [b****rl] - contoso-scraper, tool input [confidence high] Reach: 1 session, 1 assistant, 1 project, execution executed CRITICAL [LLM02:2025 AML.T0025] Bash command targeting known exfiltration service (command: echo '****' | b****rl -s -X POST https:**** -H 'Con) - contoso-scraper, tool input [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 1 CRITICAL [LLM01:2025 AML.T0051.001] Multiple prompt poisoning indicators detected (high confidence) (file_path: ****) - contoso-scraper, tool result [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 1 CRITICAL Multi-phase attack chain detected across kill chain stages (3-phase chain: dotenv-file-read) - contoso-scraper, tool input [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 1 CRITICAL [LLM02:2025] AWS secret access key exposed in session [v****Xn] - virtucon-billing, tool result, user message [confidence high] Reach: 2 sessions, 2 assistants, 1 project, execution unknown, chains 0 HIGH [LLM02:2025] Database connection string with embedded credentials [****] - acme-billing-api, tool result, user message [confidence medium] HIGH [LLM02:2025 AML.T0037] Environment file read by AI session (file_path: ****) - acme-billing-api, tool result [confidence medium] HIGH [LLM02:2025] Identified a pattern that may indicate AWS credentials, risking unauthorized cloud resource access and data breaches on AWS platforms. [A****BY] - virtucon-billing, tool result [confidence high] also matched: generic-api-key Reach: 2 sessions, 2 assistants, 1 project, execution unknown HIGH [LLM02:2025 AML.T0057] Secret read by agent was echoed back in output (active use detected) [v****Xn] - virtucon-billing, assistant message [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 0 HIGH [LLM02:2025] Detected a Generic API Key, potentially exposing access to various services and sensitive operations. [c****t3] - contoso-scraper, tool result, user message [confidence medium] HIGH [LLM02:2025] Detected a Redis connection URL containing a password, which could expose Redis server access including authentication credentials and host. [r****/0] - contoso-scraper, tool result, user message [confidence high] HIGH [LLM02:2025 AML.T0037] Environment file secrets leaked to AI session [c****o8] - contoso-scraper, tool result, user message [confidence medium] also matched: generic-api-key HIGH [LLM02:2025 AML.T0037] Environment file secrets leaked to AI session [w****n5] - contoso-scraper, tool result, user message [confidence low] also matched: generic-api-key HIGH [LLM02:2025 AML.T0037] Environment file read by AI session (file_path: ****) - contoso-scraper, tool result [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 1 HIGH [LLM02:2025] Identified a pattern that may indicate AWS credentials, risking unauthorized cloud resource access and data breaches on AWS platforms. [A****BY] - virtucon-billing, tool result, user message [confidence high] also matched: generic-api-key Reach: 2 sessions, 2 assistants, 1 project, execution unknown HIGH [LLM02:2025 AML.T0037] Environment file read by AI session (file_path: ****) - virtucon-billing, tool result [confidence medium] 5:04PM INFO 6 sessions scanned (16 KB) in 0.0s 5:04PM INFO 254 rules loaded (155 community + 99 ai-specific) 5:04PM INFO use --rules <path> to add custom detection rules 5:04PM WARNING 22 incidents (33 total matches) 5:04PM INFO by severity: 7 critical, 15 high, 0 medium, 0 low (4 critical are attack chains or behaviors with no secret value) (at or above medium; --severity low shows all) 5:04PM INFO session risk score: 100/100 5:04PM WARNING 2 attack chain(s) detected 5:04PM CRITICAL cross-session attack chain [cross-CLI]: v****Xn read in claude (demo-virtucon-recon-001.jsonl) then used in codex (rollout-demo-virtucon-xfil-001.jsonl) 5:04PM WARNING 11 secret(s) exposed - rotate any live credentials: CRITICAL [aws-secret-access-key] v****Xn - virtucon-billing CRITICAL [base64-exfiltration-pipeline] b****rl - contoso-scraper CRITICAL [aws-secret-access-key] v****Xn - virtucon-billing HIGH [connection-string-with-password] **** - acme-billing-api HIGH [aws-access-token] A****BY - virtucon-billing also matched: generic-api-key HIGH [secret-echo-back] v****Xn - virtucon-billing HIGH [generic-api-key] c****t3 - contoso-scraper HIGH [redis-url] r****/0 - contoso-scraper HIGH [dotenv-contents-leaked] c****o8 - contoso-scraper also matched: generic-api-key HIGH [dotenv-contents-leaked] w****n5 - contoso-scraper also matched: generic-api-key HIGH [aws-access-token] A****BY - virtucon-billing also matched: generic-api-key
Real recorded output over a synthetic demo corpus; every secret is masked. More terminal recordings.
Skarn report Security view showing a risk score, severity and MITRE ATLAS facets, and redacted findings including a masked AWS key and a base64 exfiltration chain
The report skarn assess writes - risk score, severity and MITRE ATLAS facets, and redacted findings; the same Security view skarn serve renders live. Generated over a synthetic demo corpus; every secret is masked. Open the full sample report.

Assess one machine first.

skarn assess scans every AI coding session on a machine and prints a redacted risk summary: a risk score, severity counts, the top exposures, and the top attack chain. It needs no account, no license, and no configuration, and the scan makes no network call. Add -o report.html to keep the full report.

With nothing installed

npx @skarn-security/skarn@0.37.0 assess

Why Skarn is different.

Reads the AI sessions

A surface your git secret scanners never look at. The key pasted into a chat and never committed is invisible to them and obvious to Skarn.

Reconstructs the attack

Credential read, prompt injection, and exfiltration, linked into an attack chain correlated across MITRE ATLAS tactic-aligned stages.

Runs on the machine

No upload, no network call by default, no telemetry. The session logs stay on the machine.

One binary, every assistant

Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Copilot in Code, Kimi Code CLI, Grok Build, Grok Bot, OpenCode, Cline, Cowork, Claude Enterprise, Kiro CLI - one vendor-neutral control across every tool your team uses. It scans in milliseconds.

Real-time guard

Wired as a pre-execution hook in Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Kimi Code CLI, Grok Build, Cline, Kiro CLI, it refuses a malicious tool call - a hardcoded credential, a typosquatted package - before it runs. The same binary, on macOS, Linux, Windows, and in Docker.

You own the response

It tells you what leaked and where, redacted. What happens next is your team's decision.

Mapped to the standards you track

Every finding is crosswalked against MITRE ATLAS, the OWASP Top 10 for LLM Applications 2025, and CWE, emitted as SARIF 2.1.0 taxonomies your SIEM, ASPM, and GitHub code scanning already speak. See the standards crosswalk.

From a free scanner to fleet-wide coverage.

One binary for every tier, and every tier runs on your own machines. Each paid tier includes the one before it.

Free

The full local scanner

  • Every detection rule and attack-chain correlation
  • Session search and recall
  • The localhost web UI
  • Text, JSON, SARIF, and NDJSON output, detected secrets always masked
  • CI gating

Register the free license at getskarn.com/free. skarn assess scans with no license at all.

Pro

The paid controls, for one developer

  • Policy-as-code
  • Baselines with per-entry provenance
  • A tamper-evident audit log
  • Evidence packs
  • Guard enforcement

Team

Pro for 2 to 24 developers, as one organization

  • Seats you assign and reclaim
  • Invitations
  • A verified company domain that developers join themselves

Enterprise

Fleet-scale reporting

  • The enterprise reporting profile
  • A self-hosted fleet console over redacted findings and metadata (roadmap)
  • SSO, RBAC, and audit (roadmap)

Questions, answered.

How do I audit AI coding-assistant sessions for leaked credentials?

Run Skarn on the developer's machine. It reads the on-disk session logs that Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Copilot in Code, Kimi Code CLI, Grok Build, Grok Bot, OpenCode, Cline, Cowork, Claude Enterprise, and Kiro CLI already write, finds the leaked credentials and the attacks around them with 254 built-in rules, and produces a redacted, risk-scored report - locally, with no network call by default.

Can Skarn scan my Claude Code, Cursor, or Grok Bot history for secrets?

Yes. Skarn scans the local Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Copilot in Code, Kimi Code CLI, Grok Build, Grok Bot, OpenCode, Cline, Cowork, Claude Enterprise, and Kiro CLI session history for leaked API keys, tokens, and .env contents, shows each secret redacted, and uploads nothing.

How is Skarn different from a secret scanner?

A secret scanner finds a key in a repository. Skarn reads the AI session itself, so it finds the key an engineer pasted into a chat and never committed, and it shows what the assistant did with that key. It links the credential read, the prompt injection, and the exfiltration into one scored attack chain. It also vets the assistant's own configuration (hooks, MCP servers, permissions), checks each tool call before it runs, and makes every past session searchable across every assistant.

What about the endpoint agents from cloud secret-scanning platforms?

Some cloud platforms now ship endpoint agents that scan AI session files for credentials. They are built around the vendor's dashboard: an account and workspace to enroll in, finding metadata sent upstream, and a credential inventory as the output. Skarn scans locally with no vendor dashboard, works fully offline, fails closed on a scan it cannot complete, and reads the whole session, so the output covers what happened: the attack chain, the risk score, and the audit-ready report.

Does Skarn replace CrowdStrike Falcon?

No. Skarn is built to run beside an endpoint platform such as Falcon. Falcon Guardian secures AI agents at runtime, from the endpoint to cloud and SaaS environments. Skarn reads the session history that AI coding assistants keep on disk, old sessions included, finds the leaked credentials and attack chains in it, and scans offline, sending nothing to a vendor. Its findings export as redacted NDJSON events that your own log shipper can send to the SIEM you already run.

Does any data leave the machine?

No. The scan runs entirely on the local machine - no upload, no telemetry, and no network call by default, so the session logs never leave the laptop. `skarn assess` needs no account; `skarn check` needs a free license, and it is verified offline, so nothing leaves the machine even then. The only optional egress is the maintained-feed fetch of signed rule updates on a paid license; no secret ever leaves the machine.

Which AI assistants does it cover?

15: Claude Code, Gemini CLI, Antigravity, Codex CLI, Cursor, GitHub Copilot, Copilot in Code, Kimi Code CLI, Grok Build, Grok Bot, OpenCode, Cline, Cowork, Claude Enterprise, and Kiro CLI - one vendor-neutral control across every tool your team uses, from a single binary.

Who is Skarn for?

Security leads and engineering managers in regulated, audit-heavy, or EU data-residency environments who need to see what their developers have leaked into AI tools - without sending anything to a vendor.

Is it open source? What does it cost?

Skarn is closed source, with a free tier that includes the full local product under a license anyone can register for, an individual or an organization alike. Paid tiers add the rest: Pro adds policy-as-code, baselines with per-entry provenance, audit evidence, and real-time enforcement for one developer; Team adds seats and an organization; Enterprise adds fleet-scale reporting, with a self-hosted fleet console on the roadmap. Contact [email protected].

Read the evidence

What leaks into AI coding sessions: a measured teardown

A labeled corpus of AI coding sessions across five assistants, counted incident by incident: which credentials leak, how, and how many were live.

Secret-detection precision, measured

The false-positive rate of the 254 detection rules over the labeled corpus, with the method published so you can rerun it.

Attack-chain detection precision, measured

How often the prompt-injection-to-exfiltration correlation fires on a session that carries no attack.

How to scan AI coding assistant sessions for leaked secrets

Where each assistant writes its session history on disk, and the commands that read it.

What is an AI coding session security scanner?

The category, what it reads that a git secret scanner does not, and how it differs from DLP and endpoint tools.

Shadow AI data loss prevention for developers

The paste-into-assistant channel that no DLP watches, and how to get a measure of it without a proxy.

From the blog

Grok Bot's audit log is the chat transcript. Skarn reads it.

Run skarn assess --cli grokbot against xAI's desktop agent store - local, redacted, no upload.

The leak is in the connector setup

Run skarn vet over your MCP and hook configuration before the next connector is wired: a plaintext token in an env or headers block, remote endpoints, unpinned launchers, overbroad grants and exfiltrating hooks, read locally with no upload.

See your own exposure in one command.

skarn assess scans every AI coding session on the machine and prints a redacted risk summary. It needs no account and no license, and the scan makes no network call.

npx @skarn-security/skarn@0.37.0 assess

The 30-minute live demo runs the scanner with you on a developer's machine; you keep the redacted report. Skarn runs on macOS, Windows, and Linux, on both Intel and ARM.