Back to skill

Security audit

Xml Reader

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed XML data-processing helper, with some parser-hardening and scope clarity issues but no evidence of hidden, destructive, persistent, or exfiltrating behavior.

Install only if you are comfortable granting filesystem access for construction data files. Use trusted XML inputs where possible, avoid very large or deeply nested XML, and treat CSV/Excel/JSON support as informal unless the skill adds explicit documented handling for those formats.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:35
Finding

Unrestricted Parsing of User-Controlled XML Enables Denial of Service

Content
View full analysis
ET.Element: """Parse XML file and return root element.""" tree = ET.parse(file_path) root = tree.getroot() # Extract namespaces self._extract_namespaces(root) return root def parse_string(self, xml_string: str) -> ET.Element: """Parse XML from string.""" root = ET.fromstring(xml_string) ``` ### Technical Analysis The documented implementation passes user-supplied files and strings directly to `xml.etree.ElementTree.ET.parse` and `ET.fromstring`. It does not enforce limits on document size, element count, nesting depth, processing time, or resulting in-memory object size. The project instructions explicitly permit users to provide project data and file paths. Consequently, these parser entry points form a trust boundary through which an attacker may submit maliciously structured or exceptionally large XML. Parsing builds an in-memory element tree, while later recursive processing in `element_to_dict` can amplify resource use or reach Python's recursion limit when handling deeply nested documents. No evidence indicates that this flaw permits arbitrary code execution, privilege escalation, filesystem writes, or network access. The supported impact is availability loss in the process hosting the skill. ### Attack Path 1. An attacker provides a file path referencing an oversized or deeply nested XML document, or supplies equivalent XML as a string. 2. The agent follows the skill instructions and invokes `parse_file` or `parse_string`. 3. `ET.parse` or `ET.fromstring` constructs the XML tree without application-level size, depth, time, or element-count limits. 4. Tree construction consumes excessive memory or CPU. If recursive dictionary conversion is subsequently requested, ...[truncated 672 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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 (1)

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The instructions expand the skill's stated scope from XML parsing to also accepting CSV, Excel, and JSON inputs and offering exports in those formats. This scope drift can cause the agent to handle file types and processing paths not covered by the documented implementation in SKILL.md, increasing the chance of unsafe parsing, unexpected file access, or misuse of unsupported capabilities.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.