Lokibot
- Type
- Infostealer
- Capabilities
- Credential theftKeyloggingExfiltrationDefense evasionReconnaissanceProcess injection
- Delivery
- PhishingMalspamSpearphishingLure
- Platforms
- Windows
LokiBot is a commodity information-stealing malware family targeting Windows systems, first reported in 2015. Its primary purpose is to harvest sensitive information from installed applications, including saved browser passwords, Windows credentials, messaging applications, email clients, FTP and SFTP clients, and cryptocurrency wallets. It also supports keylogging and collection of browsing information. LokiBot gathers host details such as the username, computer name, domain, and operating-system version, and communicates with command-and-control infrastructure over HTTP to transmit stolen data. Some deployments also provide backdoor functionality for additional payload installation.
LokiBot is commonly distributed through phishing and malspam, including invoice-themed and public-health-themed messages. Delivery formats have included ISO disk images containing malicious executables, PDF files, and malicious Office documents. Document-based infection chains have exploited CVE-2017-11882 to download and execute the malware. Other campaigns have disguised it as a game launcher, and GuLoader is a known delivery mechanism.
Observed defense-evasion techniques include software packing, encoded strings, debugger detection, virtual-machine timing checks, hidden artifacts, and process hollowing. Some delivery chains compile obfuscated C# source code on the victim system before decrypting and loading subsequent stages, reducing reliance on readily inspectable precompiled payloads.
LokiBot is used by multiple independent operators rather than being exclusive to one threat actor. It has appeared in activity associated with SilverTerrier, Sweed, and TA558. Campaigns have included broad, untargeted distribution as well as attacks against manufacturing companies, industrial organizations, healthcare entities, and government agencies.
Associated vulnerabilities
5 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
6 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“Attached to the email was a sample of Lokibot malware disguised as an Indonesian health department document.”
LokiBot is a stealer that collects data from various applications used by the victim, such as browsers, email and FTP clients.
常用的攻击工具包括疑似自主开发的office文档公式编辑器漏洞利用工具、恶意office宏制作工具、AgentTesla木马、Formbook木马、Lokibot木马。
An email campaign attempting to distribute the Lokibot password-stealing malware used a message attempting to spoof company emails on COVID-19 response policy as a lure.
The group relied exclusively on a variety of publicly available spyware and Remote Access Trojans (RATs), including AgentTesla, Lokibot, AzoRult, Pony, and NetWire.
Techniques & procedures
77 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
или анализ Passive DNS (T1596.001, Reconnaissance)... Passive DNS - агрегированная история DNS-резолвов
За это время аналитик может обнаружить сервер через сканирование баз данных Scan Databases (T1596.005, Reconnaissance)
Initial Access
4 techniques
Initial Access
This report details a specific phishing campaign used to distribute the Agent Tesla RAT. The lure in the emails is centered around updates to COVID-specific PPE.
[Lokibot](https://attack.mitre.org/software/S0447) is delivered via a malicious XLS attachment contained within a spearhpishing email.(Citation: Talos Lokibot Jan 2021)
or downloaded by a weaponized document attached to an email from RATicate’s C&C infrastructure
It has a specific command to spam all contacts with SMS messages as a means to spread the infection.
Execution
12 techniques
Execution
[Lokibot](https://attack.mitre.org/software/S0447)'s second stage DLL has set a timer using “timeSetEvent” to schedule its next execution.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) embedded the commands <code>schtasks /Run /TN \Microsoft\Windows\DiskCleanup\SilentCleanup /I</code> inside a batch script.(Citation: Talos Lokibot Jan 2021)
C2コマンドの機能として、コマンド実行やダウンロード&実行の動作が可能なことから、情報窃取以外の目的で使われる可能性も考えられます。
[Lokibot](https://attack.mitre.org/software/S0447) has used PowerShell commands embedded inside batch scripts.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) has used <code>cmd /c</code> commands embedded within batch scripts.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) has used VBS scripts and XLS macros for execution.(Citation: Talos Lokibot Jan 2021)
Today the email had an attached zip archive containing was a Word document with an embedded .js file that downloaded Lokibot.
[Lokibot](https://attack.mitre.org/software/S0447) has used LoadLibrary(), GetProcAddress() and CreateRemoteThread() API functions to execute its shellcode.(Citation: Talos Lokibot Jan 2021)
The RTF file exploits CVE-2017-11882 to execute shellcode, which downloads and executes the Formbook RAT.
has attempted to get victims to launch malicious Microsoft Word attachments delivered via spearphishing emails... has required user execution of a malicious MSI installer... has been executed through user installation of an executable disguised as a flash installer.
URLリンクを開いた場合は添付ファイルの場合と同様の不正なファイルがダウンロードされます。
[Lokibot](https://attack.mitre.org/software/S0447) has tricked recipients into enabling malicious macros by getting victims to click "enable content" in email attachments.(Citation: TrendMicro Msiexec Feb 2018)(Citation: Talos Lokibot Jan 2021)
Persistence
5 techniques
Persistence
[Lokibot](https://attack.mitre.org/software/S0447)'s second stage DLL has set a timer using “timeSetEvent” to schedule its next execution.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) embedded the commands <code>schtasks /Run /TN \Microsoft\Windows\DiskCleanup\SilentCleanup /I</code> inside a batch script.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) has modified the Registry as part of its UAC bypass process.(Citation: Talos Lokibot Jan 2021)
LokiBot can also create a backdoor into infected systems to allow an attacker to install additional payloads (Event Triggered Execution: Accessibility Features [T1546.008]).
The VBS file is added into the system Start Menu so it can automatically run whenever the system starts.
Privilege Escalation
8 techniques
Privilege Escalation
[Lokibot](https://attack.mitre.org/software/S0447)'s second stage DLL has set a timer using “timeSetEvent” to schedule its next execution.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) embedded the commands <code>schtasks /Run /TN \Microsoft\Windows\DiskCleanup\SilentCleanup /I</code> inside a batch script.(Citation: Talos Lokibot Jan 2021)
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
the .onInit function was simply supposed to call another function called Ycksxjzoiwxisk from the DLL located in the $PLUGINSDIR directory. After this function was called, a malicious payload - which turned out to be a version of the Lokibot infostealer - would be decoded and loaded into memory.
[Lokibot](https://attack.mitre.org/software/S0447) has used process hollowing to inject itself into legitimate Windows process.(Citation: Infoblox Lokibot January 2019)(Citation: Talos Lokibot Jan 2021)
LokiBot can also create a backdoor into infected systems to allow an attacker to install additional payloads (Event Triggered Execution: Accessibility Features [T1546.008]).
The VBS file is added into the system Start Menu so it can automatically run whenever the system starts.
[Lokibot](https://attack.mitre.org/software/S0447) has utilized multiple techniques to bypass UAC.(Citation: Talos Lokibot Jan 2021)
Stealth
21 techniques
Stealth
[Lokibot](https://attack.mitre.org/software/S0447) has obfuscated strings with base64 encoding.(Citation: Infoblox Lokibot January 2019)
[Lokibot](https://attack.mitre.org/software/S0447) has used several packing methods for obfuscation.(Citation: Infoblox Lokibot January 2019)
We discuss two prevalent such packers used to distribute a wide variety of malware but hiding the intended payload in images.
To stay hidden, LokiBot avoids importing most Windows API functions directly and instead resolves them at runtime using a custom hashing technique.
Defense Evasion. ...Работают сразу две техники: Steganography (T1027.003) для обфускации пейлоада и Embedded Payloads (T1027.009) для сокрытия кода внутри медиафайла.
As we see, it has 8 streams and 1 /EmbeddedFiles... When we get to object 22, we our /EmbeddedFiles which is an indicator to that the PDF launches embedded file... In our case, this PDF stores an XLS file.
attached installers that usually posed as documents related to financial transactions
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
the .onInit function was simply supposed to call another function called Ycksxjzoiwxisk from the DLL located in the $PLUGINSDIR directory. After this function was called, a malicious payload - which turned out to be a version of the Lokibot infostealer - would be decoded and loaded into memory.
[Lokibot](https://attack.mitre.org/software/S0447) has used process hollowing to inject itself into legitimate Windows process.(Citation: Infoblox Lokibot January 2019)(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) will delete its dropped files after bypassing UAC.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) has decoded and decrypted its stages multiple times using hard-coded keys to deliver the final payload, and has decoded its server response hex string using XOR.(Citation: Talos Lokibot Jan 2021)
It spawns a legitimate aspnet_compiler.exe process... This process injection technique allows the malware to run inside a trusted Windows process, making it harder to flag.
When the PowerPoint file is closed, it accesses a URL via the Windows binary mshta.exe, and this leads to different malware being installed into the system.
We see regsvr32 attempting to execute 42981.ocx ... 42981.ocx is now executed by regsrv32.exe, a common tactic used by malicious Word document authors.
The script then uses rundll32 to load a DLL file with the function “maintst.”
Verifying the existence of virtual machine paths, such as “\VMWare” and “\Oracle\virtualbox guest additions”
[Lokibot](https://attack.mitre.org/software/S0447) has performed a time-based anti-debug check before downloading its third stage.(Citation: Talos Lokibot Jan 2021)
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to copy itself to a hidden file and directory.(Citation: Infoblox Lokibot January 2019)
[Lokibot](https://attack.mitre.org/software/S0447) has reflectively loaded the decoded DLL into memory.(Citation: Talos Lokibot Jan 2021)
The injector incorporates various evasion techniques, including: Checking the “BeingDebugged” flag of PEB
Defense Impairment
2 techniques
Defense Impairment
[Lokibot](https://attack.mitre.org/software/S0447) has modified the Registry as part of its UAC bypass process.(Citation: Talos Lokibot Jan 2021)
The PowerShell executes 2 DotNet compiled DLLs – the first DLL bypasses the Anti-Malware Scan Interface (AMSI)
Credential Access
8 techniques
Credential Access
Related Detections ... Dump LSASS via procdump ... Creation of lsass Dump with Taskmgr ... Access LSASS Memory for Dump Creation ... Detect Credential Dumping through LSASS access ... Dump LSASS via comsvcs DLL ... Windows Credential Dumping LSASS Memory Createdump ... Windows Possible Credential Dumping
The covered campaigns have primarily been engineered for credential harvesting. Some utilize commodity malware, where others simply redirect to weaponized phishing sites.
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to capture input on the compromised host via keylogging.(Citation: FSecure Lokibot November 2019)
Information stealers seem to be the preferred type of malware to help in their fraudulent email attacks... The attacker can pilfer data about the targets and use it to create efficient messages for diverting transactions or asking money to be sent to fraudsters' account.
[Lokibot](https://attack.mitre.org/software/S0447) has stolen credentials from multiple applications and data sources including Windows OS credentials, email clients, FTP, and SFTP clients.(Citation: Infoblox Lokibot January 2019)
[Lokibot](https://attack.mitre.org/software/S0447) has demonstrated the ability to steal credentials from multiple applications and data sources including Safari and the Chromium and Mozilla Firefox-based web browsers.(Citation: Infoblox Lokibot January 2019)
Password manager software: mSecure, KeePass, EnPass, RoboForm, 1Password.
It can also steal the victim’s contacts and read and send SMS messages.
Discovery
9 techniques
Discovery
The malware is able to read them from here by calling the API “SHQueryValueExW”.
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to discover the domain name of the infected host.(Citation: FSecure Lokibot November 2019)
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to discover the username on the infected host.(Citation: FSecure Lokibot November 2019)
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to discover the computer name and Windows product name/version.(Citation: FSecure Lokibot November 2019)
[Lokibot](https://attack.mitre.org/software/S0447) can search for specific files on an infected host.(Citation: Talos Lokibot Jan 2021)
Verifying the existence of virtual machine paths, such as “\VMWare” and “\Oracle\virtualbox guest additions”
[Lokibot](https://attack.mitre.org/software/S0447) has performed a time-based anti-debug check before downloading its third stage.(Citation: Talos Lokibot Jan 2021)
Looking at a LokiBot sample this year, researchers noticed the following capabilities: anti-analysis... checking for email and web servers running on the machine
The injector incorporates various evasion techniques, including: Checking the “BeingDebugged” flag of PEB
Collection
7 techniques
Collection
Lokibot looks for specific files and attempts to exfiltrate them.
The covered campaigns have primarily been engineered for credential harvesting. Some utilize commodity malware, where others simply redirect to weaponized phishing sites.
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to capture input on the compromised host via keylogging.(Citation: FSecure Lokibot November 2019)
FormBookは、...クリップボード情報やキーストロークの窃取、画面キャプチャ、コマンド&コントロールの機能を備えています。
From the compromised email account, BEC actors can also find email conversations related to finance- or purchase-themed threads such as purchase orders or invoices.
The data exfiltrated from the compromised endpoints is sent to the C&C panel in a compressed format over HTTP.
Lokibot is capable of compressing the stolen data before sending it to the C&C. This report discusses a sample by using aPLib, a freeware compression library, to compress the stolen data prior to its exfiltration.
Command and Control
8 techniques
Command and Control
The most significant technical change is where the malware stores its core configuration. Rather than embedding C2 URLs as readable strings, the authors have moved that data into the .NET resource section, scrambled with XOR encoding.
"Some of the packets contain data being exfiltrated that is compressed with aPLib. The script will decompress that data"
The payloads of the campaigns using both types of installers delivered the same families of remote administration tool (RAT) and information stealing malware, and they shared the same command and control (C&C) infrastructure.
[Lokibot](https://attack.mitre.org/software/S0447) has used HTTP for C2 communications.(Citation: Infoblox Lokibot January 2019)(Citation: Talos Lokibot Jan 2021)
情報窃取型マルウェアをダウンロードする通信先は、GoogleドライブやOneDrive、Discordが使われるケースを確認しています。このように正規サービスを悪用することは、検知や遮断を回避する狙いがあるものとみられます。
[Lokibot](https://attack.mitre.org/software/S0447) downloaded several staged items onto the victim's machine.(Citation: Talos Lokibot Jan 2021)
The story we are writing here will try to explain how, from a simple mistake made by an operator, we managed to collect and exploit a lot of precious information from a “Fast Flux” network called BraZZZerS Fast Flux between end of 2018 and 2022.
After harvesting credentials, LokiBot compresses the stolen data using aPLib and sends it to a command-and-control server whose address is stored in the binary using 3DES encryption.
Exfiltration
3 techniques
Exfiltration
[Lokibot](https://attack.mitre.org/software/S0447) has the ability to initiate contact with command and control (C2) to exfiltrate stolen data.(Citation: FSecure Lokibot November 2019)
The stolen credentials were then sent to predefined email addresses controlled by the attackers, enabling unauthorized access to victims’ accounts and systems.
"Traffic Purpose" : " Exfiltrate Application/Credential Data " ... "Destination Port" : 80 ... "HTTP Method" : " POST " ... "HTTP URI" : " /danielsden/ver.php "
Impact
3 techniques
Impact
This ransomware triggers when you try to remove LokiBot from the infected device by revoking its administrative rights. It won’t go down without a fight and will encrypt all your files in the external storage as a last resort to steal money from you, as you need to pay Bitcoins to decrypt your files.
To top it off there is an option to lock the phone preventing the user from accessing it.
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
2,957 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
194 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.