Join our Newsletter — 33% off our NHI Course

Why do malicious container images slip past static scanning?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: Malicious container images can still execute bootstrap code at runtime after passing static scanning, Hush Security reports. Container monitoring has to watch process behavior, credential access, and egress because the artifact alone does not show what it will do after start.

Editorial analysis by NHI Mgmt Group, based on content published by Hush Security: “Malicious Container Images: Runtime Container Secret Detection When Static Scanning Fails”.

Key questions

Q: Why do static credentials increase the impact of runtime container compromise?

A: Static credentials turn a short runtime execution window into a reusable access event.

Q: What are the signs that a container is abusing runtime identity access?

A: Look for unexpected shell launches, reads of credential files, access to metadata endpoints, and outbound connections to unapproved domains immediately after startup.

Q: What fails when a container passes scanning but runs malicious startup code?

A: Static image scanning fails because it validates the artifact at rest, not the commands a container downloads and executes after start.

Practitioner guidance

  • Replace static secret exposure in containers Move cloud credentials, SSH keys, database passwords, and Kubernetes tokens out of files and environment variables that a startup script can read.
  • Require runtime-issued, scoped workload identity Issue short-lived tokens only when the container actually needs them, and scope them to the minimum permissions needed for that task.
  • Monitor startup behaviour for secret access Alert on unexpected process spawns, reads of credential paths, and connections to unapproved endpoints during container start.

Bottom line: A clean scan does not prevent a container from downloading and running malicious code after startup.

Glossary terms: Device Trust Boundary, Bootstrap Loader, Tool Credential Harvesting, Static Scanning Gap

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

Runtime trust debt is the core failure mode: container programmes still treat a successful image scan as evidence that execution is safe. That assumption was designed for static artifacts, not for code that fetches its payload after start. The implication is that identity and process governance must move closer to runtime, because the image layer no longer contains the whole threat.

A few things that frame the scale:

  • 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: Should teams rely on image scanning or runtime monitoring for container security?

A: They need both, but they solve different problems. Image scanning reduces known build-time risk, while runtime monitoring catches code that appears only after deployment. If the threat involves downloaded payloads, credential theft, or post-start behaviour, runtime monitoring is the control that actually sees the compromise.

👉 Read our full editorial: Runtime container credential theft exposes the limits of static scanning



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.