Container Security API Security Docker April 22, 2026 4 min read

Why Docker's New Security Scanning Ignores Your Biggest Risk

The Security Announcement Everyone Celebrated

Docker's enhanced container security scanning rolled out this week with impressive capabilities: vulnerability detection across 50,000+ CVEs, automated compliance reporting, and integration with major CI/CD platforms. Security teams are already implementing these tools as part of their software supply chain hardening efforts.

The timing couldn't be better. Recent supply chain attacks have made container security a boardroom priority, and Docker's scanning addresses obvious gaps in image security. But here's what's bothering me: while we're celebrating better static analysis, we're completely ignoring the dynamic secrets that actually cause breaches in production.

Docker's scanner excels at finding known vulnerabilities in your base images and dependencies. It can't see the API keys that get injected when your containers actually run.

What Container Scanners Actually Catch

Let me be clear about what these tools do well. Docker's enhanced scanning addresses real security gaps:

These are genuine security improvements. A 2025 study by Sysdig found that 75% of container images contain at least one high or critical vulnerability. Catching these during build time prevents real attacks.

But here's the operational reality: most container security incidents don't come from vulnerable base images. They come from secrets that get loaded after the container starts.

The Runtime Secret Injection Problem

Modern container orchestration makes secret management feel solved. Kubernetes secrets, Docker Compose environment files, and cloud provider secret managers all promise secure credential delivery. The problem is that these patterns create massive API key sprawl that no static scanner can detect.

Here's how it actually works in production:

Environment variable injection:

apiVersion: apps/v1
kind: Deployment
spec:
  containers:
  - name: ai-service
    env:
    - name: OPENAI_API_KEY
      valueFrom:
        secretKeyRef:
          name: ai-keys
          key: openai
    - name: ANTHROPIC_KEY
      valueFrom:
        secretKeyRef:
          name: ai-keys
          key: anthropic

Init container patterns:

initContainers:
- name: fetch-secrets
  image: vault:latest
  command: ['sh', '-c', 'vault read -field=api_key secret/prod/openai > /shared/api_key']
  volumeMounts:
  - name: shared-secrets
    mountPath: /shared

Mounted secret files:

volumeMounts:
- name: api-credentials
  mountPath: "/etc/api-keys"
  readOnly: true
volumes:
- name: api-credentials
  secret:
    secretName: production-api-keys

Docker's security scanner sees none of this. The container image itself is clean, but the running container has access to dozens of API keys across multiple providers.

Why This Matters More Than Base Image CVEs

I've analyzed breach reports from organizations running "secure" containerized infrastructure, and the pattern is consistent. The attack vector isn't usually a vulnerable base package. It's API key exposure through runtime configuration.

A financial services company I spoke with last month discovered this gap the hard way. Their container security scanning showed green across all services. But a misconfigured init container was pulling API keys from their development Vault instance and using them in production. The breach went undetected for six weeks because their security tools were focused on image vulnerabilities, not runtime credential access.

As we discussed in Your SaaS Tools Just Became AI Infrastructure Without Warning, the explosion of AI integrations means containers are now managing API relationships across multiple providers. A single "AI-enhanced" service might inject keys for OpenAI, Anthropic, Cohere, and proprietary models. Container scanners see one clean image, but the runtime environment exposes credentials to five different vendors.

The Compliance Gap Getting Bigger

This disconnect between static scanning and runtime reality creates serious compliance problems. When auditors ask about API key governance, most organizations point to their container security reports. "Look, all our images are clean." But those reports say nothing about:

The compliance frameworks catching up to container security, like the recent mandates we covered in Google's Key Rotation Mandate Exposes Enterprise Blind Spots, specifically require visibility into runtime credential usage. Static image scanning doesn't satisfy these requirements.

What Actually Works for Runtime Secrets

Container security scanning is valuable, but it's not sufficient for API key governance. Organizations that actually have visibility into their runtime credentials use complementary approaches:

Runtime secret tracking: Tools that monitor which secrets get loaded into running containers, not just what's in the image layers.

Key lifecycle automation: Integration between container orchestration and secret rotation, so keys can be updated without container restarts.

Usage attribution: Real-time mapping of API calls back to specific containers, pods, and services.

Breach isolation: The ability to revoke specific keys without taking down entire container clusters.

These capabilities require purpose-built API key management, not enhanced container scanning.

The Strategic Blind Spot

Docker's security enhancements address an important piece of container security, but they've inadvertently created a false confidence problem. Organizations implement comprehensive image scanning and assume their API security is handled. The runtime secret injection happening after containers start remains completely invisible.

This isn't Docker's fault. Image scanners weren't designed to solve runtime credential management. But the marketing around "comprehensive container security" obscures this gap, and most technical teams don't realize they need additional tooling for API key visibility.

Till bridges this gap by providing runtime visibility into API key usage across containerized workloads, giving you the credential governance that container security scanners can't deliver.

Try Till on your next project

Scoped API keys for AI agents. One command to start.

Get started free

← Back to blog