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
uvtool to install specific, pinned versions of thepymatgen,pymatgen-core, andmp-apipackages 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_KEYfor Materials Project database access. It implements safe secret management by reading the key exclusively from environment variables, redacting the key from error messages inscripts/mp_query.py, and including a sensitive name filter inscripts/artifact_manifest.pythat refuses to hash or list files likely to contain credentials.
Audit Metadata