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
-
2:56:54
vivafrei
11 hours agoEp. 226: Elon & X Bannes in Brazil! Trump Superseding Indictment! Kamala Interview! Uber & MORE!
94.9K143 -
2:29:40
WeAreChange
6 hours agoThe Government Ordered Hospitals To OFF Patients In Mass?!
50.1K63 -
27:54
Nerdrotic
5 hours agoAncient Civilizations and Cosmic Summit with George Howard
24K15 -
LIVE
Vigilant News Network
7 hours agoRFK Jr. Vows to STOP Chemtrail “CRIMES” - Media Blackout
2,413 watching -
2:24:27
Gigi Young
1 day agoPublic Live Q&A
35.4K5 -
42:40
Stephen Gardner
10 hours ago🔥Kamala EMBARRESSES herself again!
96.1K241 -
35:08
The Why Files
4 days agoMartian Mysteries | The Phobos Incident, Monoliths, and Ancient Ruins
94.8K55 -
1:23:29
Game On!
22 hours ago $25.61 earnedCollege Football Week 1 Recap and Overreactions!
92.2K57 -
11:41:32
Total Horse Channel
3 days ago2024 100x Reining Classic | Sunday 9:00 am EST
100K1 -
1:23:52
The Front
18 hours ago $14.26 earnedLibya's Writhing Collapse into Anarchy: Was NATO Intervention Justified? | Untangling Africa #18
87.3K32