APIs are essential. They stitch together cloud services, power mobile apps, automate DevOps pipelines, and deliver personalized customer experiences at scale. However, for all their utility, APIs are also prime real estate for malicious actors. With such interconnected ecosystems today, APIs have become both the nervous system of digital infrastructure and a wide-open backdoor.
As the 2025 Thales Data Threat Report highlights, the convergence of API sprawl, weak secrets hygiene, and AI-driven automation is creating the perfect storm for data breaches. The findings are sobering: 34% of enterprises now run more than 500 APIs, and secrets management tops the list of DevOps security challenges for over half of them. Yet many organizations still treat these issues as backend concerns or low-priority risks. That mindset needs to change.
In this blog, we’ll look at why secrets and APIs are no longer niche AppSec problems; they’re systemic weaknesses hiding in plain sight.
Your APIs Are a Playground
APIs are now foundational to modern applications, particularly in cloud-native, microservices-heavy environments. But with each new API added, the attack surface grows. Worse, most of this expansion is happening without guardrails.
According to the Thales report, nearly one in three organizations lack centralized visibility into their API inventory. This is a major blind spot. Unmanaged or undocumented APIs (also known as shadow APIs) can easily slip past traditional security scans. And bad actors know it.
In fact, APIs were the most frequently targeted vector in application-layer attacks in 2024, according to multiple industry reports. These attacks are often subtle and designed to fly under the radar: exfiltrating data via legitimate endpoints, injecting malicious payloads into trusted systems, or abusing broken authentication and excessive data exposure vulnerabilities.
With bots now making up a growing share of API traffic, telling friends from foes is harder than ever.
Secrets: Small Data with Massive Consequences
Secrets (API keys, tokens, passwords, cryptographic credentials) are the glue that holds secure systems together. Lose control of them, and everything comes unstuck.
Secrets exposure is no longer a theoretical risk. GitHub alone reported over 39 million leaked secrets in 2024, and that’s just what was detected. In the real world, secrets sprawl across CI/CD pipelines, logs, containers, and even Slack channels.
It’s easy to understand why: DevOps teams move fast, and secrets often get hardcoded for convenience, embedded in config files, or shared informally. But once a secret is exposed, it can silently grant malefactors the keys to internal systems, databases, or cloud workloads, with no alarms triggered. However, according to Thales, only 16% identified secrets management as important for data protection, and most entities still rely on patchwork controls and inconsistent tooling.
That’s a problem. Because in today’s GenAI-powered environments, compromised secrets can lead to cascading breaches across systems, services, and AI models.
AI + Automation = Faster Attacks
AI isn’t just transforming how we build and deliver digital services; it’s reshaping how attackers operate.
GenAI and automation tools have lowered the barrier to entry for exploiting APIs and stolen secrets. Need to mimic user behavior? Train an AI to emulate mouse movements and browser behavior. Want to find exposed keys in GitHub or S3 buckets? Let a bot crawl public repos and cloud instances at scale. And with model-to-model communications on the rise, API abuse is no longer just a network issue; it’s a supply chain vulnerability.
The 2025 Imperva Bad Bot Report revealed that advanced and moderate bot attacks accounted for more than half (55%) of all bot traffic, highlighting the growing sophistication of automated threats. These bots are not simple scrapers anymore; they’re polymorphic, evasive, and can bypass CAPTCHA, ape human interactions, and launch denial-of-service attacks to disrupt competitors.
Left unchecked, they distort market dynamics, drive up operational costs, and erode user trust.
The Invisible Risks of API Sprawl and Secrets Mismanagement
Let’s be clear. We’re not saying APIs and secrets are inherently insecure. But without proper governance, they introduce silent but critical weaknesses:
- Attack surface overload: As API counts skyrocket, so does the risk of overlooked endpoints and insecure defaults.
- Poor secrets hygiene: One hardcoded token in a GitHub repo can compromise an entire cloud environment.
- Bot exposure: Without intelligent bot management, APIs become a free-for-all for fraud, scraping, and abuse.
- AI feedback loops: When APIs feed data into GenAI systems, compromised inputs can corrupt outputs, and vice versa.
Security teams can’t solve these issues alone. Solving the secrets and API crisis requires a shift in mindset—from reactive defense to proactive governance.
Rethink Your Critical Controls
It’s time to expand our definition of critical security infrastructure. Firewalls, endpoint protection, and IAM tools still matter. But they can’t fix what they can’t see.
Organizations must:
- Map and monitor their full API inventory continuously.
- Adopt a secrets management platform and embed it into CI/CD pipelines.
- Establish strong authentication and authorization for every API using mutual TLS, OAuth2, and token rotation.
- Deploy intelligent bot detection tools that adapt to evolving tactics.
- Incorporate API security posture into risk models and board-level discussions.
In the GenAI era, where everything is connected and automation amplifies risk, overlooking these “invisible” controls could be your undoing.
API sprawl and secrets mismanagement are technical debt and breach catalysts hiding in plain sight. As businesses chase agility, speed, and automation, it’s easy to lose track of the fundamentals. But threat actors haven’t. They’re watching your APIs. They’re scraping your public code. And they’re betting that your secrets aren’t as secret as you think.
Don’t let them be right. Secure your invisible infrastructure now before it becomes your most visible failure.
Information Security Buzz News Editor
Kirsten Doyle has been in the technology journalism and editing space for nearly 24 years, during which time she has developed a great love for all aspects of technology, as well as words themselves. Her experience spans B2B tech, with a lot of focus on cybersecurity, cloud, enterprise, digital transformation, and data centre. Her specialties are in news, thought leadership, features, white papers, and PR writing, and she is an experienced editor for both print and online publications.
The opinions expressed in this post belong to the individual contributors and do not necessarily reflect the views of Information Security Buzz.


