Back to skill

Security audit

alibabacloud-ecs-boot-and-login-repair

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious with high confidence because it reports persistent CLI configuration changes, out-of-scope diagnostics, and other safety and data-scoping weaknesses.

Consider avoiding installation until the persistent plugin-install setting, out-of-scope capabilities, and reported scope and command-handling issues have been addressed. The scan is partial: 61 of 62 components were scanned, one file was partially inspected, and one reference was unresolved, so the evidence is incomplete. The suspicious verdict identifies reported security weaknesses and undeclared risky behavior; it does not establish malicious intent.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
scripts/boot-and-login-repair.py
Finding

Missing target triggers inventory collection outside the declared authorization scope

Content
View full analysis

Impact

An incomplete single-instance support request can collect and disclose metadata about unrelated instances visible to the configured identity. This does not bypass Alibaba Cloud IAM or establish cross-tenant access, but it exceeds the explicitly declared diagnostic scope.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (132)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The mismatch is substantive, not merely an implementation detail. The CLI subcommands, report generation, default inspection plans, and troubleshooting guidance center on file transfers. The supplied chunk does not implement key-pair setup, authorized_keys recovery, password or account repair, or boot recovery. Instance health and scheduled-event queries overlap partially with the description, but do not account for the materially different primary purpose. Cloud Assistant command dispatch is explicitly implemented with a validation gate and --confirm requirement; it is not limited to printing advice. Imported helper and constant implementations were not supplied, so their additional behavior cannot be assessed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Despite the opening docstring naming the boot-and-login skill, SKILL_NAME explicitly identifies alibabacloud-ecs-file-transfer-diagnosis. The BRANCHES, ERROR_SIGNATURES, SYMPTOM_ROUTES, PORT_MATRIX, and documentation links consistently support file-transfer troubleshooting. Limited overlap involving permissions, connectivity, or .pem downloads does not align the primary purpose with boot/login repair; the credential handoff further distinguishes the scopes. This conclusion concerns the configuration and routing behavior represented by this constants-only module, not evidence of executed remote operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The code is related to the declared ECS login-permission scope, but it defines a substantially narrower Linux-only diagnostic workflow rather than the advertised boot, key-pair, and Windows repair coverage. The clearest contradiction is the explicit exclusion of Windows despite Windows login failures being listed as intended use cases. Guest inspection and optional snapshots are supporting implementation details, not independently suspicious capabilities. Because this is a constants module, its whitelists and guidance establish intended workflow boundaries but do not prove that execution or enforcement occurs elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

Most visible behavior supports the declared ECS boot/login repair workflow; preflight reads, instance discovery, and guardrails are supporting implementation details. However, AXES and the command-line parser explicitly allow dispatch to axes/file_transfer_diagnosis/ecs_file_transfer_diagnosis.py, broadening the advertised capability beyond the stated scope. The delegated scripts are not supplied, so their internal behavior and any actual repair operations cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

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 · references/axes/boot-repair-guide.md (reported line 81)May include surrounding context.

md
snapshot is confirmed by the customer, or the customer explicitly accepts the data-loss risk in
   writing. A snapshot that is not 100% complete cannot be used as the rollback point, and a repair disk
   cannot be attached to a running instance.
5. **Never** request, echo, store, or infer a guest password, private key, or access credential. Only the
   last four digits of the account id appear in reports, as a provenance tag.
6. Authentication failures are reported with the exact missing action and the minimal policy snippet from
   `references/ram-policies.md`, and the literals `NoPermission` or `ImplicitDeny`. Do not invent other

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/axes/boot-repair-guide.md (reported line 120)May include surrounding context.

text
Step 0  Gate: is this a boot failure at all?
        Running + VNC reaches a login prompt or desktop -> not this skill -> handoff (connection /
        security / IO). Patch or vulnerability action failed while the OS still boots -> patch skill.
        Disk full, inode full, expansion / GPT / LVM -> capacity or expansion skill. Instance parked in
        Starting / Stopping, or a downgrade that never finished booting -> instance-state skill.
        Confirm boot failure -> Step 1.

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/axes/linux-permission-repair.md (reported line 10)May include surrounding context.

md
evidence with manual repair steps. This skill applies no repair itself.
  Use when a normal user is denied permission, cannot switch to root, sudo says the user is not
  allowed to run a command, or files became inaccessible after a chmod or chown.
  Triggers: cannot su to root; root login denied; insufficient permission; sudo says not allowed to run this command; user not in the sudoers file; cannot escalate privileges; setuid bit missing; wrong owner after chmod or chown; NoPermission; ImplicitDeny
  Do NOT use: disk expansion (alibabacloud-ecs-high-frequency-issues: disk-expand-diagnosis), instance start or stop
  (alibabacloud-ecs-high-frequency-issues: instance-state-diagnosis), slow disk (alibabacloud-ecs-high-frequency-issues: resource-bottleneck),
  a full disk or inode exhaustion, or Windows.

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__boot-failure-decision-tree.md (reported line 18)May include surrounding context.

md
the desktop and services respond | OS is up | Connection path; the remote-desktop service itself can fail while the system is healthy, because VNC does not depend on it |
| A patch or vulnerability installation action failed, the system still boots | OS is up | `alibabacloud-ecs-patch-management`; a reboot that is slow because updates are being configured belongs here only while the machine has not finished booting |
| Patch failed with an error code while the system boots normally | OS is up | Patch skill, and if the underlying cause is free space, the capacity skill |
| The failure appeared after a disk expansion; a partition or filesystem does not reflect the new size | Not a boot failure | `alibabacloud-ecs-disk-expand-diagnosis`; note that a partition-table conversion is destructive on Windows and usually is not on Linux, and that conversion without handling LVM metadata first can make volumes disappear |
| System or data disk full, or inodes exhausted; the boot symptom is seconda

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__post-update-boot-failure.md (reported line 67)May include surrounding context.

md
| Repair attempt fails with a disk-space error code | Capacity axis | Capacity skill |
| Patch fails because a security product holds the file | Patch skill, with a process-stop step the customer performs | Patch skill |
| Update succeeded and now the remote desktop path fails | The OS is up | Connection path |
| System files missing after a failed update, and an in-place repair install is proposed | Patch and image axis | Patch skill or manual; keep the snapshot gate, and warn that third-party protection software frequently interferes with a repair install |

## The false-attribution check

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__doc-sources.md (reported line 20)May include surrounding context.

md
| Data disk initialization overview | https://help.aliyun.com/zh/ecs/user-guide/overview-27.md |
| Re-initializing a data disk (manual action, cited not executed) | https://help.aliyun.com/zh/ecs/user-guide/re-initialize-a-data-disk.md |
| The shared responsibility model, i.e. why in-guest updates and boot configuration are the customer's side | https://help.aliyun.com/zh/ecs/user-guide/ecs-shared-responsibility-model.md |
| Fixing high-severity vulnerabilities (belongs to the patch skill; cited to define the boundary) | https://help.aliyun.com/zh/ecs/user-guide/fix-high-risk-security-vulnerabilities.md |
| Using a skill to scan or install system patches (the boundary article for `alibabacloud-ecs-patch-management`) | https://help.aliyun.com/zh/ecs/user-guide/use-skill-to-scan-or-install-system-patches.md |
| The multi-terminal console session feature, i.e. the in-guest channel this skill guides but does not drive | https://help.aliyun.com/zh/ecs/user-guide/use-the-multi-terminal-featu

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__post-update-boot-failure.md (reported line 9)May include surrounding context.

md
This skill covers **the boot-failure side of an update**. It does not scan, install, evaluate, or roll back
patches: that is `alibabacloud-ecs-patch-management`. The test is the presence of a boot-failure signal. A
customer who says "the patch install returned error 133" belongs to the patch skill. A customer who says "I
installed the patch, rebooted, and now it never comes back" belongs here.

## Normal after an update

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__post-update-boot-failure.md (reported line 65)May include surrounding context.

md
| Stuck at the pre-logon update screen for a long time | Often normal duration | This file |
| The volume nearly full, updates failing, and a pending transaction file left behind | Capacity axis that presents as a patch failure | Capacity skill; note that the manual cleanup of a pending transaction is a change the customer performs after backing up |
| Repair attempt fails with a disk-space error code | Capacity axis | Capacity skill |
| Patch fails because a security product holds the file | Patch skill, with a process-stop step the customer performs | Patch skill |
| Update succeeded and now the remote desktop path fails | The OS is up | Connection path |
| System files missing after a failed update, and an in-place repair install is proposed | Patch and image axis | Patch skill or manual; keep the snapshot gate, and warn that third-party protection software frequently interferes with a repair install |

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/boot-repair-guide__post-update-boot-failure.md (reported line 65)May include surrounding context.

md
| Stuck at the pre-logon update screen for a long time | Often normal duration | This file |
| The volume nearly full, updates failing, and a pending transaction file left behind | Capacity axis that presents as a patch failure | Capacity skill; note that the manual cleanup of a pending transaction is a change the customer performs after backing up |
| Repair attempt fails with a disk-space error code | Capacity axis | Capacity skill |
| Patch fails because a security product holds the file | Patch skill, with a process-stop step the customer performs | Patch skill |
| Update succeeded and now the remote desktop path fails | The OS is up | Connection path |
| System files missing after a failed update, and an in-place repair install is proposed | Patch and image axis | Patch skill or manual; keep the snapshot gate, and warn that third-party protection software frequently interferes with a repair install |

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

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

Content

Scanner excerpt · references/keypair-login-config__guest-evidence-commands.md (reported line 66)May include surrounding context.

md
| `sshd -T` | the effective configuration the daemon is actually using |
| `cat /etc/ssh/sshd_config` | the file behind that configuration, includes and all |
| `sshd -T \| grep -i -E 'pubkeyauthentication\|passwordauthentication\|permitrootlogin\|authorizedkeysfile'` | the four options that decide key logon, password logon and where keys are read |
| `stat -c '%n %a %U:%G' ~ ~/.ssh ~/.ssh/authorized_keys` | the home directory and `.ssh` permission chain, the classic refusal cause |
| `systemctl status sshd --no-pager` | whether the service runs and when it last started |
| `iptables -L -n` | host firewall rules that block 22 even when the cloud rule is open |
| `firewall-cmd --list-all` | the firewalld equivalent of the same check |

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

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

Content

Scanner excerpt · scripts/axes/keypair_login_config/_constants.py (reported line 482)May include surrounding context.

python
("sshd -T | grep -i -E "
     "'pubkeyauthentication|passwordauthentication|permitrootlogin|authorizedkeysfile'",
     "the four options that decide key logon, password logon and where keys are read"),
    ("stat -c '%n %a %U:%G' ~ ~/.ssh ~/.ssh/authorized_keys",
     "the home directory and .ssh permission chain, the classic refusal cause"),
    ("systemctl status sshd --no-pager",
     "whether the service runs and when it last started"),

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

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

Content

Scanner excerpt · references/keypair-login-config__keypair-and-credential-guidance.md (reported line 77)May include surrounding context.

md
1. Each person generates their own key pair locally and shares only the public half.
   Nobody sends a private key to anyone, in any channel.
2. An account that can already log on appends each public key as one complete line to
   that user's `~/.ssh/authorized_keys`.
3. Permissions on the chain decide whether it works: the user's home directory not
   group-writable, `~/.ssh` at `700`, `authorized_keys` at `600`, all owned by that
   user. This is the most common cause of "the key is there but logon still fails".

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/linux-permission-repair__perm-baseline.md (reported line 29)May include surrounding context.

md
| Path | Expected | Why it matters when wrong |
|---|---|---|
| `/etc/sudoers` | mode `0440`, owner root, group root | sudo refuses to load a sudoers file that is group- or world-writable |
| `/etc/sudoers.d` | directory, mode `0750` or `0755`, owner root, group root | drop-in files are parsed only while the directory itself is safe |
| `/etc/passwd` | mode `0644`, owner root, group root | group-writable here breaks every logon path, not only sudo |
| `/etc/shadow` | mode `0640` or `0000`, owner root, group root or `shadow` depending on the image | wrong group here stops password authentication for all users |

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/linux-permission-repair__perm-baseline.md (reported line 44)May include surrounding context.

md
| Path | Expected | Why it matters when wrong |
|---|---|---|
| `/root` | mode `0700`, owner root, group root | wrong ownership stops root using its own profile and key file |
| `/tmp` | mode `1777` sticky, owner root, group root | sudo and other privilege helpers need a writable, sticky `/tmp` |

## Mount options that override all of the above

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/linux-permission-repair__perm-baseline.md (reported line 31)May include surrounding context.

md
|---|---|---|
| `/etc/sudoers` | mode `0440`, owner root, group root | sudo refuses to load a sudoers file that is group- or world-writable |
| `/etc/sudoers.d` | directory, mode `0750` or `0755`, owner root, group root | drop-in files are parsed only while the directory itself is safe |
| `/etc/passwd` | mode `0644`, owner root, group root | group-writable here breaks every logon path, not only sudo |
| `/etc/shadow` | mode `0640` or `0000`, owner root, group root or `shadow` depending on the image | wrong group here stops password authentication for all users |

`/etc/sudoers.d` also requires the individual drop-in files to be root-owned and `0440`; a file

Credential Access

High
Category
Privilege Escalation
Confidence
95% confidence
Finding

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

Content

Scanner excerpt · references/linux-permission-repair__perm-baseline.md (reported line 32)May include surrounding context.

md
| `/etc/sudoers` | mode `0440`, owner root, group root | sudo refuses to load a sudoers file that is group- or world-writable |
| `/etc/sudoers.d` | directory, mode `0750` or `0755`, owner root, group root | drop-in files are parsed only while the directory itself is safe |
| `/etc/passwd` | mode `0644`, owner root, group root | group-writable here breaks every logon path, not only sudo |
| `/etc/shadow` | mode `0640` or `0000`, owner root, group root or `shadow` depending on the image | wrong group here stops password authentication for all users |

`/etc/sudoers.d` also requires the individual drop-in files to be root-owned and `0440`; a file
whose name contains `~` or a `.` is silently ignored by sudo. Naming and content are only visible

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

Rejected commands are presented as safe, inspection-only manual steps without establishing that they are non-mutating.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The fallback repeats a rejected, untrusted command and tells the customer to execute it while falsely asserting that it only inspects state. Commands rejected for destructive behavior or shell composition therefore become endorsed manual instructions, allowing an attacker to bypass the safety gate through the customer or answering agent.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
100% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/axes/file_transfer_diagnosis/ecs_file_transfer_diagnosis.py (reported line 768)May include surrounding context.

python
expect("vgc_reject_semicolon", rejected("df -h ; rm"))
    expect("vgc_reject_pipe", rejected("df -h | sh"))
    expect("vgc_reject_redirect", rejected("df -h > /tmp/x"))
    expect("vgc_reject_non_whitelist_program", rejected("rm -rf /"))
    expect("vgc_reject_unknown_flag", rejected("df -Z"))
    expect("vgc_reject_value_flag_missing_value", rejected("findmnt -t"))
    expect("vgc_reject_value_flag_next_is_flag", rejected("df --output -h"))

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
100% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/axes/linux_permission_repair/permission_diagnosis.py (reported line 866)May include surrounding context.

python
expect("allow: findmnt with a path, and findmnt with none (mount table)",
           allowed("findmnt /") and allowed("findmnt"))
    # shell syntax / wildcard token is refused before any parsing of intent
    expect("reject: shell chaining and glob tokens", rejected("ls ; rm -rf /", "not allowed")
           and rejected("ls *", "not allowed"))
    # content-reading / mutating tools are handed to the customer, never dispatched
    expect("reject: content-reading cat and mutating rm are off-whitelist",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/axes/file_transfer_diagnosis/ecs_file_transfer_diagnosis.py (reported line 768)May include surrounding context.

python
expect("vgc_reject_semicolon", rejected("df -h ; rm"))
    expect("vgc_reject_pipe", rejected("df -h | sh"))
    expect("vgc_reject_redirect", rejected("df -h > /tmp/x"))
    expect("vgc_reject_non_whitelist_program", rejected("rm -rf /"))
    expect("vgc_reject_unknown_flag", rejected("df -Z"))
    expect("vgc_reject_value_flag_missing_value", rejected("findmnt -t"))
    expect("vgc_reject_value_flag_next_is_flag", rejected("df --output -h"))