Ml
4 tutorials in this category.
01
How to Secure AI/ML Model Downloads with Hugging Face Proxying
Route Hugging Face model downloads through Chainsaw, apply supply chain policies to ML artifacts, and monitor AI model consumption.
02
How to Scan ML Model Artifacts for Unsafe Pickle Opcodes
Stop a malicious model weight from executing arbitrary code at load time. Walks through Chainsaw's pickle opcode scanner, the unsafe opcode list, and how to write a policy that blocks Hugging Face and PyPI artifacts that ship with `os`, `subprocess`, or `builtins.eval` references in their serialized state.
03
How to Detect Prompt-Injection in Model Cards and Prompt Templates
Catch hidden-unicode, bidi-override, and prompt-injection phrasing in Hugging Face model cards, prompt templates, and agent system prompts before they reach your retrieval pipeline.
41
How to Point Hugging Face at Chainsaw
Route Hugging Face model and dataset downloads through your Chainsaw proxy with the HF_ENDPOINT environment variable.