structure-recovery
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted legacy code artifacts (SQL, COBOL, DataStage exports, and flat-file layouts) to reconstruct data structures, creating a vulnerability surface for indirect prompt injection through data ingestion.
- Ingestion points: Files are discovered and read using
scripts/run_structure_recovery.pyand the sharedscripts/chunk_file.pyutility. - Boundary markers: The skill implements
scripts/boundary_hints.pyto identify safe split points, ensuring structural records are not bisected during chunking, which reduces the likelihood of processing malformed or malicious fragments. - Capability inventory: The framework generates HTML reports, CSV/Excel exports, and Wiki pages. It also generates inferred DDL scripts, which are explicitly marked with human-review headers and use commented-out blocks for inferred constraints to prevent accidental execution.
- Sanitization: Comprehensive sanitization is applied across all output emitters, including
html.escapeand JSON-in-HTML Unicode escaping for reports, CSV formula protection in_csv_escape, and Excel formula injection protection (CWE-1236) using thesafe_cellrule inscripts/render_structure.py. - [DYNAMIC_EXECUTION]: The orchestration scripts
scripts/run_structure_recovery.pyandscripts/accumulate_structure.pyuseimportlib.utilto dynamically load internal components and shared scripts from sibling skills (e.g.,lineage-extract-static) for modular operation. - [EXTERNAL_DOWNLOADS]: The skill references the Cytoscape visualization library from the UNPKG CDN in
scripts/render_structure.pyto support relationship graph rendering in the HTML report output.
Audit Metadata