tunnel-proxy
This skill is explicitly documented as a RAT (Remote Access Trojan) framework that grants cloud-hosted AI agents unrestricted shell access and full filesystem control on the user's local machine, enabling arbitrary command execution, bidirectional file transfer, and network tunneling through the user's IP — all of which is fully declared but represents extreme danger if the agent is compromised or untrusted.
The skill enables the AI agent to obtain a one-time PTY session and send arbitrary bytes directly to a raw TCP socket. tunnel_login.py opens a socket, connects to the PTY port, and sends b'ls -la\n' — this pattern executes ANY command the agent submits with no validation, no logging visible to the agent, and no user confirmation. The 10-second PTY timeout is trivial to bypass by repeatedly requesting new sessions.
scripts/tunnel_login.py:12 为什么得出这个结论
2/4 个维度触发声明资源与推断能力基本一致。
提取到 3 个高危 IOC 或外联信号。
报告包含 6 步攻击链,另有 3 项高危或严重发现。
发现 1 项需要关注的依赖或供应链线索。
攻击链
初始入口 · README.md:28
初始入口 · SKILL.md:105
权限提升 · SKILL.md:115
权限提升 · scripts/tunnel_login.py:12
最终危害 · scripts/http_transfer.py:41
最终危害 · SKILL.md:87
风险分是怎么被拉高的
SKILL.md metadata frontmatter explicitly calls this '🐴 RAT (Remote Access Trojan)'
Agent can obtain a one-time PTY session and execute any shell command with no filtering, whitelisting, or confirmation (tunnel_login.py line 12-13: raw socket.send of arbitrary bytes)
http_transfer.py downloads and uploads any file path on the user's filesystem with no path restrictions (line 41-42, 54)
Agent can route external requests through the user's network connection, enabling IP spoofing for illegal activities
最关键的证据
Unrestricted PTY shell access granted to agent
The skill enables the AI agent to obtain a one-time PTY session and send arbitrary bytes directly to a raw TCP socket. tunnel_login.py opens a socket, connects to the PTY port, and sends b'ls -la\n' — this pattern executes ANY command the agent submits with no validation, no logging visible to the agent, and no user confirmation. The 10-second PTY timeout is trivial to bypass by repeatedly requesting new sessions.
scripts/tunnel_login.py:12 No path restrictions on file transfer operations
http_transfer.py can download or upload any path on the user's filesystem (e.g., ~/.ssh/id_rsa, ~/.aws/credentials, /etc/passwd) without any path sandboxing. The agent can traverse directories arbitrarily and overwrite any file.
scripts/http_transfer.py:41 No command output filtering or logging controls
SKILL.md describes command execution and file browsing but provides no mechanism for the user to audit what the agent did. The PTY channel returns raw output with no centralized logging. An agent could silently exfiltrate sensitive files and delete evidence.
scripts/tunnel_login.py:13 SKILL.md metadata frontmatter declares RAT intent explicitly
The metadata YAML block in SKILL.md contains 'description: > 🐴 RAT (Remote Access Trojan) for AI agents. What it does: Agent sends commands → Your machine executes them.' This is an honest declaration of intent but is buried in YAML frontmatter rather than prominent prose.
SKILL.md:2 No process-level isolation declared or enforced
README.md mentions using 'sudo or rbash' as an optional safeguard, but the skill does not implement any technical controls to enforce restricted execution. Any command including privilege-escalation attempts runs as the TunnelProxy process user.
README.md:60 Dependency versions not pinned
requirements.txt declares 'requests' without a version constraint, allowing any version to be installed including potentially vulnerable ones.
requirements.txt:1 声明能力 vs 实际能力
PTY session via /api/session → raw socket (tunnel_login.py:12) download()/upload() in http_transfer.py:41-58 urllib.request for all HTTP API calls 可疑产物与外联
rm -rf / README.md:28
curl ... | sh README.md:28
rm -rf ~ references/README_for_agent.md:46
http://127.0.0.1:8080 README.md:102
https://hex.pm/packages/tunnel_proxy README.md:175
https://blocked-site.com SKILL.md:87
https://httpbin.org/ip SKILL.md:198
http://internal-company-server/api/data SKILL.md:292
http://127.0.0.1:8080/path/to/large.bin references/TIPS.md:120
https://slow-site.com references/TIPS.md:151
http://127.0.0.1:8080/upload references/TIPS.md:162
https://en.wikipedia.org/wiki/Pseudoterminal references/TIPS.md:262
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| requests | * | pip | 否 | Version not pinned — could resolve to a vulnerable version |
文件构成
SKILL.md references/TIPS.md README.md references/README_for_agent.md scripts/http_transfer.py skill-card.md scripts/tunnel_login.py requirements.txt