Back to skill

Security audit

ContextWeave Scientific Figure & Video

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this scientific-figure skill suspicious because it reports file-write risks, automatic skill installation and replacement, and undeclared account, feedback, and cloud narration features; the scan was incomplete.

Consider the suspicious verdict and incomplete coverage before installing. The main reported concerns are automatic software installation or replacement, a possible write outside the output directory, and data sent to external services; review the install source and update behavior and decide whether those capabilities fit your needs.

Vulnerability Patterns
  • 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
  • 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 (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/cw_client.cjs
Finding

Unvalidated remote artifact IDs permit writes outside the output directory

Content
View full analysis

Impact

The response provider can create or truncate files outside the output directory, subject to the process's permissions and the permitted filename extensions. For example, with output_name 'figure', id '/../../victim' and format 'json', the destination resolves to '../victim.json' relative to targetDir. Existing JSON configuration or project files can therefore be overwritten.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/update_skill.cjs
Finding

Automatic recovery force-installs an unrelated Skill instead of updating the current Skill

Content
View full analysis

Impact

Recovery can install or forcibly replace the architecture Skill without updating the scientific Skill. An existing architecture installation, including local modifications, can be overwritten as a side effect of an unrelated figure-generation task.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (81)

Tainted flow: 'request' from os.environ.get (line 2444, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/render_motion_video.py (reported line 2446)May include surrounding context.

python
payload = {"model": model, "input": {"text": text, "voice": voice, "language_type": language_type}}
    request = speech_request(DASHSCOPE_TTS_ENDPOINT, payload, "Authorization", f"Bearer {key}")
    try:
        with urllib.request.urlopen(request, timeout=90) as response:
            audio_url = json.load(response)["output"]["audio"]["url"]
        location = urllib.parse.urlsplit(audio_url)
        if location.scheme not in {"http", "https"} or not location.hostname or location.username or location.password:

Tainted flow: 'request' from os.environ.get (line 2495, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/render_motion_video.py (reported line 2507)May include surrounding context.

python
{"model_id": model, "text": text}, "xi-api-key", key,
        )
    try:
        with urllib.request.urlopen(request, timeout=90) as response:
            return response.read()
    except urllib.error.HTTPError as exc:
        exc.close()

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk implements a self-updater, not scientific figure generation or export. Its network retrieval, remote-code execution, and forced package installation are material capabilities absent from the declared description, rather than ordinary rendering implementation details. The downloaded installer has no explicit checksum or signature verification in this code. This assessment concerns the supplied updater only; it does not establish what other parts of the skill do or imply that the installer is malicious.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied script implements a feedback-submission capability rather than figure creation or export. Sending session-linked complaints and agent analysis to an API is an undeclared data-handling capability, not merely an implementation detail of rendering scientific figures. The CWClient implementation is not supplied, so the destination host and underlying transport cannot be determined from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The animation, HTML, subtitle, and local audio-processing functionality aligns with the declared purpose. However, the supplied code also performs substantive external-service operations: speech synthesis requests send narration text to third parties, and some providers require credentials read from the environment or a user-specified file. These are conditional capabilities, not evidence that every export uses the network; the generated HTML can still play offline. Nevertheless, the description does not disclose cloud narration or the associated data transmission and credential access. The absence of other advertised export formats in this partial chunk is not itself a mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied script implements a quota-management workflow rather than figure creation or export. The description does not disclose email verification, quota redemption, or the associated API interaction. Although quota management could support a broader product, the supplied code does not establish that connection, and this is a distinct user-facing capability rather than merely a rendering implementation detail. The implementation of CWClient and its destination are not supplied, so no additional network or data-handling behavior can be established.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The declared purpose covers figure creation and export, but does not disclose feedback submission or processing user email addresses alongside session identifiers and diagnostic analysis. This is a separate data-handling capability rather than a figure-rendering implementation detail. The supplied command does not reveal the script's implementation, so external transmission or storage cannot be confirmed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The supplied chunk implements remote token-budget administration rather than scientific figure creation or export. Although budgeting could support a larger AI workflow, the supplied code establishes no connection to the declared figure-generation functionality. Its demonstrated capability is an undeclared remote accounting service. There is no evidence here of figure rendering, template handling, or export.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

This script implements a user-facing quota-redemption and credential-provisioning operation rather than figure creation or export. Although the output presents this as preparation for generation, redeeming a code and submitting an email address to a service is an additional capability beyond an ordinary rendering implementation detail. The supplied chunk does not establish the service hostname or CWClient's internal behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The supplied code implements session-based code export rather than scientific figure generation or any of the listed graphical export formats. Nothing shown connects this export operation to the declared figure workflow. The CWClient implementation is not supplied, so filesystem writes, network access, and the precise exported content cannot be verified; the mismatch is based on the visible code-export operation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The supplied command exposes a quota-redemption operation rather than figure creation, editing, or export. This account-related capability is not described or established as a necessary supporting implementation detail. The script body is unavailable, so network access, credential storage, and successful redemption cannot be confirmed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

The supplied command targets maintenance of the skill itself, a capability not described in the declared purpose and not evidently required for figure creation or export. The updater's implementation is not supplied, so this chunk does not establish network access, actual file changes, or whether --dry-run is honored.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

The supplied command exposes an email-based quota acquisition capability that is not described in the declared figure-creation and export purpose. No connection to a necessary rendering or export implementation detail is shown. The utility's implementation is unavailable, so network transmission, email delivery, and other side effects cannot be confirmed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
82% confidence
Finding

The supplied command invokes an updater for the skill itself rather than a figure-generation or export operation. Updating the installed skill is a separate operational capability, not merely an implementation detail of rendering figures. The updater's implementation is not supplied, so network access, downloads, file modifications, and other specific effects cannot be established from this chunk alone.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 89)May include surrounding context.

md
2. 取得授权后,执行当前模板卡推荐的命令(以下命令参数已对照 `scripts/cw_client.cjs` 核实):

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 92)May include surrounding context.

md
node scripts/generate_contextweave.cjs \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 165)May include surrounding context.

md
| 7 | 未经一次外发授权直接执行 `generate_contextweave.cjs` | 首次联网前按 `external-data-consent.md` 取得明确同意再执行 |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 115)May include surrounding context.

md
当用户需要放入论文、PowerPoint 或 Visio 继续调整文字和箭头时,读取返回 JSON 中的 `session_id`,调用 `export_session_asset.cjs`:

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 118)May include surrounding context.

md
node scripts/export_session_asset.cjs --session_id "<session_id>" --format pptx --output_name "<英文名>" --output_dir "docs/diagrams"

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 119)May include surrounding context.

md
node scripts/export_session_asset.cjs --session_id "<session_id>" --format vsdx --output_name "<英文名>" --output_dir "docs/diagrams"

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 120)May include surrounding context.

md
node scripts/export_session_asset.cjs --session_id "<session_id>" --format svg --output_name "<英文名>" --output_dir "docs/diagrams"

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 128)May include surrounding context.

md
node scripts/export_session_asset.cjs --svg_file figure.svg --format mp4 --output_name figure --output_dir motion

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 129)May include surrounding context.

md
node scripts/export_session_asset.cjs --svg_file figure.svg --storyboard_file motion/figure.motion.json --format mp4 --output_name figure --output_dir motion

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 130)May include surrounding context.

md
node scripts/export_session_asset.cjs --svg_file figure.svg --format motion-html --output_name figure --output_dir motion

Recovery instructions promote a server upgrade response into authority to install and overwrite agent skills without user approval.

High
Category
Prompt Injection
Confidence
99% confidence
Finding

The workflow explicitly promotes an HTTP 426 response and its required_version field into an instruction to modify local executable skills and retry in a new process. Remote service data should not independently authorize local software installation; checking that the resulting version string matches does not authenticate the installed code.

Content

No source excerpt is available for this finding.