Define Container Security managed rulesets to ensure protection for your containers during Runtime Security scanning.
Runtime security provides visibility into container activity
that violates a customizable set of rules. Currently, runtime security includes a
set of predefined rules that provide visibility into MITRE ATT&CK framework
tactics for containers, as well as container drift detection. Container Security can
automatically mitigate problems detected by the runtime security feature. If a pod
violates any rule during runtime, the issue is mitigated by terminating or isolating
the pod based on the ruleset assigned to its Container Security policy.
ImportantRulesets are compatible with Kubernetes and Amazon
ECS and support Amazon EKS, Microsoft Azure AKS, Google
GKE, and OpenShift running supported Linux
kernels.
|
Procedure
- Go to .
- Click the Managed rulesets tab under Runtime Security Rulesets.
- Create a ruleset by clicking +Add.
- Specify a unique ruleset name.

Note
-
Ruleset names must not contain spaces and only support alphanumeric characters, underscores (_), and periods (.).
-
You cannot modify the ruleset name after creating the ruleset.
-
- If you want to provide more details about the
purpose for the ruleset, use the Description field.The description appears under the ruleset name in the ruleset list.
- For users that have applied labels to your
Kubernetes clusters and want to apply the ruleset only to clusters with
corresponding labels, click Add Label.
- Specify the Key and Value for each label.
- If you have multiple labels that you want to apply the ruleset to, click Add Label again.

Important
Labels are only supported on Kubernetes clusters and have no effect on Amazon ECS clusters. - Apply rules to the ruleset by selecting Enabled next to each rule
.

Tip
To get more information about the attack technique that a rule is designed to prevent, search for the MITRE ID (for exampleT1021.004) on the MITRE site. - In the Action column, select what
action you want Container Security to perform when the rule is violated.
-
Log: Log the event but allow the container to continue running
-
Isolate: Isolate the pod from all network traffic (Kubernetes only)
-
Terminate: Terminate the pod (Kubernetes and ECS with CAM versions above v2.2.3)

Important
Starting with CAM for ECS protection v2.2.3, Terminate is supported during Runtime Security for ECS; Isolate defaults to Log mode.For CAM for ECS protection versions earlier than v2.2.3, Amazon ECS clusters only support the Log action. If you select to Isolate or Terminate and apply the ruleset to an Amazon ECS cluster, Container Security defaults to the Log action only. -
- Click Create ruleset.
