klyc-pmm
蒸馏引擎通过本地PHP直接连接远程数据库(绕过API层),且hooks-pull将远程内容写入本地MEMORY.md,属越权阴影功能。昆仑令明文落盘存在凭证暴露风险。
Why this conclusion was reached
2/4 dimensions flagged3 undeclared or violating capabilities were inferred.
23 lower-risk artifacts were extracted and still need context.
The report includes 4 attack-chain steps and 2 severe findings.
4 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · klyc-pmm-src/scripts/pmm_distill.sh:47
Escalation · klyc-pmm-src/scripts/pmm_distill.sh:32
Impact · klyc-pmm-src/scripts/oneclick.sh:124
What drove the risk score up
pmm_distill.sh直接require远程服务器上的config.php并执行SQL写操作(软删除记录),完全绕过HTTPS API认证体系
pmm_hooks_pull自动将瑶池API返回的钩子内容写入本地MEMORY.md,存在远程内容注入风险,文档说明不够充分
昆仑令以明文写入MEMORY.md后同步到云端,虽有警告但实际暴露风险高
Most important evidence
蒸馏引擎数据库直连——绕过API认证体系
pmm_distill.sh通过PHP直接require远程服务器config.php(/www/wwwroot/kunlunyaochi/config.php)并执行SELECT/UPDATE/DELETE SQL操作,完全绕过HTTPS API认证和数据隔离机制,可访问并删除任意用户记忆数据。
klyc-pmm-src/scripts/pmm_distill.sh:47 蒸馏引擎硬编码多用户ID直接访问数据
pmm_distill.sh对user_id=2(瑶池)和user_id=3(昆仑)有硬编码映射,可跨AI体访问记忆数据,且蒸馏逻辑可执行软删除(标记is_deleted=1),存在越权访问和破坏数据的风险。
klyc-pmm-src/scripts/pmm_distill.sh:32 hooks-pull远程内容注入本地文件
pmm_hooks_pull自动将瑶池API返回的蒸馏钩子写入本地MEMORY.md的「蒸馏记忆钩子」章节。虽然SKILL.md提到了hooks-pull,但未明确说明远程内容会以追加方式直接写入用户文件,存在远程内容注入风险。
klyc-pmm-src/scripts/pmm_watch.sh:575 昆仑令明文落盘MEMORY.md存在凭证暴露风险
oneclick.sh将昆仑令(记忆恢复凭证)以明文形式写入MEMORY.md,该文件会被同步到云端并可能提交到公开仓库。虽然有安全警告,但凭证以纯文本存储在用户控制文件中,存在被窃取风险。
klyc-pmm-src/scripts/oneclick.sh:124 oneclick.sh安装系统依赖属于WRITE级shell操作
SKILL.md声明permissions为read/write config files和HTTPS API calls,但oneclick.sh执行apt-get/yum install安装系统包(curl/jq/inotify-tools),属于shell:WRITE级别操作,超出声明范围。
klyc-pmm-src/scripts/oneclick.sh:39 install-daemon.sh创建systemd服务实现持久化
守护安装脚本会写入/etc/systemd/system/klyc-pmm-watch.service并启用服务,实现文件监控的持久化运行。这是声明中的已知行为,但systemd服务创建属于高权限操作。
klyc-pmm-src/scripts/install-daemon.sh:118 Declared capability vs actual capability
oneclick.sh:1 声明 read/write config files pmm_distill.sh:47-72 直接连接数据库执行UPDATE/DELETE,绕过API层 oneclick.sh:39-41 执行apt-get/yum安装系统包(安装系统依赖属于WRITE级别) pmm_distill.sh硬编码user_id=2/3直接访问不同AI体的记忆数据 Suspicious artifacts and egress
https://kunlunyaochi.com/?route=services README.md:37
https://kunlunyaochi.com/klyc-pmm/ README.md:84
https://kunlunyaochi.com/?route=onboard README.md:89
https://kunlunyaochi.com/?route=pay&agent=xxx&tier=huhunfu README.md:200
https://kunlunyaochi.com/api/klyc-pmm-pay/resource.php README.md:218
https://kunlunyaochi.com README.md:511
https://skillhub.cn/skillpay klyc-pmm-src/references/pay-skill-spec.md:3
https://kunlunyaochi.com/klyc-pmm/...) klyc-pmm-src/scripts/pmm_boot.sh:46
https://kunlunyaochi.com/?route=recover klyc-pmm-src/scripts/pmm_boot.sh:47
https://kunlunyaochi.com/?route=join klyc-pmm-src/scripts/pmm_boot.sh:49
https://kunlunyaochi.com/klyc-pmm/... klyc-pmm-src/scripts/pmm_boot.sh:56
https://kunlunyaochi.com/klyc-pmm/TOKEN klyc-pmm-src/scripts/pmm_recover.sh:5
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| jq | * | system package | No | 无版本锁定,由apt/yum安装 |
| curl | * | system package | No | 无版本锁定,由apt/yum安装 |
| inotify-tools | * | system package | No | 无版本锁定,由apt/yum安装 |
| python3 (cryptography) | * | pip | No | 客户端加密降级依赖,无版本锁定 |
File composition
klyc-pmm-src/scripts/pmm_watch.sh README.md klyc-pmm-src/scripts/pmm_distill.sh klyc-pmm-src/scripts/oneclick.sh klyc-pmm-src/scripts/install-daemon.sh