Poisoned Pipeline / Incidents / AS385

AS385 · 2021-11

botaa3 typosquatted boto3 with an XOR-encrypted reverse shell

PyPI

The PyPI package botaa3 imitated boto3, the AWS SDK for Python. Its
setup.py carried a base64 payload XOR-encrypted with a key left in the file,
decrypting to roughly 1,060 lines of code that cached in to
install.pypi-installer[.]com — a domain registered the day before publication
— and included a kill date of 17 November 2022. It also installed the real
boto3 so the environment looked correct. Published 17 November 2021 by an
account named 'Shh Not Cool Bro' and removed after Sonatype reported it.

Mapped techniques

supply-chain botaa3 typosquatted boto3 with an XOR-encrypted reverse shel

T0129 · Initial Access · Typosquatting

The name imitated boto3.

T0109 · Resource Development · Publish malicious artifact

A single malicious 1.0.0 release.

T0151 · Execution · Installation scripts

setup.py executed the decrypted payload at install.

Sources