pymatgen

Pass

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: SAFE
Full Analysis
  • [CREDENTIALS_SAFE]: The skill implements secure handling of the Materials Project API key by exclusively reading it from an environment variable (MP_API_KEY). The scripts/mp_query.py and scripts/_common.py files include explicit logic to redact the API key from error messages and logs to prevent accidental exposure.
  • [EXTERNAL_DOWNLOADS]: The skill interacts with the official Materials Project API (api.materialsproject.org), a well-known scientific data service. All network operations are disclosed in dry-run plans and require explicit user opt-in via the --execute flag.
  • [DATA_EXPOSURE]: The helper utility scripts/_common.py implements strong path validation, including the resolution of symlinks and the rejection of directory traversal patterns (..) and non-local URLs in file paths.
  • [DYNAMIC_EXECUTION]: The skill provides significant protection against unsafe deserialization. The load_structure_json function in scripts/_common.py manually validates JSON payloads to reject nested MSON metadata (keys starting with @) before passing data to the pymatgen constructor, effectively mitigating arbitrary object injection risks.
  • [INDIRECT_PROMPT_INJECTION]: The skill documents the risks associated with processing untrusted scientific file formats (such as CIF) and correctly recommends process isolation and resource limits (CPU, RAM, disk) for handling such data.
  • [COMMAND_EXECUTION]: The bundled scripts use bounded subprocess calls only for well-defined scientific purposes (e.g., symmetry analysis via spglib). It explicitly warns against the automatic execution of optional external tools like enumlib, advising users to verify their provenance and isolate inputs.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 03:30 PM