/prodsec-skills:linux-capabilitiesfrom prodsec-skills
Reviews and restricts Linux capabilities in Kubernetes pod security contexts. Use when auditing or writing security policies that drop or add capabilities like NET_ADMIN, SYS_ADMIN, or BPF.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Restrict Linux capabilities to the minimum set required by each container. The default approach is to drop all capabilities and selectively add only those the workload needs.
Every container should drop all Linux capabilities unless specific ones are required:
securityContext:
capabilities:
drop: ["ALL"]
At minimum, containers must drop MKNOD, SETUID, SETGID, and KILL. Dropping ALL is preferred as it is simpler and more restrictive.
The following capabilities are restricted by the certsuite and should not be added unless the workload has a documented exception.
Provides extensive privileges including mounting filesystems, configuring namespaces, and performing many administrative operations. This is the most dangerous capability — effectively equivalent to running as root.
Required for: all profiles (mandatory) — containers must not use SYS_ADMIN
Allows network configuration changes including interface configuration, firewall rules (iptables/nftables), and routing tables. Workload pods must not configure nftables or iptables — these should be managed by platform operators (e.g., Performance Addon Operator, Istio).
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
Exception: User plane or networking functions (e.g., SR-IOV, Multicast) may request an exception with documentation of which container needs the capability and why.
Enables raw socket creation and packet manipulation. Required together with NET_ADMIN for nftables modification, which workload pods should not do.
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
Exception: User plane or networking functions may request an exception.
Allows loading eBPF programs into the kernel. eBPF can bypass security controls, monitor other processes, and potentially compromise the host.
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
Allows locking memory pages with mlock(), mlockall(), shmctl(), and mmap(). Locked memory cannot be swapped, potentially causing denial of service.
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
Exception: DPDK applications that require locked memory for packet buffers may request an exception.
Some workloads must add specific capabilities to perform their required operations.
Pods scheduled to nodes with a real-time kernel must add SYS_NICE to allow DPDK applications to switch to SCHED_FIFO scheduling.
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
securityContext:
capabilities:
drop: ["ALL"]
add: ["SYS_NICE"]
When shareProcessNamespace: true is set on a pod, containers that need to send signals to processes in other containers (e.g., SIGHUP) must have SYS_PTRACE.
Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)
spec:
shareProcessNamespace: true
containers:
- name: app
securityContext:
capabilities:
drop: ["ALL"]
add: ["SYS_PTRACE"]
drop: ["ALL"]) or at minimum MKNOD, SETUID, SETGID, KILLSYS_ADMINNET_ADMIN unless documented exception for user plane functionsNET_RAW unless documented exception for user plane functionsBPFIPC_LOCK unless documented exception for DPDKSYS_NICEshareProcessNamespace: true add SYS_PTRACE where needed| Guidance | Certsuite Test ID | Profiles |
|---|---|---|
| No SYS_ADMIN | access-control-sys-admin-capability-check | All profiles: mandatory |
| No NET_ADMIN | access-control-net-admin-capability-check | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
| No NET_RAW | access-control-net-raw-capability-check | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
| No BPF | access-control-bpf-capability-check | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
| No IPC_LOCK | access-control-ipc-lock-capability-check | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
| SYS_NICE on RT nodes | access-control-sys-nice-realtime-capability | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
| SYS_PTRACE with shared PID | access-control-sys-ptrace-capability | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job