Hacker News new | ask | show | jobs
by tlrobinson 4161 days ago
"Scanning tools for dangerous packages"

This seems like an impossible problem (essentially the halting problem). On Linux perhaps you could build packages in a container then copy the results to the installation directory, but there's no guarantee require("rimrafall") won't just "child_process.exec('rm -rf /')".

1 comments

At the very least, they could install packages in a VM and check that the VM can be rebooted.
Then someone could just craft a package that deletes every file except the ones required for booting...