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.py and the shared scripts/chunk_file.py utility.
  • Boundary markers: The skill implements scripts/boundary_hints.py to 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.escape and JSON-in-HTML Unicode escaping for reports, CSV formula protection in _csv_escape, and Excel formula injection protection (CWE-1236) using the safe_cell rule in scripts/render_structure.py.
  • [DYNAMIC_EXECUTION]: The orchestration scripts scripts/run_structure_recovery.py and scripts/accumulate_structure.py use importlib.util to 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.py to support relationship graph rendering in the HTML report output.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 12:52 PM