FreakOut
- Type
- Botnet
- Capabilities
- Initial accessPersistenceLateral movementDefense evasionReconnaissanceScanningBrute forceDDOSExfiltrationSpoofing
- Platforms
- LinuxWindowsNetwork device
FreakOut, also known as Necro and N3Cr0m0rPh, is a Python-based, IRC-controlled botnet associated with the threat actor Freak and the Keksec group. The family targets Windows and Linux systems, including vulnerable servers and network devices. Its principal uses include distributed denial-of-service attacks, remote access, network-traffic interception, and cryptocurrency mining through deployment of XMRig.
FreakOut propagates by scanning for vulnerable systems, exploiting exposed applications and services, and attempting Telnet or SSH authentication with hardcoded credentials. Its January 2021 campaign exploited CVE-2020-28188 in TerraMaster TOS, CVE-2021-3007 in Zend Framework/Laminas, and CVE-2020-7961 in Liferay Portal. Later variants expanded their exploit repertoire to additional products, including VMware vCenter through CVE-2021-21972, and incorporated SMB exploitation using EternalBlue and EternalRomance. Compromised hosts join an IRC command-and-control network and can attack additional systems to expand the botnet.
The malware supports system fingerprinting, port scanning, reverse-shell access, process termination, startup persistence, and multiple flooding techniques, including UDP, SYN, HTTP, DNS, and Slowloris attacks. ARP poisoning enables local traffic interception, with captured traffic transmitted to command-and-control infrastructure. Evasion mechanisms include polymorphic code rewriting, encoded and obfuscated strings, and a user-mode rootkit that hides malicious files. Later Necro variants also introduced domain-generation algorithms, encrypted communications, and PyInstaller-packaged Linux executables to operate on hosts without a suitable Python interpreter.
Early FreakOut activity concentrated on North America and Western Europe, with finance, government, and healthcare among the most frequently targeted sectors.
Associated vulnerabilities
8 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
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
These ongoing attacks involve a new malware variant, called ‘FreakOut.’ The goal behind these attacks is to create an IRC botnet.
2021 – Deployed FreakOut Linux botnet malware into the wild, which does port scanning, information gathering, and data packet and network sniffing, along with DDoS and crypto mining.
Techniques & procedures
26 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
The malware, downloaded from the site http://gxbrowser[.]net... Each infected device is configured to communicate with a hardcoded C2 server.
The goal behind the attacks was to create an IRC botnet... Each of the infected devices can be later used as an attacking platform
Initial Access
1 technique
Initial Access
This threat demonstrates several techniques of the MITRE ATT&CK framework, most notably Exploit Public-Facing Application T1190.
Execution
2 techniques
Execution
In all the attacks involving these CVEs, the attacker’s first move is to try running different syntaxes of OS commands to download and execute a Python script named “out.py”.
After the script is downloaded and given permissions (using the “chmod” command), the attacker tries to run it using Python 2.
Persistence
1 technique
Persistence
Gaining persistence by adding itself to the rc.local configuration.
Privilege Escalation
1 technique
Privilege Escalation
Gaining persistence by adding itself to the rc.local configuration.
Stealth
3 techniques
Stealth
...designed to evade detection using a polymorphic engine and a user-mode rootkit that hides malicious files dropped on compromised systems.
The malware... is an obfuscated Python script designed to evade detection using a polymorphic engine...
The code is obfuscated and encoded with several different functions. Each time it is downloaded, the code is obfuscated anew.
Defense Impairment
1 technique
Defense Impairment
After the script is downloaded and given permissions (using the “chmod” command), the attacker tries to run it using Python 2.
Credential Access
3 techniques
Credential Access
The malware's core functionality enables operators to... sniff and exfiltrate network traffic...
Brute Force – using hard coded credentials With this list, the malware tries connecting to other network devices using Telnet.
ARP poisoning for Man-in-the-Middle attacks.
Discovery
2 techniques
Discovery
The malware's core functionality enables operators to... sniff and exfiltrate network traffic...
FreakOut bots scan for new systems to target either by randomly generating network ranges or on its masters' commands sent over IRC via the command-and-control server.
Lateral Movement
2 techniques
Lateral Movement
...brute-forcing passwords over SSH... the bot will try to use one of the built-in exploits or log in using a hardcoded list of SSH credentials.
Spreading to different devices, using the “exploit” function. Randomly generates the IPs to attack Exploits the CVEs mentioned above
Collection
2 techniques
Collection
If it succeeds, the results of the correct credential are saved to a file, and sent in a message to the C2 server
ARP poisoning for Man-in-the-Middle attacks.
Command and Control
4 techniques
Command and Control
All the connection credentials are obfuscated and encoded in the code itself multiple times, and are generated using multiple functions.
Each infected device is configured to communicate with a hardcoded C2 server. At the initial connection to the server, the conversation begins with the client sending a “NICK message”...
...adding the infected devices to an IRC botnet controlled by its masters... commands sent over IRC via the command-and-control server.
All the connection credentials are obfuscated and encoded in the code itself multiple times, and are generated using multiple functions.
Exfiltration
1 technique
Exfiltration
When the client finishes executing the relevant command as received from C2, it then sends the results in a private message (PRIVMSG IRC command) to the relevant admin in the channel.
Impact
4 techniques
Impact
In a later variant, Xmrig causes the victim’s device to engage in coin-mining.
The malware's core functionality enables operators to launch DDoS attacks...
DDOS and Flooding – HTTP, DNS, SYN Self-implementation of Slowlaris. The malware creates many sockets to a relevant victim address for the purpose of instigating a DDoS attack
DDOS and Flooding – HTTP, DNS, SYN
Observables
56 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.