pymatgen
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes external structure files (such as CIF, POSCAR, and JSON datasets) which could potentially contain malicious instructions intended for the agent.
- Ingestion points:
scripts/composition_structure_validator.py,scripts/structure_analyzer.py, andscripts/phase_diagram_generator.pyingest data via theload_structureandload_strict_jsonhelpers. - Boundary markers: The skill explicitly captures and reports all parser-level and Python-level warnings to the user, ensuring that structural anomalies or unexpected data formats are surfaced before further analysis.
- Capability inventory: The agent has capabilities to write files to the local system, perform authenticated network queries to the Materials Project API, and potentially interface with external scientific modeling tools.
- Sanitization: The implementation is highly defensive, using bounded input (50MB default), site-count limits (10,000), path traversal rejection (
..), and strict JSON parsing that rejects duplicate keys and non-finite numbers. - [DATA_EXFILTRATION]: The skill performs authenticated network requests to the Materials Project API (
api.materialsproject.org). - Evidence:
scripts/mp_query.pyuses themp-apiclient to perform summary searches on the Materials Project database. This is a well-known scientific service and the communication is documented neutrally. - Credential Handling: The skill securely accesses the
MP_API_KEYvia environment variables. Thescripts/_common.pyhelper includes logic to redact this secret from any error messages or output logs to prevent accidental exposure. - [COMMAND_EXECUTION]: The documentation discusses the use of optional external native executables for advanced materials transformations.
- Evidence:
references/transformations_workflows.mdmentions dependencies on native tools likeenumlibfor structure enumeration. The skill provides clear guidance on reviewing the provenance, hashes, and licenses of these tools and suggests running them in isolated environments with resource limits.
Audit Metadata