Can a python pickle object be checked for malicious code before unpickling?
Can a python pickle object be checked for malicious code before unpickling? Question: Is there any way to test a pickle file to see if it loads a function or class during unpickling? This gives a good summary of how to stop loading of selected functions: https://docs.python.org/3/library/pickle.html#restricting-globals I assume it could be used to check …