CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsMounting the container's root filesystem as read-only reduces security attack vectors since the container instance's filesystem cannot be tampered with or written to unless it has explicit read-write permissions on its filesystem folder and directories.
In the container_definitions
attribute, set readonlyRootFilesystem
to true
.
resource "aws_ecs_task_definition" "valid_read_only_root_fs" {
family = "valid_read_only_root_fs"
container_definitions = <<EOF
[
{
"name": "valid_read_only_root_fs",
"image": "hello-world",
"memory": 128,
"readonlyRootFilesystem": true
}
]
EOF
requires_compatibilities = ["EC2"]
}