PyPI: Python packets steal AWS keys from users
blog.sonatype.com
PyPI: Python packets steal AWS keys from users
1–10 of 104 posts
Re: PyPI: Python packets steal AWS keys from users
#2Re: PyPI: Python packets steal AWS keys from users
#3Wonder if something like pledge and unveil around library code could be helpful; perhaps library code needs to be separated out into a separate process that would not have reason to access AWS keys.
Also, looking at the screenshot, could a simple programming searching for URLs in the library code help in this case?
Looks like they removed the modules, so one can't examine them any more.
Re: PyPI: Python packets steal AWS keys from users
#4Re: PyPI: Python packets steal AWS keys from users
#5Glad they were able to automatically detect/catch this. There seems to be so much bloat when dependencies get pulled in. Wonder if something like pledge and unveil around library code could be helpful; perhaps library code needs to be separated out into a separate process that would not have reason to access AWS keys. Also, looking at the screenshot, could a simple programming searching for URLs in the library code h…
Python is tough though, a very dynamic language so probably kind of hard to lock it down.
Re: PyPI: Python packets steal AWS keys from users
#6I believe this is something that automated code parsing (a la Github Copilot) could really shine. Those tools are able to explain what a block of code does, so it should be possible to catch many types of malware hidden in source code.
Re: PyPI: Python packets steal AWS keys from users
#7PIP is designed to treat all indexes as mirrors, rather than to specify the source of a package: So a higher package version of an internal package name would be chosen whether it is on public or private PyPi. Equally a certain percentage of the time it would choose public over private with the same package version.
Re: PyPI: Python packets steal AWS keys from users
#8I believe this is something that automated code parsing (a la Github Copilot) could really shine. Those tools are able to explain what a block of code does, so it should be possible to catch many types of malware hidden in source code.
They have a lot of expertise in this, it feels like they could branch out in finding malware in source code, instead of in binaries.
Re: PyPI: Python packets steal AWS keys from users
#9Re: PyPI: Python packets steal AWS keys from users
#10I believe this is something that automated code parsing (a la Github Copilot) could really shine. Those tools are able to explain what a block of code does, so it should be possible to catch many types of malware hidden in source code.
If a human can't figure it out than an AI trained on human behavior (or more specifically, trained on comments left next to code) can't figure it out either. It's not like malware authors annotate their code with nice "here's where I exfiltrate all the user's secret data" comments.