# Gamaredon PteroLNK VBScript Malware: Dead Drop Resolvers (Telegraph/Teletype) and Cloudflare Quick-Tunnel C2 Targeting Ukraine

> HarfangLab analyzed Pterodo-family PteroLNK VBScript samples attributed to Gamaredon (widely believed to be linked to Russia's FSB), uploaded to a public malware analysis platform between late 2024 and March 2025. The malware resolves C2 through Telegraph/Teletype dead drop resolvers and Cloudflare quick tunnels, spreads via malicious LNK shortcuts, and targets Ukrainian government, military and critical infrastructure entities.

- **Published:** 2026-11-28T18:36:30Z
- **Last reviewed:** 2026-11-28T18:36:30Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7028
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7028.png
- **ID:** TL-2026-7028
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Actor:** Gamaredon (Russia)
- **Detections:** 9 (1 shown free below) · **IOCs:** 28 (3 shown free below)

## Description

PteroLNK is a VBScript-based malware component of the Pterodo family operated by Gamaredon. HarfangLab (TRR250401, published 2025-04-16) analyzed samples uploaded to online multiscanners between late 2024 and mid-March 2025 from Kyiv, Dnipro, Rivne, Kupyansk and Odesa. The samples match ESET's earlier PteroLNK description (2023-2024 analysis) and reuse Gamaredon habits: NTUSER.DAT.TMContainer file names, a User-Agent string with computer name and drive serial delimited by '/.n' and '/.T', and infrastructure previously tied to the group.

The main obfuscated VBScript drops two base64-encoded payloads, a Downloader and an LNK Dropper, copies itself to %PUBLIC%\NTUSER.DAT.TMContainer and %APPDATA%\~.drv, and persists through scheduled tasks under \Windows\DeviceDirectoryClient\ (RegisterUserDevice every 3 minutes for the Downloader, RegisterDeviceConnectedToNetwork every 9 minutes for the LNK Dropper). If '360 Total Security' is detected, both payloads switch from scheduled tasks to an infinite loop and skip file-concealment actions. The script changes Explorer settings to show hidden files, hide extensions and hide protected OS files. C2 configuration is stored in HKCU\Console values WindowsUpdates (primary C2), WindowsResponby (backup C2) and WindowsDetect (URI portion).

The Downloader is a multi-stage C2 retriever driven by an error counter. It checks connectivity against benign sites (sweet.tv, ukr.net, bbc.com, vesti.ru), then reads a hard-coded Telegraph dead drop resolver (telegra.ph/Vizit-12-28 by default) and parses a trycloudflare.com quick-tunnel address from the page with a regex. It sends a GET to the tunnel with a custom User-Agent; a 404 response returns a new C2. At higher error counts it builds a second DDR on teletype.in and, at further levels, uses check-host.net to resolve a hard-coded C2 of the form <2 digits><word>.mahombres.ru. Received VBScript is executed with ExecuteGlobal. Cloudflare flagged five Gamaredon-controlled C2 domains (registrar REGRU-RU) as Suspected Phishing, which disrupted payload retrieval. Related DDRs were still being updated in the observation window (for example, telegra.ph/Vizit-12-28 was repointed to nandayo.ru on 2025-03-27 and a Teletype DDR began pointing to kimiga.ru on 2025-03-31).

The LNK Dropper replaces .pdf, .docx and .xlsx documents and folders in drive roots (up to three subfolder levels) with malicious shortcuts and copies the main script alongside them as ~.drv (or ~.tmp / ~.ini if those names exist). The shortcuts run a javascript:eval payload that launches the original file via explorer and runs wscript.exe //e:vbScript ~.drv. When no matching document exists, Ukrainian military-themed decoy names are used (for example 'Для службового користування', 'Інформація щодо загиблих', 'Супровід ГУР', 'рнбо'). HarfangLab assesses the focus as Ukrainian government, military and critical infrastructure.

## MITRE ATT&CK

- T1583.001 Acquire Infrastructure: Domains
- T1583.006 Acquire Infrastructure: Web Services
- T1091 Replication Through Removable Media
- T1204.002 User Execution: Malicious File
- T1059.005 Command and Scripting Interpreter: Visual Basic
- T1059.007 Command and Scripting Interpreter: JavaScript
- T1053.005 Scheduled Task/Job: Scheduled Task
- T1218.005 System Binary Proxy Execution: Mshta
- T1027 Obfuscated Files or Information
- T1140 Deobfuscate/Decode Files or Information
- T1112 Modify Registry
- T1564.001 Hide Artifacts: Hidden Files and Directories
- T1036.005 Masquerading: Match Legitimate Resource Name or Location
- T1082 System Information Discovery
- T1016.001 System Network Configuration Discovery: Internet Connection Discovery
- T1518.001 Software Discovery: Security Software Discovery
- T1102.001 Web Service: Dead Drop Resolver
- T1071.001 Application Layer Protocol: Web Protocols
- T1568 Dynamic Resolution
- T1572 Protocol Tunneling

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Gamaredon PteroLNK — Script Host Contacting Dead Drop Resolvers, Cloudflare Quick Tunnels and Gamaredon C2** (`TL-2026-7028-SPL-003`)

Detects wscript.exe, cscript.exe or mshta.exe resolving or connecting to the PteroLNK C2 chain: Telegraph/Graph/Teletype dead drop resolvers (telegra.ph, graph.org, teletype.in), trycloudflare.com quick tunnels, the check-host.net resolver, and Gamaredon domains/IPs from TRR250401 (mahombres.ru, tienes.ru, kimiga.ru, areyouall.ru, nandayo.ru, 194.67.71.128, 31.129.22.156). Script hosts have little reason to contact these services.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1102.001, T1071.001, T1572, T1583.006
- **Data sources:** sysmon_event_22, sysmon_event_3, XmlWinEventLog:Microsoft-Windows-Sysmon/Operational, DeviceNetworkEvents
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" (EventCode=22 OR EventCode=3) earliest=-24h (Image="*wscript.exe" OR Image="*cscript.exe" OR Image="*mshta.exe")
```EventCode 22 = DNS query, EventCode 3 = network connection```
| eval indicator=lower(coalesce(QueryName,DestinationHostname,DestinationIp))
| eval channel=case(like(indicator,"%telegra.ph") OR like(indicator,"%graph.org") OR like(indicator,"%teletype.in"),"dead_drop_resolver", like(indicator,"%trycloudflare.com"),"cloudflare_quick_tunnel", like(indicator,"%check-host.net"),"check_host_resolver", like(indicator,"%mahombres.ru") OR like(indicator,"%tienes.ru") OR like(indicator,"%kimiga.ru") OR like(indicator,"%areyouall.ru") OR like(indicator,"%nandayo.ru"),"gamaredon_c2_domain", DestinationIp="194.67.71.128" OR DestinationIp="31.129.22.156","gamaredon_c2_ip")
| where isnotnull(channel)
| stats count dc(indicator) as distinct_indicators values(indicator) as indicators min(_time) as first_seen max(_time) as last_seen by host User Image channel
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
let lookback = 24h;
DeviceNetworkEvents
| where Timestamp > ago(lookback)
| where InitiatingProcessFileName in~ ("wscript.exe", "cscript.exe", "mshta.exe")
| where RemoteUrl has_any ("telegra.ph", "graph.org", "teletype.in", "trycloudflare.com", "check-host.net", "mahombres.ru", "tienes.ru", "kimiga.ru", "areyouall.ru", "nandayo.ru") or RemoteIP in ("194.67.71.128", "31.129.22.156")
| project Timestamp, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteUrl, RemoteIP, RemotePort
| order by Timestamp desc
```

### Sigma

```yaml
title: PteroLNK Script Host DNS Query to Dead Drop Resolver, Quick Tunnel or Gamaredon C2
id: b5f2e8d4-1c36-4a79-8e0b-6d3a7c9f4303
status: experimental
description: Detects wscript.exe, cscript.exe or mshta.exe resolving Telegraph/Teletype dead drop resolvers, trycloudflare.com quick tunnels, check-host.net or Gamaredon C2 domains reported for PteroLNK.
references:
  - https://harfanglab.io/insidethelab/gamaredons-pterolnk-analysis/
  - https://attack.mitre.org/techniques/T1102/001/
author: Threadlinqs Team
date: 2026-11-28
tags:
  - attack.command-and-control
  - attack.t1102.001
  - attack.t1071.001
  - attack.t1572
  - attack.resource-development
  - attack.t1583.006
logsource:
  category: dns_query
  product: windows
detection:
  selection_img:
    Image|endswith:
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
  selection_dns:
    QueryName|endswith:
      - 'telegra.ph'
      - 'graph.org'
      - 'teletype.in'
      - '.trycloudflare.com'
      - 'check-host.net'
      - '.mahombres.ru'
      - 'tienes.ru'
      - 'kimiga.ru'
      - 'areyouall.ru'
      - 'nandayo.ru'
  condition: all of selection_*
falsepositives:
  - Administrative scripts that legitimately publish to Telegraph or Teletype, or use check-host.net for diagnostics
level: high
```

**Known false positives:**

- Admin or marketing scripts that post to telegra.ph or teletype.in via wscript/mshta
- Network-diagnostic scripts that query check-host.net

**Tuning notes:** Extend the indicator lists with new DDR URLs and trycloudflare.com subdomains from TRR250401 as they are published. If DNS logging (EventCode 22) is unavailable, rely on EventCode 3 and proxy logs. Allow-list approved automation hosts. Gamaredon rotates infrastructure often, so keep the behaviour (script host to DDR/tunnel) as the primary signal.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Gamaredon PteroLNK — Explorer-Launched mshta javascript:eval / wscript //e:vbScript from Malicious LNK (locked: unlock with TL Creds)
- Gamaredon PteroLNK — HKCU\Console C2 Config Values and Explorer Hidden-File Tampering (locked: unlock with TL Creds)
- Gamaredon PteroLNK — Connectivity Checks Followed by DDR / Quick-Tunnel / check-host.net C2 Fallback Chain (locked: unlock with TL Creds)
- Gamaredon PteroLNK — Dropped NTUSER.DAT.TMContainer Payloads in %PUBLIC% and ~.drv/~.tmp/~.ini Script Copies (locked: unlock with TL Creds)
- Gamaredon PteroLNK — schtasks.exe Creating DeviceDirectoryClient Task or Task Pointing at Masqueraded Script (locked: unlock with TL Creds)
- Gamaredon PteroLNK — C2 HTTP Requests with Computer-Name/Drive-Serial User-Agent ('/.n' and '/.T' Delimiters) (locked: unlock with TL Creds)
- Gamaredon PteroLNK — wscript //e:vbScript Execution of Masqueraded ~.drv / NTUSER.DAT.TMContainer Script (locked: unlock with TL Creds)
- Gamaredon PteroLNK — Scheduled Task Masquerading as Windows DeviceDirectoryClient (Persistence) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 28)

Defanged, TLP:CLEAR.

- IP address: `194.67.71[.]128`
- Domain: `tienes[.]ru`
- URL: `hxxps://telegra[.]ph/Vizit-12-28`

Full set of 28 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Inside Gamaredon's PteroLNK: Dead Drop Resolvers and evasive Infrastructure (HarfangLab, TRR250401)](https://harfanglab.io/insidethelab/gamaredons-pterolnk-analysis/)
- [HarfangLab IOCs repository - TRR250401](https://github.com/HarfangLab/iocs/tree/main/TRR250401)
- [ESET - Cyberespionage the Gamaredon way](https://web-assets.esetstatic.com/wls/en/papers/white-papers/cyberespionage-gamaredon-way.pdf)
- [Microsoft - ACTINIUM targets Ukrainian organizations](https://www.microsoft.com/en-us/security/blog/2022/02/04/actinium-targets-ukrainian-organizations/)
- [Unit 42 - Gamaredon / Primitive Bear Ukraine update 2021](https://unit42.paloaltonetworks.com/gamaredon-primitive-bear-ukraine-update-2021/)
- [Symantec - Shuckworm continues cyber-espionage attacks against Ukraine](https://www.security.com/threat-intelligence/russia-ukraine-shuckworm)
- [CERT-UA advisory](https://cert.gov.ua/article/1229152)
- [Recorded Future - Insikt Group Russia-nexus report (cta-ru-2024-1205)](https://go.recordedfuture.com/hubfs/reports/cta-ru-2024-1205.pdf)
- [Hunt.io - State-sponsored activity: Gamaredon and ShadowPad](https://hunt.io/blog/state-sponsored-activity-gamaredon-shadowpad)
- [Cisco Talos - Network footprints of Gamaredon Group](https://blogs.cisco.com/security/network-footprints-of-gamaredon-group)
- [SBU - FSB hackers identified behind over 5,000 cyberattacks on Ukrainian state bodies](https://ssu.gov.ua/en/novyny/sbu-vstanovyla-khakeriv-fsb-yaki-zdiisnyly-ponad-5-tys-kiberatak-na-derzhavni-orhany-ukrainy)
- [EUREPOC - Gamaredon report](https://eurepoc.eu/wp-content/uploads/2023/07/Gamaredon-EN.pdf)
- [MITRE ATT&CK T1102.001 Dead Drop Resolver](https://attack.mitre.org/techniques/T1102/001/)
- [Cloudflare Quick Tunnels](https://try.cloudflare.com/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7028
