pytdc
Warn
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill implements dynamic loading of Python modules from the PyTDC library based on runtime parameters. Although these modules are validated against hardcoded internal maps, the implementation uses computed paths to load executable code.
- Evidence in
scripts/load_and_split_data.py: Resolves a module name from theTASKSdictionary using a user-supplied key, then executesimportlib.import_module(module_name)followed bygetattrto instantiate task classes. - Evidence in
scripts/benchmark_evaluation.py: Employs a similar pattern using theGROUPSmap to dynamically import and instantiate benchmark group classes. - Evidence in
scripts/_common.py: Contains helper functions used by the above scripts to facilitate these dynamic operations. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection as it ingests and processes untrusted scientific data, including SMILES strings and prediction arrays, which could theoretically contain instructions targeting the agent's logic.
- Ingestion points: Files containing SMILES strings are read in
scripts/molecular_generation.py, and JSON-formatted prediction data is parsed inscripts/benchmark_evaluation.py. - Boundary markers: The scripts provide structured JSON summaries of the data but do not implement specific prompt-level delimiters or 'ignore' instructions for the agent when processing these inputs.
- Capability inventory: The skill has capabilities for network operations (fetching datasets via PyTDC), filesystem writes (dataset and checkpoint caching), and executing molecular processing logic via RDKit.
- Sanitization: The skill includes defensive measures such as strictly relative path resolution in
safe_relative_path, file size limitations for user inputs, and specialized JSON parsing that rejects non-standard constants to prevent common data-parsing exploits.
Audit Metadata