pymatgen

Pass

Audited by Gen Agent Trust Hub on Nov 22, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The skill manages its scientific environment using the uv tool to install specific, pinned versions of the pymatgen, pymatgen-core, and mp-api packages from the public PyPI registry. These are well-known libraries in the computational materials science community.
  • [INDIRECT_PROMPT_INJECTION]: As the skill is designed to parse complex scientific file formats like CIF (Crystallographic Information File), it has an attack surface for indirect prompt injection or malicious file parsing. The documentation proactively addresses a historical arbitrary code execution vulnerability (CVE-2024-23346) and implements multiple layers of defense, including strict file-size bounds, site-count limits, and dedicated validation scripts (composition_structure_validator.py) that verify structural invariants before full parsing.
  • [CREDENTIALS_UNSAFE]: The skill requires an MP_API_KEY for Materials Project database access. It implements safe secret management by reading the key exclusively from environment variables, redacting the key from error messages in scripts/mp_query.py, and including a sensitive name filter in scripts/artifact_manifest.py that refuses to hash or list files likely to contain credentials.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 01:31 PM