Skip to content

Instantly share code, notes, and snippets.

@ritesh
Created April 30, 2026 09:10
Show Gist options
  • Select an option

  • Save ritesh/1e91286b4cb28028d71c8603a77e2ab3 to your computer and use it in GitHub Desktop.

Select an option

Save ritesh/1e91286b4cb28028d71c8603a77e2ab3 to your computer and use it in GitHub Desktop.
testing seccomp profiles for cve 2026-31431. needs to be in the k8s kubelet seccomp root: /var/lib/kubelet/seccomp/deny-af-alg.json
apiVersion: v1
kind: Pod
metadata:
name: no-af-alg
spec:
securityContext:
seccompProfile:
type: Localhost
localhostProfile: deny-af-alg.json
containers:
- name: app
image: coolbeans-image
{
"defaultAction": "SCMP_ACT_ALLOW",
"architectures": [
"SCMP_ARCH_X86_64",
"SCMP_ARCH_AARCH64"
],
"syscalls": [
{
"names": ["socket"],
"action": "SCMP_ACT_ERRNO",
"errnoRet": 1,
"args": [
{
"index": 0,
"value": 38,
"op": "SCMP_CMP_EQ"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment