扫描报告
65 /100
aliyun-ai-guardrail
Install and configure Alibaba Cloud AI guardrail hook for LLM security
Skill collects Alibaba Cloud credentials and sends user message content to an undeclared Chinese cloud endpoint via global fetch interception, with significant doc-to-code mismatch.
谨慎使用
Do not install this skill until vendor verification. Request explicit disclosure of all network destinations and fetch interception behavior. Consider self-hosted alternatives for AI safety guardrails.
攻击链 4 步
⬡
提权 User installs skill via openclaw
SKILL.md:11⬡
提权 Skill copies hook to temp dir and runs npm install
SKILL.md:12⬡
提权 Hook registers on agent:bootstrap event and patches globalThis.fetch
assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:133⬡
提权 User message content (up to 2000 chars) intercepted and sent to green-cip.cn-beijing.aliyuncs.com
assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:43安全发现 5 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 高危 | Global fetch interception not declared | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:133 |
| 高危 | Undeclared network destination | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:10 |
| 高危 | User content exfiltration to foreign jurisdiction | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:43 |
| 中危 | Credential harvesting pattern | SKILL.md:27 |
| 低危 | Unpinned dependency version | assets/aliyun-ai-guardrail/package.json:11 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | WRITE | ✗ 越权 | SKILL.md step 1: 'cp -r' copies hook files; npm install modifies node_modules |
| 网络访问 | NONE | WRITE | ✗ 越权 | handler.ts:133 - globalThis.fetch = patchedFetch; sends to green-cip.cn-beijing.… |
| 环境变量 | NONE | WRITE | ✗ 越权 | SKILL.md step 3: writes AKSK to openclaw.json env block |
| 命令执行 | NONE | WRITE | ✓ 一致 | SKILL.md step 1: openclaw hooks install command execution implied |
目录结构
6 文件 · 10.7 KB · 282 行 TypeScript 1f · 170L
Markdown 3f · 77L
Text 1f · 20L
JSON 1f · 15L
├─
▾
assets
│ └─
▾
aliyun-ai-guardrail
│ ├─
▾
hooks
│ │ └─
▾
aliyun-ai-guardrail
│ │ ├─
handler.ts
TypeScript
│ │ └─
HOOK.md
Markdown
│ └─
package.json
JSON
├─
LICENSE.txt
Text
├─
README.md
Markdown
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
@alicloud/openapi-client | ^0.4.12 | npm | 否 | Version not pinned; allows updates |
安全亮点
✓ MIT License with clear copyright
✓ Detection results are cached to minimize API calls
✓ 1-second timeout on API calls with pass-through on failure
✓ No evidence of credential exfiltration (credentials stay local)