用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-docker-v170-5-13命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
| name | cis-docker-v170-5.13 |
| description | Ensure that the container's root filesystem is mounted as read only |
| category | cis-docker |
| version | 1.7.0 |
| author | cyberstrike-official |
| tags | ["cis","docker","runtime","configuration","read-only"] |
| cis_id | 5.13 |
| cis_benchmark | CIS Docker Benchmark v1.7.0 |
| tech_stack | ["docker"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
The container's root filesystem should be treated as a 'golden image' by using Docker run's --read-only option. This prevents any writes to the container's root filesystem at container runtime and enforces the principle of immutable infrastructure.
Enabling this option forces containers at runtime to explicitly define their data writing strategy to persist or not persist their data.
This also reduces security attack vectors since the container instance's filesystem cannot be tampered with or written to unless it has explicit read-write permissions on its filesystem folder and directories.
Enabling --read-only at container runtime may break some container OS packages if a data writing strategy is not defined. You should define what the container's data should and should not persist at runtime in order to decide which strategy to use.
Example:
--tmpfs for temporary file writes to /tmpYou should run the following command on the docker host:
docker ps --quiet --all | xargs docker inspect --format='{{ .Id }}: ReadonlyRootfs={{ .HostConfig.ReadonlyRootfs }}'
If the above command returns true, it means the container's root filesystem is mounted read-only.
If the above command returns false, it means the container's root filesystem is writeable.
You should add a --read-only flag at a container's runtime to enforce the container's root filesystem being mounted as read only.
docker run <Run arguments> --read-only <Container Image Name or ID> <Command>
Enabling the --read-only option at a container's runtime should be used by administrators to force a container's executable processes to only write container data to explicit storage locations during its lifetime.
Examples of explicit storage locations during a container's runtime include, but are not limited to:
--tmpfs option to mount a temporary file system for non-persistent data writes.docker run --interactive -- --read-only --tmpfs --tmpfs centos /bin/bash
docker run --interactive --tty --read-only -v /opt/app/data:/run/app/data:rw centos /bin/bash
docker volume create -d convoy --opt o=size=20GB my-named-volume
docker run --interactive --tty --read-only -v my-named-volume:/run/app/data centos /bin/bash
By default, a container has its root filesystem writeable, allowing all container processes to write files owned by the container's actual runtime user.
v8:
v7:
Manual