Back to skill

Security audit

digital-template-factory

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does template generation, but it also adds persistent learning that can store arbitrary user-provided text and influence future skill behavior without clear consent or safeguards.

Review before installing. The main template features are understandable, and I found no remote code execution, credential access, exfiltration, or destructive commands. The risk is the built-in learning system: it stores local usage/preferences and encourages future agents to rely on that stored state and update the skill instructions. Install only if you are comfortable with that persistence, or disable/remove the learner and require explicit review before any SKILL.md changes.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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
Findings (1)

T02 · Agent Memory Poisoning

Warning
Location
scripts/learner.py:72
Finding

Unvalidated Persistent Data Can Poison Future Agent Behavior

Content
View full analysis
= THRESHOLD_ERROR: suggestions.append( f"⚠️ Error '{err}' has occurred {info['count']} times. Add validation or fallback steps " f"and write the experience back to SKILL.md (lastNote: {info.get('lastNote','')})" ) if data["totalOps"] >= THRESHOLD_OPS: caps = data["capabilityStats"] top = max(caps.items(), key=lambda kv: kv[1]["count"]) if caps else None if top: suggestions.append( f"Most frequently used capabili ...[truncated 3542 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a digital-template generator, but the embedded instructions add unrelated telemetry and preference-persistence behavior via a learner script. That mismatch is dangerous because users and orchestrators may grant file and network permissions based on the advertised purpose, while hidden stateful behavior collects and stores operational data beyond what is needed for template generation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger phrases are broad generic terms such as '模板制作' and '简历模板', making accidental invocation likely during ordinary conversation. In this skill, accidental triggering is more dangerous because the skill also has write and web permissions plus instructions to persist usage data, so unintended activation could lead to unnecessary state changes or data handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill requests Read, Write, Edit, WebSearch, and WebFetch capabilities, but the user-facing description does not disclose that it may modify files or access the network. This undermines informed consent and can cause users or hosting agents to expose broader privileges than expected for a template-generation skill.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The self-evolution module records usage history, error data, and user preferences in a local file even though that behavior is unrelated to generating templates. Unnecessary persistence increases privacy risk, creates hidden state across sessions, and can enable profiling or retention of sensitive user workflow details without informed consent.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill instructs persistence of user preferences across sessions in learned_patterns.json without clear minimization, consent, or retention boundaries. Because preferences, errors, and notes can easily include personal or sensitive workflow details, this creates a privacy and data-governance risk disproportionate to the skill's advertised purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The module is explicitly designed as a generic cross-skill 'self-evolving' learner for arbitrary WorkBuddy skills, which exceeds the declared purpose of a digital template factory. This broadens data collection and reuse across skills, increasing the chance of unauthorized persistence, scope creep, and use of operational telemetry in contexts users did not expect.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module docstring and all user-facing usage/help text in this file are written exclusively in Chinese, including the tool description and command examples. This imposes a language choice on users without any opt-in or documented locale justification, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The code persistently stores user preferences, capability usage, failure telemetry, notes, and recent operations in a local JSON file without any minimization, retention controls, or consent flow. In the context of a template-generation skill, this is unnecessary broad telemetry and may capture sensitive user-entered content in notes or preferences, creating privacy and data handling risk if accessed by other components or users on the host.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

L196 says the skill improves automatically '无需人工维护' and '每次使用后自动复盘', implying autonomous built-in behavior. But L201-L214 instruct the operator to manually invoke python scripts/learner.py ..., and L217 says experience should be written back into SKILL.md, so the documented intent of automatic maintenance contradicts the actual documented operation.

Content

No source excerpt is available for this finding.