Advisory

MAL-2026-6516

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in inlifegram (PyPI)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (3975a0998bf76dddc25f0138b1d4b408bb06304b3203dc1e62e0110b2b56425f)
InLifeGram distributes a modified copy of the pyrogram Telegram client library and installs it into the top-level pyrogram import namespace, so import pyrogram after installation resolves to this fork. The fork's Client start path has been modified to lazily import a sibling module (from. import app as secret) and, when the authenticated account is a bot (self.me.is_bot), call secret.init(self) wrapped in a bare except Exception: pass. The call hands the fully authenticated client object — containing the bot token, api_id/api_hash, and MTProto auth_key — to undocumented code. The receiving app.py module consists of a single exec(zlib.decompress(base64.b85decode(b'...')).decode()) over an ~11KB opaque blob, with no other functionality and an Indonesian-language header threatening anyone who removes 'credits'. The multi-layer obfuscation (base85 → zlib → exec), the silent invocation on bot authentication, and the bare-except suppression are the canonical shape of a session/token-stealing backdoor. README links a sibling project VLife-Gram by the same author, indicating a family of trojanized forks. Any program that installs InLifeGram and runs a Pyrogram bot will silently surrender its bot session to the hidden payload on every successful login.

Source: kam193 (9e2d3483845391abac4b854096ffc1c7767818f9e2b02486d969ee2be0638dc9)
The modified version of a Telegram bot library. The obfuscated code, launched when the user starts their own bot application, attaches malicious backdoor commands to the Telegram bot. They allow hardcoded users to execute any commands in the bot's environment.

---

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

Campaign: 2026-06-inlifegram

Reasons (based on the campaign):

  • clones-real-package
  • obfuscation
  • The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.
  • rat
  • target:telegram
  • action-hidden-in-lib-usage
  • backdoor

Severity

Not rated by the source.

Dates

Published
2026-06-26 10:50 UTC
Modified
2026-06-29 09:16 UTC

Affected packages and fixes

inlifegram

PyPI · All systems

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences