New Adventures in Active Defense, Offensive Countermeasures and Hacking Back
John Strand
BruCON 0x08 · Day 2
Overview
In his BruCON presentation, "New Adventures in Active Defense, Offensive Countermeasures and Hacking Back," John Strand of Black Hills Information Security delivers a compelling critique of the prevailing, often stagnant, cybersecurity landscape. Drawing parallels to Einstein's definition of insanity—doing the same thing repeatedly and expecting different results—Strand argues that the industry's reliance on traditional, static defenses like antivirus, firewalls, and SIEMs has led to a cycle of continuous failure against increasingly sophisticated adversaries. This talk champions a paradigm shift towards active defense, a strategy that incorporates annoyance, attribution, and legally sound countermeasures to fundamentally alter the attacker's operational calculus.

Key moments
- 0:00 Introduction and the 'insanity' of current security
- 6:00 Verizon report: How organizations really detect breaches
- 20:00 Legal boundaries of active defense: The stolen MacBook Pro case
- 23:45 Introducing Active Defense Harbinger Distribution (ADHD)
- 26:30 Annoyance techniques: Web Labyrinth demonstration
- 36:30 Attribution techniques: Web bugs in documents
- 40:30 Attribution techniques: Honey Badger geolocation
- 50:00 Call for new defensive ideas and ADHD's purpose
New Adventures in Active Defense, Offensive Countermeasures and Hacking Back
Speakers: John Strand
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=mjxE1ZzWA5A
Overview
In his BruCON presentation, "New Adventures in Active Defense, Offensive Countermeasures and Hacking Back," John Strand of Black Hills Information Security delivers a compelling critique of the prevailing, often stagnant, cybersecurity landscape. Drawing parallels to Einstein's definition of insanity—doing the same thing repeatedly and expecting different results—Strand argues that the industry's reliance on traditional, static defenses like antivirus, firewalls, and SIEMs has led to a cycle of continuous failure against increasingly sophisticated adversaries. This talk champions a paradigm shift towards active defense, a strategy that incorporates annoyance, attribution, and legally sound countermeasures to fundamentally alter the attacker's operational calculus.
Strand's core thesis is that by embracing deception and dynamic defenses, organizations can dramatically increase the effort and cost for attackers, while simultaneously gaining crucial intelligence about their methods and origins. The presentation moves beyond the typical "security is broken" narrative to offer concrete, actionable solutions, emphasizing that active defense is not about illegal "hacking back" or revenge, but about creating an ecosystem where defenders can proactively engage and outmaneuver threats within legal and ethical boundaries. He introduces the Active Defense Harbinger Distribution (ADHD), a collection of open-source tools designed to make these advanced defensive techniques accessible to any organization.
Background
▶ Watch: Introduction and the 'insanity' of current security (0:00)
The current state of cybersecurity, as painted by John Strand, is one of systemic failure rooted in a lack of innovation and a pervasive "insanity" in approach. Organizations repeatedly fall victim to the same vulnerabilities, often year after year, with penetration testers frequently finding unpatched systems or identical misconfigurations. Strand highlights the industry's heavy reliance on a handful of dominant vendors for core security technologies—Symantec and McAfee for antivirus, Check Point and Palo Alto for firewalls—creating a homogenous defense landscape. This uniformity means that once an attacker bypasses one vendor's product, they likely have a blueprint to bypass many others.
Strand argues that these static defenses are easily circumvented by well-resourced adversaries, such as nation-states or organized crime, who possess the time, budget, and expertise to test and refine their attacks against common security products in their own labs. He cites examples from his own firm, Black Hills Information Security (BHIS), where they maintain a lab with approximately $150,000 annually in security products to ensure their offensive techniques (like the VS Agent C2 over viewstate) can bypass client defenses before an engagement even begins. The annual "Sacred Cash Cow Tipping" webcast further demonstrates the ease with which major AV engines can be bypassed, underscoring the commodity nature of these tools.
A critical piece of evidence for this failing paradigm comes from the Verizon Data Breach Report, which consistently shows that internal security mechanisms are remarkably ineffective at detecting breaches. Strand points out that 34% of compromises are detected by an unrelated third party, 24% by fraud detection, and 9% by customers. In stark contrast, internal technologies like network intrusion detection, log review, host-based IDS/AV, incident response, IT audit, and external monitoring services each account for only 1% of breach detections. This stark disparity underscores that current security investments are not yielding the expected results. Furthermore, the practice of ingesting "all" event logs into SIEMs often leads to "white noise," with a minuscule percentage of these logs having active signatures or reports, rendering them largely useless for actual detection. The fundamental issue, according to Strand, is the absence of deception in a field where "all warfare is based on deception."
Key Findings
▶ Watch: Legal boundaries of active defense: The stolen MacBook Pro case (20:00)
The central revelation of Strand's talk is that the traditional cybersecurity model, characterized by static and predictable defenses, is fundamentally broken and unsustainable against determined adversaries. He argues that the industry's continuous investment in "next-generation" or "AI-powered" versions of the same failing products constitutes an "insanity" that must be broken. Instead, Strand proposes active defense as a pragmatic and effective alternative, grounded in three core pillars: annoyance, attribution, and, with extreme caution, attack.
Firstly, active defense is presented as a spectrum of solutions, not a single product or a call for illegal "hacking back." It's about strategically tipping the scales in the defender's favor. Secondly, Strand meticulously outlines the legal boundaries, referencing the Susan Clements Jeffrey case in the United States. This case established that while tracking a stolen computer's IP address or geographical location (for attribution) is generally permissible, violating federal wiretapping laws by intercepting electronic communications or personal data of the user (crossing into "attack" without a warrant) is illegal. This provides a crucial "line in the sand" for organizations considering active defense measures.
Finally, the talk introduces the Active Defense Harbinger Distribution (ADHD), an open-source, Kali Linux-like toolkit specifically designed for active defense. ADHD aims to democratize these advanced techniques by providing user-friendly, step-by-step instructions and video walkthroughs for every tool. This makes it possible for organizations of any size to implement sophisticated annoyance and attribution strategies, moving beyond passive detection to actively disrupt and gain intelligence on attackers without resorting to legally questionable "revenge" tactics.
Technical Deep Dive
▶ Watch: Annoyance techniques: Web Labyrinth demonstration (26:30)
John Strand's talk delves into the practical implementation of active defense strategies, categorizing them into annoyance and attribution. He showcases several open-source tools and techniques, many of which are part of the Active Defense Harbinger Distribution (ADHD), demonstrating how defenders can proactively engage with adversaries.
Annoyance Techniques
Annoyance strategies are designed to increase the attacker's workload, cost, and time, making their operations less efficient and more prone to detection.
- Strategic Decoys: Simple yet effective, these involve creating digital tripwires in unexpected places. Examples include:
- Fake LinkedIn accounts that, if interacted with, generate an alert.
- Dummy Active Directory domain users or domain admin accounts configured to immediately trigger an alert upon any access attempt, especially if they are not authorized to log into any workstations. These accounts serve as bait, signaling an attacker's lateral movement or enumeration efforts.
- Web Labyrinth: This is a specialized web server designed to ensnare and exhaust automated web application scanners.
- Deployment: It's placed in obscure parts of a website, such as directories disallowed by
robots.txt(e.g.,admin.php), areas legitimate users would never visit but attackers would target for reconnaissance. - Functionality: Web Labyrinth presents an infinite maze of randomized text and hidden links. Automated crawling tools like Burp Suite, Wget, or Nessus will follow these links endlessly.
- Impact on Attackers: This leads to several adverse effects for the attacker:
- Memory Exhaustion: Automated scanning tools often load discovered links into memory, causing them to grow indefinitely until the attacker's system crashes (e.g., a blue screen on Windows or out-of-memory errors on Linux).
- Disk Space Consumption: The tools may create local archives of crawled pages, rapidly filling the attacker's hard drive.
- Time Wasting: Forces attackers to either manually click through links (significantly increasing their attack time) or risk crashing their tools, thereby increasing their operational cost.
- Detection: Web Labyrinth logs all user agent strings and hit counts, providing defenders with immediate alerts of suspicious automated scanning activity.
- Honey Ports: These are simple listeners on specific network ports designed to detect and block connection attempts.
- Mechanism: A honey port listens on a chosen port (e.g.,
2222). When an attacker initiates a connection, the honey port waits for a full established TCP connection (SYN, SYN-ACK, ACK, FIN handshake) before blocking the originating IP address. - DDoS Prevention: Requiring a full TCP handshake is crucial to prevent attackers from spoofing legitimate IP addresses and using the honey port to launch a Distributed Denial of Service (DDoS) attack against the defender's own network.
- Real-world Application: This technique can be integrated with tools like Dave Kennedy's Artillery (also free and available on ADHD) to automatically update firewalls and routers to block identified malicious IP addresses at the network edge.
- Effectiveness: One customer, running this across 2,000 Linux servers, reported blocking 20,000 IP addresses per day, significantly reducing the volume of logs processed by their IDS/IPS systems and allowing them to focus on more refined threats. A notable anecdote involved a penetration testing firm whose scans caused the entire network to go "dark" due to the honey ports, leading to significant frustration and demonstrating the effectiveness of the annoyance tactic.
Attribution Techniques
Attribution aims to gather intelligence about the attacker's identity, location, and methods, moving beyond generic threat intelligence feeds. Strand is highly critical of traditional threat intelligence, labeling it as "driving your car with the rearview mirror" and easily manipulated (e.g., using the Super Happy Funtime APT Generation Kit to inject fake language indicators into malware).
- Web Bug Documents: This technique leverages common office suite applications to beacon back an attacker's IP address.
- Concept: A seemingly innocuous document (e.g.,
passwords.docx,HR_policy.xlsx) is placed on a compromised system, enticing the attacker to open it. - Mechanism: Microsoft Word, OpenOffice, and LibreOffice applications often act as basic web browsers, rendering elements like Cascading Style Sheets (CSS) or image source (IMG SRC) tags. By embedding a CSS or image tag that points to a controlled external server, the document will make a callback to that server whenever it's opened.
- Key Advantage: This works without requiring macros to be enabled, making it highly effective even against security-conscious attackers. It functions across various platforms (Windows, Linux with AbiWord/OpenOffice).
- Information Gained: Each callback provides the attacker's IP address, offering valuable geographical attribution that can often pinpoint their country or even city. Critically, if the attacker's office suite is not configured to route traffic through Tor or other anonymizing proxies, their true IP (or at least their exit node's IP) will be revealed.
- Honey Badger: A sophisticated Java applet designed for precise geolocation.
- Enticement: Presented as a desirable tool for an attacker, such as a VPN client, a firewall management portal, or a legitimate utility.
- Java Signing Bypass: To circumvent modern Java security protections that block unsigned applets, Honey Badger uses a valid code-signing certificate from a company named "Verified Code Certificate," making it appear legitimate to the user.
- Geolocation Mechanism: When executed, Honey Badger performs a wireless site survey of all nearby Wi-Fi access points (without needing to join any network). It collects the SSIDs and MAC addresses of these access points and sends this data to Google's geolocation API.
- Accuracy: Google's API then returns a highly accurate latitude and longitude, typically with an accuracy of 20 to 120 meters. Strand demonstrated this live, pinpointing his location in Ghent with 20 meters accuracy.
- Real-world Success: An anecdote detailed locating a student ("Chris snooze") attacking BHIS's website to his dorm room at Pepperdine University with 106 meters accuracy. A German bank implementing Honey Badger tracked 246 hits over two weeks, identifying four compromised computers within their own network by cross-referencing ASNs with egress traffic.
- Jar Combiner: This tool allows defenders to embed the Honey Badger geolocation code into any existing, legitimate Java
.jarfile. - Covert Deployment: An organization can take a real, functional Java application (e.g., a VNC client, a Java-based VPN) and inject Honey Badger into it.
- Seamless Operation: When an attacker runs the backdoored application, the original application functions normally, while Honey Badger covertly executes in the background, providing geolocation data without suspicion.
Attack (with Warrant)
Strand emphasizes that direct "attack" or gaining full access to an attacker's computer should only ever be pursued with a warrant. He firmly believes in the right to privacy, even for hackers, and stresses that accessing an attacker's personal files or browsing history is unnecessary for effective attribution or law enforcement cooperation. For any offensive countermeasure that might cross legal boundaries, he advises using non-attributable configurations (e.g., Namecheap, PayPal, Hotmail, DigitalOcean with prepaid gift cards) and tearing down infrastructure quickly to avoid leaving a digital trail.
Demo / Proof of Concept
▶ Watch: Attribution techniques: Web bugs in documents (36:30)
John Strand's presentation was rich with practical demonstrations and real-world examples, effectively illustrating how the active defense tools and techniques function. These demonstrations were crucial in solidifying the concepts of annoyance and attribution for the audience.
For annoyance, Strand showcased Web Labyrinth, demonstrating how an automated web crawler would quickly get trapped in an endless loop of dynamically generated content. This visual proof highlighted how the attacker's scanning tool would rapidly consume system memory and hard drive space, eventually crashing, thereby proving the effectiveness of this technique in increasing attacker cost and time. He also demonstrated Honey Ports, showing a connection attempt to a configured port immediately resulting in the blocking of the connecting IP address after a full TCP handshake, reinforcing its role in deterring automated scans and reducing network noise.
In the realm of attribution, the talk provided clear proofs of concept for both web bug documents and Honey Badger. Strand illustrated how opening a seemingly benign document, such as a passwords.docx file, would silently trigger a callback to his server, revealing the IP address of the system that opened the document—all without requiring macros to be enabled. This showcased a simple yet powerful method for gaining initial intelligence. The highlight was the live demonstration of Honey Badger, where the Java applet, disguised as an enticing application, successfully geolocated the presenter's exact position within the BruCON conference venue, displaying a precise latitude and longitude with remarkable accuracy (e.g., 20 meters). The concept of Jar Combiner was also explained, detailing how Honey Badger's geolocation capabilities could be covertly embedded into legitimate Java applications like VNC, providing a stealthy attribution mechanism. These demonstrations underscored that active defense is not theoretical but comprises immediately actionable strategies.
Defensive Implications
▶ Watch: Call for new defensive ideas and ADHD's purpose (50:00)
The defensive implications of John Strand's active defense philosophy are profound, advocating for a fundamental shift from passive, reactive security to a more proactive and deceptive posture. Organizations should consider the following actionable steps:
- Embrace Deception: Move beyond the predictable. Incorporate elements of deception into your network and application architecture. This means creating digital tripwires, fake accounts, and enticing but misleading data that only an attacker would seek out.
- Utilize ADHD: The Active Defense Harbinger Distribution (ADHD) is a critical resource. Download and experiment with the tools provided. Its step-by-step instructions and video walkthroughs make advanced techniques like Web Labyrinth, Honey Ports, web bug documents, and Honey Badger accessible, even for teams with limited resources or experience in these areas.
- Implement Annoyance at Scale:
- Deploy Web Labyrinth on web-facing infrastructure, particularly in areas typically targeted by automated scanners (e.g.,
robots.txtdisallowed paths). This will exhaust attacker resources, waste their time, and provide early warning signals. - Set up Honey Ports across your network, especially on systems that might be targeted by broad port scans. Integrate these with existing firewall rules or security tools (like Artillery) to automatically block malicious IP addresses. This significantly reduces log noise and focuses defensive efforts on more persistent threats.
- Create fake user accounts or domain admin accounts in Active Directory that are not used by legitimate personnel. Configure these accounts to trigger high-priority alerts upon any authentication attempt, providing immediate detection of lateral movement or reconnaissance.
- Enhance Attribution Capabilities:
- Place web bug documents (e.g.,
passwords.docx,HR_policy.xlsx) on systems that are likely targets for compromise or data exfiltration. These documents, leveraging embedded CSS or image tags, will beacon back the attacker's IP address when opened, providing crucial geographical intelligence without relying on macros. - Consider deploying Honey Badger or using Jar Combiner to embed its geolocation capabilities into enticing applications (e.g., fake VPN clients, VNC installers) that an attacker might download and execute. This can provide precise physical location data on an adversary.
- Improve Detection Fidelity: These active defense tools generate high-fidelity alerts that signify genuine attacker interaction, rather than the "white noise" often produced by traditional SIEMs. This allows security teams to focus their attention on actionable intelligence and respond more effectively.
- Understand Legal Boundaries: Crucially, defenders must understand the legal "line in the sand." While annoyance and attribution are generally permissible, direct access to an attacker's system or interception of their private communications typically requires a legal warrant. Focus on gathering intelligence, not retribution.
- Complement, Not Replace: Active defense is not a substitute for fundamental security hygiene (patching, strong passwords, network segmentation). Instead, it should be seen as an essential augmentation, creating a dynamic and deceptive ecosystem that makes the attacker's job significantly harder and riskier. John Strand's ongoing research, such as the upcoming Outlook Web Access two-factor bypass technique, underscores the constant evolution of offensive capabilities, necessitating a proactive and innovative defensive response.
Key Takeaways
- Traditional, static security defenses (antivirus, firewalls, IDS/IPS, SIEMs) are largely ineffective against determined adversaries, leading to a cycle of repeated breaches.
- Active defense is a strategic paradigm shift focusing on annoyance (increasing attacker effort) and attribution (gaining intelligence), rather than just passive prevention and detection.
- Deception is a critical, underutilized component of effective cybersecurity, allowing defenders to control the narrative and force attackers into detectable actions.
- Tools within the Active Defense Harbinger Distribution (ADHD), such as Web Labyrinth, Honey Ports, web bug documents, and Honey Badger, provide free and accessible means to implement sophisticated active defense techniques.
- Accurate attribution through methods like web bug documents and Wi-Fi geolocation (Honey Badger) offers actionable intelligence, often bypassing traditional anonymity measures like Tor.
- Organizations must understand the legal boundaries of active defense, focusing on intelligence gathering and disruption within legal frameworks, rather than engaging in illegal "hacking back" or revenge.
About the Speaker(s)
John Strand is a highly respected figure in the cybersecurity community, known for his candid and often provocative insights. He is the owner of Black Hills Information Security (BHIS), a company renowned for its penetration testing and security consulting services, and a lead instructor for SANS. Strand is also a familiar voice on Security Weekly, a popular podcast where he shares his expertise on offensive and defensive security. His work consistently emphasizes the need for practical, actionable security solutions and a departure from conventional, often failing, approaches. Strand is a strong advocate for the cybersecurity community to "give back" by developing and sharing defensive tools and techniques, challenging the industry to evolve beyond merely identifying vulnerabilities to actively building better defenses.