Reading a securityContext
Which container securityContext best limits what an attacker can do after exploiting the app?
securityContext
Part of Prepare for the KCSA. Next step: Audit Log Levels
Choose one answer
privileged: true, runAsUser: 0 and hostPID: true
privileged: true
runAsUser: 0
hostPID: true
allowPrivilegeEscalation: true and capabilities.add: [SYS_ADMIN]
allowPrivilegeEscalation: true
capabilities.add: [SYS_ADMIN]
readOnlyRootFilesystem: false and runAsNonRoot: false
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsNonRoot, no escalation, drop: [ALL], read-only root
runAsNonRoot
drop: [ALL]