Re:Compromised PyTorch-nightly dependency chain December 30t...
by remram on Sunday January 01, 2023 @12:03PM
(#34208090)
strace uses ptrace, which is not safe for security use because of race conditions. Linux Security Modules should be used.
Re:Compromised PyTorch-nightly dependency chain December 30t...
by ashishbijlani on Sunday January 01, 2023 @12:24PM
(#34208385)
Thanks for highlighting this! While PTRACE introduces TOCTTOU vulnerabilities, Packj sandboxes fixes that by using read-only args for ptrace. You can find my PhD work [1] on this relevant.
1. https://github.com/ossillate-inc/packj
It DOES NOT require a VM/Container; uses strace. It shows you a preview of file system changes that installation will make and can also block arbitrary network communication during installation (uses an allow-list).