Alias "pip install" to "guarddog"
Just a random idea I had:
As a: developer I want to: automatically run pysecurity on every package I install and that: the installation fails if the package is dangerous so that: I don't install malicious packages
The idea would be to document a way to have an alias that runs pysecurity, then pip install, and fails if the package is deemed "risky".
Sample usage:
$ securepip install mypackage
Scanning mypackage with pysecurity...
No malicious behavior found, proceeding with pip install
Implementation: the easiest would be to provide a bash function one could add to their .bashrc
Another way would be to have a "proxy command" directly in GuardDog that emulates the right behavior, e.g. guarddog poetry xxx and guarddog pip install
+1 for adding direct support for the discovery and parsing of manifests that aren't just requirements.txt (like Poetry)
For reference, Socket security just released a similar thing for npm. I really really like the concept here!
Closing this issue, since https://github.com/DataDog/supply-chain-firewall/ was introduced to do this. Is not the same, since scfw works on known malicious items rather than live data, but further extending scfw is being considered