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, and scripts/phase_diagram_generator.py ingest data via the load_structure and load_strict_json helpers.
  • 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.py uses the mp-api client 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_KEY via environment variables. The scripts/_common.py helper 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.md mentions dependencies on native tools like enumlib for 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
Risk Level
SAFE
Analyzed
Oct 2, 2026, 05:01 PM