A Twilio bill spiked more than 500× after an exposed API key was abused to send 2.3 million emails through a company’s SendGrid infrastructure.
In December, our forensic analysis of DMARC reports flagged an abnormal surge in outbound traffic from a fully authenticated domain. The pattern was Illegitimate, so we escalated. The client’s engineering vendor later confirmed that SendGrid API keys had been exposed due to what they believed was a NextJS vulnerability.
The keys were revoked quickly, but domain reputation was impacted, deliverability eroded across the organization, and the company absorbed a financial hit. The company’s credibility plummeted.
A reminder that vendor security practices are your security practices. And rebuilding trust from that kind of damage takes months, if not years.
The same weakness, used for phishing. Exposed credentials don't only run up a bill. One of our clients was targeted by phishing sent through a compromised SendGrid account belonging to Purdue University. Because it went out through Purdue's own authenticated SendGrid domain, the mail passed SPF and DKIM. The attackers set the sender name to "SendGrid", copied SendGrid's branding, and used the subject line "API Errors Impacting Email Delivery". The link led to a credential-harvesting site on a domain registered that same day. Purdue moved its DMARC policy from p=none to p=quarantine afterwards, and both Purdue and SendGrid closed the hole. But no DMARC policy stops abuse of valid keys: the mail is authenticated because it really is coming from your account.
What does help: limit who and what holds API keys, give each system its own key with only the permissions it needs, rotate API and DKIM keys on a schedule, and watch your DMARC reports and sending volume for the kind of spike that exposed the 2.3 million emails above.
Want a second look at your email security setup?
Free domain review covering DMARC, SPF, and spoofing risks.
Book a 30-Minute CallRelated reading: Parked Domain Security Risks: 4 DNS Records That Fix Them; Dangling DNS Check tool; our security research







