MgBot
- Type
- Backdoor
- Capabilities
- Credential theftSession hijackingKeyloggingReconnaissanceScanningDLL sideloading
- Delivery
- Fake update
- Platforms
- Windows
MgBot, also known as POCOSTICK, is a modular Windows backdoor framework uniquely associated with the China-linked Daggerfly threat actor, also tracked as Evasive Panda and Bronze Highland, since at least 2012. It comprises a dropper, DLL loader, and extensible plugins, and has been used in cyberespionage operations including attacks against telecommunications organizations in Africa and organizations in Asia. MgBot plugins support network and service scanning, Active Directory and local-account enumeration, browser-data and browser-cookie theft, credential theft from browsers, email clients, and file-transfer applications, process-memory credential dumping, keylogging, clipboard collection, removable-media collection, and audio capture. MgBot has been delivered to Windows systems through compromised insecure software-update workflows involving ISP-level DNS poisoning, and has also been observed alongside DLL side-loading and PlugX loader activity in Daggerfly intrusions.
Associated vulnerabilities
2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The installer eventually downloads either MGBot malware for Windows or MACMA for macOS. MgBOT is a modular framework with various plugins enabling network scanning, information stealing from browser, keylogging and password dumping.
Techniques & procedures
36 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
StormBamboo targets software updates via HTTP that do not validate digital signatures of installers.
StormBamboo controlled DNS responses and redirected HTTP software-update requests to an attacker-controlled server hosting a forged text file and malicious installer.
Execution
1 technique
Execution
The advisory maps StormBamboo's compromise of insecure automatic update mechanisms to T1203.
Persistence
2 techniques
Persistence
Process Watchdog – ansecprocesskeep.dll Registered as service AnsecProcessKeep. Confirmed to be a watchdog that keeps a process running.
The attacker-controlled server hosted a malicious installer, and the installer eventually downloaded either MGBot malware for Windows or MACMA for macOS.
Privilege Escalation
3 techniques
Privilege Escalation
“developed an injector that allows them to execute their MgBot implant in memory by injecting it into legitimate processes.”
Process Watchdog – ansecprocesskeep.dll Registered as service AnsecProcessKeep. Confirmed to be a watchdog that keeps a process running.
The attacker-controlled server hosted a malicious installer, and the installer eventually downloaded either MGBot malware for Windows or MACMA for macOS.
Stealth
3 techniques
Stealth
The implant functions as a backdoor, embedding itself in key system binaries and services, including crond, sshd and netstat.
“storing encrypted parts of the malware on attacker-controlled servers… employed hybrid encryption… implants unique to each victim… retrieving encrypted data… disguised as a PNG file…”
“developed an injector that allows them to execute their MgBot implant in memory by injecting it into legitimate processes.”
Credential Access
8 techniques
Credential Access
[MgBot](https://attack.mitre.org/software/S1146) includes modules for dumping and capturing credentials from process memory.(Citation: Symantec Daggerfly 2023)
MgBot includes modules for dumping and capturing credentials from process memory. Mustang Panda utilized "Hdump" to dump credentials from memory.
[MgBot](https://attack.mitre.org/software/S1146) includes keylogger payloads focused on the QQ chat application.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules that can steal cookies from Firefox, Chrome, and Edge web browsers.(Citation: ESET EvasivePanda 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for stealing stored credentials from Outlook and Foxmail email client software.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for stealing credentials from various browsers and applications, including Chrome, Opera, Firefox, Foxmail, QQBrowser, FileZilla, and WinSCP.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
Evilnum can collect email credentials from victims... Malteiro has obtained credentials from mail clients via NirSoft MailPassView... MgBot includes modules for stealing stored credentials from Outlook and Foxmail email client software... PLEAD has the ability to steal saved passwords from Microsoft Outlook.
“The group mainly performed adversary-in-the-middle (AitM) attacks… storing encrypted parts of the malware on attacker-controlled servers, which were resolved as a response to specific website DNS requests.” and “TokenFlare… serverless AiTM phishing…”
Discovery
10 techniques
Discovery
[MgBot](https://attack.mitre.org/software/S1146) includes modules for performing ARP scans of local connected systems.(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for identifying local users and administrators on victim machines.(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for performing HTTP and server service scans.(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes a module for establishing a process watchdog for itself, identifying if the [MgBot](https://attack.mitre.org/software/S1146) process is still running.(Citation: Symantec Daggerfly 2023)
The content notes checks for whether the current user is an administrator or privileged, including 'AsyncRAT can check if the current user of a compromised system is an administrator,' 'Gelsemium has the ability to distinguish between a standard user and an administrator,' and 'Wizard Spider has used whoami to identify the local user and their privileges.'
BADNEWS crawls the victim's local drives and collects documents with selected extensions; Machete searches the file system for files of interest; Rover searches for files on local drives based on a predefined list of file extensions.
Examples include 'Caterpillar WebShell can obtain a list of user accounts from a victim's machine,' 'DRATzarus can obtain a list of users from an infected machine,' 'Woody RAT can retrieve a list of user accounts and usernames from an infected machine,' and 'TrickBot can identify the user and groups the user belongs to on a compromised host.'
[MgBot](https://attack.mitre.org/software/S1146) includes modules for identifying local administrator accounts on victim systems.(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for collecting information on Active Directory domain accounts.(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules for collecting information on local domain users and permissions.(Citation: Symantec Daggerfly 2023)
Collection
9 techniques
Collection
[MgBot](https://attack.mitre.org/software/S1146) includes modules for collecting files from local systems based on a given set of properties and filenames.(Citation: ESET EvasivePanda 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes modules capable of gathering information from USB thumb drives and CD-ROMs on the victim machine given a list of provided criteria.(Citation: ESET EvasivePanda 2023)
[MgBot](https://attack.mitre.org/software/S1146) includes keylogger payloads focused on the QQ chat application.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
Screen and clipboard grabber – cbmrpa.dll
[MgBot](https://attack.mitre.org/software/S1146) can capture clipboard data.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
[MgBot](https://attack.mitre.org/software/S1146) can capture input and output audio streams from infected devices.(Citation: ESET EvasivePanda 2023)(Citation: Symantec Daggerfly 2023)
Data from Information Repositories: Databases
[MgBot](https://attack.mitre.org/software/S1146) includes a module capable of stealing content from the Tencent QQ database storing user QQ message history on infected devices.(Citation: ESET EvasivePanda 2023)
“The group mainly performed adversary-in-the-middle (AitM) attacks… storing encrypted parts of the malware on attacker-controlled servers, which were resolved as a response to specific website DNS requests.” and “TokenFlare… serverless AiTM phishing…”
Command and Control
3 techniques
Command and Control
The attacker redirects the HTTP request to a Command and Control (C2) server they control hosting a forged text file and a malicious installer.
...has used BITSAdmin to retrieve files from remote locations to run on victim systems... Ingress Tool Transfer
StormBamboo controlled DNS responses and redirected HTTP software-update requests to an attacker-controlled server hosting a forged text file and malicious installer.
Impact
1 technique
Impact
"Evasive Panda ran DNS Poisoning campaign to deliver MgBot"; "EdgeStepper... reroutes DNS queries... hijacked software updates"
Observables
25 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
45 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.