kordoc-detect-format
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill uses
npm execto download and install thekordocandpdfjs-distpackages from the public NPM registry during execution. Whilepdfjs-distis provided by a well-known organization,kordocis an external package without a pinned version. - [DYNAMIC_EXECUTION]: The command utilizes a shell heredoc to run Node.js code and performs a dynamic
import()of thekordoclibrary. The file path for this import is dynamically constructed at runtime by resolving the binary location from thePATHenvironment variable. - [COMMAND_EXECUTION]: The skill executes shell commands via
npm execand Node.js code to perform file system operations, specifically opening and reading the header of local files. - [INDIRECT_PROMPT_INJECTION]: The skill ingests the first 4 bytes of a user-provided file to identify its magic bytes. This constitutes an attack surface where untrusted data from an external file enters the agent's processing context, although the risk is limited by the 4-byte read constraint.
Audit Metadata