Beware of the Malicious Python Package ‘fabrice’: How Typosquatting is Stealing AWS Credentials
A malicious Python package named 'fabrice' was published to PyPI, typosquatting the legitimate 'fabric' library. When installed, it exfiltrated AWS credentials and established persistent backdoors on Linux and Windows systems.
Published on systemweakness.com
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the package registry allowed a lookalike name to be published, and the malicious package ran code on install that harvested credentials and installed persistence.
Impact
The package could steal AWS credentials and create persistent backdoors on both Linux and Windows systems.
What the attacker needed
Developer mistypes package name; installs the malicious package
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Typosquatting is when an attacker uploads a package to a public code repository with a name almost identical to a popular one, hoping people will mistype it. Here, a package called 'fabrice' was made to look like the real 'fabric' tool. Anyone who installed the fake one could have their cloud login details stolen and their computer secretly controlled.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.