Back to skill

Security audit

Legal Doc Writer

Security checks for vulnerabilities and agentic risk

Overview

This skill is a China tax-law document drafting aid with no executable code, persistence, credential access, or hidden data handling.

Install this only for China-focused tax and legal drafting workflows. Because legal documents can have real consequences, verify cited law, facts, deadlines, and professional requirements with a qualified reviewer before use.

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
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
The description and drafting principles explicitly frame the skill as producing Chinese legal and tax documents and require use of Chinese legal-document conventions and professional legal terminology. This imposes a specific language/locale without an explicit user opt-in or a documented policy justification in the file.

Natural-Language Policy Violations

Low
Confidence
85% confidence
Finding
The file is entirely written as Chinese-language legal document templates and does not indicate that the skill is region-specific, optional by locale, or that users may choose another language. Under the policy rule for natural-language constraints, this can be read as enforcing a specific language without explicit opt-in or justification.

Static analysis

No suspicious patterns detected.