RETURN TO SYSTEM DESIGN VAULT (55)BLUEPRINT #52 // Hard
#52HardCore Distributed Systems
Design a Distributed Botnet
ASKED IN INTERVIEWS AT:MetaLyft
EXECUTIVE SUMMARY & PROBLEM STATEMENT
Analyze the distributed architecture of command-and-control (C2) botnets (for cybersecurity defense and DDoS mitigation modeling) featuring P2P topologies and domain generation algorithms (DGA).
SCALE ESTIMATION & TRAFFIC ENVELOPE
DAILY ACTIVE USERS / TPS500,000 infected zombie nodes globally
READ / WRITE TRAFFIC RATIOPeriodic check-in and command polling
5-YEAR STORAGE CAPACITYDistributed decentralized DHT in RAM
FUNCTIONAL REQUIREMENTS
- [1]Distribute command payloads to thousands of nodes without central point of failure
- [2]Survive domain takedowns and IP blocks via DGA
- [3]Execute synchronized stress tests / actions
NON-FUNCTIONAL REQUIREMENTS
- •Stealthy low-signature communication
- •Resilient against node churn and ISP sinkholes
CORE ARCHITECTURAL COMPONENTS
Kademlia P2P Mesh Protocol
DGA Algorithm (Date-seeded PRNG)
Encrypted Payload Dispatcher
Sinkhole Detection Defense Module
DATA SCHEMA & PERSISTENCE
BotRecord: node_id, public_key, version, command_seq_acked
DISTRIBUTED TRADE-OFFS & FAILURE MODES
- ⟡P2P decentralized command trees have no single IP for law enforcement to seize, unlike legacy central IRC servers.