The plaintext credentials that accumulate on developer laptops and CI runners (cloud CLI files, shell history, .npmrc, SSH keys, browser sessions, AI-agent configs) — invisible to repo scanners and the primary loot of infostealers and supply-chain worms.
How it works
Repo, pre-commit and CI scanning only see what reaches git. The endpoint is where credentials originate and dwell for months, unrotated. Shai-Hulud 2 gave a rare census: across 6,943 compromised systems, GitGuardian identified 294,842 secret occurrences / 33,185 unique secrets; each live secret sat in ~8 locations on the same machine, and 59% of compromised machines were CI/CD runners, not laptops.
Scan surface map
Location
Examples
Why it matters
Shell history
.bash_history, .zsh_history
Keys pasted into one-off curl/CLI calls persist forever
Dotfiles / env
.env*, .netrc, .gitconfig, exports in .zshrc
Copied between projects, never rotated
Cloud CLIs
~/.aws/credentials, ~/.config/gcloud, ~/.azure, Terraform state
Often static keys with no expiry
SSH / signing
~/.ssh/, GPG keys
Reused for years, often no passphrase; no API log of misuse
Session theft bypasses MFA; harvested by Lazagne, SharpChrome, DonPAPI
Exports / archives
CSV/SQL/XLSX dumps, Downloads, zips
Bulk data + embedded creds
AI coding agents widen it
Claude Code auto-loaded .env/.env.local from the project dir into its process environment (Knostic found it via an unexpected HTTP_PROXY); Cursor attempted to upload a local file containing an API key; Claude Code committed a Gemini key into a test file.
“Yes, and don’t ask again” writes the full command string — API key included — into .claude/settings.local.json; 31,088 distinct secrets (5,343 valid) reached public GitHub that way, incl. 1,955 valid Postgres connection strings.
LiteLLM PyPI (Mar 2026) — ~40 min on PyPI; payload escalated to root on CI runners and swept SSH keys, AWS/GCP/Azure creds, K8s SA tokens, .env, Docker config. The loot archive: 153 GB, 433,909 files, 118,829 runner dumps from 2,488 orgs. A separate Oct 2026 compromise began with an admin key deleted from a public repo but never revoked.
wfx-loot (2026) — 4,837 hijacked GitHub accounts; probe PRs (docs: dependency audit notes, branch wfx-docs) in 61,764 repos; stealer ran in ≥1,806 repos via workflows or npm postinstall (which also runs on developer machines), then reverted and deleted run logs.
Microsoft agent-framework 1.26.1/1.26.2 (PyPI, 17 Nov 2026) — a .pth hook ran the stealer on every Python start in the environment (pip included). It selected env vars whose names contained TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, read secret-looking values from other processes and up to 60 (1.26.1) / 80 (1.26.2) credential files: Azure CLI config, npm, pip, .netrc, Git, Docker, Hugging Face, Azure DevOps agent creds, .env and JSON in app directories; plus Azure DevOps OIDC tokens, managed-identity tokens and, in 1.26.2, GitHub Actions OIDC tokens. One HTTPS POST to a webhook.site URL (incident guide, VeritasChain on Wiz findings; Malicious Packages).
Swarm bee-js 13.3.0 / Swarm Desktop 0.56.2 (9 Nov 2026) — a loader fetched stage-2 code that copied the Swarm Desktop node key and its password (wallet control: xDAI, xBZZ, chequebook, stake) and installed a persistent RAT. Because Desktop auto-offers updates, a machine that ran 0.56.2 may now show clean 0.56.3, so the current version is not a reliable check (Swarm Foundation).
AI-service accounts in stealer logs — infostealer records now include ChatGPT, Claude, Gemini, Copilot and Cursor credentials and sessions, which can expose conversations, uploaded documents and connected services. Brandefense’s free AI Exposure Check queries one stealer-log source by domain or work email (severity, platforms, date range, aggregated device data, no raw credentials); a negative result proves nothing and a positive one needs validation (Lerner).
Shai-Hulud family — worm harvesting dev and CI secrets to self-propagate; see Shai-Hulud Worm.
Infostealers (Lumma, RedLine, Vidar) — stolen cloud keys, GitHub tokens and session cookies resold by access brokers to breach cloud, code and AI environments.
Defenses
Non-exportable keys: SSH keys in the Secure Enclave / hardware tokens.
Secretive does the same with Touch ID and access notifications.
Prefer the short-lived session tokens cloud CLIs can write over static access keys in ~/.aws/credentials; Workload Identity Federation for CI runners.
Keep .env outside agent working directories (Knostic’s fix); run coding agents in sandboxes such as Docker sandboxes with secret-scanning hooks.
Maintain a per-machine credential inventory before an incident, so the “what was on this laptop?” blast-radius question has an answer and rotation can start immediately (Credential Rotation and Revocation).
For Python environments, list executable .pth lines (lines starting with import in each site-packages dir) and review unfamiliar ones; distutils-precedence.pth from setuptools is normal. Remove hook files before running any Python tooling in a suspect environment, since pip itself triggers them (incident guide, VeritasChain).
Detect behaviour, not signatures, for browser-store theft: processes opening credential DBs and calling CryptUnprotectData.