Back to skill

Security audit

alibabacloud-oss-transfer-error-code-diagnosis

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent OSS error-diagnosis tool, but it contradicts its offline/no-write promises by performing online documentation lookups and writing a persistent cache.

Review this skill before installing in restricted or privacy-sensitive environments. It appears not to collect credentials, mutate OSS resources, or execute remote code, but users should know that some question-based runs can contact help.aliyun.com and write a local documentation cache despite multiple offline-only claims.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/_doc_lookup.py:48
Finding

Undisclosed Outbound Network Access and Persistent Cache Writes Contradict the Declared Offline Security Posture

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (15)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill claims narrow scope around OSS transfer error-code diagnosis, but it also performs external doc lookup, handles sibling-skill routing, and supports broader consultation-style questions. Scope expansion increases the chance that unrelated user input is sent externally or that the skill is invoked for cases outside its reviewed threat model.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill claims narrow scope around OSS transfer error-code diagnosis, but it also performs external doc lookup, handles sibling-skill routing, and supports broader consultation-style questions. Scope expansion increases the chance that unrelated user input is sent externally or that the skill is invoked for cases outside its reviewed threat model.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill says it needs no credentials and cannot access resources remotely, but elsewhere claims it can list visible buckets and offer only resources the credential can see. This contradiction suggests either undocumented credential use or inaccurate documentation; in either case, it creates a serious risk of surprise data access and privilege misuse.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file header and module documentation explicitly assert that the script performs no network calls, yet later code introduces a remote lookup workflow. Misrepresenting execution behavior is security-relevant because operators, orchestrators, or policy engines may permit this skill in restricted environments based on those statements, leading to unintended egress and trust-boundary bypass.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill declares no explicit tool scope even though its behavior implies shell, filesystem, and network capabilities. Missing scope boundaries can cause the agent runtime to grant broader privileges than users expect, increasing the blast radius if the skill is misused or the backing script is compromised.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest advertises zero-cloud-API routing, but the body expands execution to online documentation verification. Even if this is not a cloud API call in the strict sense, it is still materially different runtime behavior that can affect privacy, reproducibility, and approval requirements.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation asserts zero network/API use, yet later requires online official-document verification through a runtime lookup module. Contradictory safety claims undermine operator trust and can lead users to provide sensitive incident details believing they remain local, when they may be transmitted over the network.

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 · references/ram-policies.md (reported line 19)May include surrounding context.

md
## Credential handling

Never ask the user for, read, print, or forward any AccessKey, secret, or
STS token. The diagnosis input is limited to: error code, HTTP status,
RequestId, bucket name, and operation type - all non-sensitive strings.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest describes a diagnosis skill centered on routing OSS transfer error codes to root causes, which suggests local classification logic rather than runtime documentation retrieval. This file fetches remote content from help.aliyun.com and persists it under ~/.cache, adding operational behavior beyond straightforward error-code diagnosis.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill's stated purpose is to diagnose OSS upload/download error codes and explicitly exclude other domains, but this implementation downloads an external index and later document bodies at runtime. That capability is broader than a narrow diagnostic router unless the manifest explicitly states that official-doc verification over the network is part of the skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script’s advertised trust boundary is 'zero cloud API / no network calls', but the doc-verification path can invoke _doc_lookup.lookup_config_topic, which is explicitly designed to fetch remote documentation and only degrades on failure. This creates a hidden outbound network capability that may leak user-supplied question text, violate sandbox or compliance expectations, and break consumers that relied on the no-network guarantee.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The natural-language trigger set for configuration consultation is defined entirely with Chinese phrases, which means Step B document-verification behavior is biased toward one language. The file does not indicate that the skill is intentionally Chinese-only or offer an explicit language/locale opt-in, so this creates a language-policy concern.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The instructions require running a Python script but do not clearly warn that official-document verification may perform live network access. Users and orchestrators may treat the skill as local-only and approve execution in contexts where outbound traffic is restricted or sensitive.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
74% confidence
Finding

This section requires passing --question "<customer original wording>" into the verification flow and does not mention any user choice around language or locale handling. While subtle, this can amount to a locale/language policy issue because the skill fixes processing to the user's original wording with no opt-in or alternative when multilingual handling may matter.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

This code embeds natural-language documentation and references that are predominantly fixed to Chinese-language official docs, and later comments explicitly privilege Chinese natural-language forms. That can amount to a locale/language policy issue because the skill content is biased toward a specific language without offering an explicit user choice or documenting a justified locale restriction.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.