Back to skill

Security audit

alibabacloud-idaas-cloud-identity-setup

Security checks for vulnerabilities and agentic risk

Overview

This skill’s cloud-account access and configuration changes fit its stated purpose and require a confirmed plan.

Use scoped cloud profiles and review the exact accounts, trust relationships and policy changes before confirming. Configuration persists, and partial failures may leave completed resources. The optional private-API transport requires deployment authorization and may be unavailable.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (30)

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 134)May include surrounding context.

md
Run `scripts/skill_ua.py` and the requested `scripts/cloud_identity_preflight.py`

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 258)May include surrounding context.

md
python3 scripts/cloud_identity_preflight.py --vendor VENDOR --account-id ACCOUNT_ID --instance-id INSTANCE_ID --eiam-profile EIAM_PROFILE --cloud-profile CLOUD_

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 134)May include surrounding context.

md
Run `scripts/skill_ua.py` and the requested `scripts/cloud_identity_preflight.py`

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 287)May include surrounding context.

md
Run `python3 scripts/skill_ua.py` with SKILL_SESSION_ID set to obtain that value.

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 144)May include surrounding context.

md
writes, use `scripts/alibaba_account_lifecycle.py plan --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 154)May include surrounding context.

md
reuse as successful new creation. Only then execute `scripts/alibaba_account_lifecycle.py apply

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 185)May include surrounding context.

md
requests, read [getting-started.md](references/getting-started.md) and present

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 192)May include surrounding context.

md
security domains. Read [ram-identity.md](references/ram-identity.md) and

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 193)May include surrounding context.

md
[ram-policies.md](references/ram-policies.md) before planning.

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 210)May include surrounding context.

md
Read [setup.md](references/setup.md) and only the selected provider reference:

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 219)May include surrounding context.

md
call; follow the ordered preparation in [setup.md](references/setup.md). Never

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 211)May include surrounding context.

md
[Alibaba Cloud](references/alibaba-cloud.md), [AWS](references/aws.md), or

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 211)May include surrounding context.

md
[Alibaba Cloud](references/alibaba-cloud.md), [AWS](references/aws.md), or

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 212)May include surrounding context.

md
[Tencent Cloud](references/tencent-cloud.md). For Windows, also read

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 213)May include surrounding context.

md
[windows.md](references/windows.md). Scripts use only the Python standard library;

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 235)May include surrounding context.

md
`scripts/eiam_auxiliary_api.py`. Its optional official dependencies are

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 245)May include surrounding context.

md
Read [eiam-auxiliary-api.md](references/eiam-auxiliary-api.md) for required inputs,

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 283)May include surrounding context.

md
Read the version only from [manifest.json](references/manifest.json). Generate

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 377)May include surrounding context.

md
Read [evaluation.md](references/evaluation.md) for release validation and known

Instruction Override

High
Category
Prompt Injection
Confidence
90% confidence
Finding

This pattern attempts to override system instructions or ignore safety constraints. Without LLM analysis, manual review is recommended.

Content

Scanner excerpt · references/setup.md (reported line 45)May include surrounding context.

md
callback or polling result. Enter a required one-time code in the local
terminal, not chat. Verify full identity immediately after login.

Do not override system browser settings or substitute system executables.
Windows uses supported official CLI login and Start-Process where necessary;
no macOS open command or Linux xdg-open is assumed.

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/alibaba_account_lifecycle.py (reported line 202)May include surrounding context.

python
return
    for action in ('get-cloud-account-role-config', 'check-cloud-account-role-config'):
        argv = [preflight.cli_path('aliyun'), 'eiam', action, '--help']
        env = os.environ.copy()
        env['ALIBABA_CLOUD_USER_AGENT'] = user_agent()
        try:
            proc = subprocess.run(argv, capture_output=True, text=True, timeout=20,

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/cloud_identity_preflight.py (reported line 86)May include surrounding context.

python
def run_json(argv: list[str]) -> dict[str, Any]:
    try:
        env = os.environ.copy()
        if pathlib.Path(argv[0]).stem.lower() == 'aliyun':
            env['ALIBABA_CLOUD_USER_AGENT'] = user_agent()
        completed = subprocess.run(argv, check=False, text=True, capture_output=True, timeout=60, env=env, stdin=subprocess.DEVNULL)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, 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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
The executor's site default is only a candidate, not identity evidence.

Explain the four phases: check environment and identities, prepare a concrete
plan, obtain one confirmation, configure and verify. Do not ask users to send
keys, tokens, authorization codes, or callback URLs through chat.

## Environment and identity discovery

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · references/getting-started.md (reported line 18)May include surrounding context.

md
Explain that the skill checks environment and identities, prepares one concrete
change plan, asks for confirmation once, and configures/verifies the account.
Do not introduce profiles, IAM policies, or OIDC jargon before it is needed.
Do not ask the user to send keys, tokens, or callback codes.

Instance ID is found in the EIAM instance details or console URL. It identifies
an instance, not the target cloud account. Alibaba Cloud account ID comes from

Static analysis

No suspicious patterns detected.