Library

Command reference

Search the live database for syntax, tools, use cases, tags, MITRE context, and safe lab-ready command examples.

10 results Clear filters
Defensive Intermediate Free

List service account token secrets.

List service account token secrets.

kubectl get secrets -A --field-selector type=kubernetes.io/service-account-token
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Inspect pod security and runtime details.

Inspect pod security and runtime details.

kubectl describe pod web-frontend -n production
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Extract pod security contexts.

Extract pod security contexts.

kubectl get pods -A -o jsonpath="{..securityContext}"
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Review cluster events by time.

Review cluster events by time.

kubectl get events -A --sort-by=.metadata.creationTimestamp
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

List validating admission webhooks.

List validating admission webhooks.

kubectl get admissionregistration.k8s.io/validatingwebhookconfigurations
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Review pod resource usage for anomalies.

Review pod resource usage for anomalies.

kubectl top pods -A
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Review current Kubernetes RBAC permissions.

Review current Kubernetes RBAC permissions.

kubectl auth can-i --list
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

List pods across namespaces with node context.

List pods across namespaces with node context.

kubectl get pods -A -o wide
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Review Kubernetes network policies.

Review Kubernetes network policies.

kubectl get networkpolicies -A
kubernetes container-security expanded-library
Kubernetes / Container Security Open
Defensive Intermediate Free

Review RBAC bindings.

Review RBAC bindings.

kubectl get rolebindings,clusterrolebindings -A
kubernetes container-security expanded-library
Kubernetes / Container Security Open