Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
36 items · 2 stories · 34 security incidents
Why it happens
Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.
What to check in your own app
Keep secret keys only in server-side environment variables, never in browser or app code.
Set spend limits and usage alerts with every AI and cloud provider.
Turn on secret scanning and push protection for your repositories.
If a key leaks, revoke and replace it first; deleting the file is not enough.
CVE-2026-137477, published 26 Nov 2026 (GitHub advisory GHSA-573j-558j-ff2h): in vLLM 0.16.0 before 0.21.0, when the V1 model runner uses async scheduling with pipeline parallelism, non-last pipeline ranks never wrote generated tokens back and reset a token counter each step. The advisory says that when a fallback path triggers, for example with mixed prefill and decode batches, stale tokens from an earlier request in the same batch slot become model input and are written to the KV cache, exposing fragments of one user's context in another user's response.
Backslash Security published research on 25 Nov 2026: it scanned 2,504 public GitHub repositories holding chat logs and other agent files from nine AI coding tools and found 708 exposed secrets in 255 of them (about 10%), and it assesses about 200 are likely still valid. Backslash says 7 in 10 of the secrets got into the logs through the agent's own actions, such as reading a .env file, writing a key into a config file or running a command that printed it, not because a user pasted them. It says every one of the nine tools it examined leaked secrets this way, and that deleting the log does not help because it stays in git history, forks and clones.
Phala's final incident report, published 23 Nov 2026, says an attacker could read requests sent to its DeepSeek V4 Flash 0731 backend on OpenRouter from 21 Oct 02:25 to 1 Nov 02:03 UTC. The server was an experimental deployment that took live OpenRouter traffic before it had production controls. The attacker logged into its Grafana monitoring box with the default admin password, then reached a host management service that trusted any request from the local machine. On 5 Nov the same attacker obtained the root key of Phala Cloud's legacy key management service. Phala closed both paths by 6 Nov, rebuilt the affected infrastructure with a new root key, and says it did not detect either attack itself.
In a privacy notice dated 22 Nov 2026, Novita says a routing configuration issue made an API forwarding path meant for specific customers apply more broadly, so some MiniMax requests went to MiniMax's official API instead of Novita-hosted infrastructure. Requests made directly through Novita or routed to it by OpenRouter between 28 May and 11 Nov 2026 may have had their contents accessed or retained by a third party. An independent researcher saw URLs and hostnames planted in test requests being accessed, though not the AWS test keys. Novita has suspended the affected models and is asking MiniMax about retained data and its deletion.
On 21 Nov 2026 Together AI disclosed that, while developing its public GitHub repo xorl, an AI coding agent committed a credential for a private Hugging Face repository. That repository held prompt samples from serverless requests to MiniMax M3, GLM-5.2 and Kimi K2.6, mainly from 24 June and 4, 8 and 14 July 2026. Automated scanning caught the commit and it was reverted, but during the exposure window someone took the credential, downloaded the samples, searched them for credentials to other services and tested them. Five of those were Dragos canary credentials. Together AI says it now uses scoped or short-lived credentials, checks every pull request for credentials and makes zero data retention the default for new accounts.
On 19 Nov 2026 Dragos published research in which it sent about two million prompts carrying unique canary URLs and AWS keys to widely used AI services between July and November 2026. Data from at least three hosting providers was stolen, and none of them knew until Dragos told them. In the largest case a couple hundred bait AWS keys were taken, including from requests the provider rejected before a model ran. Attackers tested keys within hours, listed S3 buckets, searched Secrets Manager and Parameter Store, and tried to enable Bedrock models and add their own IAM users. Some stolen requests were marked zero data retention. Dragos also saw marketplace resellers logging prompts and providers not honouring privacy settings.
n8n published GHSA-h59h-rf6m-7jp5 (Moderate) on 13 Nov 2026. When a workflow was activated, n8n registered its trigger nodes with connected services using the credentials on those nodes, without checking that the user publishing the workflow could access them. A member who knew another user's credential ID could activate a workflow whose trigger used it, so n8n created or deleted webhooks on services like GitHub or GitLab with that credential's privileges and sent events from resources the member chose to the member's workflow.
n8nSecurity incident · GitHub (n8n-io/n8n) · Nov 13, 2026Source ↗
BerriAI published GHSA-2rwg-2wh4-7c4f (High, 7.7) on 12 Nov 2026. On deployments with at least one azure/ or azure_ai/ model and no AZURE_API_KEY or AZURE_OPENAI_API_KEY env var set, the proxy's request-body blocklist missed the Azure Entra credential parameters. An authenticated low-privilege caller could set client_id to a reference to a server env var such as LITELLM_MASTER_KEY; Entra rejected it and the proxy returned the error with the resolved value in it. That exposes env vars like the database URL, provider API keys and the master key, which gives full proxy admin control.
LiteLLMSecurity incident · GitHub (BerriAI/litellm) · Nov 12, 2026Source ↗
Stony Brook University researchers Billy Tsouvalas and Nick Nikiforakis presented results at ACM CCS (reported by BleepingComputer on 17 Nov 2026) from 300 honeypot images published across eight public container registries over four months, seeded with AWS, OpenAI and Anthropic API keys plus decoy SSH and database credentials. The images were pulled more than 75,000 times and the planted AWS keys received over 140,000 API calls from 5,000 unique IPs. The fastest AWS key use came 7.86 seconds after publication on Docker Hub, the median first call came after about 51 seconds, and all 100 AWS keys were used within 15 minutes. The OpenAI and Anthropic keys were quickly drained of their test balances. Scanners mostly pulled secrets straight out of image layers without ever running the containers. The researchers say they reported it to Docker in May and saw no changes in an August re-test.
GitHub advisory GHSA-m9j8-jcmv-hp69, published 16 Nov 2026 and rated high, says SvelteKit's build-time guard that keeps server-only modules out of client code could fail. Under certain circumstances server-only imports, which normally cannot reach the client bundle, could be included in it and expose secrets. This only happened when those server-only imports were made through src/params.js (param matchers). Affected versions are @sveltejs/kit 3.0.0 through 3.1.0, fixed in 3.1.1.
Amazon Threat Intelligence said on 13 Nov 2026 that its MadPot decoy servers, posing as LLM inference APIs, received requests from 3 Oct to 5 Nov that carried AI agents' own campaign records. It assesses with moderate confidence the agents ran on ARTEX, an open-source agentic pentest framework. The main campaign found internet-exposed LLM gateways and app builders (One API, New API, Veloera, Sub2API, LiteLLM, Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat, Ollama), pulled out the upstream provider keys, checked they worked and pooled them, with stolen keys paying for the models that ran further hunting. The playbook used default admin credentials such as the LiteLLM default master key, unfinished installs, login-free settings endpoints, an isCliRequest header bypass in One API-family systems, SSRF to cloud metadata, Langflow CVE-2025-3248 and RAGFlow CVE-2026-28797, plus keys left in client-side JavaScript, source maps and env files. Amazon says none of the techniques were new and it cannot verify the outcomes the agents recorded.
Cursor's 13 Nov 2026 update on its October incident says an attacker obtained an access key Cursor had issued to Fireworks, which Fireworks exposed, and used it to copy a read-only bucket of coding-agent traces, mostly from 2025 and only from sessions not in Privacy Mode. A small number of traces held credentials that had not been redacted (under 0.01% of customers). With those, the attacker reached SaaS tools Cursor uses and took archived non-production source repos, some support emails, usage metrics and contacts, summaries of some agent conversations, and credentials users had sent to Cursor support. A stolen credential then let them place tampered Claude Code extension builds 2.1.312 and 2.1.313 in Cursor's marketplace cache on 29 Oct, which up to 5,000 users may have received over about 11 hours. Cursor says Privacy Mode code and prompts were not affected and the last attacker activity was on 1 Nov.
A GitHub advisory for pgEdge RAG Server (1.0.0 and earlier) says its unauthenticated query API relayed the provider's error message straight to the caller. For OpenAI that message quotes the sk-proj- prefix and the last four characters of the rejected key, so anyone who could trigger a failure saw a fragment of the operator's key. A sibling advisory covers the same leak in pgEdge's Go LLM library; fixes are in 2.0.0 and 0.2.0.
ApiPass, an AI API gateway, said that on 9 Nov 2026 it found its Postgres database had been compromised. The attacker most likely got in through a known unauthenticated remote code execution flaw (CVE-2023-38646 type) in a self-hosted Metabase instance, then used the database superuser connection stored in Metabase to reach the Postgres cluster. It planted command-running functions, a disguised scheduled job and a crypto miner, took the key used to issue API tokens and user API keys that were stored in plaintext, and used 25 keys from 19 accounts to run Seedance video models. All user keys were force-rotated and old keys stopped working on 11 Nov.
Apiiro found that when a Claude Code user picks 'Yes, and don't ask again', the exact approved command can be saved word for word in .claude/settings.local.json, including any password or token typed into it. Searching public GitHub (1 to 3 Nov), it found 104,185 copies of the file, 1,122 of them holding at least one secret (1,379 distinct secrets), more than a third of them database access, including 379 database passwords. Claude Code adds the file to the user's global git excludes, but not to the project's own .gitignore, so the protection doesn't travel with the repo. Apiiro did not test the secrets; one notified company confirmed its key had been live. The Hacker News reported the research on 7 Nov.
Kernel, the AI browser-session platform, published a 4 November notice for an incident it detected on 2 November. On 24 October an unauthorised party used a compromised KERNEL API key to probe access; on 27 October the same party reached a staff login on Kernel's logging provider and downloaded data that held a small number of Kernel API keys and app deployments' third-party secrets. On 3 November the party used a compromised hosting-provider credential to reach four GPU servers, three of which ran KERNEL browser sessions. Kernel says 0.28% of customers were impacted, revoked the credentials, took the servers offline, notified affected organisations and linked the activity to the AI-assisted pentesting platform ARTEX used as a command centre for a cryptomining campaign.
Trigger.dev's CTO, Eric Allam, disclosed on 1 November that an attacker gained unauthorised access to environment variables for a subset of organisations on the hosted workflow and AI-agent platform. The company says it blocked the exploit used in the attack and emailed impacted account owners with mitigation steps. Its status page marked the incident resolved at 22:50 UTC that day. The disclosure does not say how many organisations were hit, which variables were read, or whether any credentials were misused. Stored variables commonly hold model-provider keys, database URLs and webhook secrets.
GitBook says an attacker got into its systems on 2 November through a flaw in its SSO login flow, creating sessions that acted as GitBook staff. From there they read the credentials of a misconfigured GitHub App, reached internal code, then a Cloudflare API key and production secrets with full infrastructure access. GitBook took the app offline for about 16 hours, rotated every secret and revoked all personal API tokens. It treats all customer data as exposed, including API tokens, integration tokens and secrets, session signing secrets and docs behind authenticated access. The attack used AI agents and appears aimed at one customer; GitBook found no evidence other customers' content was changed.
Google Threat Intelligence Group and Mandiant reported on 2 Nov on 2026 incidents where attackers hijacked companies' access to LLMs. Some saw over $100,000 in fraudulent charges in a single day, and cumulative charges at some reached $1 million before access was revoked. The main ways in were stolen or exposed cloud credentials, GitHub tokens and service-account keys; one group harvested LLM keys from public GitHub repos and tested them with single-token requests to stay unnoticed. Stolen access is resold through 'LLM mixer' services.
Northflank opened a security incident on 30 Oct after a Wiz threat alert and told all users to assume their environment variables had been decrypted and to rotate every secret, including workload secrets, secret groups and global secrets. Later that day it said multiple users had confirmed unauthorised use of AI API keys stored on the platform, and linked the activity to the IP addresses in Wiz's 'Black October' report. It has since added secret rotation for Postgres, MongoDB, MySQL, Redis, Minio and RabbitMQ add-ons and turned on audit logs for all customers.
NorthflankSecurity incident · Northflank status page · Oct 30, 2026Source ↗
A developer scanned 978 public apps built with Lovable, Bolt and v0. 37 of them shipped at least one secret key in client code, mostly Telegram bot tokens and AI provider keys, because they were stored in VITE_, NEXT_PUBLIC_ or REACT_APP_ variables.
LiteLLM's postmortem says the poisoned 1.107.0 release began with a config file holding an internal platform master key, committed to a public repo on 27 May. The commit was removed but the key was not revoked; on 10 Oct an attacker used it to pull a GitHub token with owner-level access to LiteLLM's repos. The Register says the bad package got about 49,000 downloads in under two hours, per Wiz.
Vercel's bulletin says Node.js released security updates on 21 Oct for 22.x, 24.x and 26.x. The worst, CVE-2026-111497, is a high-severity flaw in the Brotli decoder: malformed Brotli data from an attacker can leak memory or run arbitrary code in the Node.js process. Vercel added firewall rules for all projects the same day, but says anything outside its managed runtimes must upgrade to 22.23.4, 24.22.1 or 26.12.1, and projects still on Node 20 must switch to 22 or 24 and redeploy, because Node 20 gets no fix.
A GitGuardian post dated 19 Oct describes research in which people recovered real DeepSeek and Google API keys from Qwen3-27B, GPT-Codex 5.3 and Claude Haiku 4.5 using only API output; each key also appeared in public GitHub code. GitGuardian also says Claude Code-assisted public commits leaked secrets at 3.2% versus a 1.5% baseline, and that public MCP config files held 24,008 unique secrets, 2,117 of them valid. These figures are GitGuardian's, from a company that sells secret-protection tools.
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
The Next.js team published a critical advisory (GHSA-673q-mjm6-r5xr, CVSS 9.5) on 14 Oct. Apps on Next.js 16.0.0 to 16.4.0 that use the App Router with Cache Components can allow unauthenticated remote code execution if they have a use cache function that returns multiple typed arrays. The fix is 16.4.1. The advisory lists no workaround and says to upgrade even if you don't believe you have such a function.
Railway said on 21 Oct that an unauthorized party may have accessed encrypted customer environment variables and, for some, obtained the decrypted contents. It paused all builds and deployments, told every user to roll all environment variables, API keys and private registry credentials, and later reset bucket credentials and stored GitHub tokens. Railway believes it is part of a series of attacks on platform companies aimed at AI inference providers.
OpenCode said an intruder reached a legacy Console system on the night of 16 Oct and that OpenAI, Anthropic and Google keys saved by 1.4% of Console users may have been exposed. Users told reporters their keys were then billed, with claims from $168 to $1,700.
Fireworks AI said an attacker used internal Fireworks credentials to read environment variables in some customers' evaluation jobs, capturing API keys and tokens stored as secrets. It revoked affected Fireworks keys, but third-party keys have to be rotated with the provider that issued them.
Truffle Security scanned 224 million public GitHub repos and found 543,699 credentials that still worked when tested in July 2026, including 31,374 live Gemini keys. The median one had been public for 784 days. GitHub's push protection does not block Google or Gemini API keys.
The builder behind PurePath says someone got hold of their Anthropic API key and ran up roughly $500 of model usage. A follow-up post says support called the credits non-refundable.
GitHub secret scanning added detection for Lovable API keys and Supabase tokens; leaked Lovable keys in public repos are reported to Lovable for revocation.
An iOS developer says their OpenAI key leaked three times while using a third-party key proxy, and that usage limits kept the losses small. They no longer recommend that service.
A developer reported a stolen Google Cloud API key that generated about $82,000 of Gemini charges in two days, against a normal monthly spend of about $180.