Skip to navigation

Threat reportMalwareTL-2026-2715

TWEAKOS Stealer: Discord Token Theft and Telegram Account-Takeover Marketplace

mediumACTIVE

TWEAKOS is a two-component Python malware ecosystem uncovered by Flare after its source code leaked on Pastebin: a Windows stealer that harvests Discord authentication tokens and hijacks Telegram accounts via a Telethon-scripted login flow, feeding a same-process Telegram bot that lists, prices, and sells the stolen accounts for Telegram Stars.

Key facts

IdentifiersTL-2026-2715
SeverityMEDIUM
Affected productsDiscord Inc. Discord Desktop/Web Client (local authentication token storage); Telegram FZ-LLC Telegram (phone/login-code/cloud-password authentication flow, scripted via the Telethon MTProto client library)
MalwareTWEAKOS, telegram
ToolsTelegram Bot API, Telethon
MITRE ATT&CK techniquesT1005 Data from Local System, T1036 Masquerading, T1056 Input Capture, T1071 Application Layer Protocol, T1528 Steal Application Access Token, T1547 Boot or Logon Autostart Execution, T1555 Credentials from Password Stores, T1585 Establish Accounts, T1587 Develop Capabilities, T1657 Financial Theft
MotivationFINANCIAL
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-09-27, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2715 across Splunk SPL, Microsoft KQL and Sigma, covering 18 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: TWEAKOS SystemHelper Startup Folder / Registry Run Key Persistence (SPL)

Detects creation of SystemHelper.exe in the current user's Startup folder (frozen-executable build) or the SystemHelper value under HKCU\...\CurrentVersion\Run (script-mode build) — the two low-privilege persistence mechanisms used by TWEAKOS, both masquerading as an innocuous system-helper utility.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1547.001, T1036
  • Data sources: sysmon, windows_security
  • Severity: high
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational"
  ( EventCode=11 TargetFilename="*\\Start Menu\\Programs\\Startup\\SystemHelper.exe" )
  OR ( EventCode=13 TargetObject="*\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\SystemHelper" )
| eval persistence_type=if(EventCode=11,"startup_folder","registry_run_key")
| table _time, Computer, User, Image, EventCode, TargetFilename, TargetObject, Details, persistence_type
| sort - _time

Microsoft KQL

DeviceFileEvents
| where Timestamp > ago(24h)
| where FolderPath endswith @"\Start Menu\Programs\Startup\SystemHelper.exe"
| project Timestamp, DeviceName, InitiatingProcessFileName, FolderPath, ActionType, PersistenceType = "startup_folder"
| union (
    DeviceRegistryEvents
    | where Timestamp > ago(24h)
    | where RegistryKey has @"Software\Microsoft\Windows\CurrentVersion\Run" and RegistryValueName == "SystemHelper"
    | project Timestamp, DeviceName, InitiatingProcessFileName, FolderPath = RegistryKey, ActionType, PersistenceType = "registry_run_key"
  )
| sort by Timestamp desc

Sigma

title: TWEAKOS SystemHelper Startup Folder Persistence
id: 4c8e2b91-3a7d-4f1e-9c6a-2b5d8e7f1a3c
status: experimental
description: Detects creation of SystemHelper.exe in the current user's Startup folder, the persistence mechanism used by the frozen-executable build of the TWEAKOS stealer. Pair with a companion registry_event rule on HKCU\...\CurrentVersion\Run\SystemHelper to cover the script-mode build variant.
references:
    - https://flare.io/learn/resources/blog/tweakos-stealer-telegram-c2-ecosystem-2
author: Threadlinqs Team
date: 2026-09-27
tags:
    - attack.persistence
    - attack.defense-evasion
    - attack.t1547.001
    - attack.t1036
    - attack.tool.tweakos
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|endswith: '\Start Menu\Programs\Startup\SystemHelper.exe'
    condition: selection
falsepositives:
    - Legitimate internal helper utility coincidentally named SystemHelper.exe (verify code signing and file hash against known-good baselines)
level: high

Known false positives:

  • Legitimate internal helper utility coincidentally named SystemHelper.exe or using a SystemHelper Run key (verify code signing and hash)

Tuning notes: Maintain an allowlist of code-signed, known-good SystemHelper.exe hashes; add a companion registry_event Sigma rule for the HKCU\...\Run\SystemHelper script-mode variant to fully cover both persistence paths.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • TWEAKOS Discord Token Harvesting — LevelDB Access + API Validation (KQL) · unlock with TL Creds
  • TWEAKOS SystemHelper Startup Folder / Registry Run Key Persistence (KQL) · unlock with TL Creds
  • TWEAKOS Telegram Bot API C2 / Account-Takeover Session Exfiltration (KQL) · unlock with TL Creds
  • TWEAKOS Discord Token Harvesting — LevelDB Access + API Validation (Sigma) · unlock with TL Creds
  • TWEAKOS SystemHelper Startup Folder / Registry Run Key Persistence (Sigma) · unlock with TL Creds
  • TWEAKOS Telegram Bot API C2 / Account-Takeover Session Exfiltration (Sigma) · unlock with TL Creds
  • TWEAKOS Discord Token Harvesting — LevelDB Access + API Validation (SPL) · unlock with TL Creds
  • TWEAKOS Telegram Bot API C2 / Account-Takeover Session Exfiltration (SPL) · unlock with TL Creds

Indicators of compromise

As of 2026-09-27, Threadlinqs Intelligence tracks 18 indicators of compromise for TL-2026-2715.

Sample indicators (1 of 18)

  • Domain: api[.]telegram[.]org

Defanged, TLP:CLEAR. Full set of 18 indicators: unlock with TL Creds.

18 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

TWEAKOS surfaced on 2026-09-24 when Flare's dark-web/Pastebin monitoring flagged a post containing the Python source of a Windows stealer, along with a hardcoded Telegram bot token and two hardcoded operator (admin) Telegram IDs. Pivoting on that bot token and admin-ID pair across Flare's platform surfaced a second, substantially larger Python component (v2) that reuses the identical credentials -- a long-lived Telegram bot process that functions simultaneously as the malware's command-and-control channel and as a stolen-account storefront, backed by a SQLite database (tweakos_data.db) tracking victims, products, buyers, orders, and operator actions.

The stealer (v1) targets two distinct classes of accounts. For Discord, it scans the Local Storage LevelDB directories (.log/.ldb files) used by the standard Discord client, the Discord PTB/canary build, and Chrome's default profile, applying regex matching -- including a pattern for tokens beginning with "mfa." -- to locate authentication tokens. Each candidate token is validated against the live Discord API endpoint discord.com/api/v9/users/@me; only tokens that return HTTP 200 are exfiltrated, bundled with the associated account's user tag. For Telegram, the stealer uses the Telethon client library to interactively walk a victim through account takeover: it prompts for a phone number, a login code, and -- if enabled -- the account's cloud (two-step) password, inspecting password state via a GetPasswordRequest() call. This produces a fresh, fully authorized Telegram session without ever changing the victim's actual password, which the source code's own comments acknowledge ("the code may generate a new password string when none exists, but it never actually changes the account password"). The resulting {phone}.session file is located on disk and exfiltrated via separate sendMessage/sendDocument calls to the two hardcoded admin Telegram IDs.

Persistence is minimal and user-scoped: the frozen-executable build copies itself to the Startup folder as SystemHelper.exe (%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\), while the script-mode build instead writes a SystemHelper value under HKCU\Software\Microsoft\Windows\CurrentVersion\Run -- neither requires administrator privileges. A referenced but unrecovered follow-on payload, WindowsSecurityChecker.exe, is invoked in code with the lure caption "Critical security update. Run it," though its actual functionality could not be confirmed. Operators can also trigger a per-victim blocker_{uid}.vbs script that raises a vbSystemModal Russian-language pop-up ("VASH KOMPYUTER ZABLOKIROVAN!" -- "YOUR COMPUTER IS BLOCKED!") directing the victim to a discord.gg/tweakos invite link, which Flare found invalid/expired during analysis.

The v2 bot backend closes the loop into a functioning criminal marketplace: stolen Telegram and Discord accounts are listed as products priced in Telegram Stars, with an automatic get_current_price() decay function applying a 5%-per-day discount capped at 70% off and floored at a 1-Star minimum -- an explicit acknowledgment that stolen-credential value decays with age. Flare notes this is the first documented case of a stealer and its own storefront operating inside the same bot process and token. However, the researchers also identified a runtime gap: the stealer's exfiltration messages and the bot's product-ingestion handler use different message formats and field-naming conventions, so the recovered code does not by itself prove that every stolen credential reliably becomes a marketplace listing -- some compromised accounts may reach the operators without appearing in tweakos_data.db. No CVE applies (this is credential-theft malware and its associated marketplace infrastructure, not a software vulnerability), no confirmed threat-actor attribution exists, and the initial delivery/infection vector and victim count remain unknown. Whether the exposed Telegram bot backend is still operational was not confirmed by Flare at publication.

MITRE ATT&CK techniques by tactic:

Collection

T1005 Data from Local System

Defense Evasion

T1036 Masquerading

Credential Access

T1056 Input Capture; T1528 Steal Application Access Token; T1555 Credentials from Password Stores

Command and Control

T1071 Application Layer Protocol

Persistence

T1547 Boot or Logon Autostart Execution

Resource Development

T1585 Establish Accounts; T1587 Develop Capabilities

Impact

T1657 Financial Theft

Remediation

Immediate actions

  • Invalidate/terminate all active Telegram sessions for any account suspected of exposure (Settings > Devices > Terminate All Other Sessions)
  • Revoke exposed Discord authentication tokens by changing the Discord account password, which invalidates previously issued tokens
  • Remove SystemHelper.exe from the Startup folder and delete the corresponding HKCU\Software\Microsoft\Windows\CurrentVersion\Run\SystemHelper registry value if present
  • Treat any unsolicited request for a Telegram login code or cloud (two-step) password as malicious and refuse to share it, per Flare's own guidance

Workarounds

  • Avoid running unverified Python scripts or 'security checker' utilities claiming to fix or update Discord/Telegram
  • Train users that legitimate Telegram or Discord support never requests a login code or a cloud/two-step password

Longer-term hardening

  • Enable Telegram two-step verification (cloud password) and Discord multi-factor authentication on all accounts
  • Monitor endpoint telemetry for processes reading Discord/Discord PTB/Chrome Local Storage LevelDB directories followed by outbound requests to discord.com/api/v9/users/@me
  • Monitor for outbound HTTPS traffic to api.telegram.org (sendMessage/sendDocument) correlated with creation of new .session files on the host
  • Alert on creation of files matching {phone}.session or session_{uid}.session naming patterns outside a legitimate Telegram Desktop installation

Affected and fixed versions

  • Discord Inc. — Discord Desktop/Web Client (local authentication token storage)
    Vulnerable versions: Not a software vulnerability -- the client's local-storage token persistence is abused, not exploited
    Fixed in: N/A
  • Telegram FZ-LLC — Telegram (phone/login-code/cloud-password authentication flow, scripted via the Telethon MTProto client library)
    Vulnerable versions: Not a software vulnerability -- the standard account-login flow is socially engineered/scripted, not exploited
    Fixed in: N/A

Timeline

  • Researchers test the discord.gg/tweakos invite link referenced in the locked-ioc-10 coercion script and find it invalid/expired, leaving the operational status of the Telegram bot backend unconfirmed.
  • Flare completes analysis of both components, documenting the Discord token-theft flow, the Telethon-based Telegram session-hijacking flow, the locked-ioc-13 marketplace schema, and the shared-infrastructure evidence linking the two components.
  • Flare pivots on the exposed Telegram bot token and admin IDs across its platform, surfacing a second, substantially larger Python component (v2) that shares the identical bot token and admin IDs -- the marketplace/C2 backend.
  • TWEAKOS v1 stealer source code is posted to Pastebin, exposing a hardcoded Telegram bot token and two hardcoded admin IDs; Flare's monitoring flags the post as high severity.
  • Security Boulevard, Cyberpress, Cryptika Cybersecurity, and Rankiteo republish/summarize the Flare research, widening coverage of the TWEAKOS stealer and marketplace.
  • Flare publishes its research as 'TWEAKOS Uncovered: A Telegram-Driven Stealer and C2 Ecosystem for Discord and Telegram Tokens,' and Cyber Security News publishes independent coverage of the findings.
  • TWEAKOS coverage is included in the 'This Week in 4n6' weekly digital-forensics community roundup for week 39 of 2026.

Sources cited

Previous and next in malware

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats