Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

friendly-toolsPyPI

Advisory published Updated

friendly-tools is a confirmed malicious PyPI package (MAL-2026-17419) that steals credentials and exfiltrates sensitive data (malicious versions 0.1, 0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in friendly-tools (PyPI)

MAL-2026-17419
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall friendly-tools

What this malware does

friendly-tools 0.2 carries the same Snowflake payload as friendly-greeting-tools. Its --run-demo option, described as a print-only demo, execs a gzip and base64 blob from friendly_greeting/main.py that reads the container session token at /snowflake/session/token, switches to ACCOUNTADMIN and copies a table into s3://pkusinski-external/ through a new storage integration.

The package presents itself as 'Small greeting utilities' but ships two gzip+base64 embedded blobs (DEMO_EN, DEMO_ST) in main.py that are decoded and passed to exec() through the documented public API run_demo(). The decoded Python has no relation to greetings: it opens /snowflake/session/token to read the installer's Snowflake OAuth session token, calls snowflake.connector.connect with authenticator='oauth' and role='ACCOUNTADMIN', then issues DDL that creates an external S3 stage at s3://pkusinski-external/ using STORAGE_AWS_ROLE_ARN='arn:aws:iam::631484165566:role/pentests_s3_role', and runs COPY INTO @ROGUE.ROGUE.ext_stage FROM ROGUE.ROGUE.TEST_USERS to egress data to that non-first-party S3 bucket. When run_demo() is invoked in a Snowpark or Streamlit-in-Snowflake environment where /snowflake/session/token is provisioned, the installer's Snowflake credential is consumed under ACCOUNTADMIN to copy Snowflake table data to attacker-controlled storage. The obfuscation (gzip+base64+exec), the cover-story package description, and the hardcoded attacker S3 bucket and IAM role are consistent with a Snowflake-targeted data-theft payload.

The package contains obfuscated code to exfiltrate data from the environment, targeting primarily Snowflake databases and credentials to them. Some tracks suggest it may be part of a pentest.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-09-friendly-greeting-tools

Reasons (based on the campaign):

  • exfiltration-generic

  • obfuscation

Malicious versions

2 flagged
0.10.2

Indicators of compromise (SHA-256)

969afb49a1e59fa643e9d90d07745e3957906cc9603c4e5643e5760d5f254381
71b3a4955d5bd8448f0a56c843936702bb1f09eb8acbb9b468a5a337f8761b7f
6b9e176dd869e9177dc1a282626cb40f2bb3eac2822fda39e29ef4bd19db79f8

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for friendly-tools (2 malicious versions).

  2. If you installed it — respond

    friendly-tools is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If friendly-tools was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. friendly-tools on PyPI has been identified as a malicious package (versions 0.1, 0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2026-09-friendly-greeting-toolsIN-MAL-2026-020866IN-MAL-2026-020865

References

Credits

  • Amazon Inspector · finder
  • Kamil Mańkowski (kam193) · reporter
  • smiling-hyena · finder

Detect & block this

O3 blocks friendly-tools-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

friendly-tools (PyPI) malicious package — MAL-2026-17419 | O3 Security