Overview
Amazon ECS Fargate services should run the latest Fargate platform version.
AWS Fargate platform versions refer to a specific runtime environment for Fargate task infrastructure, which is a combination of kernel and container runtime versions. New platform versions are released as the runtime environment evolves. For example, a new version may be released for kernel or operating system updates, new features, bug fixes, or security updates. Security updates and patches are deployed automatically for your Fargate tasks. If a security issue is found that affects a platform version, AWS patches the platform version.
Remediation guidance
AWS remediation
Console
- Open ECS cluster and service.
- Choose Update.
- Set platform version to LATEST.
- Deploy the service update.
AWS CLI
aws ecs update-service \
--cluster <cluster-name> \
--service <service-name> \
--platform-version LATEST \
--force-new-deployment
References
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service.html
- https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html
Service-wide remediation
Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.
AWS
Use AWS Organizations guardrails, AWS Config rules or conformance packs where they fit, approved account baselines, and IaC modules so new resources inherit the secure setting.
Operational rollout
- Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
- Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
- Re-scan and track approved exceptions with an owner and expiry date.
Query logic
These are the stored checks tied to this control.
ECS Services should use the latest platform version
Connectors
Covered asset types
Expected check: eq []
{
ecsServices(where: {NOT: { platformVersion_IN: ["LATEST", ""] }}) {...AssetFragment}
}
AWS