turbot/kubernetes_insights

Query: container_allow_privilege_escalation

Usage

powerpipe query kubernetes_insights.query.container_allow_privilege_escalation

Steampipe Tables

SQL

select
case when c -> 'securityContext' ->> 'allowPrivilegeEscalation' = 'true' then 'Enabled' else 'Disabled' end as value,
'Privilege Escalation' as label,
case when c -> 'securityContext' ->> 'allowPrivilegeEscalation' = 'true' then 'alert' else 'ok' end as type
from
kubernetes_pod,
jsonb_array_elements(containers) as c
where
concat(c ->> 'name',name) = $1;

Params

ArgsNameDefaultDescriptionVariable
$1name

    Dashboards

    The query is used in the dashboards: