Back to skill

Security audit

vx-best-practices

Security checks for vulnerabilities and agentic risk

Overview

This is a Markdown-only vx best-practices skill with coherent instructions; the main caution is unguarded migration examples that delete old nvm and pyenv directories.

Review the migration section before allowing an agent to run it. The skill is reasonable vx guidance, but the cleanup commands for ~/.nvm and ~/.pyenv should be treated as manual, destructive steps after migration is verified and any needed state is backed up.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (10)

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 217)May include surrounding context.

Never commit secrets. Use environment variables:

bash
# .env (add to .gitignore)
DATABASE_URL=postgresql://...
API_KEY=secret123

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This duplicate finding specifically matches the exact command rm -rf ~/.nvm, which is an unsafe destructive command presented as a normal migration step. The skill context makes it somewhat less suspicious because it targets a known tool directory, but still dangerous because irreversible deletion is encouraged without guardrails.

Content

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

vx add node@$(cat .nvmrc | tr -d 'v')

4. Remove nvm

rm -rf ~/.nvm

text

### From pyenv → vx

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This duplicate finding specifically matches the exact command rm -rf ~/.nvm, which is an unsafe destructive command presented as a normal migration step. The skill context makes it somewhat less suspicious because it targets a known tool directory, but still dangerous because irreversible deletion is encouraged without guardrails.

Content

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

vx add node@$(cat .nvmrc | tr -d 'v')

4. Remove nvm

rm -rf ~/.nvm

text

### From pyenv → vx

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This duplicate finding matches the exact command rm -rf ~/.pyenv, which is a destructive command lacking safety controls. In a best-practices skill for agent use, normalizing rm -rf is risky because agents may replay such patterns in broader contexts.

Content

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

vx add uv

4. Remove pyenv

rm -rf ~/.pyenv

text

## Provider Development Best Practices

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This duplicate finding matches the exact command rm -rf ~/.pyenv, which is a destructive command lacking safety controls. In a best-practices skill for agent use, normalizing rm -rf is risky because agents may replay such patterns in broader contexts.

Content

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

vx add uv

4. Remove pyenv

rm -rf ~/.pyenv

text

## Provider Development Best Practices

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
60% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

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

toml
[env]
NODE_ENV = "development"
DEBUG = "app:*"

# Required variables (vx will warn if missing)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

bash
# Install as regular user, not root
# ❌ sudo vx install node

# vx manages user-level installations
vx install node

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file includes irreversible deletion commands (rm -rf ~/.nvm and rm -rf ~/.pyenv) in migration steps, but the surrounding text does not warn users that these commands remove existing tool-manager installations and related local state. For markdown files, destructive behavior that can affect user data or system integrity should be accompanied by a clear warning.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
# 1. Check current Python version
python --version

# 2. Create vx.toml
vx init

# 3. Add uv (recommended Python manager)

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.