KOCTOPUS
- Type
- Loader
- Capabilities
- Initial accessPrivilege escalationDefense evasionPersistence
- Delivery
- SpearphishingPhishingLure
- Platforms
- Windows
KOCTOPUS is a Windows malware family associated with socially engineered delivery and post-compromise execution through native scripting and system utilities. Reported behavior includes distribution through spearphishing emails carrying malicious attachments as well as malicious links, with lures themed to resemble legitimate software related to the travel and airline sectors. Execution has relied on user interaction, including opening or clicking malicious documents.
Once launched, KOCTOPUS uses VBScript and Windows Script Host to invoke PowerShell, including hidden-window execution to reduce user visibility. It has used PowerShell to download additional components, indicating staged delivery and follow-on payload retrieval. The malware also modifies and deletes Windows Registry data and has been observed attempting to disable or remove Microsoft Security Defender and Security Essentials-related registry keys and scheduled tasks, reflecting deliberate defense evasion.
KOCTOPUS can escalate privileges by bypassing User Account Control through techniques involving trusted Windows binaries such as fodhelper.exe and eventvwr.exe. It has also deployed a modified Invoke-Ngrok utility to expose local ports to the Internet, enabling remote access or tunneling from compromised hosts. Overall, KOCTOPUS exhibits a combination of phishing-based delivery, script-driven execution, privilege escalation, payload staging, registry tampering, and security-control impairment on Windows systems.
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.
Techniques & procedures
27 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
[KOCTOPUS](https://attack.mitre.org/software/S0669) has been distributed via spearphishing emails with malicious attachments.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has been distributed as a malicious link within an email.(Citation: MalwareBytes LazyScripter Feb 2021)
Execution
6 techniques
Execution
[KOCTOPUS](https://attack.mitre.org/software/S0669) has used PowerShell commands to download additional files.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has used `cmd.exe` and batch files for execution.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has used VBScript to call wscript to execute a PowerShell command.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) can use the `LoadResource` and `CreateProcessW` APIs for execution.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has relied on victims clicking on a malicious link delivered via email.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has relied on victims clicking a malicious document for execution.(Citation: MalwareBytes LazyScripter Feb 2021)
Persistence
2 techniques
Persistence
[KOCTOPUS](https://attack.mitre.org/software/S0669) has added and deleted keys from the Registry.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) can set the AutoRun Registry key with a PowerShell command.(Citation: MalwareBytes LazyScripter Feb 2021)
Privilege Escalation
2 techniques
Privilege Escalation
[KOCTOPUS](https://attack.mitre.org/software/S0669) can set the AutoRun Registry key with a PowerShell command.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) will perform UAC bypass either through fodhelper.exe or eventvwr.exe.(Citation: MalwareBytes LazyScripter Feb 2021)
Stealth
10 techniques
Stealth
"Action RAT's commands, strings, and domains can be Base64 encoded within the payload." / "ADVSTORESHELL... strings... encrypted with an XOR-based algorithm; some strings are also encrypted with 3DES and reversed." / "APT29 has used encoded PowerShell commands." / "APT41 used VMProtected binaries..."
[KOCTOPUS](https://attack.mitre.org/software/S0669) has obfuscated scripts with the BatchEncryption tool.(Citation: MalwareBytes LazyScripter Feb 2021)
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
Bad Rabbit has masqueraded as a Flash Player installer through the executable file install_flash_player.exe.
[KOCTOPUS](https://attack.mitre.org/software/S0669) has been disguised as legitimate software programs associated with the travel and airline industries.(Citation: Arghire LazyScripter)
Bisonal has deleted Registry keys to clean up its prior activity. FIN8 has deleted Registry keys during post compromise cleanup activities. SUNBURST also deleted previously-created Image File Execution Options (IFEO) Debugger registry values and registry keys related to HTTP proxy to clean up traces of its activity.
[KOCTOPUS](https://attack.mitre.org/software/S0669) can delete created registry keys used for persistence as part of its cleanup procedure.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) has deobfuscated itself before executing its commands.(Citation: MalwareBytes LazyScripter Feb 2021)
The content includes environment-aware checks such as "Bazar can also check if the Russian language is installed on the infected machine and terminate if it is found," "CaddyWiper can also halt execution if the compromised host is identified as a domain controller," and "OopsIE checks for information on the CPU fan, temperature, mouse, hard disk, and motherboard as part of its anti-VM checks."
[KOCTOPUS](https://attack.mitre.org/software/S0669) has used <code>-WindowsStyle Hidden</code> to hide the command window.(Citation: MalwareBytes LazyScripter Feb 2021)
Defense Impairment
2 techniques
Defense Impairment
[KOCTOPUS](https://attack.mitre.org/software/S0669) has added and deleted keys from the Registry.(Citation: MalwareBytes LazyScripter Feb 2021)
[KOCTOPUS](https://attack.mitre.org/software/S0669) will attempt to delete or disable all Registry keys and scheduled tasks related to Microsoft Security Defender and Security Essentials.(Citation: MalwareBytes LazyScripter Feb 2021)
Discovery
2 techniques
Discovery
[KOCTOPUS](https://attack.mitre.org/software/S0669) has checked the OS version using `wmic.exe` and the `find` command.(Citation: MalwareBytes LazyScripter Feb 2021)
The content includes environment-aware checks such as "Bazar can also check if the Russian language is installed on the infected machine and terminate if it is found," "CaddyWiper can also halt execution if the compromised host is identified as a domain controller," and "OopsIE checks for information on the CPU fan, temperature, mouse, hard disk, and motherboard as part of its anti-VM checks."
Lateral Movement
1 technique
Lateral Movement
"SDBbot has the ability to use port forwarding to establish a proxy between a target host and C2." / "KOCTOPUS has deployed a modified version of Invoke-Ngrok to expose open local ports to the Internet."
Command and Control
3 techniques
Command and Control
[KOCTOPUS](https://attack.mitre.org/software/S0669) has deployed a modified version of Invoke-Ngrok to expose open local ports to the Internet.(Citation: MalwareBytes LazyScripter Feb 2021)
"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."
[KOCTOPUS](https://attack.mitre.org/software/S0669) has executed a PowerShell command to download a file to the system.(Citation: MalwareBytes LazyScripter Feb 2021)
Recent activity
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.