Security Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Join Today
  • Sign Out
  • My Account
Security Magazine logo
  • NEWS
    • Security Newswire
    • Technologies & Solutions
  • MANAGEMENT
    • Leadership Management
    • Enterprise Services
    • Security Education & Training
    • Logical Security
    • Security & Business Resilience
    • Profiles in Excellence
  • PHYSICAL
    • Access Management
    • Fire & Life Safety
    • Identity Management
    • Physical Security
    • Video Surveillance
    • Case Studies (Physical)
  • CYBER
    • Cybersecurity News
    • More
  • BLOG
  • COLUMNS
    • Career Intelligence
    • Cyber Tactics
    • Cybersecurity Education & Training
    • Leadership & Management
    • Security Talk
  • EXCLUSIVES
    • Annual Guarding Report
    • Most Influential People in Security
    • The Security Benchmark Report
    • Top Guard and Security Officer Companies
    • Top Cybersecurity Leaders
    • Women in Security
  • SECTORS
    • Arenas / Stadiums / Leagues / Entertainment
    • Banking/Finance/Insurance
    • Construction, Real Estate, Property Management
    • Education: K-12
    • Education: University
    • Government: Federal, State and Local
    • Hospitality & Casinos
    • Hospitals & Medical Centers
    • Infrastructure:Electric,Gas & Water
    • Ports: Sea, Land, & Air
    • Retail/Restaurants/Convenience
    • Transportation/Logistics/Supply Chain/Distribution/ Warehousing
  • EVENTS
    • Industry Events
    • Webinars
    • Solutions by Sector
    • Security 500 Conference
  • MEDIA
    • Interactive Spotlight
    • Photo Galleries
    • Podcasts
    • Polls
    • Videos
      • Cybersecurity & Geopolitical Discussion
      • Ask Me Anything (AMA) Series
  • MORE
    • Call for Entries
    • Classifieds & Job Listings
    • Newsletter
    • Sponsor Insights
    • Store
    • White Papers
  • EMAG
    • eMagazine
    • This Month's Content
    • Advertise
  • JOIN
CybersecurityLogical SecuritySecurity & Business ResilienceSecurity Education & Training

Leaked API Keys Are Going to Become a Major Headache for Every Company

By Sam Chehab
People around computer
ultramansk / iStock / Getty Images Plus / Via Getty Images
November 16, 2026

In August, more than 50,000 Stripe API keys were exposed across public code repositories, GitHub Actions logs, and misconfigured web servers. Researchers used a sample of the active ones to pull merchant customer lists, create fraudulent payment links, and initiate test charges. All within 17 hours of the keys going public.

Two months before that, a threat group calling itself “Icarus” got into one of Klue’s dormant integration credentials and pushed a malicious update into its systems. Almost 200 of Klue’s customers were affected, including Postman and several cybersecurity vendors. So suffice to say, we’ve been reflecting deeply on this problem. 

Both incidents highlighted that one leaked credential can get exploited thousands of times before anyone notices.

The Problem With API Keys (And Why AI Makes It Worse)

API keys are possession-based. Users don’t treat them as carefully as they should and they end up on laptops, in config files, and pasted into repos. Once a secret exists in more places than you can track, you’ve lost visibility into where access can even come from.

The lifecycle is the other half of the problem. Hygiene best practices like rotation, revocation, and expiry are often treated as an afterthought. The administrative headache of rotating a key means updating every application that depends on it before you revoke the old one, or you break something in production. 

GitGuardian’s State of Secrets Sprawl 2026 report counted 28.65 million new secrets in public GitHub commits in 2025 alone, and found that 64% of secrets confirmed valid in 2022 were still active four years later. It’s usually faster to spin up a new endpoint than to audit what already exists, so inventory just keeps growing.

That blind spot was bad enough on its own. Now AI agents are calling APIs on our behalf at an exorbitant pace. The blast radius of a leaked key used to be human-sized; now they can be exploited at machine speed.

How to Avoid Becoming the Next Headline

I’ve said this before and I’ll say it again: accurate inventory enables effective policy, which drives automated enforcement and continuous detection. That loop is what keeps a leaked credential from spiraling into a massive incident like those we’ve seen in recent headlines. 

Here are four recommendations from my experience after decades in the field:

  1. Build an inventory: Most security problems are inventory problems in disguise. List every credential, everywhere it’s issued, stored, and copied, and map each one back to the APIs it can touch.
  2. Apply least privilege to humans and agents alike: Scope credentials to the task, not the person. A workflow that only needs to read data gets an API that can only read, not one that can also delete or expose records.
  3. Automate expiry, rotation, and revocation: Automate rotation wherever you can, and make emergency revocation as easy as one click. Breaking a key almost always costs less than the potential damage it prevents.
  4. Govern your agents: Give agents their own identities, with per-call attribution to a distinct machine identity, not a shared one. This is the heart of least privilege: an agent should get only the access that the task actually requires. And detection needs to feed back into policy so security teams can restrict behavior the moment it strays, not just sound an alarm after the fact.

Leaked credentials have always been a problem. AI increased the speed with which these incidents can proliferate: more keys, more machine callers, more activity than any manual process can account for. Inventory, least privilege, automated rotation, and agent governance won’t make headlines on their own, but getting them right, right now, is what keeps you from making headlines for the wrong reason.

KEYWORDS: API key API security artificial intelligence (AI) Artificial Intelligence (AI) Security credentials

Share This Story

Sam chehab headshot

Sam Chehab is Head of Security and IT at Postman. Image courtesy of Chehab 

Blog Topics

Security Blog

On the Track of OSAC

Blog Roll

Security Industry Association

Security Magazine's Daily News

SIA FREE Email News

SDM Blog

Manage My Account
  • Join Security
  • Manage My Preferences
  • Customer Service

More Videos

Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the Security audience. All Sponsored Content is supplied by the advertising company and any opinions expressed in this article are those of the author and not necessarily reflect the views of Security or its parent company, BNP Media. Interested in participating in our Sponsored Content section? Contact your local rep!

close
  • Vivotek AI Hybrid Cloud
    Sponsored byVIVOTEK Inc.

    Beyond Camera Coverage: How AI and Hybrid Cloud Redefine Security Performance

  • Northland Controls sponsored content
    Sponsored byNorthland Controls

    The Execution Gap: Why Great Security Design Doesn't Always Deliver Great Security

Popular Stories

ship in the water

Tariffs and Supply Chain Security: An Emerging Security Challenge

career intelligence

Are You the Insider Threat?

SEC 2026 Benchmark Report

2026 Security Benchmark Report

Surveillance

Cameras Only Deter People Who Believe They’re Being Watched

Code

Authentication Shouldn’t End After MFA Succeeds


2026 Security Benchmark Report

Events

November 18, 2026

How Agentic AI Transforms Incident Response from Alert to Evidence

LIVE: November 18, 2026 at 2 PM EST Learn how FTK Central, FTK Connect, APIs, SOAR integrations, endpoint agents, and ARMOUR can work together to move from security alert to defensible evidence with dramatically less manual intervention. 

December 2, 2026

Stopping Violence Before It Starts: Building a Prevention-First Security Program

LIVE: December 2, 2026 at 2 PM EST Learn strategic framework for building a comprehensive workplace violence prevention program from the ground up. Explore how organizations can shift resources toward prevention, preparation, and early intervention.

View All Submit An Event

Products

Security Culture: A How-to Guide for Improving Security Culture and Dealing with People Risk in Your Organisation

Security Culture: A How-to Guide for Improving Security Culture and Dealing with People Risk in Your Organisation

See More Products
×

Sign-up to receive top management & result-driven techniques in the industry.

Join over 20,000+ industry leaders who receive our premium content.

JOIN TODAY!
  • RESOURCES
    • Advertise
    • Contact Us
    • Store
  • JOIN TODAY
    • Create Account
    • eMagazine
    • Newsletter
    • Customer Service
    • Manage Preferences
  • SERVICES
    • Marketing Services
    • Reprints
    • Market Research
    • List Rental
    • Survey/Respondent Access
  • STAY CONNECTED
    • LinkedIn
    • Facebook
    • YouTube
    • X (Twitter)
  • PRIVACY
    • PRIVACY POLICY
    • TERMS & CONDITIONS
    • DO NOT SELL MY PERSONAL INFORMATION
    • PRIVACY REQUEST
    • ACCESSIBILITY

Copyright ©2026. All Rights Reserved BNP Media, Inc. and BNP Media II, LLC.

Design, CMS, Hosting & Web Development :: ePublishing