docx-toolkit
Fail
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The
setup.shandenv_check.shscripts are designed to download the .NET SDK installation script fromhttps://dot.net/v1/dotnet-install.sh, an official Microsoft domain. - [REMOTE_CODE_EXECUTION]: The tool automates the retrieval and execution of a setup script from a well-known source (
dot.net) as part of its environment initialization. - [COMMAND_EXECUTION]: The skill invokes several external utilities to facilitate document operations:
sofficeis utilized bydoc_to_docx.shfor headless conversion of legacy.docfiles.pandocis used indocx_preview.shto extract and display document text for previewing purposes.dotnetis used to build the core project and execute C# scripts.- [PRIVILEGE_ESCALATION]: The
setup.shscript employssudoto install dependencies through system package managers and applieschmod +xto make the downloaded installation script executable. - [DYNAMIC_EXECUTION]: The skill's documentation provides patterns for writing and executing custom C# scripts (
.csxfiles) at runtime using thedotnet runcommand to manage advanced structural document manipulations. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an inherent vulnerability surface for indirect prompt injection during its processing of document data:
- Ingestion points: Untrusted content enters the agent's context through user-provided
.docxand.docfiles during analysis, editing, and template application phases. - Boundary markers: The document processing logic does not implement specific delimiters or warnings to separate data content from potential instructions.
- Capability inventory: The skill has broad capabilities, including executing shell commands, performing file system operations, and running dynamic scripts.
- Sanitization: While the tool performs XML escaping for text insertion, it lacks specific sanitization logic to detect or filter out prompt injection patterns embedded within the input documents.
Recommendations
- HIGH: Downloads and executes remote code from: https://dot.net/v1/dotnet-install.sh - DO NOT USE without thorough review
Audit Metadata