Skip to main content

Malicious code in deepface-weights (PyPI)

0
Critical
Published: 08/18/2026 (08/18/2026, 21:48:32 UTC)
Source: GCVE Database
Product: deepface-weights

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9c1cf8a0f273b75a4cf2b66c9b9fc351023b9f77d61e82c74d74534424ce0558) On import, deepface_weights starts a daemon thread that polls every 10 seconds for the file `data/telethon_market_userbot.session` in the current working directory. When found, it POSTs the session file together with the local `os.getlogin()` value to the hardcoded endpoint https://webhook.site/730d2d03-5c78-4e0a-88df-9d8466b7e8aa. A Telethon `.session` file holds authenticated Telegram credentials, so exfiltration enables full takeover of the associated Telegram account. Package metadata is placeholder (author email `[email protected]`, description `Minimal example Python package`) and the name resembles the unrelated `deepface` face-recognition library, but the package ships none of that functionality — the stealer is its only behavior. Source comments in Russian label the destination as the attacker's server. ## Source: kam193 (a9b6a1255b998e6497198b80ffff88e0612a2d839c6f1b9859664436f96e5fce) During import, package exfiltrates the sensitive file with the Telegram session token. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-08-deepface-weights Reasons (based on the campaign): - files-exfiltration - target:telegram

Affected software

PyPIghsa
deepface-weights
Affected versions
=0.1.0=0.1.1=0.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 00:50:58 UTC

Technical Analysis

The 'deepface-weights' PyPI package (versions 0.1.0, 0.1.1, 0.1.2) contains embedded malicious code that, upon import, initiates a background thread polling every 10 seconds for the presence of a Telegram session file named 'data/telethon_market_userbot.session' in the current working directory. When found, it exfiltrates this file along with the local OS username to a hardcoded webhook URL controlled by the attacker. Since the Telegram session file contains authenticated credentials, this exfiltration enables full compromise of the victim's Telegram account. The package metadata is clearly fake and the package does not provide any legitimate deepface functionality. Source code comments in Russian confirm the destination is the attacker's server.

Potential Impact

Successful exploitation results in the theft of Telegram session credentials, allowing attackers full control over the victim's Telegram account. This can lead to unauthorized access, message interception, impersonation, and further compromise of the victim's contacts and data within Telegram.

Mitigation Recommendations

Users should immediately uninstall the 'deepface-weights' package versions 0.1.0, 0.1.1, and 0.1.2 and avoid installing it. Since no official patch or fix is available, the best mitigation is to remove the malicious package and revoke any Telegram sessions that may have been compromised. Users should verify their Telegram account security and reset credentials if suspicious activity is detected.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14132
Osv Schema Version
1.7.4
Ecosystems
["PyPI"]

Threat ID: 6a84fa65c6e8be0332ef1307

Added to database: 08/19/2026, 00:35:49 UTC

Last enriched: 08/19/2026, 00:50:58 UTC

Last updated: 10/02/2026, 06:28:18 UTC

Views: 91

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses