Back to skill

Security audit

alibabacloud-ecs-disk-io-and-data-protection

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report persistent CLI configuration changes, actions beyond its stated diagnostic scope, and guidance that could expose sensitive data or weaken encryption safeguards.

The verdict is suspicious, meaning the scanners report meaningful weaknesses or undisclosed behavior but do not establish malicious intent. Consider avoiding installation until the persistent plugin-install setting, guest-command consent boundary, encryption fallback, and log-sharing guidance have been reviewed. The scan is partial: 46 of 47 components were fully inspected, with one partially inspected and a bounded static analysis limitation, so the evidence is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
.
Finding

Guest execution can bypass the dispatcher's additional consent gate

Content
View full analysis

Impact

An invocation that should remain cloud-read-only can execute an allowlisted inspection command inside the customer's instance and retrieve guest information, despite the shared gate remaining closed. This is not arbitrary shell execution.

T09 · Insecure Skill Coding Practices

Warning
Location
.
Finding

Diagnostic queries silently enable persistent automatic plugin installation

Content
View full analysis

Impact

If the configuration command succeeds, future applicable CLI invocations can automatically install plugins without the previous interactive installation decision. The policy change survives the diagnostic process and affects subsequent CLI use.

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
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
Findings (67)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The main diagnostic workflow matches the stated disk-performance purpose, and whitelisted guest inspection is reasonably supporting diagnostic functionality. However, the snapshot subcommand goes beyond diagnosis by creating a cloud resource using existing credentials. Its confirmation flag limits execution but does not make that capability declared. The supplied implementation also does not substantiate the description's broader KMS, replication, and DR coverage. These conclusions are limited to the provided code; imported helper implementations were not supplied.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Most functionality is supporting infrastructure consistent with ECS diagnostics. However, _with_auto_plugin() executes a configuration-changing command when the requested product plugin appears absent or its inventory cannot be determined. This changes the local execution environment rather than merely inspecting ECS resources and contradicts the module's read-only characterization. The supplied chunk does not directly demonstrate destructive cloud API calls or credential exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Most of the module is supporting infrastructure consistent with the declared diagnostic purpose. However, _with_auto_plugin() changes CLI configuration when a product plugin appears missing or its inventory cannot be determined. This is a host-configuration mutation that enables subsequent automatic plugin installation, rather than merely reading ECS diagnostic information. The supplied chunk does not itself demonstrate plugin downloads or cloud-resource modifications.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Most of this module is supporting infrastructure consistent with ECS diagnostics. However, _with_auto_plugin() goes beyond querying resources: when it determines that a plugin is missing, or cannot establish the inventory, it attempts to change local CLI configuration so plugins can be installed automatically. This persistent environment change is not disclosed in the declared purpose. Additionally, call() and _call_cli() impose no product, action, guest-command, or consent restrictions, despite the module's comments claiming an allowlisted diagnostic boundary. The supplied chunk does not demonstrate an actual cloud-resource mutation or guest-command execution, so those outcomes should not be treated as observed behavior.

Content

No source excerpt is available for this finding.

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/disk-encryption-kms-guide__handoff-matrix.md (reported line 18)May include surrounding context.

md
isk block | An operating-system swap re-initialises the system disk; the encryption option is only available as it is provisioned |
| "how much do snapshots cost", "they were removed while I was overdue", "issue a coupon" | Cost and billing tier | Nothing; the reads cannot see a bill | Snapshot removal after 15 days overdue was a real conversation in this tier's evidence |
| Instance id is not `i-` / `d-` / `s-` shaped, or the product is a simple application server | The owning product line | A clear statement that these ECS reads cannot see that product, and no encryption conclusion | A compliance question about a simple application server's system disk could not be answered from the ECS side at all |
| "give me a written attestation for an audit" | The customer's compliance or account path | The document checklist and the process; nothing is submitted on their behalf | Written-proof requests appear in this tier's evidence alongside the technical questions |

## 2. Canned handoff word

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
80% 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/_guardrails.py (reported line 406)May include surrounding context.

python
match = _ARG_REQUIRED.search(line)
        if match:
            named = re.split(r"[ ,]+", match.group(1).strip())
            if any(token in _INSTANCE_TARGET_FLAGS for token in named):
                return True
        if _MISSING_INSTANCE_REASON.search(line):
            return True

Permission-troubleshooting guidance presents unencrypted provisioning as a trusted fallback.

High
Category
Prompt Injection
Confidence
98% confidence
Finding

Any supplied order-error text activates guidance presenting unencrypted provisioning as a proven fallback, without establishing that encryption is optional or requiring explicit risk acceptance. In an encryption-audit skill, this can encourage customers to bypass encryption requirements and place sensitive data on unencrypted storage, creating exposure and compliance violations even if migration is planned later.

Content

No source excerpt is available for this finding.

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 188)May include surrounding context.

python
return {"verdict": verdict, "rule_id": rid, "note": extra}

    if category == "cloud_regional_disk_auto":
        return rule("regional-excluded", "NOT_APPLICABLE")

    tgt_cat = normalize_category(target_category)
    tgt_pl = target_pl.strip().upper() if target_pl else None

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 201)May include surrounding context.

python
# --- AutoPL is a one-way door (ticket T-B525FD49) ------------------------
    if category == "cloud_auto":
        if tgt_pl in PL_RANK:
            return rule("autopl-to-pl", "DENIED_ONE_WAY")
        if tgt_cat in (FIXED_PL_CATEGORY, "cloud_efficiency", "cloud_ssd"):
            return rule("autopl-category-change", "DENIED_ONE_WAY")
        return rule("autopl-category-change", "VERIFY_OFFICIAL")

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 203)May include surrounding context.

python
if tgt_pl in PL_RANK:
            return rule("autopl-to-pl", "DENIED_ONE_WAY")
        if tgt_cat in (FIXED_PL_CATEGORY, "cloud_efficiency", "cloud_ssd"):
            return rule("autopl-category-change", "DENIED_ONE_WAY")
        return rule("autopl-category-change", "VERIFY_OFFICIAL")
    if tgt_cat == "cloud_auto":
        return rule("pl-to-autopl", "ALLOWED")

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 204)May include surrounding context.

python
return rule("autopl-to-pl", "DENIED_ONE_WAY")
        if tgt_cat in (FIXED_PL_CATEGORY, "cloud_efficiency", "cloud_ssd"):
            return rule("autopl-category-change", "DENIED_ONE_WAY")
        return rule("autopl-category-change", "VERIFY_OFFICIAL")
    if tgt_cat == "cloud_auto":
        return rule("pl-to-autopl", "ALLOWED")

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 206)May include surrounding context.

python
return rule("autopl-category-change", "DENIED_ONE_WAY")
        return rule("autopl-category-change", "VERIFY_OFFICIAL")
    if tgt_cat == "cloud_auto":
        return rule("pl-to-autopl", "ALLOWED")

    # --- fixed-PL changes inside ESSD ---------------------------------------
    if category == FIXED_PL_CATEGORY and tgt_cat in (None, FIXED_PL_CATEGORY):

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 221)May include surrounding context.

python
# future tier (e.g. PL5 -> PL2 is a downgrade). Fail closed to VERIFY.
        cur_rank = PL_RANK.get(pl) if pl else None
        if cur_rank is None:
            return rule("essd-pl-down", "VERIFY_OFFICIAL",
                        extra=f"current level '{pl or '(not reported)'}' is "
                              "outside the modeled PL0..PL3 ranks, so the "
                              "direction cannot be determined")

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 226)May include surrounding context.

python
"outside the modeled PL0..PL3 ranks, so the "
                              "direction cannot be determined")
        if PL_RANK[tgt_pl] > cur_rank:
            return rule("essd-pl-up", "ALLOWED_ONLINE")
        if PL_RANK[tgt_pl] == cur_rank:
            return {"verdict": "NO_CHANGE", "rule_id": "same",
                    "note": "target equals the current performance level"}

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 230)May include surrounding context.

python
if PL_RANK[tgt_pl] == cur_rank:
            return {"verdict": "NO_CHANGE", "rule_id": "same",
                    "note": "target equals the current performance level"}
        return rule("essd-pl-down", "VERIFY_OFFICIAL")

    # --- category changes ----------------------------------------------------
    if category in ("cloud_efficiency", "cloud_ssd"):

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 238)May include surrounding context.

python
verdict = ("ALLOWED_ONLINE"
                       if tgt_pl in (None, "PL0", "PL1", "PL2", "PL3")
                       else "VERIFY_OFFICIAL")
            return rule("efficiency-to-essd", verdict)
        return {"verdict": "VERIFY_OFFICIAL", "rule_id": "unknown-pair",
                "note": "pair not modeled; confirm on the console change page"}

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 243)May include surrounding context.

python
"note": "pair not modeled; confirm on the console change page"}

    if category == "cloud_essd_entry":
        return rule("entry-to-fixed-pl", "VERIFY_OFFICIAL")

    if category == FIXED_PL_CATEGORY and tgt_cat in ("cloud_efficiency",
                                                     "cloud_ssd",

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/axes/disk_pl_change_guide/disk_pl_advisor.py (reported line 248)May include surrounding context.

python
if category == FIXED_PL_CATEGORY and tgt_cat in ("cloud_efficiency",
                                                     "cloud_ssd",
                                                     "cloud_essd_entry"):
        return rule("essd-to-efficiency", "VERIFY_OFFICIAL")

    return {"verdict": "VERIFY_OFFICIAL", "rule_id": "unknown-pair",
            "note": "pair not modeled; confirm on the console change page"}

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, 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
75% 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 70)May include surrounding context.

md
|
| `disk-pl-change-guide` | `python3 scripts/disk-io-and-data-protection.py --axis disk-pl-change-guide -- <args>` | gated | [disk-pl-change-guide](references/axes/disk-pl-change-guide.md) |

Gated axes in this package: disk-io-diagnosis, disk-pl-change-guide. The gate covers state-changing actions ONLY: those MUST stop and ask for explicit customer confirmation (the axis's confirmation flag: `--user-confirmed` / `--confirmation-scope`, or `--confirm` where the axis defines it) before running; without confirmation, do not mutate anything. Read-style in-guest probes also travel through Cloud Assistant RunCommand. They are NOT query-only from the customer's side: the command still executes inside their machine and leaves a task record there. ABSOLUTE PROHIBITION: never dispatch one without the customer's consent for that exact command in this turn. Ask first, then pass `--allow-guest-read` to the entry command. Without it the dispatcher strips the axis's guest flags, prints `CONSENT-REQ

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/axes/disk-encryption-kms-guide.md (reported line 128)May include surrounding context.

md
2. **Irreversibility**: an operating-system swap re-initialises the system disk; the data
   on it is gone and cannot be recovered afterwards.
3. **Cost and expiry**: snapshots are post-paid, and an overdue account has its snapshots
   automatically removed after 15 days, with no removal record to recover them from.
4. **Who performs it**: the customer clicks and confirms in the console; the skill neither
   performs nor submits the step.
5. Ask the customer to confirm they have the backup before continuing.

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/disk-encryption-kms-guide__handoff-matrix.md (reported line 38)May include surrounding context.

md
authorisation, take a snapshot of every disk and wait for it to be usable."*

**Billing, invoices, overdue state**
*"Snapshots are post-paid; an overdue account has them automatically removed after 15 days and
there is no removal record to recover them from. I cannot read your balance or your order
history, so this belongs to the cost and billing tier. What I can give you is the disk and
snapshot inventory as read from the cloud side."*

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/disk-encryption-kms-guide__snapshot-image-encryption.md (reported line 79)May include surrounding context.

md
## 5. Two limits customers blame on encryption

- **Overdue account.** Snapshots are post-paid, and an overdue account has its snapshots
  automatically removed after 15 days, with no removal record to recover them from. Encrypted
  snapshots are subject to the same rule as any other. When a customer reports "my snapshots
  are gone", read the facts, then hand the billing question off per `handoff-matrix.md`; this
  skill cannot read a balance. Billing topics to verify:

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% 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/axes/disk-io-diagnosis.md (reported line 54)May include surrounding context.

md
This skill is **not** restricted to inspect calls. It has three classes of action, and the
class decides whether a confirmation is needed.

### Class 1 - cloud inspection, runs without asking

`ecs:DescribeInstances`, `ecs:DescribeDisks`, `ecs:DescribeInstanceTypes`,
`ecs:DescribeInvocations`, `cms:QueryMetricLast` (through the `DescribeMetricLast` API),

Unrestricted Tool Access

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.

Content

Scanner excerpt · references/axes/disk-replication-dr-guide.md (reported line 45)May include surrounding context.

md
verb (`Create*`, `Delete*`, `Modify*`, `Start*`, `Stop*`, `Attach*`, `Detach*`, `Reset*`,
  `Replace*`, `Reboot*`, `Release*`, `Re-init*`, `Bind*`, `Unbind*`, `Import*`, `Export*`,
  `Revoke*`, `Grant*`).
- It MUST NOT ask the customer to run mutating commands **on its behalf**, and MUST NOT run any
  command inside a customer instance (no guest access, no panel access, no Cloud Assistant
  execution APIs). Where a guest-side reading is needed, it asks the customer to run a **read-only**
  check themselves and paste the output back (see `references/disk-replication-dr-guide__self-check-commands.md`).