Inside a Staged Post-Exploitation Toolkit Targeting Pakistan's Cricket Board: Exchange Webshells, DCSync, and Active Directory Persistence
A forensic investigation into an exposed 37-file attack toolkit, its Exchange OWA command-relay architecture, credential-theft capabilities, Chisel tunneling, and multi-layer persistence mechanisms.
- Published
- Reading time
- 11 min
- Analyst
- @volrant136
- Region
- Pakistan / Asia
- C2
- webshell

Contents
An operator staged a 37-file, 42.2 MB post-exploitation toolkit on a Latvia-based VPS (AS56971), revealing a collection of tools and scripts designed to support operations against the Pakistan Cricket Board network. The toolkit features a persistent Exchange OWA webshell at mail.pcb.com.pk, configured to serve as a command relay, alongside PowerShell reverse shells, DSInternals-based DCSync scripts for credential extraction, Chisel-based RDP tunneling, and Group Policy startup scripts targeting specifically named Azure AD Connect servers.
The IP address 109.248.163[.]36 (opens in a new tab), associated with CloudBackbone (AS56971) and hosted in Riga, Latvia, underpinned the entire operation.

An AttackCapture record dated October 28, 2026, identified an exposed file manager hosted at 109.248.163[.]36:8888 (opens in a new tab). The open directory on port 8888 was served by a Python SimpleHTTP/0.6 server under Python 3.12.3. It exposed 37 files totaling 42.2 MB across four subdirectories.

The analysis shows multiple ports have been used in the scripts, as shown below:
| Port | Protocol | Role | Evidence |
|---|---|---|---|
| 8080 | HTTP | Chisel reverse tunnel server (SOCKS proxy + RDP forward relay) | chtun.ps1: connects to http://109.248.163[.]36:8080 with --auth svc:[REDACTED] |
| 8081 | HTTP | Exfiltration beacon collector (/x endpoint) | All webshell scripts POST results to :8081/x?p=, ?d=, ?e= |
| 8443 | TLS | Primary TLS reverse shell listener | s.ps1 / r.ps1 primary connect target; skip-cert-validation |
| 443 | TLS | Fallback TLS reverse shell listener | s.ps1 / r.ps1 secondary target when port 8443 unreachable |
| 9443 | TCP | Plain-TCP agent listener | ps_agent.b64 connects raw TCP; sends CONNECT <host> <user> pid=<PID> |
The OWA Webshell: Command Relay Architecture
The most significant structural finding in this toolkit is the use of a Microsoft Exchange Outlook Web Access (OWA) endpoint as a command relay.
The toolkit uses a Microsoft Exchange OWA endpoint (/owa/auth/owafonts.aspx) as a command relay, with multiple scripts posting encoded payloads for server-side PowerShell execution. The commands are routed through the victim's mail infrastructure over HTTPS (port 443), using the Exchange server's legitimate TLS certificate and mail.pcb.com.pk SNI, masking C2 traffic as legitimate Exchange communications.

The analysis also confirms a second Exchange IP that uses Base64 to encode a user-creation command, wraps it in an Invoke-Expression payload, and posts it to /owa/auth/owafonts.aspx while bypassing TLS certificate validation. In this script, the server responses are saved to C:\ProgramData\svc\mk.out instead of being exfiltrated.

Reconstructing the Post-Exploitation Workflow
The toolkit maps a coherent kill chain progressing from an existing webshell foothold through credential harvesting, lateral movement, persistence deployment, and cleanup.
The stages are described below, each traced to specific files in the directory.

Stage 1: Obfuscated Reverse Shells
The s.ps1 and r.ps1 implants use distinct mutexes (Global\503874f41b and Global\97b383117c) to avoid process collisions. Both apply XOR-based Base64 obfuscation using (k + i*7) % 251 (keys 120 and 52), then launch via powershell -EncodedCommand. They establish persistent TLS reverse connections to ports 8443 and 443, with exponential backoff capped at 60 seconds. On connection, each sends CONNECT <HOSTNAME> <USERNAME> pid=<PID> before entering an interactive loop for arbitrary PowerShell command execution.

Stage 2: AD Environment Fingerprinting
The operator has capability to use envcheck.ps1 through the OWA webshell to collect prerequisites for a Golden Ticket or DCSync operation. The decoded payload queries four specific values and exfiltrates them to 109.248.163[.]36:8081/x?e=:
- Domain functional level (
Get-ADDomain): determines which Kerberos encryption types are supported. - krbtgt encryption types (
msDS-SupportedEncryptionTypes): required to forge a valid Golden Ticket. - Protected Users group membership count: assesses whether target accounts are shielded from credential attacks.
- DC clock skew relative to the operator's machine: Kerberos authentication rejects tickets outside a 5-minute window, so this confirms attack feasibility.

Stage 3: DCSync via DSInternals
Two variants of the DCSync operation were staged, targeting the same account through different delivery mechanisms. Both scripts install the DSInternals (opens in a new tab) PowerShell module on demand using NuGet, then invoke Get-ADReplAccount to replicate a named account's NT hash directly from the domain controller, without touching LSASS.
dcsync_adc.ps1 delivers the payload via Invoke-Command over WinRM directly to the domain controller. dcsync_shell.ps1 delivers the same payload through the OWA webshell, providing a fallback path if direct WinRM access is unavailable. Both exfiltrate the extracted NT hash to 109.248.163[.]36:8081/x?d=.

Stage 4: Chisel Tunnel for Lateral Movement
chtun.ps1 launches chiselw.exe from C:\ProgramData\svc\ with hardcoded authentication credentials and two reverse port forward rules, establishing a persistent tunnel back to the operator's server at port 8080:
R:1081:socks:a SOCKS5 proxy on the operator's server atport 1081, routable through the compromised host into the internal network.R:23389:[TARGET-IP]:3389:a direct RDP tunnel from the operator'slocal port 23389to an internal host's RDP service.
The script first checks for a running chiselw process to avoid duplicate tunnels, then launches the client as a hidden window process from ProgramData. The cw.zip file in the directory contains the Linux build of Chisel, intended for deployment from the operator's own Linux-based C2 infrastructure as the server endpoint.

Stage 5: GPO-Based Persistence
The most operationally significant persistence mechanism in the directory is a staged Group Policy Object deployment. The three files gpt.ini, scripts.ini, and k.cmd are structured precisely as a Windows GPO startup script bundle intended for placement in a [redacted] share, from which Active Directory distributes them to domain-joined machines.
gpt.ini declares a machine extension GUID ({42B5FAAE-6536-11D2-AE5A-0000F87571E3}), which corresponds to the Windows Startup/Shutdown Scripts extension. scripts.ini registers k.cmd as the startup command. k.cmd implements a targeted execution filter: it checks the host's COMPUTERNAME against a hardcoded list of four machine names before taking action.

Stage 6: .NET Implant with Triple Persistence
The decompilation of svc.exe reveals a .NET C2 agent structured around four methods: Main, Beat, Exec, and Heal. On launch, Main acquires a machine-scoped mutex (Global\svc<MachineName hash>) to prevent duplicate instances, then immediately spawns a background thread running Heal before entering its C2 connection loop.

svc.exe code revealing the hardcoded C2 address (109.248.163[.]36), mutex-based single-instance execution, and background thread initialization.The Heal method runs in an infinite loop on a 60-second interval and establishes three independent persistence mechanisms, any one of which survives removal of the others:
-
Scheduled task (on-start):
schtasks /create /tn SvcHost /sc onstart /ru SYSTEM: executes the implant at every system boot under SYSTEM privileges. -
Scheduled task (interval):
schtasks /create /tn SvcKeep /sc minute /mo 5 /ru SYSTEM: re-launches the implant every five minutes if it is not running. -
Registry run key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v KlUpd: registers the implant under a name (KlUpd) suggestive ofKaspersky Labupdate tooling, a masquerade likely chosen to blend into environments running AV software.

Heal() method re-registers all three persistence mechanisms every 60 seconds.The Exec method executes operator commands by spawning powershell.exe -nop -w hidden -ep bypass -c, capturing both stdout and stderr with a 120-second timeout.

Exec(string cmd) method, which launches hidden PowerShell processes, captures standard output and error streams, and returns the execution results.The Beat method sends a newline keepalive to the C2 stream every 25 seconds. On write failure it calls Environment.Exit(0) to terminate cleanly. The C2 endpoint is hardcoded in a dedicated H() method returning 109.248.163[.]36, connecting to port 8443 over TLS 1.2 with certificate validation suppressed via an inline lambda callback.
Stage 7: Operational Cleanup
The two purge scripts reverse the account creation performed by mk.ps1 and post.ps1, both delivered through the OWA webshell.
purge_cim2.ps1 removes the user CIM profile (Win32_UserProfile) and reports which profiles remain whereas purge_shell.ps1 unloads two specific registry hive SIDs, then recursively deletes C:\Users\[redacted] and C:\Users\[redacted].PREXCH16 before listing remaining user directories.
Mitigation and Defensive Recommendations
-
Audit the Exchange server's OWA file paths for unexpected ASPX files, particularly in
/owa/auth/. -
Monitor for file writes to Exchange virtual directories and alert on any ASPX files created outside a known-good baseline.
-
Block outbound connections to
109.248.163[.]36on all ports. -
Implement egress filtering to detect anomalous HTTPS connections from Exchange server processes (
w3wp.exe) to external IP addresses on non-standard ports (8443, 9443). -
Alert on HTTP POST requests from internal servers to external IPs, particularly to path patterns such as
/x?p=,/x?d=, and/x?e=. -
Alert on
schtasks /createwith/ru SYSTEMarguments issued by non-administrative processes. -
Monitor
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runfor new entries, especially those pointing to executables outside%SystemRoot%and%ProgramFiles%. -
Hunt for the mutex values
Global\503874f41bandGlobal\97b383117c.
Conclusion
The staging server at 109.248.163[.]36 represents a mature, purpose-built post-exploitation environment for a targeted intrusion against the PCB.COM.PK Active Directory domain.
The svc.exe implant's triple-persistence Heal loop, the Kaspersky masquerade in the KlUpd registry key, the choice of DSInternals over LSASS dumping for credential access, and the systematic cleanup scripts all indicate a threat actor with hands-on Windows Active Directory experience and an awareness of common detection vectors.
Organizations should prioritize Exchange integrity monitoring, outbound traffic inspection, unauthorized directory replication detection, GPO auditing, and continuous monitoring of privileged identity infrastructure.
Indicators of Compromise
| Type | Value | Context |
|---|---|---|
| IP | 109.248.163[.]36 | Operator C2 and staging server (AS56971, Riga, Latvia) |
| URL | http://109.248.163[.]36:8080 | Chisel server endpoint (chtun.ps1) |
| URL | http://109.248.163[.]36:8081/x | HTTP exfiltration beacon; params ?p=, ?d=, ?e= |
| URL | http://109.248.163[.]36:8888/ | Open directory tool staging server (Python SimpleHTTP/0.6) |
| Port | 8443, 9443 | TLS and TCP reverse shell listener ports on operator server |
| Path | /owa/auth/owafonts.aspx | Exchange OWA webshell path |
| Path | C:\ProgramData\Microsoft\DeviceSync\ | Implant drop directory masquerading as Microsoft synchronization component |
| Path | C:\ProgramData\svc\ | Secondary staging directory for chiselw.exe and svc.exe |
| Path | C:\ProgramData\svc\mk.out | Output file written by mk.ps1 containing webshell response |
| Mutex | Global\503874f41b | Singleton mutex for s.ps1 reverse shell instance |
| Mutex | Global\97b383117c | Singleton mutex for r.ps1 reverse shell instance |
| Mutex | Global\px[ComputerName hash] | ps_agent.b64 mutex pattern (computer-name-derived) |
| SHA-256 | 8c4594d103c7b9f665d29e00713a3a2076e9445ea083c03515187467badebed8 | svc.exe .NET agent |
| GPO GUID | {42B5FAAE-6536-11D2-AE5A-0000F87571E3} | Machine Startup Scripts GPO extension declared in gpt.ini |
MITRE ATT&CK Mapping
| Tactic | ID | Technique | Evidence |
|---|---|---|---|
| Initial Access | T1190 | Exploit Public-Facing Application | OWA webshell at /owa/auth/owafonts.aspx (pre-existing) |
| Execution | T1059.001 | PowerShell | All .ps1 scripts; chk.ps1, chtun.ps1, dcsync_.ps1, purge_.ps1 |
| Execution | T1059.003 | Windows Command Shell | k.cmd GPO startup script; r.bat share recon launcher |
| Execution | T1059.005 | Visual Basic / .NET Assembly | svc.exe .NET agent with Exec method |
| Persistence | T1053.005 | Scheduled Task / GPO Startup Script | gpt.ini + scripts.ini + k.cmd deployed as SYSVOL GPO startup bundle |
| Persistence | T1547.001 | Registry Run Keys / Startup Folder | svc.exe Heal() sets HKLM...\Run\KlUpd on a 60-second loop |
| Persistence | T1053.005 | Scheduled Task | svc.exe Heal() creates SvcHost (onstart) and SvcKeep (every 5 min) tasks |
| Defense Evasion | T1027 | Obfuscated Files or Information | XOR+Base64 obfuscation in s.ps1, r.ps1, all webshell delivery scripts |
| Defense Evasion | T1036.005 | Match Legitimate Name or Location | KlUpd registry key masquerades as Kaspersky updater; DeviceSync directory path |
| Credential Access | T1003.006 | DCSync | dcsync_adc.ps1 and dcsync_shell.ps1 use DSInternals Get-ADReplAccount |
| Lateral Movement | T1021.006 | Windows Remote Management | dcsync_adc.ps1 delivers DCSync payload via Invoke-Command/WinRM |
| Command and Control | T1090.001 | Internal Proxy | Chisel SOCKS proxy on port 1081 provides internal network routing |
| Command and Control | T1071.001 | Web Protocols | HTTP exfiltration beacon to :8081/x; webshell relay over HTTPS |
Published by @volrant136
Related research
- Threat Research

Exposed Opendir Reveals APT DONOT Cyber Espionage Toolkit Targeting Pakistan's Nuclear and Energy Sectors
An exposed APT Donot Open Directory revealed 48 files containing a collection of reverse shells, custom C2 implants, reconnaissance scripts, and credential-harvesting configurations. Analysis uncovered references to Pakistan's nuclear infrastructure, energy sector, SCADA environments, and OGDCL impersonation, raising questions about a potentially targeted cyber espionage operation.
13 minutes to read - Threat Research

Inside an Attacker's Toolkit Targeting Vietnam's Government Networks
An exposed directory containing hundreds of files reveals a toolkit configured to target Vietnam's government systems. Recovered scripts and logs document activity involving Keycloak, Check Point management infrastructure, a separate insurance platform, and additional government services.
22 minutes to read - Threat Research

From JBRJ to JUCEC: Exposed Infrastructure Reveals a Broad Brazilian Government Intrusion Campaign
Hunt.io Attack Capture identified three exposed directories on a Malaysian VPS containing tooling and evidence linked to multiple Brazilian public-sector targets. The recovered material reveals a confirmed compromise of Brazil's Jardim Botânico do Rio de Janeiro, an extensive intrusion toolkit targeting Ceará's state Board of Trade, credential and session harvesting, persistence mechanisms, and a staged Linux kernel privilege-escalation exploit.
34 minutes to read