扫描报告
28 /100
k3s-deploy
自动化部署 K3s Kubernetes 集群到多台 Linux 服务器
A legitimate K3s cluster deployment tool with documented remote SSH execution and shell capabilities, but with weak credential handling patterns (passwords as CLI arguments) and an undeclared `curl|sh` remote script execution pattern.
可以安装
Accept for use but replace password-based SSH with key-based auth; document the `curl -sfL https://get.k3s.io | sh` behavior in SKILL.md; avoid passing credentials via command-line arguments.
安全发现 5 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 中危 | Undeclared `curl|sh` remote script execution 文档欺骗 | scripts/deploy-k3s.sh:98 |
| 中危 | Credentials passed via command-line arguments 凭证窃取 | scripts/deploy-k3s.sh:24 |
| 低危 | K3s cluster token written to world-readable temp file 数据外泄 | scripts/deploy-k3s.sh:105 |
| 低危 | Modifies /etc/fstab and /etc/cni/net.d on remote systems 权限提升 | scripts/deploy-k3s.sh:88 |
| 提示 | Remote script fetched from external URL without integrity check 供应链 | scripts/deploy-k3s.sh:98 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | WRITE | WRITE | ✓ 一致 | SKILL.md declares remote SSH deployment; scripts/deploy-k3s.sh:59-61 execute arb… |
| 网络访问 | NONE | READ | ✓ 一致 | scripts/deploy-k3s.sh:98 `curl -sfL https://get.k3s.io` fetches K3s installer; i… |
| 文件系统 | NONE | WRITE | ✓ 一致 | scripts/deploy-k3s.sh:109 writes kubeconfig to ~/.kube/config; line 254 writes C… |
| 环境变量 | NONE | READ | ✓ 一致 | scripts/deploy-k3s.sh:105 reads K3S_TOKEN from remote /var/lib/rancher/k3s/serve… |
| 技能调用 | NONE | NONE | — | No cross-skill invocation found |
| 剪贴板 | NONE | NONE | — | No clipboard access |
| 浏览器 | NONE | NONE | — | No browser access |
| 数据库 | NONE | NONE | — | No database access |
1 严重 5 项发现
严重 危险命令 危险 Shell 命令
curl -sfL https://get.k3s.io | sh scripts/deploy-k3s.sh:98 中危 外部 URL 外部 URL
https://docker.mirrors.ustc.edu.cn references/troubleshooting.md:224 中危 外部 URL 外部 URL
https://hub-mirror.c.163.com references/troubleshooting.md:225 中危 外部 URL 外部 URL
https://get.k3s.io scripts/deploy-k3s.sh:98 中危 外部 URL 外部 URL
https://$MASTER_IP:6443 scripts/deploy-k3s.sh:135 目录结构
4 文件 · 20.3 KB · 867 行 Shell 2f · 472L
Markdown 2f · 395L
├─
▾
references
│ └─
troubleshooting.md
Markdown
├─
▾
scripts
│ ├─
deploy-k3s.sh
Shell
│ └─
pull-images.sh
Shell
└─
SKILL.md
Markdown
安全亮点
✓ No obfuscation or base64-encoded commands detected
✓ No credential exfiltration or C2 communication patterns
✓ No access to ~/.ssh, ~/.aws, or other credential storage paths
✓ No supply_chain typosquatting or malicious dependencies (no package manager files)
✓ No prompt injection or hidden instructions in comments
✓ All shell operations are directly related to the documented K3s deployment purpose
✓ Uses sshpass for SSH which is a legitimate deployment tool
✓ Image sources use known Chinese cloud registries (Huawei Cloud, Alibaba Cloud) appropriate for the deployment region