T05 · Unauthorized Access and Privilege Escalation
- Location
_meta.json:20- Finding
Declared Network and Cloud Credential Access Exceeds Implemented Requirements
- Content
View full analysis
Vulnerability Details
File Location:
_meta.json, lines 20–35
Vulnerability Type: Excessive permissions and unnecessary sensitive credential exposure
Risk Level: Mediumjson "environmentVariables": [ "ALIYUN_ACCESS_KEY", "ALIYUN_SECRET_KEY", "BAIDU_ACCESS_TOKEN" ], "permissions": { "network": true, "networkEndpoints": [ "dashscope.aliyuncs.com", "api.aliyundrive.com", "pan.baidu.com" ], "fileRead": true, "fileWrite": true, "fileWriteScope": "user_directories" }Technical Analysis
The metadata declares access to cloud credentials and network endpoints for DashScope, Aliyun Drive, and Baidu services. The shipped executable does not contain a network client, cloud provider implementation, AI provider integration, or environment-variable access.
The implemented functionality only requires reading files selected by the user, writing organized copies, moving duplicate files, and maintaining a local cache. Consequently, network access and cloud credential declarations are not required by the current implementation and violate least-privilege principles.
The risk depends on how the host platform enforces metadata. If declared environment variables and network permissions are made available to the Skill process, later-modified, substituted, or compromised code could use them without requesting an additional permission change.
Attack Path
- The Skill is installed with the permissions declared in
_meta.json. - The host exposes the listed cloud credentials or allows access to the declared network endpoints.
- A later update, compromised dependency, or replaced entry-point script reads the available credentials.
- The malicious component sends authenticated requests to an allowed cloud endpoint.
- Cloud data or resources accessible to those credentials may be read, modified, or uploaded.
No such credential theft or network transmission e ...[truncated 453 chars]
- The Skill is installed with the permissions declared in
- Remediation
View remediation
Remediation Suggestions
- Remove
network,networkEndpoints, and cloud-related environment variables from_meta.jsonuntil reviewed cloud functionality is actually implemented. - Keep only filesystem permissions necessary for explicitly selected source and destination directories.
- If cloud synchronization is later added, isolate it as an optional, separately permissioned component.
- Request provider-specific credentials only when the user enables that provider.
- Use narrowly scoped, short-lived tokens instead of account-wide or long-lived secrets.
- Require explicit user confirmation before any upload or remote modification.
- Add tests verifying that local-only operations cannot access environment credentials or the network.
- Remove
