Back to skill

Security audit

Windows Print

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Windows printing helper that only prints user-selected files after an explicit print request.

Install only if you want an agent to send chosen local files to Windows printers. Confirm the file list, printer, and copy count before printing, and note that the script may fall back to the default printer if PrintTo fails for a named printer.

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
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • 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 (3)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

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

md
1) **Never print just because a file arrived.** A file attachment alone is not a print request.
2) **Confirm per file / per batch.** Even if the user printed something earlier in the conversation, do not assume new files should be printed.
3) **Require a clear print instruction AND a clear target.** The user must either:
   - ask to print **and** explicitly reference the attachment(s) they mean ("print this", "打印这个/这个附件"), or
   - ask to print and then confirm from a presented file list.

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

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

md
1) **Never print just because a file arrived.** A file attachment alone is not a print request.
2) **Confirm per file / per batch.** Even if the user printed something earlier in the conversation, do not assume new files should be printed.
3) **Require a clear print instruction AND a clear target.** The user must either:
   - ask to print **and** explicitly reference the attachment(s) they mean ("print this", "打印这个/这个附件"), or
   - ask to print and then confirm from a presented file list.

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

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

md
- ask to print **and** explicitly reference the attachment(s) they mean ("print this", "打印这个/这个附件"), or
   - ask to print and then confirm from a presented file list.

Accepted explicit print instructions (non-exhaustive):

- English: "print", "print this", "print the attachment", "print 2 copies"
- Chinese user intent (still accepted): "打印", "打印这个文件", "把附件打印出来", "打印两份", "用 XX 打印"

Static analysis

No suspicious patterns detected.