guarddog
guarddog copied to clipboard
Allows setting pypi sources for private deployments
Thanks for sharing, it's a cool project. I plan to use this to instrument internal pypi and npm repositories。 Whether to add support for manually setting the pypi or npm source?
Hi, you can download the packages from the repository and scan those files directly. For example
(guarddog) ~/s/guarddog ❯❯❯ wget https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl
...
2023-05-31 15:22:08 (3.59 MB/s) - ‘requests-2.31.0-py3-none-any.whl’ saved [62574/62574]
(guarddog) ~/s/guarddog ❯❯❯ guarddog pypi scan ./requests-2.31.0-py3-none-any.whl
Found 0 potentially malicious indicators scanning ./requests-2.31.0-py3-none-any.whl
(guarddog) ~/s/guarddog ❯❯❯
Is this sufficient for your use case?