Threat Actor Used Komari Monitoring Agent as a SYSTEM-Level Backdoor in VPN Intrusion

· Original article ↗

Summary

Huntress details an intrusion using stolen VPN credentials and Impacket to install Komari as a persistent SYSTEM-level backdoor. The partner network was isolated before the operator issued Komari commands; no data loss was reported.

Key points

  • The actor accessed a partner environment using stolen VPN credentials, then used Impacket smbexec.py to enable RDP on a Windows workstation.
  • The actor installed Komari from its official GitHub repository and registered it as a persistent SYSTEM-level service named “Windows Update Service.”
  • Komari’s agent accepts remote command execution, interactive terminal, and network-probing events by default over a persistent WebSocket.
  • Microsoft Defender quarantined a registry-dumping attempt, but the actor had already obtained SYSTEM access on the workstation.
  • Huntress says the tool’s WebSocket traffic can resemble ordinary HTTPS, complicating network-based detection.
  • Huntress isolated the workstation and partner network and disabled the compromised account before any Komari command or terminal session was observed; it reported no data loss.

Article Details

Attack Vectors
  • The actor used stolen VPN credentials to establish an SSLVPN session and enter the partner environment.
  • From the VPN tunnel, the actor used Impacket smbexec.py over SMB to execute commands, attempt registry-hive dumping, and enable RDP by changing a registry setting and firewall rule.
  • The actor used an interactive RDP session to download Komari's installer from the official GitHub repository and install the agent as a SYSTEM-level Windows service named "Windows Update Service".
  • The Komari agent maintained a persistent outbound WebSocket to the operator's server, providing a bidirectional command channel; Huntress reported that no post-install command execution or terminal sessions were observed.
Defensive Notes
  • Huntress isolated the affected workstation and disabled the compromised account at the partner's domain controller.
  • Huntress isolated every device on the partner network because the environment lacked MFA and additional credential compromise could not be ruled out.
  • Huntress recommends hunting for processes that maintain long-lived outbound WebSockets to unfamiliar hosts and periodically spawn shells or PowerShell processes not initiated by users.

Indicators of compromise

TypeIndicatorContext
IPV445[.]153[.]34[.]132Source IP for the actor's SSLVPN session using stolen credentials.
SHA256039e659ade3aa8ee7758c11fdb8fbfffd2491920046d638413cea2042f6d584cSHA-256 of the Komari agent binary installed as a SYSTEM-level backdoor in the intrusion.

MITRE ATT&CK

T1003.002 · Security Account ManagerThe actor attempted registry-hive dumping; Microsoft Defender quarantined a RegDump.SA-related artifact.T1021.001 · Remote Desktop ProtocolAfter enabling RDP, the actor connected interactively to the workstation over RDP.T1021.002 · SMB/Windows Admin SharesThe actor used Impacket smbexec.py over SMB to execute commands remotely on the workstation.T1059.001 · PowerShellA PowerShell command retrieved the Komari installer, and the agent's first-contact process spawned PowerShell to run its inventory script.T1059.003 · Windows Command ShellThe actor used cmd.exe during remote command execution and in the interactive RDP session.T1071.001 · Web ProtocolsThe installed Komari agent used a persistent WebSocket over TLS to communicate with its server.T1078 · Valid AccountsThe actor authenticated to the SSLVPN using stolen credentials for [User 1].T1105 · Ingress Tool TransferThe actor retrieved the Komari installer from the official GitHub repository onto the workstation.T1112 · Modify RegistryThe actor changed the Terminal Server registry setting to enable RDP.T1133 · External Remote ServicesThe actor established an SSLVPN session to access the partner environment.T1219 · Remote Access ToolsThe actor installed Komari, a legitimate remote-control and monitoring agent, as a persistent command channel.T1543.003 · Windows ServiceThe actor used NSSM to register komari-agent.exe as an automatically restarting Windows service running as SYSTEM.T1569.002 · Service ExecutionThe smbexec.py command chain executed commands through a service running under services.exe.

Products

Tools

Countries

Related Articles