Back to skill

Security audit

Vpn Rotator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a VPN automation guide, but it asks for high-impact networking privileges while using broad, inconsistent instructions and weak safety controls.

Review before installing. Use this only in an isolated environment for authorized VPN administration or testing, pin and verify dependencies, avoid broad passwordless sudo, store credentials in a secret manager, make external health checks configurable, and require explicit approval before any network or routing change.

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 (5)

T08 · Insecure Dependencies

Error
Location
SKILL.md:160
Finding

Unpinned and Unaudited Executable Dependency

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:160
Vulnerability Type: Supply-chain exposure through an unpinned executable dependency
Risk Level: High

Code Snippet:

markdown
1. **安装依赖**:`pip install vpn-rotator aiohttp psutil`

Technical Analysis

The Skill directs users or an AI agent to install the primary vpn-rotator implementation and supporting libraries without exact version pins, package hashes, publisher verification, or a trusted package index. The project contains no local implementation against which the package's behavior can be audited.

Consequently, the effective executable code is resolved from a mutable external package repository at installation time. A compromised maintainer account, malicious replacement release, dependency-confusion condition, or future compromised package version could introduce arbitrary behavior after this Skill has already passed review.

This is particularly sensitive because the installed package is intended to interact with VPN credentials, host networking, proxy credentials, and potentially privileged OpenVPN operations.

Attack Path

  1. A user invokes the Skill and follows its installation instructions.
  2. pip resolves the latest compatible package versions from its configured package index.
  3. An attacker publishes or compromises a package or transitive dependency selected by the resolver.
  4. The malicious package executes code during installation, import, or normal Skill operation.
  5. The package accesses resources available to the Agent process, potentially including VPN credentials, environment variables, network configuration, and command-execution capabilities.

Impact Assessment

Successful exploitation could execute arbitrary code with the privileges of the user running pip or the Agent. Given the Skill's requested access to credentials, command execution, and VPN management, compromise could expose authentication material, ...[truncated 293 chars]

Remediation
View remediation

Remediation Suggestions

  • Bundle the auditable implementation with the Skill where practical.
  • Pin every direct and transitive dependency to an exact reviewed version.
  • Record and enforce cryptographic package hashes using a lock file and pip install --require-hashes.
  • Use an organization-controlled package mirror or explicitly trusted package index.
  • Verify package ownership, release signatures, and provenance before installation.
  • Install dependencies in an isolated virtual environment or container with no credentials present.
  • Run automated dependency and provenance scanning in the release pipeline.
  • Do not install packages with root privileges.

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:244
Finding

Passwordless Privileged OpenVPN Execution

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:244
Vulnerability Type: Excessive system privileges and unsafe privilege delegation
Risk Level: High

Code Snippet:

markdown
- **sudo权限**: 配置openvpn免密执行

Technical Analysis

The Skill requires OpenVPN to be configured for passwordless sudo execution. This removes an interactive authorization boundary from a workflow driven by an AI agent and third-party code.

OpenVPN legitimately requires elevated networking privileges in many deployment models, but unrestricted passwordless execution is not the minimum privilege necessary. The documentation does not define a constrained sudoers rule, fixed arguments, root-owned configuration files, configuration validation, or a dedicated privileged service with a narrow interface.

If the Agent, installed dependency, command arguments, or VPN configuration can be influenced by an attacker, passwordless privilege delegation may allow privileged network changes or unsafe OpenVPN functionality to execute without user confirmation.

Attack Path

  1. An administrator configures passwordless sudo for OpenVPN as instructed.
  2. The Agent or installed vpn-rotator package constructs an OpenVPN command or chooses a configuration file.
  3. An attacker influences the package, configuration path, configuration contents, or command arguments.
  4. The resulting OpenVPN invocation is accepted by sudo without authentication.
  5. Attacker-controlled behavior executes with elevated privileges or modifies privileged host networking.

Impact Assessment

Exploitation could affect system-level routes, DNS settings, tunnel interfaces, firewall behavior, and network traffic. Depending on the exact sudoers policy and OpenVPN configuration controls, the impact could extend to arbitrary root-level command execution.

The maximum impact cannot be established from SKILL.md because the actual sudoers rule and implementati ...[truncated 146 chars]

Remediation
View remediation

Remediation Suggestions

  • Do not grant broad passwordless sudo access to an AI Agent or its dependency process.
  • Run privileged VPN operations through a dedicated, minimal broker service with a narrow authenticated API.
  • If sudo is unavoidable, allow only an immutable wrapper with fixed operations rather than direct OpenVPN execution.
  • Store the wrapper and all accepted VPN configurations as root-owned, non-writable files.
  • Reject arbitrary arguments, paths, environment variables, hooks, scripts, plugins, and configuration directives.
  • Require explicit user approval for privileged connection changes.
  • Run nonprivileged pool management and monitoring under a dedicated service account.
  • Audit and log every privileged operation without recording credentials.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:152
Finding

SOCKS5 Credentials Embedded in Proxy URL

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:152
Vulnerability Type: Sensitive credentials exposed through string interpolation
Risk Level: Medium

Code Snippet:

python
proxy_url = f"socks5h://{socks.username}:{socks.password}@{socks.host}:{socks.port}"
response = await fetch_through_proxy(url, proxy_url)

Technical Analysis

The example embeds the SOCKS5 username and password directly into a URI string. Credential-bearing URLs are frequently copied into exception messages, debug logs, tracing systems, HTTP-client diagnostics, process telemetry, or monitoring output.

Although using a SOCKS proxy requires authentication data to reach the client library, placing credentials in a general-purpose string unnecessarily increases their lifetime and distribution. The documentation does not require redaction or establish that fetch_through_proxy and all downstream components suppress credentials.

Attack Path

  1. The Skill retrieves a SOCKS5 username and password.
  2. It creates a plaintext proxy URL containing both values.
  3. The URL is passed through application and client-library layers.
  4. A connection error, debug statement, trace, or monitoring integration records the full URL.
  5. An attacker with access to logs or telemetry recovers the credentials and authenticates to the proxy service.

Impact Assessment

Exposed credentials could permit unauthorized use of the SOCKS5 account, consumption of paid proxy resources, impersonation of authorized traffic, abuse attributed to the victim, or access to other services where credentials have been reused.

This finding does not demonstrate that the current example transmits credentials to an unrelated destination; it identifies an avoidable credential-exposure pattern.

Remediation
View remediation

Remediation Suggestions

  • Use structured proxy authentication parameters rather than embedding credentials in a URL.
  • Ensure proxy configuration objects implement redacted string representations.
  • Prohibit logging of authentication fields and sanitize exception messages.
  • Apply centralized secret-redaction filters to logs, traces, and telemetry.
  • Minimize credential lifetime in memory and avoid copying secrets into multiple immutable strings.
  • Use short-lived, narrowly scoped proxy credentials where supported.
  • Add tests confirming that errors and debug output never contain usernames or passwords.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:258
Finding

VPN Credentials Stored in a Plaintext File

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:258
Vulnerability Type: Plaintext storage of authentication material
Risk Level: Medium

Code Snippet:

markdown
- **VPN凭证**: 存储于 `~/.vpn/creds.txt`,权限设为600

Technical Analysis

The Skill recommends storing VPN credentials in ~/.vpn/creds.txt. File mode 600 limits access to the owning account, but it does not encrypt the credentials or protect them from malicious code running as that user.

This is significant because the same Agent account can execute commands and install third-party packages. Plaintext credentials may also be captured in backups, filesystem snapshots, endpoint collection tools, or accidental diagnostic archives.

Attack Path

  1. The user saves reusable VPN credentials in ~/.vpn/creds.txt.
  2. The Agent or an installed dependency executes under the same user account.
  3. A malicious or compromised component reads the file using the user's normal permissions.
  4. The component transmits or records the recovered credentials.
  5. The attacker uses them to access the victim's VPN account or infrastructure.

Impact Assessment

Exposure can lead to unauthorized VPN usage, account compromise, service charges, traffic attributed to the victim, and access to private VPN gateways where the credentials authorize internal connectivity.

Mode 600 provides a useful baseline against other local users but is insufficient against compromise of the Agent process or user account.

Remediation
View remediation

Remediation Suggestions

  • Store credentials in an operating-system keychain, secrets manager, or hardware-backed credential store.
  • Prefer short-lived tokens or provider-specific scoped credentials over reusable passwords.
  • Retrieve secrets only immediately before use and avoid writing them to disk.
  • Run VPN management under a dedicated service identity with narrowly scoped secret access.
  • If a file is unavoidable, encrypt it with a key stored separately and retain restrictive ownership and permissions.
  • Exclude secret locations from backups, diagnostics, logs, and Agent-readable file search paths where feasible.
  • Rotate credentials after suspected exposure and maintain secret-access auditing.

other

Note
Location
SKILL.md:279
Finding

Active VPN Exit Address Disclosed to a Third-Party Health-Check Service

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:280
Vulnerability Type: External network metadata disclosure
Risk Level: Low

Code Snippet:

python
"health_check_interval": 30,
"health_check_url": "https://api.ipify.org",

Technical Analysis

The sample configuration sends recurring health-check requests to api.ipify.org. Each request necessarily reveals the active VPN exit IP address to that external service and may also reveal connection timing, TLS/network metadata, and client headers.

Public-IP verification is relevant to VPN operation, so the network request has a functional purpose. However, hardcoding a third-party endpoint without an explicit privacy notice, consent boundary, retention assessment, or self-hosted option exceeds the minimum disclosure necessary for users who can operate their own health-check service.

The reviewed content does not show VPN passwords, API keys, local files, or private host data being sent to this endpoint.

Attack Path

  1. The VPN pool initializes with the supplied default configuration.
  2. The health-check process contacts https://api.ipify.org every 30 seconds.
  3. The service observes the current VPN exit address and request metadata.
  4. Repeated observations can be correlated by timing, headers, or other service-side information.
  5. The resulting records may reveal VPN usage patterns and exit-node rotation behavior.

Impact Assessment

The third party can observe and potentially correlate VPN exit addresses, health-check frequency, and rotation timing. This may undermine privacy expectations and disclose operational metadata about the VPN pool.

The direct confidentiality impact is limited because the shown request is intended to obtain the public IP and does not contain explicit credentials.

Remediation
View remediation

Remediation Suggestions

  • Make the health-check endpoint explicitly configurable rather than hardcoded.
  • Clearly disclose what metadata leaves the system and obtain user approval before enabling external checks.
  • Prefer a self-hosted minimal endpoint controlled by the deploying organization.
  • Disable external health checks by default in privacy-sensitive environments.
  • Minimize request headers and avoid cookies, identifiers, authentication data, and unnecessary query parameters.
  • Apply reasonable intervals, timeouts, and rate limits instead of polling more frequently than necessary.
  • Document the selected provider's retention and privacy practices.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documented return schema describes grading and audit outputs that do not match the advertised VPN rotation functionality. This mismatch can cause an agent to invoke the skill under false assumptions, mishandle outputs, or chain the skill into unrelated review workflows, increasing the chance of unsafe command execution or credential-handling actions without informed user intent.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation language is overly broad and overlaps with generic productivity and automation requests, which can cause an agent to select this skill for loosely related prompts. Because the skill exposes exec, read, write, and network operations, broad triggering materially raises the chance of unintended high-impact actions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The core feature statements claim unrelated reporting and visualization capabilities alongside VPN rotation, making the skill appear broader and more generally applicable than it is. That increases the risk of over-invocation and accidental use in contexts where an agent may expose files, credentials, or command execution capabilities under a misleading label.

Content

No source excerpt is available for this finding.

Ssd 4

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The examples normalize large-scale IP rotation, distributed collection, and VPN+SOCKS5 chaining for anonymity, which steers an agent toward evasive behavior patterns commonly associated with bypassing rate limits, geographic controls, or detection. In a skill that also supports command execution and credential-driven network changes, this context materially increases misuse potential and the likelihood of harmful automation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill combines credential handling, command execution, file writes, and VPN/network manipulation but does not present a clear, prominent warning about system, privacy, and connectivity impact. In practice, this can lead users or agents to execute privileged networking actions without understanding that traffic routing, secrets exposure, or service disruption may occur.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The input parameters describe generic content-review inputs rather than VPN-management controls, so an agent may route unrelated user prompts into a skill that can read, write, and execute commands. In context, that ambiguity is dangerous because the skill also advertises network reconfiguration, credential use, and system-level operations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description states '支持中文交互' as a fixed behavior, and the display/name/content are presented as Chinese-first without any opt-in or alternative language option. This can violate language/locale policy when a skill imposes a specific language rather than letting the user choose.

Content

No source excerpt is available for this finding.