I have a bash script that opens various random files that could be anything (PDF, xlsx, MKV, MP4, WebM, html). Since I don't fully trust the source of these files, there is a chance that some of them could be infected with some kind of malware or malicious script, so I want to isolate the process that is handling with it.
I tested firejail
and chroot
, but I would like to know if there is something more secure to use.
What could be a good option to deal with this?