{security enhancement} Check ckpt file before loading #3482
cibernicola
started this conversation in
Ideas
Replies: 1 comment
-
Well, seems already implemented: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found this code to check a ckpt file in order to see if it is safe or not to work with it.
I think it would be interesting to work on this (if it has not already been done) since the proliferation of this type of files and the more than possible bad intention of some actors, could present problems in the not too distant future.
For my part I am testing outside WebUI, although I still need to know exactly all the cases in which a ckpt file can be dangerous for the system that executes it.
I think it could be a python file external to WebUI, which would load and execute the different actions from the startup scripts, this way there would be a total separation and potential prevention of "attacks".
For now I have made a couple of modifications to this code to make it work automatically, loading all the ckpt files and check them in a simple loop.
PD: It would also be interesting to develop something similar for embeedings, HyperNetworks and aestethics.
Shall we give stable diffusion webui a layer of security?
src: https://rentry.org/safeunpickle2
Beta Was this translation helpful? Give feedback.
All reactions