Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

RotaYa lists where an infostealer could grab your dev credentials without reading one

A read-only triage CLI for the day after an infostealer. It inventories credential and session stores by metadata only and writes a rotation runbook ordered by blast radius times ease.

By David Discua

Measured in the lab

37
credential locations found (macOS paths)
10
scanner-blind session stores
19
runbook steps
0
secret values in any output
AI tools9
Cloud CLIs7
App sessions6
Browser sessions4
.env files4
OtherVCS, SSH, registries, container7
  • Inventory module imports only lstatSync and readdirSync
  • gitleaks 8.30.1 found the 3 generated keys, 6 secret fields dropped
  • 0 canary, generated-key or temp-path hits in any output
  • Top step is Google Cloud at priority 15
  • Linux paths found 33 locations in 22 types

From reports/measured.json · run on October 21, 2026. bun 1.4.3 on darwin-x64; synthetic fake home of 50 files; 3 keys generated at run time and deleted; real gitleaks 8.30.1, fake trufflehog

How it is wired

metadatarule + lineordered stepsHome folderlstat + readdir onlygitleaks scanvalues redactedRotaYablast x easeRunbook + .ics19 steps

01/03RotaYa walks your home folder and records where credentials live, never what they hold.

On October 15, 2026, Symantec's Threat Hunter Team reported that newer builds of the Aoki infostealer collect AI coding assistant credentials, including .claude.json, Codex config.toml, .env files and browser cookies. After a stealer runs, you do not know what to rotate first, and a secret scanner that says "clean" tells you nothing about cookie and session stores. RotaYa lists where credentials and sessions were stored without reading any of them, and writes a rotation runbook ordered by blast radius times ease. On a synthetic home folder it found 37 locations and produced 19 steps, with 0 secret values in any output. The catch is that it shows where credentials lived, not whether they were taken.

The catch

RotaYa reads metadata only and does no forensics. You still need each provider's own access logs to see whether an old credential was used. It does not query the macOS Keychain or Windows Credential Manager, and Claude Code on macOS, gh and Codex in keyring mode can keep tokens there, so rotate those providers if you used the tools. A few paths (ChatGPT desktop data, the Cursor state database, Gemini CLI oauth_creds.json, the Copilot plugin token folder) are marked unverified-path because no vendor documentation confirmed them. Password managers, wallets, VPN clients, JetBrains AI Assistant and Kiro, all named in the Symantec report, are out of scope. trufflehog is exercised only through a fake binary that emits its v3.99.2 JSON shape; gitleaks 8.30.1 runs for real. The blast and ease rubric is this project's judgement, and you can edit it in src/providers.ts.

What we ran (keyless)

bun install --frozen-lockfile
bun run src/cli.ts demo --out rotaya-demo
bun run src/cli.ts inventory --counts-only
bun run report

From reports/measured.json, run on October 21, 2026:

MeasureValue
Fake home files generated (synthetic, canary bodies)50
Inventory items, macOS paths37 in 25 location types (5.2 ms)
Inventory items, Linux paths33 in 22 location types (2.6 ms)
Scanner-blind cookie and session stores (macOS / Linux)10 / 6
.env files found by the walk (macOS)4
Group or world-readable credential files flagged (macOS)2
gitleaks 8.30.1 on generated keys3 findings (github, anthropic-api, aws); 6 secret fields dropped
Fake trufflehog with a canary in every secret field3 findings; 16 secret fields dropped; 7 values checked
Runbook steps (found / possible)19 (19 / 0)
Canary / generated-key / temp-path occurrences in outputs0 / 0 / 0

The top three steps were Google Cloud (gcloud, ADC and service-account keys) and Google Account sessions, both at priority 15, then Anthropic API keys and Claude Code login at 12. The three keys were generated in provider formats at run time and deleted afterwards.

How it is wired

The inventory module imports only lstatSync and readdirSync; one test enforces that import list and another runs the inventory on files locked to mode 000. It checks 28 catalog locations plus a bounded .env walk and records kind, size, mtime and permission bits. The optional scan runs gitleaks with --redact=100 or trufflehog with --no-verification, keeps rule, provider, file and line, and checks the final output against every secret value it saw before writing; a match aborts the run. The runbook links each provider's official revoke page and can write a 30-minute .ics block. There are no network calls.

Minilab (open source)

The scan step runs gitleaks/gitleaks (30,282 stars, MIT, Go) or trufflesecurity/trufflehog (28,678 stars, AGPL-3.0, Go), as of October 24, 2026. Run bun run report and check that leaks in reports/measured.json stays at zero.

Run it yourself

SkilledDragonCorp/rotaya-runbook

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run src/cli.ts demo --out rotaya-demo

SkilledDragon is not affiliated with Broadcom, Symantec, Gitleaks, Truffle Security or any vendor named. Numbers are from our own keyless run on a synthetic home folder; re-run the report before relying on them. Marks belong to their owners.

All labs