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_KEY regular 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.py through the resolve_local_path function. This utility uses Path.resolve() and relative_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.py tool is designed to hash and classify model checkpoints by inspecting file headers as raw bytes, intentionally avoiding the use of torch.load or pickle.load to 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.py utility 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.md provides 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
Risk Level
SAFE
Analyzed
Sep 28, 2026, 09:46 AM