Back to skill

Security audit

Paper Trader

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed local paper-trading journal that records simulated trades in a local SQLite database.

Before installing, understand that this stores simulated trading records and notes locally in SQLite under ~/.openclaw unless you pass --db. It does not place real trades or fetch market data automatically, so users must provide prices themselves and should not treat output as financial advice.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
Findings (1)

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The test helper invokes a child process via spawnSync to run the paper_trading script, which is a subprocess execution covered by the code-file warning rule. In this file there is no comment, docstring, or user-facing disclosure around that behavior, so the operation is performed without any visible warning in the file itself.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.dangerous_exec

Shell command execution detected (child_process).

Critical
Code
suspicious.dangerous_exec
Location
tests/paper_trading.test.mjs:19