x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/cloud-native/tools/docker-bench-security.md
View on GitHub# docker-bench-security
- **Category**: Cloud-Native / Container Runtime Audit
- **Risk Level**: 🟢 Low
---
## 描述
按 Docker 安全最佳实践检查 Docker 主机,检查 daemon 配置、容器、镜像、网络配置、日志记录和 Docker socket 暴露。
## 安装
```bash
git clone https://github.com/docker/docker-bench-security.git
cd docker-bench-security
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-c <check>` | 运行指定 check 或 section |
| `-e <check>` | 排除指定 check |
| `-l <file>` | 日志输出文件 |
| `-u <users>` | 受信任的 Docker 用户列表(逗号分隔) |
| `-i <include>` | 按容器或镜像名称模式过滤(逗号分隔,仅检查匹配项) |
| `-x <exclude>` | 按容器或镜像名称模式排除(逗号分隔,跳过匹配项) |
| `-t <label>` | 按容器或镜像标签过滤(逗号分隔) |
| `-n <limit>` | JSON 输出中每个列表的最大报告条数(默认 `0`,不限制) |
| `-p` | 打印修复建议(默认不打印修复建议) |
| `-b` | 不打印颜色 |
| `-h` | 帮助 |
## 常用命令
```bash
# 在 Docker 主机上运行
sudo ./docker-bench-security.sh -l /tmp/docker-bench.log
# 通过容器化方式挂载主机路径运行
docker run --rm --net host --pid host --userns host --cap-add audit_control \
-v /etc:/etc:ro -v /usr/bin/containerd:/usr/bin/containerd:ro \
-v /usr/bin/runc:/usr/bin/runc:ro -v /usr/lib/systemd:/usr/lib/systemd:ro \
-v /var/lib:/var/lib:ro -v /var/run/docker.sock:/var/run/docker.sock:ro \
--label docker_bench_security docker/docker-bench-security
```
## 注意事项
1. 需要 Docker 主机访问权限,而不仅是普通应用容器。
2. 发现通常是配置风险;评定严重性前要验证业务影响。
3. 挂载 Docker socket 通常是高影响提权路径。
---
## 官方参考
- [docker-bench-security GitHub](https://github.com/docker/docker-bench-security)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |