How do you detect malware in container images and at runtime?
Asked by
MellowCedar47
I'm not asking about conventional vulnerability scanning. Traditional endpoint security tools may not inspect files inside containers because the container filesystem is isolated from the host. Do you scan container images for malware before deployment, or use a runtime security platform such as Palo Alto Prisma Cloud? There seem to be relatively few tools focused specifically on detecting malware in containers, so I'm interested in what approaches work in practice.
Answers
One option is malcontent in the CI/CD pipeline. It can scan container images and perform differential analysis, which helps identify unexpected files or changes before the image is promoted.
Reply to this answer
Scanning after deployment is usually too lateโit mainly confirms that a bad image was promoted. Scan images before they enter the registry, then use runtime security for threats that image scanning cannot detect, such as a clean container downloading and executing something malicious after startup.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowCedar47: Iโm not sure a vulnerability scanner would detect malware hidden in an image. What runtime tools would you use to monitor container files and processes? The processes should be visible from the host, but traditional antivirus may not be able to inspect the container filesystem directly.