pymatgen

Pass

Audited by Gen Agent Trust Hub on Sep 24, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing scientific dependencies (pymatgen, pymatgen-core, mp-api) from the standard PyPI registry. It also facilitates data retrieval from the Materials Project API (api.materialsproject.org), which is a well-known scientific service.
  • [COMMAND_EXECUTION]: Several bundled Python scripts are used to perform local structure analysis, symmetry detection, and phase diagram generation. These scripts invoke functions from the pymatgen library to process data locally.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests external structure files (CIF, POSCAR, etc.) which are processed by third-party parsers. The skill mitigates this risk by enforcing site and byte limits, implementing strict schema validation for JSON inputs, and providing explicit warnings regarding known vulnerabilities in specific file formats (e.g., CVE-2024-23346).
  • [CREDENTIALS_UNSAFE]: The skill utilizes an environment variable (MP_API_KEY) for authenticated Materials Project queries. The scripts/mp_query.py script and scripts/_common.py helper include dedicated logic to ensure the key is never logged, serialized, or exposed in error messages through a redaction mechanism.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 24, 2026, 02:26 PM