Premium Only Content

The hidden dangers of loading open-source AI models (ARBITRARY CODE EXPLOIT!)
#huggingface #pickle #exploit
Did you know that something as simple as loading a model can execute arbitrary code on your machine?
Try the model: https://huggingface.co/ykilcher/totally-harmless-model
Get the code: https://github.com/yk/patch-torch-save
Sponsor: Weights & Biases
Go here: https://wandb.me/yannic
OUTLINE:
0:00 - Introduction
1:10 - Sponsor: Weights & Biases
3:20 - How Hugging Face models are loaded
5:30 - From PyTorch to pickle
7:10 - Understanding how pickle saves data
13:00 - Executing arbitrary code
15:05 - The final code
17:25 - How can you protect yourself?
Links:
Homepage: https://ykilcher.com
Merch: https://ykilcher.com/merch
YouTube: https://www.youtube.com/c/yannickilcher
Twitter: https://twitter.com/ykilcher
Discord: https://ykilcher.com/discord
LinkedIn: https://www.linkedin.com/in/ykilcher
If you want to support me, the best thing to do is to share out the content :)
If you want to support me financially (completely optional and voluntary, but a lot of people have asked for this):
SubscribeStar: https://www.subscribestar.com/yannickilcher
Patreon: https://www.patreon.com/yannickilcher
Bitcoin (BTC): bc1q49lsw3q325tr58ygf8sudx2dqfguclvngvy2cq
Ethereum (ETH): 0x7ad3513E3B8f66799f507Aa7874b1B0eBC7F85e2
Litecoin (LTC): LQW2TRyKYetVC8WjFkhpPhtpbDM4Vw7r9m
Monero (XMR): 4ACL8AGrEo5hAir8A9CeVrW8pEauWvnp1WnSDZxW7tziCDLhZAGsgzhRQABDnFy8yuM9fWJDviJPHKRjV4FWt19CJZN9D4n
-
LIVE
Redacted News
1 hour ago"There will be consequences!!!" Trump issues big threat to Putin ahead of peace summit | Redacted
12,579 watching -
LIVE
Kim Iversen
1 hour agoIsrael DEMANDS X Remove Posts and X COMPLIES | Socialist Groceries Coming To A Store Near You!
823 watching -
1:11:53
vivafrei
8 hours agoThe Great Replacement of American Truckers With Unskilled Foreign Labor - Live with Gord Magill
67.4K41 -
LIVE
Sarah Westall
1 hour agoEU Falling, United States Barely Hanging on - Strength and Courage Needed to Fight for Free Speech
195 watching -
LIVE
LFA TV
10 hours agoLFA TV ALL DAY STREAM - TUESDAY 8/19/25
1,465 watching -
2:11:18
The Quartering
3 hours agoToday's Breaking News! Disgusting Grocery Shopping "Haul" Goes Viral, Las Vegas Collapse & More
68.8K11 -
LIVE
StoneMountain64
4 hours agoBest Extraction shooter is FINALLY on Console (+CoD Reveal Today)
296 watching -
Due Dissidence
6 hours agoZelensky RETURNS To DC, HUGE Protests In Israel, Gal Gadot Blames Palestine For Flop, MSNBC Rebrands
14K12 -
LIVE
The HotSeat
1 hour ago🚨 Dems Swear Mail-In Voting Is “Secure”… Trump Says HELL NO 🚨
546 watching -
LIVE
Reidboyy
8 hours ago $0.55 earnedNEW FREE FPS OUT ON CONSOLE TODAY! (Delta Force = BF6 Jr.)
59 watching