DON’T GET HACKED Using Stable Diffusion Models! DO This NOW!

We recently got a cool trend in the Stable Diffusion community where basically everyday we get plenty of super cool models trained with Dreambooth by the community but is this completely safe? Can downloading these models actually get your computer hacked? So in this prevention/tutorial video, I will explain what is a pickle and what is unpickling, how to be safe when downloading these models, and also I will show you how to download and install 2 security pickle scanners so that you can scan every model you download in search for malicious codes. Be safe people!

Have ever downloaded from a shady website? Let me know in the comments!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
SOCIAL MEDIA LINKS!
✨ Support my work on Patreon: https://www.patreon.com/aitrepreneur
⚔️ Join the Discord server: https://discord.gg/3ErYSdyUPt
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Runpod: https://bit.ly/runpodAi

%pip install gdown
!gdown https://drive.google.com/uc?id=

Stable Diffusion Pickle Scanner:
https://github.com/zxix/stable-diffusion-pickle-scanner
https://pastebin.com/QuApyZZN
picklescan –huggingface

Python Pickle Malware Scanner:
https://github.com/mmaitre314/picklescan
https://pastebin.com/K46puytB

To read if you want to know more:
https://splint.gitbook.io/cyberblog/security-research/tensorflow-remote-code-execution-with-malicious-model

https://huggingface.co/docs/hub/security-pickle

Special thanks to Royal Emperor:
– DanO..

Thank you so much for your support on Patreon! You are truly a glory to behold! Your generosity is immense, and it means the world to me. Thank you for helping me keep the lights on and the content flowing. Thank you very much!

#stablediffusion #dreambooth #stablediffusiontutorial #cybersecurity
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
WATCH MY MOST POPULAR VIDEOS:
RECOMMENDED WATCHING – My “Stable Diffusion” Playlist:
►► https://bit.ly/stablediffusion

RECOMMENDED WATCHING – My “Tutorial” Playlist:
►► https://bit.ly/TuTPlaylist

Disclosure: Bear in mind that some of the links in this post are affiliate links and if you go through them to make a purchase I will earn a commission. Keep in mind that I link these companies and their products because of their quality and not because of the commission I receive from your purchases. The decision is yours, and whether or not you decide to buy something is completely up to you.

100 Comments

  1. Hello overlord. When I run the batch file I get this. I double checked that I followed your instructions. Any idea whats wrong?
    C:UsersMattstable-diffusion-webui01>cmd /C "C:UsersMattstable-diffusion-webui01venvScriptsPython.exe"

    Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32

    Type "help", "copyright", "credits" or "license" for more information.

    >>>

  2. I'd be careful using possible unsafe .ckpt on your personal Google account.

    Run pod, paperspace, or vast, store a lot less information about you then Google does.

    My worry is a model that injects malicious code into the images them selves.

  3. I'd be careful using possible unsafe .ckpt on your personal Google account.

    Run pod, paperspace, or vast, store a lot less information about you then Google does.

    My worry is a model that injects malicious code into the images them selves.

  4. Trust the source – LOL. People are using a bleeding edge software created by an unknown author, downloading waifu and hentai models from renty and mega…

  5. 5:09 another possibility is to use someone else's computer and see if it gets hacked. If the computer is fine after a while then install it on your computer, if it is not fine then congratulations, your computer is safe.

  6. Should I be worried if all I have is the original "model .ckpt" file from your Super SD 2 video, and have "git pull" enabled for updates to the web UI in the "webui-user .bat" file?

  7. And the final and most important layer…
    1.-Never run untrusted software out of a virtual machine, or…
    2.-Never run untrusted software on your personal PC.
    If you abide by these rules, you'll be safe.

  8. I hope you protected your SD webUI with a password (GRADIO_AUTH). Otherwise, by default anyone could access your RunPod, which also doesn't seem very secure.

  9. Huggingface should have their repo scanning or inspection 1st before accepting those files been uploaded by repo at the 1st place . They should perform this step intelligently, if it's meaning of A.I.?

  10. Great tutorial, as always my man!!
    Btw, lately, TheFastBen's Colab has improved a lot, but it uses a lot more resources and it's no longer viable to use it due to colab limits. Do you think you could make a tutorial to use TheFastBen's Colab in Runpod?

  11. The best solution for this (well, not the best in terms of ultimate best – just the most realistic best option for how things currently are) would be to create a site that exists as a centralized repository for models from trusted sources that have all been scanned/analyzed for vulnerabilities or malicious software, and these files would be signed cryptographically. Users can then verify that the file has the same hash as the one that they have downloaded to ensure that it has not been altered. I would also avoid any use of something like google drive and run everything inside of containerized/sandboxed environments.

  12. Known about this for a little over a week now. This is a big deal and I have not seen anyone else make a video about it. Thanks for bringing awareness. Be safe everyone its a jungle out there.

  13. Does your video work with the normal stable diffusion install? Not sure what the super stable diffusion thing was about. I just have the automatic1111 and let a git pull keep everything updated after the install. Nothing is labeled "super stable" in my files. Does this matter for the pickle scanner?

    This gave me a scare btw. I ignored the advice to only download from hugging face this morning because it looked exciting and it was one of the first things I saw in the morning. That's the danger of catching up on new alerts right after waking up I guess lol. But I downloaded and scanned the model on my computer and everything seems to have passed your video's scan method.

  14. Has anyone heard if the leaked NovelAI Model was infected or not? I have not heard anything. And just for the record I would "not" recommenced using that model because it's morally wrong. And we would never do that. But if someone where to use it. Has anyone heard of any problems so far?

  15. This is valid concerns, but the scanners only catch obvious malicious code. You can write malicious code in many ways that will not get detected. Saying that the scanner will help is alas misleading. It will not. Best advice is to just use reputable stable diffusion models like runway and compvis and just do your own dreambooth.

  16. Thanks for teaching us about pickles!! 😁 Its really good info that Huggingface has the option to check the models and scans them beforehand…did not know about it before!! Thanks for the info!! 😇

  17. Thank you – new subscriber here! The thought occurred to me, but you really helped bring to light these security concerns! I hope others will see this video, and become aware of the potential dangers.

  18. Thanks for keeping us safe! I checked your channel again right now and I think you need to show some love to your home page and customize it! Even if you don't want to make a trailer video for your home page, it's not a bad idea to let the last video load up for new people! Anyway, I just noticed that and I thought it was worth mentioning! Have a great day OVERLORD!

  19. Coool Dreambooth story!! – random Photoshop modes for morons! I love where this garbage is heading it's very intriguing how dumb, dumb is in 2022. Keep up the stellar 'work' under the influence of xanax and weed my friends.

  20. Right, but say I have many of these illicit models from god knows where. How can I tell if I have been compromised? I'm not noticing any slowdown or abnormal behavior yet. Any thoughts?

  21. Okay, I was managing to take this seriously through most of the video, with all of the references to pickle scanners, but as soon as you brought up pickle inspectors, I could no longer restrain the laughter 😉

  22. This is all nice and all but to open pickle those scanner scripts imports needed pickle module which could be theoretically used by some malicious code later on. So by running completely harmless scanner now you are potentially opening the door for the attack later on. Not really sure what to think about this…

  23. I found out the SD version I found uses Conda instead of Python, any advise for scanning with that? I do not really program and am curious about AI art, and have downloaded some models I was unable to get scanned with either of these tools.

  24. The only ckpt I have download are versions 1.4/1.5 and waifu. All the other ckpts I have are my own that I trained, or ones that you suggest.

  25. I am more worried about if it doesn't checks encrypted strings because at the moment it looks like it checks checks imports and blacklisted API calls. The only way to check encrypted strings is to execute the code and let it unravel itself. Best way to check this is inside a VM environment

  26. I am new to all this, but thinking about trying it out.
    How about I just get good at creating my own models? The AI does so much of the grunt work, I could at least get good at models.

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2024 AI Art Video Tutorials