Abstract
There is always the potential of malware or attackers using a honeyfarm to infect or attack non-honeyfarm systems. Thus, each organization must implement data control of a compromised honeypot to minimize the risk. We have proposed a data control mechanism that exploits a honeyfarm gateway, an intrusion detection system, and a reverse firewall to achieve this goal. We demonstrate that the data control mechanism not only can effectively identify outbound traffic with attacks but also enables dynamic containment of malware inside a honeyfarm.
Introduction
Honeypots are essential tools for security researchers, providing a controlled environment to observe attacker behavior. However, a single honeypot offers a limited perspective. To gain a broader view of network threats, researchers employ honeyfarms—centralized clusters of virtual honeypots that can represent extensive network ranges.
The primary challenge in managing a honeyfarm is the "Catch-22" of risk: if an attacker compromises a honeypot, they may attempt to use it as a "springboard" to launch attacks on the real-world Internet. Blocking all outbound traffic prevents this risk but alerts the attacker that they are in a decoy environment. Effective "data control" must contain the threat without tipping off the adversary or allowing the honeyfarm to become a source of malicious activity.
System Architecture
The proposed data control mechanism is built upon three integrated pillars designed to manage traffic flow and mitigate risks associated with compromised honeypots.
- Honeyfarm Gateway: Developed using the Click modular software router, the gateway serves as the central hub. It manages Network Address Translation (NAT) and DNS proxying, ensuring the virtual environment appears as a legitimate network to any intruder.
- Intrusion Detection System (Snort): The IDS monitors both inbound and outbound traffic. For inbound traffic, it identifies known exploits and can trigger payload modifications to disable attacks while making them appear to have failed naturally. For outbound traffic, it detects attempts by malware to spread or launch secondary attacks.
- Reverse Firewall (iptables): This component acts as a final safety net, filtering outbound connections to prevent Denial of Service (DoS) attacks and limiting connection counts to prevent resource exhaustion on the host hardware.
Data Control Policies
The system implements several clever policies to maximize research value while maintaining containment:
- Packet Reflection: When the IDS detects an outbound attack, the gateway "reflects" that traffic back into the honeyfarm. The malware believes it is reaching a new victim on the Internet, but it is actually infecting another virtual honeypot within the controlled environment. This creates a "digital mirror maze" for studying malware evolution.
- Packet Modification: By subtly altering inbound attack payloads to ensure they fail, researchers force attackers to reveal secondary tools and techniques when their primary exploits do not work as expected.
- Packet Dropping: To protect the honeyfarm's physical resources, the gateway drops packets once a specific threshold of outbound connections (such as rapid IP scanning) is reached, preventing system crashes during intense worm propagation.
Experimental Evaluation and Results
The system was evaluated using live Internet traffic across five public IP addresses over five months in 2016. The experimental setup utilized a Dell PowerEdge R330 server running Xen 3.0 to manage various virtual honeypots (Ubuntu, Windows XP, and Windows 7).
Attack Mitigation and Worm Propagation
Implementation of the packet modification policy resulted in a significant drop in successful attack signatures across all operating systems, proving the gateway's ability to "neuter" known exploits. The system also successfully tracked the infection speeds of real-world malware samples. Morto was identified as the fastest, infecting 128 honeypots in just 50 seconds (approximately 7 seconds per infection) due to its use of the Remote Desktop Protocol (RDP). In contrast, worms like Blaster and Flame took roughly 30 seconds per infection.
Performance Overhead
Testing with a 4.2GB video file transfer revealed that the IDS (Snort) introduced more latency than the reverse firewall. This is attributed to the computational cost of signature matching compared to simple header filtering. While the latency is measured in milliseconds, sophisticated "honeypot-aware" malware could potentially use timing attacks to detect the virtualized environment.
Conclusion
The proposed multi-layered data control mechanism effectively balances the need for high-fidelity threat research with the necessity of network safety. By combining a modular gateway with IDS and reverse firewall capabilities, organizations can safely host honeyfarms that contain malware through dynamic reflection and modification policies, preventing them from becoming springboards for real-world attacks.
Summary updated