Back to skill

Security audit

Microsoft Qlib

Security checks for vulnerabilities and agentic risk

Overview

The skill is a straightforward Qlib helper for quantitative finance work, with the main caution that it installs an unpinned Python package.

Install in a virtual environment or container, preferably pin and review the Qlib package version before use, and avoid running the install from a privileged account. The skill itself is coherent and does not request unusual access beyond installing and using Qlib.

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:8
Finding

Unpinned Third-Party Qlib Package Installation

Content
View full analysis
Remediation
View remediation
" ``` 3. Store dependencies in a lock file or requirements file containing cryptographic hashes, and install with hash verification: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Use a trusted, explicitly configured package index or an internally reviewed artifact repository. 5. Review both the selected package and its transitive dependencies before updating the pinned version. 6. Perform installation in an isolated virtual environment or container under an unprivileged account. 7. Avoid automatic dependency installation where possible; require user confirmation and clearly disclose that installation retrieves and executes third-party package content. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep

Static analysis

No suspicious patterns detected.