Kubernetes Audit Logs Must Be Owned By Root
An XCCDF Rule
Description
All audit logs must be owned by root user and group. By default, the path for the Kubernetes audit log is
/var/log/kube-apiserver/. To properly set the owner of
/var/log/kube-apiserver
, run the command:
$ sudo chown root /var/log/kube-apiserverTo properly set the owner of
/var/log/kube-apiserver/*
, run the command:
$ sudo chown root /var/log/kube-apiserver/*
Rationale
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.
- ID
- xccdf_org.ssgproject.content_rule_file_ownership_var_log_kube_audit
- Severity
- Medium
- References
- Updated