# Patchwork (India-nexus) Spearphishing Campaigns Delivering BADNEWS and Protego Against Pakistan Targets

> Group-IB analyzed two exposed Patchwork open directories (Workspace_A, Workspace_B) revealing phishing, reconnaissance, credential-attack and exploitation activity aimed mainly at Pakistani government, telecom and ISP organizations, with linked campaigns against China and Sri Lanka. Password-protected RAR/LNK lures and DLL side-loading deploy the BADNEWS backdoor and the Protego .NET downloader.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-03T12:57:43Z
- **Last updated:** 2026-12-03T12:57:43Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7388
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7388.png
- **ID:** TL-2026-7388
- **Severity:** HIGH
- **Category:** APT
- **Status:** ACTIVE
- **Actor:** Patchwork (India)
- **Detections:** 9 (1 shown free below) · **IOCs:** 31 (3 shown free below)

## Description

Group-IB Threat Intelligence discovered two exposed open directories linked with high confidence to the India-nexus actor Patchwork. Workspace_A contained reconnaissance, credential-attack and exploitation tooling and referenced more than 100 Pakistani organizations (roughly three in five government bodies, about a quarter private sector, the remainder ISPs and telecoms). Workspace_B held two password-spray lists for a single Pakistani organization in which every mailbox is paired with every candidate password and more than four in five passwords are variations of the organization's name. A reference to an organization in the workspace does not by itself indicate compromise; confirmed access was limited. Operator files tied the actor to a phishing campaign delivering the BADNEWS backdoor, and shared infrastructure revealed linked campaigns against China (universities, research institutions, aerospace, energy; Chinese-language lures) and Sri Lanka (a lure written for armed forces personnel), plus new C2 servers not yet tied to observed attacks.

Infection chain: phishing emails, frequently sent from compromised legitimate mailboxes, carry or link to a RAR archive (usually password-protected, password in the email body) hosted on a staging server. The archive contains one LNK named after a decoy whose target is a command interpreter. The LNK runs obfuscated PowerShell that suppresses progress output, downloads and opens a genuine decoy PDF, downloads an executable, a malicious DLL and the VC++ runtimes msvcp140.dll and vcruntime140.dll, creates a scheduled task that runs every minute, and deletes the LNK with a wildcard. Three command variants were observed: (1) direct PowerShell with cmdlet names split by empty quotes (for example iw''r), mostly against Pakistan and fetching from paksecure.org; (2) indirect lookup via cmd.exe (sometimes conhost.exe) using 'where p*s*ll.?x?', quote-split wget, UUID paths on fysat.org and padded file extensions (.ezxzez, .dylyly, .dzlzlz) stripped by -replace, used in other countries; (3) a proxy via Pester.bat from the Pester module, an alias 'john' for wget, native scheduled-task cmdlets and fetches from navalinfo.org. The scheduled task launches a legitimate or familiar-named executable that side-loads the malicious DLL. Observed pairs include cef_frame.exe/cef_frame.dll, cef_demo.exe/cef_frame.dll, NVIDIA_Share.exe/libcef.dll (payload appended to Nvidia.png), Cortana.exe/cortana.dll, SystemSettings.exe/SystemSettings.dll (readme.DAT), dpapimig.exe/SAMLIB.dll (Cisco.lib), java.exe/jli.dll (Update.dat; the Java launcher/jli.dll pairing has been used by Patchwork since at least 2017), vlc.exe/libvlc.dll (sys.ini) and Fondue.exe/APPWIZ.cpl (editor.dat). Tasks masquerade as GoogleReport, MicrosoftEdgeUpdateTask, GoogleTaskMachineQ, GoogleUpdateTaskMachineBA, GoogleUpdateTask and GoogleErrorReport, run every minute and stage in C:\Users\Public and C:\Windows\Tasks.

BADNEWS runs only in memory. Loaders are MinGW-built DLLs that store the payload encrypted in the DLL (CryptDecrypt/AES-256), appended after PNG image data and decoded with XOR and RC4, or in a separate data file. At start BADNEWS collects computer name, machine GUID and firmware information and queries myexternalip.com and api.iplocation.net. It beacons over HTTPS POST to paths made of two random 12-character segments ending in .php, running two parallel loops: one sends uid= every 2.5 seconds with six Base64 fields joined by a custom separator, the other sends cuud= and couth= every 3.5 seconds. Capabilities include command execution via cmd.exe, directory listing, file upload/download, running downloaded executables, screenshots and keystroke logging via a keyboard hook. A modified build seen in other countries decrypts a data file into shellcode that maps BADNEWS in memory, resolves location via api.ipify.org and ip2c.org, encrypts traffic with Salsa20 and polls directory-style paths not ending in .php. Protego is a .NET downloader run as msdtc32.exe with msdtctm.dll and editor.dat; it checks the public IP via api.ipify.org, collects hardware ID and installed software via WMI, shows the fake error 'Optional update delivery is not working' and POSTs to wtechnote.org at /c019e2b6b055-48d2/a5c5a153b6caddd7.php. In one campaign the actor installed a GoProxy root certificate in the trusted root store and set the system proxy to port 8080 to decrypt HTTPS traffic.

Workspace_A tooling shows webmail and server-side attacks: fake_imap.py (rogue IMAP on ports 143/993 that accepts any login and records credentials), multi_target_attack.sh (submits logins to a fixed list of Roundcube instances with _host pointing at the rogue service), session_forgery.py (forges roundcube_sessauth cookies from a recovered encryption key obtained from a config backup), dump_all.sh (unauthenticated mobile-app API collection), pk_pentest, probe2.sh-probe64.sh scan scripts and GodPotato (no evidence of use). Other targeted platforms include Zimbra, Control Web Panel, GeoServer, WordPress plugins and ASP.NET apps; webshells were uploaded via HTTP PUT, WebDAV and upload forms (PHP/JSP). Operators abused Cisco Smart Install and obtained sensitive configuration data from a network device. Default, common and organization-themed passwords were sprayed against webmail, SSH, control panels and databases, and a Control Web Panel autologin value from mail-server logs was decoded and replayed (no authenticated session confirmed).

C2 domains have neutral business names, were registered via Namecheap or Spaceship (often with privacy) and sit behind Cloudflare, with origin servers listed in the IOCs. Staging domains impersonate government, security, energy or academic services; cloned legitimate sites (unaffiliated organizations) were placed on origin servers. No CVE is asserted by the source; script names containing CVE strings are not treated as evidence of exploitation. Severity is an analyst assignment.

## MITRE ATT&CK

- T1583.001 Acquire Infrastructure: Domains
- T1586.002 Compromise Accounts: Email Accounts
- T1608.001 Stage Capabilities: Upload Malware
- T1566.001 Phishing: Spearphishing Attachment
- T1566.002 Phishing: Spearphishing Link
- T1190 Exploit Public-Facing Application
- T1204.002 User Execution: Malicious File
- T1059.001 Command and Scripting Interpreter: PowerShell
- T1059.003 Command and Scripting Interpreter: Windows Command Shell
- T1053.005 Scheduled Task/Job: Scheduled Task
- T1505.003 Server Software Component: Web Shell
- T1574.001 Hijack Execution Flow: DLL
- T1036.004 Masquerading: Masquerade Task or Service
- T1027.010 Obfuscated Files or Information: Command Obfuscation
- T1027.003 Obfuscated Files or Information: Steganography
- T1140 Deobfuscate/Decode Files or Information
- T1202 Indirect Command Execution
- T1070.004 Indicator Removal: File Deletion
- T1620 Reflective Code Loading
- T1553.004 Subvert Trust Controls: Install Root Certificate
- T1110.003 Brute Force: Password Spraying
- T1056.001 Input Capture: Keylogging
- T1082 System Information Discovery
- T1614 System Location Discovery
- T1550.004 Use Alternate Authentication Material: Web Session Cookie

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

**Patchwork BADNEWS Delivery - Obfuscated LNK PowerShell/cmd Downloader Variants (Exploitation)** (`TL-2026-7388-SPL-001`)

Detects the three LNK-launched downloader command-line variants Group-IB attributes to Patchwork (India-nexus) delivering BADNEWS and Protego: (1) PowerShell cmdlets split with empty quotes (iw''r, wg''et) fetching from paksecure.org, (2) indirect interpreter lookup via 'where p*s*ll.?x?' with padded extensions (.ezxzez/.dylyly/.dzlzlz) stripped by -replace and UUID paths on fysat.org, (3) Pester.bat proxying with fetches from navalinfo.org. Behaviour-first with known staging domains as corroboration. Maps to TL-2026-7388.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1204.002, T1059.001, T1059.003, T1027.010, T1202, T1566.001
- **Data sources:** sysmon, microsoft_defender_xdr:DeviceProcessEvents, windows_process_creation
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (CommandLine="*where p*s*ll.?x?*" OR CommandLine="*iw''r*" OR CommandLine="*wg''et*" OR CommandLine="*Pester.bat*" OR CommandLine="*.ezxzez*" OR CommandLine="*.dylyly*" OR CommandLine="*.dzlzlz*" OR CommandLine="*paksecure.org*" OR CommandLine="*fysat.org*" OR CommandLine="*navalinfo.org*")
| eval variant=case(like(CommandLine,"%where p%s%ll.?x?%"),"v2_indirect_where_lookup", like(CommandLine,"%Pester.bat%"),"v3_pester_bat_proxy", match(CommandLine,"(?i)(iw|wg)''"),"v1_empty_quote_split_cmdlet", match(CommandLine,"(?i)[.](ezxzez|dylyly|dzlzlz)"),"padded_extension_replace", true(),"patchwork_staging_domain")
| stats count min(_time) as first_seen max(_time) as last_seen values(variant) as variants values(ParentImage) as parent_images values(CommandLine) as command_lines by Computer, User
| convert ctime(first_seen) ctime(last_seen)
| table first_seen last_seen Computer User variants parent_images command_lines count
```

### Microsoft KQL

```kql
let stagingDomains = dynamic(["paksecure.org","fysat.org","navalinfo.org","pakonline.org","gov-pksupport.org"]);
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("powershell.exe","pwsh.exe","cmd.exe","conhost.exe")
| where ProcessCommandLine contains "where p*s*ll.?x?"
    or ProcessCommandLine matches regex "(?i)(iw|wg)''(r|et)|[.](ezxzez|dylyly|dzlzlz)|Pester[.]bat"
    or ProcessCommandLine has_any (stagingDomains)
| extend Variant = case(
    ProcessCommandLine contains "where p*s*ll.?x?", "v2_indirect_where_lookup",
    ProcessCommandLine has "Pester.bat", "v3_pester_bat_proxy",
    ProcessCommandLine matches regex "(?i)(iw|wg)''(r|et)", "v1_empty_quote_split_cmdlet",
    ProcessCommandLine matches regex "(?i)[.](ezxzez|dylyly|dzlzlz)", "padded_extension_replace",
    "patchwork_staging_domain")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, Variant, SHA1
```

### Sigma

```yaml
title: Patchwork Obfuscated LNK PowerShell/cmd Downloader Variants
id: 6c1f3a52-8b7e-4d19-9a0e-2f5b7d41c3a8
status: experimental
description: Detects the three Patchwork BADNEWS and Protego LNK downloader command-line variants documented by Group-IB - empty-quote split cmdlets, indirect PowerShell lookup via where p*s*ll.?x?, padded extensions stripped by -replace, Pester.bat proxying and fetches from known staging domains.
references:
  - https://www.group-ib.com/blog/patchwork-exposed/
  - https://attack.mitre.org/groups/G0040/
author: Threadlinqs Team
date: 2026-12-03
tags:
  - attack.execution
  - attack.t1059.001
  - attack.t1059.003
  - attack.t1204.002
  - attack.defense-evasion
  - attack.t1027.010
  - attack.t1202
  - attack.initial-access
  - attack.t1566.001
  - attack.g0040
logsource:
  category: process_creation
  product: windows
detection:
  selection_img:
    Image|endswith:
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\cmd.exe'
      - '\conhost.exe'
  selection_obfuscation:
    CommandLine|contains:
      - 'where p*s*ll.?x?'
      - "iw''r"
      - "wg''et"
      - 'Pester.bat'
      - '.ezxzez'
      - '.dylyly'
      - '.dzlzlz'
  selection_staging:
    CommandLine|contains:
      - 'paksecure.org'
      - 'fysat.org'
      - 'navalinfo.org'
      - 'pakonline.org'
      - 'gov-pksupport.org'
  condition: selection_img and (selection_obfuscation or selection_staging)
falsepositives:
  - Administrators running Pester test wrappers (Pester.bat is rare outside this tradecraft)
  - Security tooling that deliberately replays obfuscated command lines
level: high

```

**Known false positives:**

- Administrators or red-team exercises replaying quote-split or indirect-lookup PowerShell for testing
- Legitimate Pester test-framework wrappers invoked by CI agents on developer endpoints

**Tuning notes:** Requires Sysmon EventCode 1 with CommandLine (adjust index/sourcetype to your environment). The staging-domain terms can be extended with new Patchwork staging domains as intel evolves. Exclude known Pester CI hosts by Computer. Consider enabling PowerShell script block logging (4104) to corroborate.

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

- Patchwork LNK Dropper Chain - VC++ Runtime Staging, Scheduled Task and LNK Self-Deletion (Exploitation) (locked: unlock with TL Creds)
- Patchwork DLL Side-Loading - Known Host EXE / Malicious DLL Pairs (cef_frame, libcef, jli, SAMLIB, APPWIZ) (Post-Exploitation) (locked: unlock with TL Creds)
- Patchwork C2 Infrastructure and BADNEWS Public-IP/Geolocation Lookups From Non-Browser Processes (C2) (locked: unlock with TL Creds)
- Patchwork Webmail Server-Side Attack - Roundcube Rogue IMAP Host Injection and Web Shell Upload via PUT (Exploitation) (locked: unlock with TL Creds)
- Patchwork Protego msdtc32.exe and Side-Load Host Executables Running From Public/Tasks Folders (Post-Exploitation) (locked: unlock with TL Creds)
- Patchwork HTTPS Interception Setup - Trusted Root Certificate Install and System Proxy on Port 8080 (C2 / Defense Impairment) (locked: unlock with TL Creds)
- Patchwork Persistence - Updater-Masquerading Scheduled Task Running Every Minute (Post-Exploitation) (locked: unlock with TL Creds)
- Patchwork BADNEWS HTTPS POST Beacon - Two 12-Character Segment .php Paths and Protego Endpoint (C2) (locked: unlock with TL Creds)

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

## Sample indicators (3 of 31)

Defanged, TLP:CLEAR.

- IP address: `162.216.241[.]163`
- Domain: `secscience[.]org`
- File hash: `874976e94f1b84962b17af984e7068b764a21bbc`

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

## Sources

- [Patchwork Exposed: Revealing the Tradecraft and Operations (Group-IB Threat Intelligence)](https://www.group-ib.com/blog/patchwork-exposed/)
- [MITRE ATT&CK Group G0040: Patchwork](https://attack.mitre.org/groups/G0040/)
- [MITRE ATT&CK T1574.001 Hijack Execution Flow: DLL](https://attack.mitre.org/techniques/T1574/001/)
- [MITRE ATT&CK T1053.005 Scheduled Task/Job: Scheduled Task](https://attack.mitre.org/techniques/T1053/005/)
- [MITRE ATT&CK T1036.004 Masquerading: Masquerade Task or Service](https://attack.mitre.org/techniques/T1036/004/)
- [SecurityLab: Patchwork targeted attacks on Pakistani defense structures (Dropping Elephant / Maha Grass naming)](https://www.securitylab.ru/news/567730.php)

## 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-7388
