A virus scanner is enough for you to maybe decide you don't want to risk using the file but not enough to tell everyone else there's definitely a trojan. Those scanners are notorious for false positives.
Someone with more time than me should at least unpickle it and look for random or unusual/malicious code before raising the alarm. The AUTOMATIC1111 webui tries to detect and block these by default.
Of course it's always up to the end user, but I would ALWAYS suggest that if there's a false positive on a non-critical download that you treat it as 100% dangerous, especially if you're risk-averse.
I run a software firewall that didn't register suspicious network requests after using Anything V3. I also scanned both pickle files and they didn't appear to be maliscious. I ran two second opinion scans after a few days, came back clean too.
Tl;dr you most likely had a false positive
Edit: I just ran a pickle eval import check and it doesn't seem to behave abnormally, atleast the ckpt I have downloaded (7 gb)
As a software dev myself this is absolutely true. Virus "protection" often throws false positives for completely innocuous software I've written that does absolutely nothing malicious. The virus scanners use pattern-matching algorithms from known viruses, but viruses contain all kinds of code that isn't responsible for the attacks that other software also uses innocently. Just because that same code is present in another piece of software doesn't necessarily make that software malicious.
On the other hand, any file type which is prone to false positives would also be ideal to actually hide a payload inside, so it's probably good for the community to remain cautious and have protocols in place to check.
this is very true, it's always caveat emptor, especially if you're disabling safety protocols (like turning off the pickling check in a1111) to use something... and there's definitely trust issues with things coming out of china these days... But the OPs title is either clickbait or just misguided depending on how generous you want to be.
It's supposed to be only a bunch of weights but it's actually a pickle file, which is a serialized python object. That means it can contain python code which runs when the file is loaded.
Additional to Train's comment, in the case of the Anything-v3 possible trojan here, it seems like the .pkl file for it is safe (??) but the supposed trojan is detected in one of the archive data weight files (specifically file /archive/data/846).
I've still not seen anyone confirm if the 846 file is safe or not, or if the rest of the Anything-v3 model is either.
It's possible some complex/alternative execution is happening here that is bypassing the Huggingface pickle checker, as well as the rest of the antiviruses being used for scanning. I've also done a few safe pickle script checks on it myself and the .pkl file itself seems alright but would still prefer something more in-depth.
I tried using this model as well. I did different scan with Microsoft which are scan c and d drives respectively as well as directly scan the copy file. Nothing was detected.
Also tried using malwarebytes and nothing was detected as well. If there are malware, then it’s pretty well hidden in my pc but so far my pc performance and all feel the same but I’ll keep a lookout
im no expert but I don't think you should trust one tool 100%. even if you tested something with 10 different tools you still shouldn't assume 100.00000% it's safe
but yeah if youre lazy like me to just use one malwarebytes seems it'd do the job about all the time
go to automatic 111 github and there will be links on how to use that web gui in google colab. Colab notebooks are already premade so run that and put the model in the models directory just like you do on your pc and run it.
u/DVXC I can’t directly prove if this is related but on the day I downloaded the Anything model, the Cyber Security department of my institute emailed me saying that they detected 5 Tor relay connection attempts related to ransomware and cryptolock. I highly suspect this ckpt to be the reason for it since the time of the connections happened around the same time as I got this model…
For more details, the IP associated with the connections were 65.21.94[.]13 and 185.117.82[.]71 and targeted the port 9001. These are definitely coming from Tor relays and have been flagged as malicious several times before.
I don’t give a fck about karma or anything but please upvote this comment to share this big red flag with the community!
22 points
unknown author3 hidden
If you used torrent to download the model, this would explain the attempt of security breach.
I didn’t use the torrent link but also, even if I did, I didn’t set it up to accept transfers via TOR or i2p. You still think it could have gone through that way anyway?
To share more about the way the Security team described the connection, they suspect that what was used was the multi-hop proxy technique and onion routing networks to disguise the source of command and control traffic.
On top of that, I think I got the model from the anon file download website, which in retrospect should have raised some red flags already since it is a known service used often on TOR...
Did you run the ckpt file at all? Do you have precise date of the incident?
If you haven't run the ckpt file, it's not the cause.
To me it sounds like weird JS code in the website that you were using.
Maybe they didn't fully clean the clearnet website from some links to their tor website.
Read the description: "Variants of Win32/Sirefef may be installed by other malware, including variants of the Trojan:Win32/Necurs family."
It's possible that your PC is infected with another malware that has infected that file, I just ran a scan on the same file downloaded from the same source with the same antivirus and it reported nothing.
This was scanned with a fresh VM using the most up to date version of Windows 11, installed on a PC that itself has also just had Windows 11 freshly installed. It would be highly unlikely.
I can't explain the discrepancy between your scan and mine but I'm reasonably confident it's not my machine, and this has been reported a couple of times elsewhere.
This one popped up with the original leaked SD checkpoints and might even still be in the official 1.4 release. For some reason, the data in the checkpoint matches the fingerprint of some config file that some ancient malware produced. The actual sirefef file it's matching wasn't even an executable itself. Almost certainly a nothingburger.
I think the model AnythingV3 is a merge of different models. Possibly the same thing that is triggering for Hentai Diffusion is triggering for AnythingV3. It its also the same threat detected.
Ah, so it either a coincidence, or it just got used so much more that it had greater odds of having someone stumble upon a detection also sharing the information somewhere I would see it...
Hm... Gonna wait for the dust to settle either way, just in case...
They're having a paranoid fantasy. Sometimes a person gets so obsessed with needing to have order in life that they begin to reject the idea of coincidences and increasingly believe in unrealistic fantastical explanations. I doubt who you're replying to is actually that paranoid, but here on the internet we get to meet every kind of person.
Any gathering place on the internet can start a feedback loop within the community in which these delusions become socially validated, independent of rigorous empirical evidence, which then makes these fantasies harder to dispel.
If only we found a way to mix language AI models with stable diffusio/image AI models... 🤷 I think this is right around the corner so in my stoned state thought we were here 😇
i use bitdefender, scans says no issue. it also hasn't raised any flags with active program monitoring either. i also monitor my gpus/cpu and network access regularly while using sd/nai/anything, and haven't seen any abnormalities over the past day or so after getting anything v3.
given others' comments, my first guess would be a virus attached itself to the download link or webpage at some point between release and when you downloaded the model, and after the time myself and others downloaded it.
I get a detection on windows defender as well. I downloaded from a few different places to see if it was one version and all the ones I tested did as well. It only seems to be the one around 7-8 gb though, I forget the exact size. My guess would be a false positive. I used the pickle scanner on them and automatic doesn't detect anything either.
Can someone explain a really simple "open this file, paste this code, save this file" for the pickle thing?
I'm not at my SD station right now so this is just off yesterday's memory, but I downloaded two pickle scan .py files and put them in the SD base directory... and it asked me to find a "verv" prompt (or something) in the webui.py and not only couldn't I find it but I also couldn't find anywhere online about it either.
I put the two pickle files in the directory, but what do I plug in for that four-letter v thing to make it do a pickle scan? Again, please help with the simple explanation, thanks.
"venv" means virtual environment. Assuming you're using A111, what you are trying to do is run the pickle scan file with the python.exe that's located in stable-diffusion-webui\venv\scripts
This is done with the command. Start up SD before executing it.
"C:(the directory you have A111 installed in)\stable-diffusion-webui\venv\scripts\Python.exe" pickle_scan.py
I tried to plug that in into a few places. The only one which seemed to not crash was in the webui.bat, under the :activate_venv section, in the set line.
This is where I plugged pickle_scan.py in. When I booted up webui-user.bat, a long script ran with each ckpt file and "SCAN PASSED!" listed beneath. Hurray!
It said press any key to continue, and I did but nothing happened, so I closed it all up and removed the pickle_scan.py models > scan_output.txt part. Saved, ran, and it works fine.
Thank you for your guidance. It's greatly appreciated, and I feel much safer as a result. :)
https://www.virustotal.com/gui/home/upload - use this in the future, sadly it has an upload size limit unless you pay. you can alternatively search the file hash to see if anyone has scanned it before. it checks your file on like 100 different antivirus engines, so you can make a decision from there.
p.s. yes, this model was made in china, by chinese people. you should be cautious with whatever you download, regardless of where it came from. thinking that china has anything to do with antivirus false positives is pretty racist
I scanned with both Bitdefender, the built-in Windows 11 antivirus, and pickle scanner... none of them found anything.
I'm assuming at this point that people getting this from the popular sources are just getting false positives. False positives have been an issue with other models, as well.
So I just had this happen to me on some of the custom models I made.
You can open the model files with 7zip and see the files inside. If you look windows tells you the file it thinks is infected in there. It's in the data folder. For you it's file 846. You can then pull that file out and run it in virus total. I did this and the only engine that said it was infected was Microsoft.
So I think at least for me it is safe to say this is a false positive. Even more so because it's not even the pickle file that it is detecting. It's one of the files in the data folder.
Somebody who actually knows something tell us if there’s anymore than model architecture and weights in a file like this and any front ends call code inside?
I'm not an expert but huggingface even has a writeup of this https://huggingface.co/docs/hub/security-pickle if this is what you are looking for. There's also a model on HF a YouTuber made (can't recall his name) that when loaded it opens a browser to some site just as a demonstration on what can be run when it is loaded.
197 comments
A virus scanner is enough for you to maybe decide you don't want to risk using the file but not enough to tell everyone else there's definitely a trojan. Those scanners are notorious for false positives.
Microsoft is in 3rd place for false positives. Full article
Someone with more time than me should at least unpickle it and look for random or unusual/malicious code before raising the alarm. The AUTOMATIC1111 webui tries to detect and block these by default.
Of course it's always up to the end user, but I would ALWAYS suggest that if there's a false positive on a non-critical download that you treat it as 100% dangerous, especially if you're risk-averse.
I run a software firewall that didn't register suspicious network requests after using Anything V3. I also scanned both pickle files and they didn't appear to be maliscious. I ran two second opinion scans after a few days, came back clean too.
Tl;dr you most likely had a false positive
Edit: I just ran a pickle eval import check and it doesn't seem to behave abnormally, atleast the ckpt I have downloaded (7 gb)
https://github.com/mmaitre314/picklescan
What I would ALWAYS suggest is to not slander releases or people online by stating that something contains malware when you don’t know that.
Word it correctly, like „the scanner detects malware“, „might contain malware“, something like that.
As a software dev myself this is absolutely true. Virus "protection" often throws false positives for completely innocuous software I've written that does absolutely nothing malicious. The virus scanners use pattern-matching algorithms from known viruses, but viruses contain all kinds of code that isn't responsible for the attacks that other software also uses innocently. Just because that same code is present in another piece of software doesn't necessarily make that software malicious.
On the other hand, any file type which is prone to false positives would also be ideal to actually hide a payload inside, so it's probably good for the community to remain cautious and have protocols in place to check.
this is very true, it's always caveat emptor, especially if you're disabling safety protocols (like turning off the pickling check in a1111) to use something... and there's definitely trust issues with things coming out of china these days... But the OPs title is either clickbait or just misguided depending on how generous you want to be.
I mean false positives are better than undetected threats
Can you explain how a cpkt file can contain malware? I thought it was just a bunch of weights (ie float values) for an exiating ml model.
It's supposed to be only a bunch of weights but it's actually a pickle file, which is a serialized python object. That means it can contain python code which runs when the file is loaded.
Additional to Train's comment, in the case of the Anything-v3 possible trojan here, it seems like the .pkl file for it is safe (??) but the supposed trojan is detected in one of the archive data weight files (specifically file /archive/data/846).
I've still not seen anyone confirm if the 846 file is safe or not, or if the rest of the Anything-v3 model is either.
It's possible some complex/alternative execution is happening here that is bypassing the Huggingface pickle checker, as well as the rest of the antiviruses being used for scanning. I've also done a few safe pickle script checks on it myself and the .pkl file itself seems alright but would still prefer something more in-depth.
I tried using this model as well. I did different scan with Microsoft which are scan c and d drives respectively as well as directly scan the copy file. Nothing was detected.
Also tried using malwarebytes and nothing was detected as well. If there are malware, then it’s pretty well hidden in my pc but so far my pc performance and all feel the same but I’ll keep a lookout
If malwarebytes says there's nothing, then there's nothing.
Not really true, if someone has custom written some code and put it in the python code there's a very real chance malwarebytes will miss it.
Please be careful spreading misinformation like this.
It's going to be the first thing that your IT guy uses to get rid of anything, it's an excellent first pass tool.
im no expert but I don't think you should trust one tool 100%. even if you tested something with 10 different tools you still shouldn't assume 100.00000% it's safe
but yeah if youre lazy like me to just use one malwarebytes seems it'd do the job about all the time
The original SD 1.4 got sirefef false positives.
Hm. I wonder if that's why I'd been getting the same warning on some other models.
Got the same thing on the full version, but nothing on the fp32 version, pickle scanner also says its clean
https://i.imgur.com/uPoMUwt.jpeg
link to pickle scanner: https://github.com/zxix/stable-diffusion-pickle-scanner
Same, so I just don't use the full 32 EMA ver I guess.
I've seen false positives with these ckpt files, but it is good to be cautious. Maybe run it through several different virus scanners.
virustotal for example could be used for an idea
doesn't virustotal have a file size limit? can only run the smallest ckpt's through it. unless you know of another way
or just use it in colab
And let them get your google account banned?
for what ? and how ? elaborate so we can take precaution
The risk is more about personal Google Drive data being pumped out but we could easily know by inspecting the code if it’s outside the ckpt.
How can I use Anything V3 in colab?
https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
go to automatic 111 github and there will be links on how to use that web gui in google colab. Colab notebooks are already premade so run that and put the model in the models directory just like you do on your pc and run it.
u/DVXC I can’t directly prove if this is related but on the day I downloaded the Anything model, the Cyber Security department of my institute emailed me saying that they detected 5 Tor relay connection attempts related to ransomware and cryptolock. I highly suspect this ckpt to be the reason for it since the time of the connections happened around the same time as I got this model… For more details, the IP associated with the connections were 65.21.94[.]13 and 185.117.82[.]71 and targeted the port 9001. These are definitely coming from Tor relays and have been flagged as malicious several times before. I don’t give a fck about karma or anything but please upvote this comment to share this big red flag with the community!
If you used torrent to download the model, this would explain the attempt of security breach.
I didn’t use the torrent link but also, even if I did, I didn’t set it up to accept transfers via TOR or i2p. You still think it could have gone through that way anyway?
To share more about the way the Security team described the connection, they suspect that what was used was the multi-hop proxy technique and onion routing networks to disguise the source of command and control traffic.
On top of that, I think I got the model from the anon file download website, which in retrospect should have raised some red flags already since it is a known service used often on TOR...
Did you run the ckpt file at all? Do you have precise date of the incident?
If you haven't run the ckpt file, it's not the cause.
To me it sounds like weird JS code in the website that you were using. Maybe they didn't fully clean the clearnet website from some links to their tor website.
This guys It department is somehow more versed than every single IT person I’ve ever talked to combined?
Use virustotal.com.
Unfortunately VirusTotal only supports a maximum file size of ~700MB.
Fantastic website for smaller files, though
A .ckpt is just a zip file.
Unzip it, find the .pkl file inside; that's where any payload would actually be. It should only be a few MB at most, I believe.
More information on this detection: https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=Trojan:Win32/Sirefef!cfg
Read the description: "Variants of Win32/Sirefef may be installed by other malware, including variants of the Trojan:Win32/Necurs family."
It's possible that your PC is infected with another malware that has infected that file, I just ran a scan on the same file downloaded from the same source with the same antivirus and it reported nothing.
This was scanned with a fresh VM using the most up to date version of Windows 11, installed on a PC that itself has also just had Windows 11 freshly installed. It would be highly unlikely.
I can't explain the discrepancy between your scan and mine but I'm reasonably confident it's not my machine, and this has been reported a couple of times elsewhere.
This one popped up with the original leaked SD checkpoints and might even still be in the official 1.4 release. For some reason, the data in the checkpoint matches the fingerprint of some config file that some ancient malware produced. The actual sirefef file it's matching wasn't even an executable itself. Almost certainly a nothingburger.
Interesting that the first one to get a detection (whether false-positive or not), seems to be the one coming from China...
Gonna definitely be waiting some time before thinking of getting this one, just in case...
i think it is just more people testing it because it is from china, loooks like a false positive for me
Not the first one, Hentai Diffusion also had a detection (see https://huggingface.co/Deltaadams/Hentai-Diffusion/discussions/12 )
I think the model AnythingV3 is a merge of different models. Possibly the same thing that is triggering for Hentai Diffusion is triggering for AnythingV3. It its also the same threat detected.
Ah, so it either a coincidence, or it just got used so much more that it had greater odds of having someone stumble upon a detection also sharing the information somewhere I would see it...
Hm... Gonna wait for the dust to settle either way, just in case...
And some others have said that SD1.4 had the same warning, though I never checked.
To my knowledge, the one on Hentai Diffusion was a false positive (Or at least nothing nefarious has happened to me, yet.)
It's so unsurprising that it's the one from China.
After months of nothing, suddenly forewarings about security vulnerabilities are followed by security warnings all on the same day. Hmm.
What does this even mean
They're having a paranoid fantasy. Sometimes a person gets so obsessed with needing to have order in life that they begin to reject the idea of coincidences and increasingly believe in unrealistic fantastical explanations. I doubt who you're replying to is actually that paranoid, but here on the internet we get to meet every kind of person.
Any gathering place on the internet can start a feedback loop within the community in which these delusions become socially validated, independent of rigorous empirical evidence, which then makes these fantasies harder to dispel.
It's an interesting coincidence, if you believe in coincidence https://www.reddit.com/r/StableDiffusion/comments/ys3l67/safety_of_downloading_random_checkpoints/
False positive.
Always use: picklescan --path ./models/Stable-diffusion/
how/where do i run this code? im very bad at computer stuff
https://github.com/mmaitre314/picklescan
https://github.com/zxix/stable-diffusion-pickle-scanner
For a minute I thought this was an AI generated image...
But this has words.
If only we found a way to mix language AI models with stable diffusio/image AI models... 🤷 I think this is right around the corner so in my stoned state thought we were here 😇
This title is misleading because you have to prove that it has malware 100%.
Should say it has the potential to have malware, but then again you wouldn't get as many clicks so I get it.
https://preview.redd.it/vtlx1e9isgz91.jpeg?width=660&format=pjpg&auto=webp&v=enabled&s=fcb8b6852e1cc1aa03f00b0b78b1e48b4c394a08
Why Malwarebytes doesn't detect it?
https://s3.amazonaws.com/moonup/production/uploads/1668129416048-6365c8dbf31ef76df4042821.png
use at your own risk
False positive
Is this the first or second version that was posted?
Not sure what you mean by this. This was downloaded from the Rentry magnet link about 2 hours ago
There are 2 versions posted, I'll check the filenames but the second one is called something like pruned.
Edit:
Something weird going on. The second version was posted here
https://huggingface.co/Linaqruf/anything-v3.0/tree/main/unpickled-version
First version posted here
https://rentry.org/sdmodels#anything-v30-38c1ebe3-1a7df6b8-6569e224
i use bitdefender, scans says no issue. it also hasn't raised any flags with active program monitoring either. i also monitor my gpus/cpu and network access regularly while using sd/nai/anything, and haven't seen any abnormalities over the past day or so after getting anything v3.
given others' comments, my first guess would be a virus attached itself to the download link or webpage at some point between release and when you downloaded the model, and after the time myself and others downloaded it.
¯\_(ツ)_/¯
I get a detection on windows defender as well. I downloaded from a few different places to see if it was one version and all the ones I tested did as well. It only seems to be the one around 7-8 gb though, I forget the exact size. My guess would be a false positive. I used the pickle scanner on them and automatic doesn't detect anything either.
Can someone explain a really simple "open this file, paste this code, save this file" for the pickle thing?
I'm not at my SD station right now so this is just off yesterday's memory, but I downloaded two pickle scan .py files and put them in the SD base directory... and it asked me to find a "verv" prompt (or something) in the webui.py and not only couldn't I find it but I also couldn't find anywhere online about it either.
I put the two pickle files in the directory, but what do I plug in for that four-letter v thing to make it do a pickle scan? Again, please help with the simple explanation, thanks.
"venv" means virtual environment. Assuming you're using A111, what you are trying to do is run the pickle scan file with the python.exe that's located in stable-diffusion-webui\venv\scripts
This is done with the command. Start up SD before executing it.
Trial and error, but I found it!
I tried to plug that in into a few places. The only one which seemed to not crash was in the webui.bat, under the :activate_venv section, in the set line.
This is where I plugged pickle_scan.py in. When I booted up webui-user.bat, a long script ran with each ckpt file and "SCAN PASSED!" listed beneath. Hurray!
It said press any key to continue, and I did but nothing happened, so I closed it all up and removed the pickle_scan.py models > scan_output.txt part. Saved, ran, and it works fine.
Thank you for your guidance. It's greatly appreciated, and I feel much safer as a result. :)
the pilgrimage to that reddit post claiming something is malware, posting a screenshot of windows defender.
A .ckpt file is actually a python pickle. they can contain malware in them, but its pretty rare if you download them from reputable sources.
In any case, you should still check them.
https://github.com/zxix/stable-diffusion-pickle-scanner - use this to scan your models, i think the webui actually already does this automatically, but still do if you dont trust it.
https://www.virustotal.com/gui/home/upload - use this in the future, sadly it has an upload size limit unless you pay. you can alternatively search the file hash to see if anyone has scanned it before. it checks your file on like 100 different antivirus engines, so you can make a decision from there.
p.s. yes, this model was made in china, by chinese people. you should be cautious with whatever you download, regardless of where it came from. thinking that china has anything to do with antivirus false positives is pretty racist
Not really, they pretty much only have themselves to blame for that stereotype.
You should lookup the word racist sometime so you don't look like such an ignorant fool.
I scanned with both Bitdefender, the built-in Windows 11 antivirus, and pickle scanner... none of them found anything.
I'm assuming at this point that people getting this from the popular sources are just getting false positives. False positives have been an issue with other models, as well.
colab bruh. colab
So I just had this happen to me on some of the custom models I made.
You can open the model files with 7zip and see the files inside. If you look windows tells you the file it thinks is infected in there. It's in the data folder. For you it's file 846. You can then pull that file out and run it in virus total. I did this and the only engine that said it was infected was Microsoft.
So I think at least for me it is safe to say this is a false positive. Even more so because it's not even the pickle file that it is detecting. It's one of the files in the data folder.
Somebody who actually knows something tell us if there’s anymore than model architecture and weights in a file like this and any front ends call code inside?
I'm not an expert but huggingface even has a writeup of this https://huggingface.co/docs/hub/security-pickle if this is what you are looking for. There's also a model on HF a YouTuber made (can't recall his name) that when loaded it opens a browser to some site just as a demonstration on what can be run when it is loaded.