pymatgen
Pass
Audited by Gen Agent Trust Hub on Oct 24, 2026
Risk Level: SAFE
Full Analysis
- [EXTERNAL_DOWNLOADS]: Fetches materials data from the official Materials Project API (api.materialsproject.org) using the mp-api library. The skill enforces the use of the official endpoint and does not allow redirection of credentials to third-party hosts.
- [DATA_EXFILTRATION]: Implements proactive secret management. The
scripts/mp_query.pyandscripts/_common.pyfiles contain logic to explicitly redact theMP_API_KEYfrom error messages and logs. Additionally, thescripts/artifact_manifest.pyutility refuses to process files with names that suggest they contain credentials or secrets (e.g., 'env', 'secret', 'api-key'). - [DYNAMIC_EXECUTION]: Implements a dedicated security control in
scripts/_common.py(load_structure_json) to prevent arbitrary Python object instantiation. The script recursively scans structure JSON files to reject 'MSON' metadata keys (@moduleand@class) before processing, effectively mitigating potential remote code execution vulnerabilities associated with the underlying library's deserialization features. - [COMMAND_EXECUTION]: All bundled CLI scripts use strict file system operations. The
scripts/_common.pyhelper enforces bounds on file sizes, rejects symbolic links, prevents directory traversal via '..' checks, and ensures that output files cannot overwrite input artifacts.
Audit Metadata