Back to skill

Security audit

alibabacloud-idaas-conditional-access

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it found a high impact policy activation flaw and could not fully inspect part of a script; the evidence is incomplete.

Consider not installing until the policy activation issue is fixed and the partially inspected script is fully reviewed. The verdict is suspicious, not malicious, and the medium overall confidence reflects that the evidence is incomplete.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/ca_lifecycle.py plan --plan-file PLAN.json --intent-file INTENT.json \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/ca_lifecycle.py plan-delete --plan-file PLAN.json \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/ca_lifecycle.py apply --plan-file PLAN.json --approved-plan SHA256

Create apply can enable a policy already known not to match the approved plan.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The create flow calculates readback_match but enables a disabled policy before checking whether that comparison failed. Consequently, a policy already known to differ from the approved plan can become active; in conditional access, mismatched decisions or conditions could bypass intended restrictions or lock users out, and returning blocked afterward does not undo activation.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/ca_preflight.py (reported line 87)May include surrounding context.

python
def run(argv, timeout=TIMEOUT):
    env = os.environ.copy()
    env['ALIBABA_CLOUD_USER_AGENT'] = user_agent()
    return subprocess.run(argv, capture_output=True, text=True, timeout=timeout,
                          stdin=subprocess.DEVNULL, env=env)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/ca_lifecycle.py (reported line 235)May include surrounding context.

python
for app_id in app_ids:
        argv.extend(['--app-id', app_id])
    try:
        proc = subprocess.run(argv, capture_output=True, text=True, timeout=300)
    except subprocess.TimeoutExpired:
        evidence.append({'product': 'local', 'action': 'ca_preflight', 'error': 'timeout'})
        return {'status': 'discovery_incomplete'}

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/ca_preflight.py (reported line 89)May include surrounding context.

python
def run(argv, timeout=TIMEOUT):
    env = os.environ.copy()
    env['ALIBABA_CLOUD_USER_AGENT'] = user_agent()
    return subprocess.run(argv, capture_output=True, text=True, timeout=timeout,
                          stdin=subprocess.DEVNULL, env=env)