architecture-design
Warn
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill implements an auto-import pattern that dynamically loads and executes Python modules from the filesystem.
- The
import_moduleshelper function inreferences/auto_import.mdusespkgutil.iter_modulesto scan directories andimportlib.import_moduleto load them. - This mechanism is triggered during package initialization in
__init__.pyfiles (e.g.,src/data_module/dataset/__init__.py), meaning code execution happens automatically when the module is accessed. - [INDIRECT_PROMPT_INJECTION]: The auto-import architecture creates a vulnerability surface where untrusted data (new files) can lead to code execution.
- Ingestion points: The local filesystem directories scanned by the factory pattern (e.g.,
src/data_module/dataset/,src/model_module/model/). - Boundary markers: The logic only filters out files starting with an underscore (
_). There are no other delimiters or integrity checks for the content being imported. - Capability inventory: The skill possesses full shell execution capabilities via
pipeline_example.shand dynamic Python execution viaimportlibinauto_import.md. - Sanitization: No sanitization, signature verification, or content validation is performed on the modules before they are imported and executed.
Audit Metadata