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
-
56:44
BonginoReport
3 hours agoMusk Baby Mama’s Media Blitz Is Embarrassing - Nightly Scroll w/Hayley Caronia (Ep.28) - 04/16/2025
25.1K24 -
LIVE
The Jimmy Dore Show
1 hour agoBlue Origin All-Female Space Flight a HUGE FAKE! Israel Implementing Nazi Plan in Gaza!
8,268 watching -
1:19:15
Kim Iversen
3 hours agoThe Rise Of The New Nazis: Free Speech Is DEAD in Europe — And It’s Coming Here Next | CJ Hopkins
40.9K38 -
13:24
Exploring With Nug
10 hours ago $0.65 earnedSearching For Missing Woman Using Underwater Drone!
6.58K -
LIVE
2 MIKES LIVE
3 hours ago2 MIKES LIVE #206 News Breakdown Wednesday!
176 watching -
LIVE
Mally_Mouse
5 hours agoLet's Hang!!
157 watching -
LIVE
Sarah Westall
47 minutes agoTariffs: Devil is in the Details, the 3-Day Warning & Real Life Consequences w/ Farmer Derrick Josi
150 watching -
LIVE
LFA TV
7 hours agoDemocrats’ Last Stand | TRUMPET DAILY 4.16.25 7PM
180 watching -
LIVE
Quite Frankly
7 hours ago"Megalith Revelations & CIA Files" ft. Timothy Alberino 4/16/25
736 watching -
1:35:42
Redacted News
3 hours ago"STOP WHINING!" China slams Trump after new 245% Tariff War explodes, Xi ready to talk? | Redacted
94.9K134