Back to skill

Security audit

Backtest

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a finance backtesting guide, but it requests local command execution and points users to unpinned package/API use without enough scoping or disclosure.

Review before installing. Use it only in a sandboxed Python environment, avoid administrator/root execution, pin and verify any `backtest-engine` package before installing, and do not provide proprietary strategies, API keys, or confidential market data unless you explicitly intend them to be used with external services.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:283
Finding

Unpinned Third-Party Package Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:283
Vulnerability Type: Supply-chain risk from an unpinned third-party dependency
Risk Level: Medium

Vulnerable Code

markdown
- Dependency installation command: `pip install backtest-engine`

Technical Analysis

The quick-start instructions direct users to install backtest-engine without specifying an exact version, package hash, verified repository, lockfile, or provenance information. Consequently, package resolution depends on mutable external package-index state at installation time.

Python package installation may execute package-controlled build or installation logic. If the referenced package or its distribution infrastructure is compromised, ownership changes, or a malicious release is published, following this instruction could execute attacker-controlled code. The project does not include a local implementation against which the installed package's behavior can be verified.

This finding concerns an unsafe dependency-installation practice. The audit did not establish that the current package itself is malicious.

Attack Path

  1. An attacker compromises the package publisher account, distribution channel, or another relevant supply-chain component.
  2. The attacker publishes a malicious release under the package name expected by the documentation.
  3. A user follows SKILL.md and runs pip install backtest-engine.
  4. Because no version or hash is fixed, pip resolves the attacker-controlled release.
  5. Malicious package build, installation, import, or runtime logic executes under the user's account.
  6. The attacker gains access to resources available to that account and may abuse credentials, files, or network access exposed to the Python process.

Impact Assessment

Successful exploitation could provide arbitrary code execution with the privileges of the user running pip or importing the package. The scope may include th ...[truncated 380 chars]

Remediation
View remediation

Remediation Suggestions

  1. Confirm and document the package's authoritative publisher and source repository.
  2. Review the package source and release artifacts before recommending installation.
  3. Pin an audited exact version, for example backtest-engine==X.Y.Z.
  4. Generate a reviewed lockfile containing transitive dependencies.
  5. Require cryptographic hashes during installation, such as with pip install --require-hashes -r requirements.txt.
  6. Use a controlled internal package mirror or explicitly trusted index rather than relying on unrestricted package resolution.
  7. Install and execute the dependency in a non-privileged virtual environment or sandbox.
  8. Add automated dependency provenance, vulnerability, and integrity checks to the release process.
  9. Avoid recommending administrator or root execution for package installation.
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)

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The display name, summary, and primary description are written in Chinese, and the document consistently presents the skill in Chinese without stating that users may choose another language. This can violate language/locale policy when a specific language is imposed without user opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill claims that risky code was removed and security enhanced, yet it still advertises exec capability and external/API-style operations. This creates a false sense of safety that can mislead users or downstream agents into trusting command execution or network-linked behavior without evidence, increasing the chance of unsafe invocation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation guidance says to use the skill whenever the user needs backtesting-related functionality, which is overly broad for a skill exposing exec. Broad triggering increases the likelihood that the agent invokes the skill in ambiguous contexts, potentially executing commands or handling sensitive financial data when simpler, safer responses would suffice.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The metadata declares exec tool usage, but the user-facing description does not warn that commands may be executed locally or in a runtime environment. Users may provide files, data, or instructions without understanding that they could trigger shell or Python execution, creating avoidable risk.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The document asserts completed controls such as encryption, key management, monitoring, backup, access control, and vulnerability scanning, but this file provides no implementation or enforceable mechanism for them. Such unsupported assurances can cause operators to assume protections exist when they do not, leading to unsafe handling of secrets, data, and command execution contexts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The documentation references external data sources and APIs but does not clearly warn that user data, parameters, or market datasets may be transmitted over networks or to third parties. In a finance-oriented skill, that omission is more sensitive because prompts and uploaded data may contain proprietary trading logic, credentials, or confidential market workflows.

Content

No source excerpt is available for this finding.