Scan Report
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.
Safe to install
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.
Findings 5 items
| Severity | Finding | Location |
|---|---|---|
| Medium | Undeclared `curl|sh` remote script execution Doc Mismatch | scripts/deploy-k3s.sh:98 |
| Medium | Credentials passed via command-line arguments Credential Theft | scripts/deploy-k3s.sh:24 |
| Low | K3s cluster token written to world-readable temp file Data Exfil | scripts/deploy-k3s.sh:105 |
| Low | Modifies /etc/fstab and /etc/cni/net.d on remote systems Priv Escalation | scripts/deploy-k3s.sh:88 |
| Info | Remote script fetched from external URL without integrity check Supply Chain | scripts/deploy-k3s.sh:98 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Shell | WRITE | WRITE | ✓ Aligned | SKILL.md declares remote SSH deployment; scripts/deploy-k3s.sh:59-61 execute arb… |
| Network | NONE | READ | ✓ Aligned | scripts/deploy-k3s.sh:98 `curl -sfL https://get.k3s.io` fetches K3s installer; i… |
| Filesystem | NONE | WRITE | ✓ Aligned | scripts/deploy-k3s.sh:109 writes kubeconfig to ~/.kube/config; line 254 writes C… |
| Environment | NONE | READ | ✓ Aligned | scripts/deploy-k3s.sh:105 reads K3S_TOKEN from remote /var/lib/rancher/k3s/serve… |
| Skill Invoke | NONE | NONE | — | No cross-skill invocation found |
| Clipboard | NONE | NONE | — | No clipboard access |
| Browser | NONE | NONE | — | No browser access |
| Database | NONE | NONE | — | No database access |
1 Critical 5 findings
Critical Dangerous Command 危险 Shell 命令
curl -sfL https://get.k3s.io | sh scripts/deploy-k3s.sh:98 Medium External URL 外部 URL
https://docker.mirrors.ustc.edu.cn references/troubleshooting.md:224 Medium External URL 外部 URL
https://hub-mirror.c.163.com references/troubleshooting.md:225 Medium External URL 外部 URL
https://get.k3s.io scripts/deploy-k3s.sh:98 Medium External URL 外部 URL
https://$MASTER_IP:6443 scripts/deploy-k3s.sh:135 File Tree
4 files · 20.3 KB · 867 lines Shell 2f · 472L
Markdown 2f · 395L
├─
▾
references
│ └─
troubleshooting.md
Markdown
├─
▾
scripts
│ ├─
deploy-k3s.sh
Shell
│ └─
pull-images.sh
Shell
└─
SKILL.md
Markdown
Security Positives
✓ 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