Malicious code in joule-btp-extension (PyPI)
On pip install, setup.py runs a collect_and_exfiltrate() routine that reads /private/etc/passwd, /private/etc/hosts, and /private/etc/sudoers; captures selected environment variables (HOME, USER, LOGNAME, VIRTUAL_ENV, PATH, PIP_CACHE_DIR, npm_config_prefix, GIT_EDITOR); recursively globs the installer's $HOME and current working directory and reads up to 4096 bytes of each file; and additionally invokes os.system("cat /private/etc/passwd"). The collected data is JSON-serialized and POSTed via urllib to a hardcoded ATTACKER_URL (currently the placeholder http://127.0.0.1:4445/collect, with an author comment 'replace before deploying') using a spoofed 'User-Agent: pip/23.0' header to blend with pip traffic, and all exceptions are silently swallowed. setup.py also writes a marker file '.joule-btp-extension-was-here' into $VIRTUAL_ENV/bin, demonstrating write access to the installer's virtualenv bin directory for persistence. The package's own docstring declares it a proof-of-concept sandbox-escape supply-chain attack targeting SAP Joule Desktop on macOS; the PoC framing does not change what the code does on install: it harvests installer files and identity data and beacons them off-host.
During installation, the code exfiltrates basic information and exfiltrates more information to a localhost service as well as starts a reverse shell there. It seems to be an internal test that was uploaded to a public repository.
Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.
Campaign: 2026-08-joule-btp-extension
Reasons (based on the campaign):
The OpenSSF Package Analysis project identified 'joule-btp-extension' @ 0.1.6 (pypi) as malicious.
It is considered malicious because:
MAL-2026-13732 is recorded against 1 package.
Published on 11 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
URLs: https://42b1-2a02-2ad0-103-2841-51cc-a5b3-6bc2-68fe.ngrok-free.app/asd
bad-packages.kam193.eu (Web)
pypi.org (Package)
pypi.org (Package)
pypi.org (Package)
pypi.org (Package)
pypi.org (Package)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| joule-btp-extension | — | — |
References
Free Vulnerability Check
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-13732 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.