Back to skill

Security audit

Heap Dump & Profiler

Security checks for vulnerabilities and agentic risk

Overview

This is a manual local diagnostics skill that writes heap snapshots and profiling state locally, with no evidence of network exfiltration, prompt hijacking, or automatic execution.

Install only if you are comfortable with local diagnostic files being written under ~/.openclaw. Heap snapshots can be large and may contain runtime details, and profiler history should be cleaned manually if not needed. The skill would benefit from clearer documentation of its actual storage paths and retention behavior.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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 (9)

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The skill is described as providing V8 heap snapshot and perf_hooks analysis, but the finding indicates those declared capabilities are not fully implemented while undeclared local persistence writes to ~/.openclaw/profiles/current.json and history.jsonl occur instead. Hidden persistence can create unexpected data retention, leak sensitive runtime details, and undermine trust because the operational behavior diverges materially from the documented purpose.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is described as providing V8 heap snapshot and perf_hooks analysis, but the finding indicates those declared capabilities are not fully implemented while undeclared local persistence writes to ~/.openclaw/profiles/current.json and history.jsonl occur instead. Hidden persistence can create unexpected data retention, leak sensitive runtime details, and undermine trust because the operational behavior diverges materially from the documented purpose.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
84% confidence
Finding

The skill declares no explicit tool scope or permissions, yet the detected capabilities include environment access. In an agent setting, missing scope boundaries makes it harder to constrain what the skill may read or expose, increasing the chance of unintended disclosure or privilege creep.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file’s natural-language interface is written in Chinese in the header/help text and continues throughout console output, which imposes a specific language on users. The policy allows locale constraints only when users are given a choice or the constraint is clearly documented and justified, neither of which appears here.

Content

No source excerpt is available for this finding.

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.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes the skill as providing both '内存快照分析(v8 heap snapshot)' and performance analysis, but this script's documented purpose and implementation are limited to performance timing of phases/turns. The code uses perf_hooks and local JSON state files, with no heap snapshot APIs, heap file parsing, or memory-analysis logic present.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file’s natural-language documentation and CLI usage descriptions are written entirely in Chinese, which imposes a specific language on users. Under the policy, locale or language constraints should either be optional/opt-in or clearly justified as region-specific, neither of which is stated here.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
99% confidence
Finding

The top-of-file usage comment lists start, checkpoint, report, and --status commands, but the actual command dispatcher also implements an 'end' command. This is an intent/documentation mismatch because the documentation of how to operate the profiler does not accurately reflect the code's supported behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description is written entirely in Chinese, which imposes a specific language choice in user-facing metadata without indicating any language option or opt-in. The policy specifically calls for flagging language or locale constraints when the skill does not offer a choice or clearly justify the restriction.

Content

No source excerpt is available for this finding.