Detection rules › Falco
ClusterRole With Pod Exec Created
Detect any attempt to create a Role/ClusterRole that can exec to pods
Telemetry coverage
| Platform | Record / event type |
|---|---|
| Kubernetes | create-clusterroles: create clusterroles |
| Kubernetes | create-roles: create roles |
Rules detecting the same action
These rules filter on the same operation.
- ClusterRole With Wildcard Created (Falco)
- ClusterRole With Write Privileges Created (Falco)
- Direct Interactive Kubernetes API Request by Unusual Utilities (Elastic)
- GKE Creation or Modification of Sensitive Role (Elastic)
- GKE Sensitive RBAC Change Followed by Workload Modification (Elastic)
- GKE Service Account Modified RBAC Objects (Elastic)
- K8s ClusterRole Created (Falco)
- K8s Role Created (Falco)
Stages and Predicates
Stage 1: falco_condition
and
or
objectRef.resource eq "clusterroles"
objectRef.resource eq "roles"
requestObject.role.rules.resources eq "pods/exec"
stage eq "ResponseComplete"
verb eq "create"
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
objectRef.resource | eq |
| field:"objectRef.resource" kind:eq |
requestObject.role.rules.resources | in |
| field:"requestObject.role.rules.resources" kind:in value:"pods/exec" |
stage | in |
| field:"stage" kind:in value:"ResponseComplete" |
verb | eq |
| field:"verb" kind:eq value:"create" |