T09 · Insecure Skill Coding Practices
- Location
SKILL.md:7- Finding
Unrestricted Backup to an Unspecified Cloud Destination
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 7
Vulnerability Type: Uncontrolled transfer of local files to an unspecified remote destination
Risk Level: MediumCode Snippet:
markdown - `backup [path]` - Backs up files/folders to a specified location (default: cloud storage)Technical Analysis
The
backupcommand permits files or directories selected through thepathargument to be transferred to cloud storage by default. The instruction does not identify the cloud provider or destination account, restrict eligible source paths, require an explicit destination, or mandate user confirmation before transfer.It also lacks controls for detecting credentials, private keys, configuration secrets, personal information, or other sensitive content. Consequently, an agent implementing this instruction could transfer sensitive local files outside the current trust boundary without presenting the exact source and destination to the user.
This is an insecure skill configuration rather than evidence of intentional data theft. The file contains no implementation, credentials, remote URL, or executable payload.
Attack Path
- A user, untrusted prompt, or voice transcription invokes
backupwith a sensitive path, such as a home directory or credentials folder. - No explicit destination is supplied.
- The agent interprets “cloud storage” as the default destination.
- Because the instruction defines no source restrictions, sensitivity checks, or confirmation requirement, the agent includes confidential files in the backup.
- The files are transferred to a remote destination whose provider, account ownership, retention policy, and access controls were not established by the skill.
Impact Assessment
Successful exploitation could disclose any files readable by the agent and selected by the command. Potentially exposed material includes documents, environment files, API tokens, priva ...[truncated 373 chars]
- A user, untrusted prompt, or voice transcription invokes
- Remediation
View remediation
Remediation Suggestions
- Remove the implicit cloud-storage default and require the user to select a named provider, account, and destination.
- Display the canonical source paths, exact destination, estimated size, and excluded files before beginning a transfer.
- Require explicit confirmation immediately before any network upload.
- Restrict sources to approved workspace directories and reject absolute paths, traversal sequences, credential stores, and other protected locations by default.
- Scan the proposed file set for secrets, private keys, access tokens, environment files, and regulated data.
- Use an explicit allowlist for file types and paths instead of relying only on exclusions.
- Require encryption in transit and at rest, least-privilege destination credentials, access logging, and a defined retention policy.
- Record non-sensitive audit metadata about the operation without storing credentials or file contents.
