Back to skill

Security audit

bailian-ai-toolkit

Security checks for vulnerabilities and agentic risk

Overview

This skill is a clearly scoped Alibaba Cloud Bailian CLI helper with disclosed cloud data sharing and user-consent checks.

Before installing, understand that using the skill can send prompts, URLs, search queries, generated content, and explicitly approved local files to Alibaba Cloud Bailian, and OAuth login may save a session locally. Only use it with files and accounts you are comfortable sending to that service.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 12)May include surrounding context.

md
本目录固定使用 `bailian-cli@1.26.0`,传递依赖由 `package-lock.json` 锁定。不要全局安装,不要运行远程安装脚本,也不要调用内置自更新命令。

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 20)May include surrounding context.

md
const skill = fs.readFileSync(path.join(root, 'SKILL.md'), 'utf8');
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
const lock = JSON.parse(fs.readFileSync(path.join(root, 'package-lock.json'), 'utf8'));
const npmrc = fs.readFileSync(path.join(root, '.npmrc'), 'utf8');

assert.equal(pkg.dependencies['bailian-cli'], '1.26.0');
assert.equal(lock.packages[''].dependencies['bailian-cli'], '1.26.0');

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/security.test.cjs (reported line 9)May include surrounding context.

js
const skill = fs.readFileSync(path.join(root, 'SKILL.md'), 'utf8');
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
const lock = JSON.parse(fs.readFileSync(path.join(root, 'package-lock.json'), 'utf8'));
const npmrc = fs.readFileSync(path.join(root, '.npmrc'), 'utf8');

assert.equal(pkg.dependencies['bailian-cli'], '1.26.0');
assert.equal(lock.packages[''].dependencies['bailian-cli'], '1.26.0');

Static analysis

No suspicious patterns detected.