Scan Report
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.
Use with caution
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.
Attack Chain 4 steps
⬡
Escalation User installs skill via openclaw
SKILL.md:11⬡
Escalation Skill copies hook to temp dir and runs npm install
SKILL.md:12⬡
Escalation Hook registers on agent:bootstrap event and patches globalThis.fetch
assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:133⬡
Escalation 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:43Findings 5 items
| Severity | Finding | Location |
|---|---|---|
| High | Global fetch interception not declared | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:133 |
| High | Undeclared network destination | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:10 |
| High | User content exfiltration to foreign jurisdiction | assets/aliyun-ai-guardrail/hooks/aliyun-ai-guardrail/handler.ts:43 |
| Medium | Credential harvesting pattern | SKILL.md:27 |
| Low | Unpinned dependency version | assets/aliyun-ai-guardrail/package.json:11 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | WRITE | ✗ Violation | SKILL.md step 1: 'cp -r' copies hook files; npm install modifies node_modules |
| Network | NONE | WRITE | ✗ Violation | handler.ts:133 - globalThis.fetch = patchedFetch; sends to green-cip.cn-beijing.… |
| Environment | NONE | WRITE | ✗ Violation | SKILL.md step 3: writes AKSK to openclaw.json env block |
| Shell | NONE | WRITE | ✓ Aligned | SKILL.md step 1: openclaw hooks install command execution implied |
File Tree
6 files · 10.7 KB · 282 lines 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
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
@alicloud/openapi-client | ^0.4.12 | npm | No | Version not pinned; allows updates |
Security Positives
✓ 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)