pufferlib
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFE
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill incorporates a proactive credential detection mechanism in
scripts/_common.py. The_SECRET_KEYregular expression identifies and rejects configuration keys that look like secrets (e.g., 'api_key', 'token', 'password', 'private_key'), preventing them from being processed or logged by training plans. - [DATA_EXPOSURE]: Path traversal attacks are mitigated in
scripts/_common.pythrough theresolve_local_pathfunction. This utility usesPath.resolve()andrelative_to()to ensure that all file operations are strictly confined to an authorized local root directory. - [DYNAMIC_EXECUTION]: The skill explicitly addresses the security risks associated with PyTorch and Pickle deserialization. The
scripts/inspect_checkpoint.pytool is designed to hash and classify model checkpoints by inspecting file headers as raw bytes, intentionally avoiding the use oftorch.loadorpickle.loadto prevent arbitrary code execution during inspection. - [INDIRECT_PROMPT_INJECTION]: The skill manages the risk of malicious configuration data through strict schema validation. The
scripts/validate_plan.pyutility enforces data type constraints, size limits (e.g.,MAX_JSON_BYTES), and field allowlists for all training and evaluation plans processed by the agent. - [REMOTE_CODE_EXECUTION]: Documentation in
references/training.mdprovides specific security guidance for handling external PufferLib source code. It includes an immutable SHA-256 digest for the stable 3.0.0 release and a pinned Git commit for the 4.0 source line to ensure provenance and prevent supply chain attacks.
Audit Metadata