Back to skill

Security audit

TencentCloud CVM

Security checks for vulnerabilities and agentic risk

Overview

The skill appears intended for Tencent Cloud server administration, but it asks users to grant broad cloud powers and includes unsafe credential and destructive-operation guidance.

Review this carefully before installing. Use a dedicated low-privilege Tencent Cloud sub-user, replace wildcard permissions with a narrow allowlist, never print or share config/.env, install dependencies in a pinned virtual environment, and require explicit human approval before creating prepaid resources or deleting instances.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:166
Finding

Overly Broad Wildcard Permissions for Tencent Cloud Resources

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:270
Finding

Unpinned Dependencies Installed into the System Python Environment

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:460
Finding

Troubleshooting Instructions Expose Plaintext Cloud Credentials

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (17)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 220)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 222)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 223)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 227)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 303)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 308)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 423)May include surrounding context.

bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · src/cvm_manager.py (reported line 627)May include surrounding context.

python
```bash
# 复制示例文件
cd skills/tencentcloud-cvm
cp config/.env.example config/.env

# 编辑 .env 文件
vim config/.env

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The instruction to inspect secrets by running cat config/.env directly exposes active Tencent Cloud credentials in plaintext. In this skill context, those credentials can control billable cloud resources, making accidental disclosure especially dangerous.

Content

Scanner excerpt · SKILL.md (reported line 461)May include surrounding context.

问题 1: 凭证验证失败

bash
# 检查 .env 文件
cat config/.env

# 验证密钥

Credential Access

High
Category
Privilege Escalation
Confidence
93% confidence
Finding

This finding is part of the same troubleshooting flow that encourages unsafe secret handling around .env verification. In the context of cloud administration, any workflow that normalizes printing or manually inspecting secrets increases the likelihood of credential leakage to logs, transcripts, or third parties.

Content

Scanner excerpt · SKILL.md (reported line 462)May include surrounding context.

bash
# 检查 .env 文件
cat config/.env

# 验证密钥
python3 src/verify_config.py

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The terminate_instance method deletes cloud resources immediately with no confirmation prompt, dependency check, or protection against accidental invocation. In an agent-operated environment, this materially increases the risk of irreversible service disruption and data loss from user error, automation mistakes, or adversarial prompt influence.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill advertises destructive operations such as creating and deleting cloud servers without an explicit warning about service interruption, data loss, billing consequences, or irreversibility. In an infrastructure-management context, omission of such warnings increases the chance of unsafe execution by users or downstream agents.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill states CAM permissions are not granted, yet the setup workflow instructs users to perform CAM user and access-key management actions. This contradictory guidance can mislead users about the true privilege requirements and encourage unsafe bootstrap practices using elevated identities.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation claims the skill follows minimum 'CVM only' permissions, but the example policy grants wildcard access to CVM, VPC, and CBS resources. This mismatch can cause operators to deploy broader privileges than intended, increasing blast radius if the credentials are misused or the automation is compromised.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The troubleshooting section tells users to display the full .env file with cat config/.env, which can expose cloud API secrets in terminal history, logs, screen shares, or agent transcripts. Because these are active Tencent Cloud credentials, disclosure could enable unauthorized infrastructure access and resource abuse.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The create_instance method provisions billable cloud resources immediately, including prepaid instances, without any confirmation gate, dry-run mode, cost warning, or policy check. In an agent skill context, this is risky because a mistaken prompt, prompt injection, or misuse of the API wrapper can trigger real financial impact and infrastructure creation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

At L554, the docstring says KEEP_CHARGING means '停机不收费' and NOT_CHARGING means '停机收费', which contradicts the obvious semantics of the parameter names and the code's use of the StoppedMode field. This can mislead operators into choosing a shutdown mode with the opposite billing effect from what the documentation claims.

Content

No source excerpt is available for this finding.