T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:79- Finding
Container Deployed with Excessive Host Privileges
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Xunlei guide is mostly explanatory, but its NAS Docker command grants a third-party container broad host-level access without enough warning or scoping.
Review this skill carefully before installing or following its NAS setup. The general download guidance is ordinary, but do not run the provided Docker command as-is on a NAS. Prefer a pinned and verified image digest, bridge networking with only the needed port published, no privileged mode unless the image documents a specific requirement, a dedicated non-root user, narrowly scoped writable volumes, and explicit firewall/authentication controls for the web interface.
SKILL.md:79Container Deployed with Excessive Host Privileges
SKILL.md:79Unpinned Third-Party Container Image Creates a Supply-Chain Risk
--net host places the container directly on the host network stack, bypassing normal network namespace isolation and increasing exposure of host services and ports. If the application is vulnerable or misconfigured, attackers may gain easier lateral visibility or access to services on the NAS and LAN.
docker run -d --name xunlei \
--hostname mynas \
--net host \
-v /path/to/downloads:/xunlei/downloads \
-v /path/to/data:/xunlei/data \
--restart unless-stopped \
--privileged gives the container near-host-level capabilities, substantially weakening container isolation and making breakout or host tampering far easier if the image is compromised or the application is exploited. This is especially dangerous in a NAS environment where the container also has mounted storage and may handle untrusted content and network input.
-v /path/to/downloads:/xunlei/downloads
-v /path/to/data:/xunlei/data
--restart unless-stopped
--privileged
cnk3x/xunlei:latest
- 访问 `http://NAS_IP:2345` 进入 Web 管理界面
Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
The skill provides copy-paste Docker deployment instructions that include high-risk options (--privileged and host networking) without clearly warning about the resulting host exposure. In a NAS/home-server context, users are likely to run this as-is, potentially granting a third-party container broad access to the host and adjacent services.
No suspicious patterns detected.