hwpx-core
Pass
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-provided content (Markdown and HWPX files) and performs document assembly, which represents a potential injection surface.
- Ingestion points:
md_parser.pyingests user-supplied Markdown;analyze_template.pyandtext_extract.pyingest user-supplied HWPX files. - Boundary markers: Instructions require the use of specific placeholders (e.g.,
<!--IMAGE:image1-->) and delimiters when inserting content. - Capability inventory: The skill has extensive file-writing capabilities through
build_hwpx.py,xml_writer.py, andzip_surgery.py. - Sanitization: Content is passed through an
xml_escapefunction inmd_parser.pyandxml_writer.pybefore being interpolated into HWPX XML fragments to prevent XML structural corruption. - [DYNAMIC_EXECUTION]: Several scripts use the
importlibmodule to load peer scripts dynamically. md_merger.pyloadsmd_parser.pyviaimportlib.util.spec_from_file_location.section_transplant.pyloadszip_surgery.pyviaimportlib.import_module.office/pack.pyloadscell_writer.pyviaimportlib.util.spec_from_file_location.- In all cases, the target paths are computed relative to the script directory using
Path(__file__), which keeps the execution scope limited to the skill's own code. - [COMMAND_EXECUTION]: The
validate.pyscript and various test files usesubprocess.run()to execute shell commands. validate.pyexecutesproofread.pyusingsys.executableand a local path to perform quality checks.- Tests (e.g.,
test_e2e_pipeline.py) usesubprocess.run()to execute the internal build pipeline for verification. - These executions are restricted to calling local Python scripts provided within the skill package.
Audit Metadata