Skip to Content
SCA & DependenciesContainer Scanning

Container Scanning

Container security scanning analyzes Dockerfiles and container configuration files found in your repositories during scans. This helps you identify vulnerabilities in your container setup before deploying to production.

What Container Scanning Does

Container files (Dockerfile, docker-compose.yml) are analyzed automatically as part of repository scans. The CodeStax Container Security Engine inspects your container configuration for known vulnerabilities, misconfigurations, and security best practice violations. Findings are checked against authoritative vulnerability databases including NVD, GitHub Advisories, and vendor-specific sources.

How Container Scanning Works

Container scanning runs automatically when your repository contains container-related files:

  1. During a repository scan, CodeStax detects Dockerfiles, docker-compose.yml, and other container configuration files
  2. The Container Security Engine analyzes these files for vulnerabilities and misconfigurations
  3. Results appear in your scan findings alongside other security issues

Scan Results

Results include:

FieldDescription
Vulnerability IDCVE identifier
SeverityCritical, High, Medium, or Low badge
PackageAffected OS or library package
Installed VersionVersion present in the image
Fixed VersionVersion that resolves the vulnerability (if available)
DescriptionSummary of the vulnerability

Supported Base Images

Container scanning works with all major Linux distributions:

  • Alpine Linux
  • Debian / Ubuntu
  • Red Hat Enterprise Linux (RHEL) / CentOS
  • Amazon Linux
  • Oracle Linux
  • SUSE Linux

Best Practices

  1. Use minimal base images — Alpine-based images have a smaller attack surface
  2. Pin image tags — Avoid latest in production; use specific version tags
  3. Scan before deploying — Integrate container scanning into your CI/CD pipeline
  4. Rebuild images regularly — Base image updates often include security patches
  5. Check fixed versions — Upgrading the base image or a specific package may resolve multiple CVEs at once