Skip to content

Get notified

Get an email when a new major security incident drops. No spam, unsubscribe any time.

Only used for pwn.watch incident emails. Protected by Cloudflare Turnstile.

Triage & Response10 min read

SaaS Environment Variables & API Key Exposure Response Playbook (2026)

What to do when a SaaS vendor holding your environment variables or API keys is breached, or your own API leaks data: rotate keys at the issuer in blast-radius order, audit what each key could reach, verify out-of-band before acting on chat or SMS requests, and notify customers with facts, with lessons from Trigger.dev, SignalPlus, Mixpanel and T-Mobile.

// key takeaways

  • An environment variable stored in a vendor is a secret held by that vendor. When Trigger.dev was breached on November 1, 2026, customers in affected environments had to rotate every credential stored there, not just their Trigger.dev keys.
  • Rotate at the issuer, in blast-radius order. Revoking the vendor's copy does nothing if the database password or third-party API key it held still works.
  • IP allowlisting limits what a stolen key can do. SignalPlus admitted IP whitelisting was not mandatory for exchange API access, and the losses came from accounts without it.
  • Social engineering now arrives through trusted channels: a smishing campaign against Mixpanel, a fake Microsoft Teams invite from a vendor's hijacked Telegram account at SignalPlus. Verify out of band before acting.
  • Notification discipline matters. Good disclosures say exactly what was and was not exposed, give a timeline and tell customers what to do, as Trigger.dev's and OpenAI's did.

Four incidents, one problem: secrets outside your perimeter

On November 1, 2026 Trigger.dev, a hosted background jobs and AI workflow platform, detected anomalous activity, blocked the attacker and mitigated the attack vector. The attacker had obtained customer root API keys for some environments and used them to read environment variables. Its November 6 incident report said 0.66% of customers were impacted, that the attacker listed recent runs, deployments and schedules in some environments, and that there was no evidence of access to other customer data, production databases or dashboard accounts. Self-hosted deployments were not affected, webhook signing secrets were not exposed, and the attack vector was withheld pending the investigation.

On November 4, 2026 attackers used a third-party vendor's hijacked Telegram account to send a SignalPlus engineer a fake Microsoft Teams invite, compromised the engineer's machine and moved into SignalPlus's internal network. SignalPlus, a crypto options and derivatives terminal, contained the intrusion the same day. Binance and Deribit revoked every API key linked to SignalPlus as a precaution, losses were under US$82,000 and SignalPlus said it would reimburse affected users in full.

Two older incidents frame the rest. Mixpanel detected a smishing campaign on November 8, 2025 that led to an export of some customers' analytics data; OpenAI said limited API platform user data was exposed (names, emails, coarse location, browser and OS, organization and user IDs) but no API keys, prompts, passwords or payment data, and removed Mixpanel from production. And T-Mobile disclosed in a January 19, 2023 8-K filing that an attacker had abused a single API since around November 25, 2022 to pull names, billing addresses, emails, phone numbers, birth dates and plan details for about 37 million accounts until T-Mobile detected it on January 5, 2023.

Step 1: rotate keys at the issuer, in blast-radius order

Start with an inventory of what the vendor held. For a job runner or PaaS that means every environment variable in every affected environment: database URLs, cloud keys, payment provider keys, LLM API keys, OAuth client secrets and tokens. Revoking the vendor's own API key is necessary but not sufficient. Trigger.dev revoked the exposed root keys itself; the credentials inside the environment variables were still valid until each customer rotated them at the issuing provider.

Order the rotation by what an attacker could do with each secret, not by convenience. Cloud admin keys and database credentials come first, then payment and messaging providers, then read-only analytics keys. For each one, create the new credential, deploy it, revoke the old one and confirm the old one fails. Prefer replacements that shrink future exposure: scoped keys instead of root keys, short-lived OIDC credentials instead of static keys, and IP allowlists where the provider supports them. Trigger.dev shipped IP whitelisting for scoped API keys and OIDC support as part of its response.

  • Export the list of secrets in every affected vendor environment before you start rotating.
  • Rotate at the issuing provider; deleting the vendor's copy does not invalidate a credential.
  • Order by blast radius: cloud and database admin, then payments and messaging, then read-only keys.
  • Replace root or account-wide keys with scoped keys limited to one environment and the minimum permissions.
  • Turn on IP allowlisting for API keys wherever the provider offers it, especially exchange, payment and admin APIs.
  • Confirm each old credential is rejected before marking it done, and keep an owner per secret.
Turn a vendor environment export into a rotation tracker
# Input: an env export from the affected vendor environment (KEY=VALUE lines)
# Output: a tracker with key names only, so secret values never land in the ticket
grep -E '^[A-Z0-9_]+=' prod.env | cut -d= -f1 | sort -u \
  | awk 'BEGIN { print "secret\towner\tissuer\trotated\told_key_rejected" } { print $1 "\t\t\tno\tno" }' \
  > rotation-tracker.tsv

# Keep local env files private while you work
chmod 600 prod.env

Step 2: audit what each exposed key could reach

Rotation stops future use; it does not tell you what already happened. For each exposed credential, pull the issuing provider's access logs for the exposure window and look for use from unfamiliar IPs or user agents, new resources, bulk reads and exports. In Trigger.dev's case the report described the attacker listing runs, deployments and schedules, so customers also had to review what their job payloads and run outputs contained.

API logs need the same treatment for data flowing out of your own systems. T-Mobile's attacker used a single API for about six weeks before detection. Per-key and per-client volume baselines, alerts on unusual pagination depth or record counts, and rate limits on endpoints that return personal data shorten that window. Analytics and support vendors count too: the Mixpanel export exposed profile data OpenAI had sent to its analytics vendor, which is why minimizing what you send to third parties is part of blast-radius control.

  • For every exposed key, review the issuer's logs for the exposure window: source IPs, user agents, new resources and bulk reads.
  • Check what job payloads, run logs and outputs stored in the vendor contained, not only the environment variables.
  • Baseline record counts per API key and client, and alert on pagination or export volumes far above normal.
  • Rate-limit and authenticate any endpoint that returns customer personal data, including internal and partner APIs.
  • Minimize the personal data you send to analytics and support vendors, so their breach exposes less of yours.

Step 3: verify every request that arrives by chat or SMS

Mixpanel's breach began with a smishing campaign, and SignalPlus's began with a meeting invite from a real vendor contact whose Telegram account had been hijacked. In both cases the channel looked legitimate. Training people to spot bad grammar no longer helps; what helps is a rule that credential resets, software installs, meeting links and key requests are verified through a second channel the requester did not choose.

Engineers and support staff with production access are the targets, because one compromised laptop or SSO session can reach the secrets everything else depends on. Give them phishing-resistant MFA, managed devices that block unsigned meeting clients and installers, and a simple way to report a suspicious message that does not depend on the same chat app.

  • Verify any request for credentials, MFA codes, installs or unusual meetings by calling back on a known number or using a separate, pre-agreed channel.
  • Install meeting clients only from managed software sources; never from a link in a chat message.
  • Use phishing-resistant MFA (security keys or passkeys) for anyone with access to production secrets or vendor dashboards.
  • Treat vendor contacts' chat accounts as untrusted until verified, since a hijacked vendor account started the SignalPlus intrusion.
  • Run smishing and chat-lure exercises for engineering and support, not only email phishing tests.

Step 4: notify customers with facts, fast

Trigger.dev's disclosure is a useful template. Impacted account owners were emailed around 21:36 UTC on November 1, the same day the attack was blocked, with a short public disclosure. A second email around 20:27 UTC on November 2 gave environment details and rotation guidance, and a full report followed on November 6 stating the share of customers affected, what the attacker accessed, what there was no evidence of, and which product changes shipped. OpenAI's Mixpanel notice took the same approach by listing exactly which fields were exposed and which were not.

Customers act on specifics. Say which accounts or environments are affected, which data types were exposed, which secrets you already revoked and which they must rotate themselves, and what has not been determined yet. SignalPlus told users to manage positions directly on the exchanges and not to reconnect API keys until it said it was safe, which is the kind of concrete instruction people need.

  • Notify affected customers directly by email and in-product banner before or alongside the public post.
  • List exposed and not-exposed data types explicitly; vague wording forces every customer to assume the worst.
  • Separate what you already revoked from what customers must rotate themselves, with exact steps.
  • Publish a timeline in UTC and update it as the investigation progresses; say when something is still unknown.
  • Check your regulatory and contractual notice deadlines early, and follow up with the root cause and the changes you shipped.

// actionable engineering checklist

  • Inventory vendor-held secrets

    Export every environment variable and API key stored in the affected vendor environments before rotating.

  • Rotate at the issuer by blast radius

    Cloud and database admin first, then payments and messaging, then read-only keys; confirm each old key fails.

  • Shrink future exposure

    Replace root keys with scoped keys, adopt OIDC where offered, and enable IP allowlists on API keys.

  • Audit key usage

    Review issuer logs for the exposure window and check what job payloads and run outputs contained.

  • Watch API volume

    Baseline and alert on per-key record counts and pagination depth on endpoints returning personal data.

  • Verify out of band

    Confirm credential, install and meeting requests through a second channel; use phishing-resistant MFA for production access.

  • Notify with specifics

    Direct email and banner, exposed and not-exposed data, actions taken, actions required and a UTC timeline.

// connected pwn.watch tools & live trackers

Frequently Asked Questions

A vendor that stores our environment variables was breached. Is regenerating its API key enough?
No. Regenerate the vendor key, then rotate every credential stored in the affected environments at the provider that issued it. Trigger.dev revoked the exposed root keys itself and still told impacted customers to rotate the credentials stored in those environments.
In what order should we rotate exposed secrets?
By blast radius: cloud and database admin credentials first, then payment, email and messaging providers, then read-only keys. Confirm each old credential is rejected before moving on.
Does IP allowlisting on API keys actually help?
It limits where a stolen key works. SignalPlus said the affected accounts were those without IP whitelisting, which it had not made mandatory for exchange API access.
What should a breach notification to customers include?
Who is affected, which data was and was not exposed, what you already revoked, what customers must do, a UTC timeline, and what is still unknown. Follow up with the root cause and the changes you shipped.

Get an email when a new major security incident drops. No spam, unsubscribe any time.