Legea Go DDoS bot with a control plane · first seen 2026 · 2 chapters Eight bina...
eFeSpain @eFeSpain@infosec.exchange
Legea
Go DDoS bot with a control plane · first seen 2026 · 2 chapters
Eight binaries, one per architecture, dropped into my honeypot in five minutes. The decompiler wouldn't open any of them: the Go header lies about itself in three fields. Behind that wall there was a second one — the author's strings aren't in the file at all.
Legea ("the law" in Romanian) is the key every command is asked with, and the only word its author left behind: no banner, no alias, no version. It appears 0 times in the file and 124 times in the memory of the running process.
What the two chapters cover:
- a faked Go header (3 bytes) and garble -literals, so the file carries no strings of its own
- the memory dump that gives up the C2, the command set and the fallback domains
- thirteen methods: nine floods, plus remote shell, self-repairing persistence and a territory lock (chattr +i) with OpenWrt paths in the list
- it does NOT self-propagate: no SSH library, no credential list, no scanner
- seven fallback domains, six never registered — whoever registers one owns every bot that falls back
- and the delivery box that serves several unrelated families at once
blog.efespain.com/en/legea/
Ch. 31: blog.efespain.com/en/chapter-31/
Ch. 32: blog.efespain.com/en/chapter-32/
IOCs: blog.efespain.com/en/iocs/
#malware #honeypot #IoT #botnet #DDoS #golang #ThreatIntel #ReverseEngineering #legea