Ensure that the container is restricted from acquiring additional privileges
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-docker-5.26 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Docker 5.26?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-docker-5-26)More formats (shields.io, HTML) on the badges page.
---
name: cis-docker-5.26
description: "Ensure that the container is restricted from acquiring additional privileges"
category: cis-docker
version: "1.8.0"
author: cyberstrike-official
tags: [cis, docker, linux, containers, runtime, seccomp]
cis_id: "5.26"
cis_benchmark: "CIS Docker Benchmark v1.8.0"
tech_stack: [linux, docker]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 5.26 Ensure that the container is restricted from acquiring additional privileges (Manual)
## Profile Applicability
- Level 1 - Docker - Linux
## Description
You should restrict the container from acquiring additional privileges via suid or sgid bits.
## Rationale
A process can set the `no_new_priv` bit in the kernel and this persists across forks, clones and execve. The `no_new_priv` bit ensures that the process and its child processes do not gain any additional privileges via suid or sgid bits. This reduces the danger associated with many operations because the possibility of subverting privileged binaries is lessened.
## Impact
The `no_new_priv` option prevents LSMs like SELinux from allowing processes to acquire new privileges
## Audit Procedure
You should run the following command:
```
docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: SecurityOpt={{ .HostConfig.SecurityOpt }}'
```
This command should return all the security options currently configured for containers. `no-new-privileges` should be one of them.
Note that the SecurityOpt response will be empty (i.e. `SecurityOpt=<no value>`) even if `"no-new-privileges": true` has been configured in the Docker daemon.json configuration file.
## Remediation
You should start your container with the options below:
```
docker run --rm -it --security-opt=no-new-privileges ubuntu bash
```
## Default Value
By default, new privileges are not restricted.
## References
1. https://docs.docker.com/engine/reference/run/#security-configuration
2. https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ---- | ---- |
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts<br>Restrict administrator privileges to dedicated administrator accounts on enterprise assets. Conduct general computing activities, such as internet browsing, email, and productivity suite use, from the user's primary, non-privileged account. | ● | ● | ● |
| v7 | 4 Controlled Use of Administrative Privileges<br>Controlled Use of Administrative Privileges | | | |
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!