Malicious Code Exfiltration in s3transfer-sl Package

s3transfer-sl Updated 03 Dec 2025

Summary

23/04/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191861: Malicious code in s3transfer-sl (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The s3transfer-sl package is a Python library available on PyPI, designed to facilitate the transfer of files to and from Amazon S3. However, this package has been identified as a malicious clone of the legitimate s3transfer package, which is widely used for secure and efficient file transfers. The malicious variant poses a significant risk by attempting to exfiltrate sensitive environment variables and tokens from the Azure metadata API during installation.

Vulnerability Detail

The vulnerability originates from the s3transfer-sl package, which contains malicious code that executes upon installation. This code is designed to extract sensitive information, such as environment variables and tokens, from the Azure metadata API. The ramifications of this vulnerability are severe, as it can lead to unauthorized access to cloud resources and potential data breaches. The package is a clear case of typosquatting, where a malicious actor creates a package with a name similar to a legitimate one to deceive users.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall s3transfer-sl

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There are no effective workarounds for this vulnerability other than removing the malicious package and ensuring that you are using the correct, legitimate package. Always verify package names before installation to avoid typosquatting risks.

Conclusion

The s3transfer-sl package poses a significant security risk due to its malicious intent to exfiltrate sensitive information. Users are strongly advised to uninstall this package and switch to the legitimate s3transfer package. Regular monitoring of dependencies using tools like Vulert can help prevent future vulnerabilities.

See every vulnerability recorded for s3transfer-sl →

Share this vulnerability

FAQ

s3transfer-sl is a malicious Python package that mimics the legitimate s3transfer package, designed for transferring files to and from Amazon S3.

The vulnerability allows the malicious package to exfiltrate sensitive information from your environment, potentially leading to unauthorized access to your cloud resources.

You should uninstall the s3transfer-sl package immediately and install the legitimate s3transfer package to secure your application.

Always verify the package name and source before installation. Consider using tools like Vulert to monitor for vulnerabilities in your dependencies.

Vulert is a monitoring tool that uses your Pipfile.lock to alert you in real-time about open-source vulnerabilities in your software. You can check for vulnerabilities without signing up using the Vulert playground.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall s3transfer-sl

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback