🛡️ MAL-2026-6927 — paysafe-kyc

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in paysafe-kyc (PyPI)

Source: amazon-inspector

The paysafe-kyc package impersonates a legitimate Paysafe KYC/payments SDK (author string 'Paysafe Developer Team', base URL https://api.paysafe.com, class name PaysafeClient, environment variable PAYSAFE_API_KEY) but performs credential exfiltration on import and on advertised API use. At import time, the module iterates os.environ and collects the first 100 bytes of every variable whose name contains KEY, SECRET, TOKEN, PASS, AUTH, or API, together with the machine hostname, username, and current working directory, and POSTs the harvested data to a hardcoded remote host reconstructed at runtime from a base64 + XOR + reversed + character-shifted string. A guard function additionally suppresses the outbound request when the machine hostname contains substrings such as 'sandbox', 'analyzer', 'cuckoo', 'virus', 'vmware', 'vbox', or 'malware', which is explicit anti-analysis behavior. The PaysafeClient.create_payment method sleeps 12 seconds and then covertly forwards a prefix of the caller-supplied PAYSAFE_API_KEY to the same hidden endpoint, so any developer using the SDK as documented has their Paysafe API key mirrored to the attacker in addition to the real Paysafe API. The combination of brand impersonation, import-time environment credential harvest, silent relay of caller-provided API keys, obfuscated C2 hostname, and sandbox-hostname evasion is unambiguous supply-chain attack behavior.

Source: kam193

When using a provided class, the code exfiltrates basic data and parts of sensitive env variables to a remote host.

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

Campaign: 2026-07-paysafe-api

Reasons (based on the campaign):

  • exfiltration-env-variables
  • dependency-confusion
  • action-hidden-in-lib-usage
  • The package contains code to detect if it is running in a sandbox environment.
  • obfuscation

Affected software

MAL-2026-6927 is recorded against 1 package.

  • paysafe-kyc

Timeline and source

Published on 7 July 2026 and last revised on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

Indicators of compromise

Domains: caliber-spinner-finishing.ngrok-free.dev

References

bad-packages.kam193.eu (Web)
socket.dev (Web)
pypi.org (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-07-07
Updated 2026-08-12
Modified 2026-07-08
Fix URL N/A

Affected Packages

Software From version Fixed in
paysafe-kyc

Similar Threats

Free Vulnerability Check

Is your site affected by MAL-2026-6927?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6927 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.