Study how Mirai scans for and infects IoT devices that still use default factory passwords.
Write Snort or Suricata detection rules by analyzing Mirai's network protocol from the source.
Understand the command-and-control architecture used by large botnets for academic or defensive work.
Build defenses against DDoS attacks by learning exactly how Mirai generates and directs flood traffic.
Must be run in a fully isolated VM with no public internet access, antivirus tools will flag the downloaded files as malware.
This repository contains the leaked source code for the Mirai botnet, a piece of malware that became notorious in 2016 when it was used to launch some of the largest internet outages recorded at the time. The original code was written anonymously and released publicly on a hacking forum, this repository is a fork that repackages it with documentation for security research purposes. Mirai works by scanning the internet for home routers, security cameras, and other internet-connected devices that still use their factory-default passwords. When it finds one, it logs in automatically and installs itself. The infected device then connects to a command-and-control server and waits for instructions. When many thousands of infected devices receive the order at once, they all flood a target with traffic, knocking it offline. This kind of attack is called a distributed denial-of-service attack. The repository includes the main bot code that runs on infected devices, the command-and-control server that sends instructions, a loader that spreads the infection, and supporting scripts. There is also the original forum post from the author explaining the system. The README is explicit that the code is provided for defensive security research only: studying how botnets spread, writing detection rules for security tools, understanding the communication protocol between bots and servers, and building defenses. Running it against real devices or networks is illegal. The README recommends that anyone experimenting with the code do so inside an isolated virtual machine setup with no connection to the public internet. Some antivirus programs flag the downloaded files as malware, which the README acknowledges and flags as a caution.
← jgamblin on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.