Is there any way to avoid malicious code when opening and executing entire notebooks automatically?
I have written code which opens a large series of notebooks one-by-one, evaluates them in their entirety and saves them as a new notebook. I don't believe the Mathematica code which I use to do this is particularly important here, but the notebooks I open are written by others and have a large amount of code in them, not merely data.
My primary goal is to prevent security issues affecting my system outside of Mathematica (deleting files, connecting to the internet, whatever). I am less concerned with later notebooks being affected by earlier ones via the kernel - for the moment my weak protection for that sort of contamination is to clear global variables before a subsequent notebook is opened.
I'm afraid I don't even know what to try, or I'd post it here, but any help would be greatly appreciated. I'd prefer to do this without Workbench as I've never used it, and I don't know if this would even be possible with Workbench.