Does your organization follow an immutable infrastructure approach for container deployments by replacing rather than updating existing container instances when updates are required?
Explanation
Immutable infrastructure is a security best practice where container instances are never modified after deployment. Instead, when updates are needed, new container instances are built from updated images and deployed to replace the existing instances. This approach reduces configuration drift, improves reliability, and minimizes the attack surface by ensuring all containers are built from known, verified images.
Evidence of this practice could include: container orchestration configuration files (e.g., Kubernetes deployment manifests) that specify image update strategies, CI/CD pipeline configurations showing image build and deployment processes, or documentation of container lifecycle management procedures that explicitly prohibit in-place updates.
Implementation Example
Update container images, and deploy new container instances to replace rather than update existing instances
ID: PR.PS-02.242
Context
- Function
- PR: PROTECT
- Category
- PR.PS: Platform Security
- Sub-Category
- Software is maintained, replaced, and removed commensurate with risk
Related questions
- Has your organization established and maintained hardened baseline configurations for all systems that enforce security policies and provide only essential capabilities?
- Does your organization have a documented process for reviewing default configuration settings for security implications when installing or upgrading software?
- Does your organization have a process to monitor software for deviations from approved baselines?
- Does your organization implement and adhere to defined timeframes for routine and emergency patching as specified in your vulnerability management plan?
- Does your organization have a process to identify and replace end-of-life software and services with supported versions?
- Does your organization have a process to identify, uninstall, and remove unauthorized software and services that pose security risks?

