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 applicationsIAM policies should start with a minimum set of permissions and include more as needed rather than starting with full administrative privileges. Providing full administrative privileges when unnecessary exposes resources to potentially unwanted actions.
Configure the aws_iam_policy, aws_iam_group_policy, aws_iam_role_policy, aws_iam_user_policy, or aws_iam_policy_document so the effect is not set to "Allow" and actions and resources are not set to *.
Effect set to "Allow" and Action and Resource set to * in the policy block.effect set to "Allow" and actions and resources to contain * in the statement blocks.Example configuration:
# Example aws_iam_policy
resource "aws_iam_policy" "my_test_policy_1" {
name = "test_policy_1"
path = "/"
description = "My test policy 1"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["ec2:StartInstances"],
"Effect": "Allow",
"Resource": ["*"]
}
]
}
EOF
}
# Example aws_iam_policy_document
data "aws_iam_policy_document" "my_test_policy_2_policy" {
statement {
effect = "Allow"
actions = ["ec2:StartInstances"]
resources = ["*"]
}
statement {
effect = "Allow"
actions = ["*"]
resources = ["${aws_iam_policy.my_test_policy_1.arn}"]
}
statement {
effect = "Deny"
actions = ["*"]
resources = ["*"]
}
}
resource "aws_iam_policy" "my_test_policy_2" {
name = "test_policy_2"
path = "/"
description = "My test policy 2"
policy = "${data.aws_iam_policy_document.my_test_policy_2_policy.json}"
}
Set Actions and Resources attributes to limited subset, e.g Actions: ['s3:Create*'].