Re:Dozens of malicious PyPI packages discovered targeting de...
by jononor on Friday November 04, 2022 @04:32PM
(#33473366)
Restricting a process to only be able to access opt-in list of directories underneath the project directory would be useful. Assuming one uses a venv, and all the dependencies are contained there. Then one might want some data folder. And have at least prevented dels from scraping user-wide secrets.
[ Parent
| on HN ]
Re:Dozens of malicious PyPI packages discovered targeting de...
by bernawil on Saturday November 05, 2022 @12:13AM
(#33477890)
You're describing a chroot jail. key there is "process". Dealing with processes permissions is the OS's job.
A if a language wants to deal in library's security it should strive to make static analysis possible. Eg: the language guarantees that network and filesystem calls can only be done with a single function, statically so I can audit that leftpad indeed doesn't make network calls .