Skip to navigation

Threat reportAPTTL-2026-7388

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

highACTIVE

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.

By

Key facts

IdentifiersTL-2026-7388
Also known asPatchwork Exposed, Workspace_A, Workspace_B
SeverityHIGH
First disclosed
Affected productsMicrosoft Windows (endpoints targeted by LNK/PowerShell/DLL side-loading chain); Roundcube Roundcube Webmail (session forgery / rogue IMAP host injection); Cisco Cisco IOS devices with Smart Install (TCP 4786) enabled
AttributionPatchwork (high confidence)
Nation-state nexusIndia
MalwareBADNEWS, Nexus, Protego
ToolsBadnews
MITRE ATT&CK techniquesT1027.003 Obfuscated Files or Information: Steganography, T1027.010 Obfuscated Files or Information: Command Obfuscation, T1036.004 Masquerading: Masquerade Task or Service, T1053.005 Scheduled Task/Job: Scheduled Task, T1056.001 Input Capture: Keylogging, T1059.001 Command and Scripting Interpreter: PowerShell, T1059.003 Command and Scripting Interpreter: Windows Command Shell, T1070.004 Indicator Removal: File Deletion, T1082 System Information Discovery, T1110.003 Brute Force: Password Spraying, T1140 Deobfuscate/Decode Files or Information, T1190 Exploit Public-Facing Application and 13 more in the attack flow
MotivationESPIONAGE
Target sectorsgovernment administration, telecoms, internet service providers, hosting, education, aerospace, energy, military
Target regionspakistan, china, sri lanka
Detection rules9 (1 shown free)
Sources6 cited sources

Detection coverage

As of 2026-12-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7388 across Splunk SPL, Microsoft KQL and Sigma, covering 31 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: Patchwork BADNEWS Delivery - Obfuscated LNK PowerShell/cmd Downloader Variants (Exploitation)

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.

Splunk 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

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

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. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • Patchwork LNK Dropper Chain - VC++ Runtime Staging, Scheduled Task and LNK Self-Deletion (Exploitation) · unlock with TL Creds
  • Patchwork DLL Side-Loading - Known Host EXE / Malicious DLL Pairs (cef_frame, libcef, jli, SAMLIB, APPWIZ) (Post-Exploitation) · unlock with TL Creds
  • Patchwork C2 Infrastructure and BADNEWS Public-IP/Geolocation Lookups From Non-Browser Processes (C2) · unlock with TL Creds
  • Patchwork Webmail Server-Side Attack - Roundcube Rogue IMAP Host Injection and Web Shell Upload via PUT (Exploitation) · unlock with TL Creds
  • Patchwork Protego msdtc32.exe and Side-Load Host Executables Running From Public/Tasks Folders (Post-Exploitation) · unlock with TL Creds
  • Patchwork HTTPS Interception Setup - Trusted Root Certificate Install and System Proxy on Port 8080 (C2 / Defense Impairment) · unlock with TL Creds
  • Patchwork Persistence - Updater-Masquerading Scheduled Task Running Every Minute (Post-Exploitation) · unlock with TL Creds
  • Patchwork BADNEWS HTTPS POST Beacon - Two 12-Character Segment .php Paths and Protego Endpoint (C2) · unlock with TL Creds

Indicators of compromise

As of 2026-12-03, Threadlinqs Intelligence tracks 31 indicators of compromise for TL-2026-7388.

Sample indicators (3 of 31)

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

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

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

Technical analysis

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 techniques by tactic:

Stealth

T1027.003 Obfuscated Files or Information: Steganography; T1027.010 Obfuscated Files or Information: Command Obfuscation; T1036.004 Masquerading: Masquerade Task or Service; T1070.004 Indicator Removal: File Deletion; T1140 Deobfuscate/Decode Files or Information; T1202 Indirect Command Execution; T1574.001 Hijack Execution Flow: DLL; T1620 Reflective Code Loading

Persistence

T1053.005 Scheduled Task/Job: Scheduled Task; T1505.003 Server Software Component: Web Shell

Credential Access

T1056.001 Input Capture: Keylogging; T1110.003 Brute Force: Password Spraying

Execution

T1059.001 Command and Scripting Interpreter: PowerShell; T1059.003 Command and Scripting Interpreter: Windows Command Shell; T1204.002 User Execution: Malicious File

Discovery

T1082 System Information Discovery; T1614 System Location Discovery

Initial Access

T1190 Exploit Public-Facing Application; T1566.001 Phishing: Spearphishing Attachment; T1566.002 Phishing: Spearphishing Link

Lateral Movement

T1550.004 Use Alternate Authentication Material: Web Session Cookie

Defense Impairment

T1553.004 Subvert Trust Controls: Install Root Certificate

Resource Development

T1583.001 Acquire Infrastructure: Domains; T1586.002 Compromise Accounts: Email Accounts; T1608.001 Stage Capabilities: Upload Malware

Remediation

Immediate actions

  • Block the listed C2/staging domains and IPs and hunt for HTTPS POST beacons to /<12 chars>/<12 chars>.php paths
  • Quarantine password-protected archives and block LNK files at mail and web gateways
  • Alert on scheduled tasks imitating Google/Microsoft updaters that run every minute from C:\Users\Public or C:\Windows\Tasks
  • Hunt for PowerShell command lines containing 'where p*s*ll.?x?', empty-quote split cmdlets (iw''r, wg''et) and Pester.bat proxying
  • Audit trusted root certificate stores and system proxy settings (port 8080) for unexpected changes
  • Rotate webmail, SSH, control-panel and database credentials and invalidate Roundcube sessions if encryption keys or config backups were exposed

Workarounds

  • Disable Cisco Smart Install with 'no vstack' where not required
  • Restrict TCP port 4786 to authorized management systems

Longer-term hardening

  • Enable PowerShell script block logging
  • Apply application control to block execution from user-writable folders
  • Enforce MFA and rate limiting on webmail, SSH, control panels and databases
  • Verify unexpected document requests through a second channel
  • Deploy YARA rules for the cef_frame/libcef loaders, implant and LNK downloaders

Affected and fixed versions

  • Microsoft — Windows (endpoints targeted by LNK/PowerShell/DLL side-loading chain)
  • Roundcube — Roundcube Webmail (session forgery / rogue IMAP host injection)
  • Cisco — Cisco IOS devices with Smart Install (TCP 4786) enabled

Timeline

  • Patchwork has used the Java launcher / jli.dll side-loading pairing since at least 2017 (year-level precision in the source).
  • Campaign #2: ZONG-themed lure (zong.rar / ZONG.lnk) delivers BADNEWS with C2 [domain withheld] (origin 103.168.66.36); year-level precision, the source gives no exact date.
  • Campaign #1: Ufone annual-report lure (Ufone_annual_2026.rar) delivers BADNEWS with C2 [domain withheld] (origin [IP address withheld]); year-level precision, the source gives no exact date.
  • Phishing and intrusion activity against Pakistani organizations occurs throughout 2026, including Ufone and ZONG-themed lures (exact dates not stated).
  • An encrypted payload recovered from a campaign in November 2026 is configured with C2 [domain withheld] (day not stated).
  • Date recorded in Group-IB YARA rule metadata for Patchwork loader, implant and LNK downloader detections.
  • Group-IB publishes 'Patchwork Exposed' detailing two exposed open directories, BADNEWS, Protego, infrastructure and attribution.

Sources cited

More from Patchwork

AI-drafted from 6 cited 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