Back to skill

Security audit

Alibaba Cloud Data Lake DLF Next

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Alibaba Cloud DLF management aid with expected metadata lookup and credential guidance, but users should treat mutating cloud actions carefully.

Install only if you intend to manage Alibaba Cloud DlfNext resources. Use least-privilege credentials, confirm the target region and resource IDs, and require an explicit review before any create/update/modify/set operation because those calls may change cloud state.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (10)

Tainted flow: 'timeout' from os.getenv (line 34, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Content
def fetch_json(url: str, timeout: int) -> dict:
    req = urllib.request.Request(url, headers={"User-Agent": "codex-skill"})
    with urllib.request.urlopen(req, timeout=timeout) as resp:
        return json.loads(resp.read().decode("utf-8"))
Confidence
90% confidence
Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding
The skill claims to manage DlfNext resources and troubleshooting workflows, but the described executable path centers on OpenAPI metadata discovery and local artifact generation rather than the advertised cloud resource operations. This mismatch can mislead users or orchestration systems into invoking the skill in situations where its real behavior is different, increasing the risk of unintended network access, incomplete task execution, or unsafe chaining with other tools.

Lp3

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding
The skill exposes capabilities that can access environment credentials, write local files, and make network requests, but it does not declare any explicit tool scope or permission boundaries. In a cloud-management skill, that omission increases the chance of unintended secret access or unauthorized outbound/API activity because consumers cannot easily constrain what the skill is allowed to do.

Vague Triggers

Medium
Confidence
88% confidence
Finding
The invocation description is broad enough to match many generic Alibaba Cloud DLF requests without clear boundaries on when this skill should or should not be used. Over-broad activation can cause the wrong skill to handle sensitive cloud tasks, leading to credential use, remote calls, or file writes in contexts the user did not intend.

Missing User Warnings

Medium
Confidence
90% confidence
Finding
The skill discusses create, update, modify, and set operations against cloud resources without prominently warning that these actions may change remote state and potentially incur operational impact. In a cloud administration context, lack of mutation warnings can lead to accidental destructive or costly actions because users may treat the workflow like read-only troubleshooting.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
Allowing the skill to pick the 'most reasonable region' when `ALICLOUD_REGION_ID` is unset permits autonomous selection of a cloud region without explicit user consent. In multi-region cloud environments, that can direct requests to the wrong jurisdiction or resource plane, causing policy violations, failed operations, or accidental modifications in an unintended region.

External Transmission

Medium
Category
Data Exfiltration
Content
output_dir.mkdir(parents=True, exist_ok=True)

    url = (
        f"https://api.aliyun.com/meta/v1/products/{args.product_code}"
        f"/versions/{args.version}/api-docs.json"
    )
    payload = fetch_json(url, timeout)
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
output_dir.mkdir(parents=True, exist_ok=True)

    url = (
        f"https://api.aliyun.com/meta/v1/products/{args.product_code}"
        f"/versions/{args.version}/api-docs.json"
    )
    payload = fetch_json(url, timeout)
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
output_dir.mkdir(parents=True, exist_ok=True)

    url = (
        f"https://api.aliyun.com/meta/v1/products/{args.product_code}"
        f"/versions/{args.version}/api-docs.json"
    )
    payload = fetch_json(url, timeout)
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
output_dir.mkdir(parents=True, exist_ok=True)

    url = (
        f"https://api.aliyun.com/meta/v1/products/{args.product_code}"
        f"/versions/{args.version}/api-docs.json"
    )
    payload = fetch_json(url, timeout)
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Static analysis

No suspicious patterns detected.