Json Yaml Seccomp Profile Unconfined
Description
Detects Kubernetes containers with missing or unsafe seccomp profiles. Running containers without seccomp profiles or with "unconfined" profiles removes important system call restrictions, potentially allowing containers to make dangerous system calls that could compromise host security.
Detection Strategy
• Examines Kubernetes container specifications in YAML/JSON configurations
• Reports a vulnerability if a container has no securityContext configuration
• Reports a vulnerability if securityContext exists but has no seccomp type defined
• Reports a vulnerability if seccomp profile type is explicitly set to 'unconfined'
• Checks both pod-level and container-level securityContext configurations
Vulnerable code example
apiVersion: batch/v1
kind: CronJob
metadata:
name: demo-job
spec:
schedule: "0 * * * *"
jobTemplate:
spec:...✅ Secure code example
apiVersion: batch/v1
kind: CronJob
metadata:
name: demo-job
spec:
schedule: "0 * * * *"
jobTemplate:
spec:...Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.