T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party COS SDK Dependency
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill transparently uploads a user-selected file to Tencent COS and creates signed sharing links, with some ordinary cloud-sharing safety caveats.
Install only if you intend to upload chosen files to your Tencent COS bucket and share them through signed URLs. Use least-privilege or temporary COS credentials, prefer environment variables over command-line secrets, keep link expirations short, verify the destination bucket/key, and do not use the HTTP scheme for real data.
SKILL.md:14Unpinned Third-Party COS SDK Dependency
scripts/cos_upload_and_presign.py:67Plaintext HTTP Transport Can Be Explicitly Enabled
scripts/cos_upload_and_presign.py:69Cloud Credentials Can Be Supplied Through Command-Line Arguments
scripts/cos_upload_and_presign.py:66Presigned URL Expiration Has No Enforced Upper Bound
The skill performs operations that rely on environment credentials and outbound network access to Tencent COS, but the manifest does not declare any tool scope or allowed-tools constraints. This weakens least-privilege controls and can allow the skill to access secrets or make network calls without explicit policy visibility, increasing the risk of unintended data exposure or misuse.
The trigger description is broad enough to match many generic storage, upload, bucket, or sharing-link requests, which can cause the skill to activate outside narrowly intended scenarios. In a skill that uploads local files and generates presigned URLs, overbroad activation raises the chance of accidental file exfiltration, unnecessary credential use, or network operations on sensitive user data.
Data is uploaded to cloud storage (S3 / GCS / Azure Blob). This may be a legitimate backup or exfiltration to an external bucket. Manual review is recommended.
)
client = CosS3Client(config)
upload_result = client.upload_file(
Bucket=bucket,
LocalFilePath=str(local_path),
Key=key,
This code performs network transmission of a user-supplied local file to cloud storage and creates presigned access links, which can expose file contents to remote systems and downstream recipients. Although the argparse description states the functional purpose, there is no explicit warning, confirmation, or user-facing disclosure about the privacy and sharing implications of uploading local data and emitting access URLs.
The invocation guidance is written as a Chinese-language condition tied to what the user 'mentions,' which implicitly constrains activation behavior to one language. There is no indication that equivalent English or multilingual phrasing is supported, nor any user opt-in for language preference.
The default prompt is written only in Chinese and instructs the skill behavior in that language, which can impose a specific language choice without offering the user an alternative. The policy for this category flags language or locale constraints unless the skill explicitly provides user choice or clearly justifies the restriction.