Open Source Security Orchestration

Gregory Pickett (Hellfire Security)

BruCON 0x09 · Day 1

Overview

In this BruCON presentation, Gregory Pickett of Hellfire Security introduces a novel approach to automated security response through Open Source Security Orchestration, centered around his Active Network Protocol (ANP). The talk addresses the pervasive challenge of manual, time-consuming incident response processes that plague security operations centers (SOCs) with limited staff. Pickett argues that despite the multitude of advanced security solutions available today—from Security Information and Event Management (SIEM) systems to Intrusion Prevention Systems (IPS) and endpoint protection—their inherent inability to communicate directly and autonomously creates significant operational bottlenecks.

Watch on YouTube

Visual summary for Open Source Security Orchestration by Gregory Pickett
Visual summary for Open Source Security Orchestration by Gregory Pickett

Key moments

  1. 0:40 The core problem: manual security operations
  2. 4:00 Diverse use cases for sharing threat events
  3. 7:58 Introducing the Adapted Active Network Protocol (A&P)
  4. 14:30 A&P interfaces: native and surrogate integrations
  5. 19:00 Building self-defending networks without playbooks
  6. 23:00 Live demo: self-defending cloud network setup
  7. 31:50 Final thoughts: self-defending, investigating, responding networks
  8. 36:00 Successful demo payoff: systems respond to threat

Open Source Security Orchestration

Speakers: Gregory Pickett, SAP Security Operations, Hellfire Security

Conference: BruCON

YouTube: https://www.youtube.com/watch?v=EnQ6rA6XEIU

Overview

In this BruCON presentation, Gregory Pickett of Hellfire Security introduces a novel approach to automated security response through Open Source Security Orchestration, centered around his Active Network Protocol (ANP). The talk addresses the pervasive challenge of manual, time-consuming incident response processes that plague security operations centers (SOCs) with limited staff. Pickett argues that despite the multitude of advanced security solutions available today—from Security Information and Event Management (SIEM) systems to Intrusion Prevention Systems (IPS) and endpoint protection—their inherent inability to communicate directly and autonomously creates significant operational bottlenecks.

The core problem tackled by Pickett is the "human bridge" phenomenon, where security analysts are forced to manually correlate alerts, pivot between disparate consoles, and sequentially trigger actions across different security tools. This leads to delayed threat containment, missed evidence capture opportunities, and an overall reactive posture. ANP proposes a paradigm shift, enabling security systems to share threat intelligence and coordinate defensive actions in real-time, without human intervention or complex, pre-defined playbooks.

By fostering machine-to-machine communication, ANP aims to create a truly self-defending network where individual security components—like Fail2Ban, ModSecurity, and IPTables—can become proactive participants in the defense chain. This talk not only outlines the architectural vision for ANP but also demonstrates its practical application in cloud environments, showcasing how a network can automatically respond to and investigate threats, significantly enhancing an organization's security posture with existing open-source tools and limited resources.

Background

▶ Watch: The core problem: manual security operations (0:40)

The current state of security operations is characterized by a fragmented ecosystem of security tools, each performing a specific function but largely operating in isolation. As Pickett describes, a typical incident response scenario involves a series of manual steps: an alert from a SIEM, a manual investigation on an IPS console, a switch configuration to capture traffic, and then a login to an endpoint protection product to kill processes or delete files. This "manual process" is a significant drain on resources, consuming valuable time and staff effort that could otherwise be directed towards more strategic security initiatives.

The fundamental issue is the lack of seamless communication and coordination between these disparate systems. While solutions like Fail2Ban can effectively jail an attacker on one server, extending that protection to other servers or integrating it with network firewalls requires manual intervention. This siloed approach creates a reactive environment where threats often gain traction before a comprehensive response can be mounted. Pickett highlights that security teams are often forced to act as a "bridge between these systems," translating information and triggering actions, a role that machines are far better suited to.

Inspired by the desire for security solutions to "directly talk to each other to get what they need from each other and leave me out of it," Pickett sought to develop a mechanism for machine-to-machine orchestration. This contrasts sharply with traditional security orchestration paradigms, which often rely on expensive, controller-centric solutions and rigid "playbooks" that dictate every step of an automated response. Pickett's vision is a more organic, cooperative defense where systems act on their own, based on shared intelligence, without the need for a central orchestrator dictating every move. This approach aims to solve the core challenges of timely threat response, comprehensive evidence capture, effective threat stoppage, and efficient resource utilization, especially for organizations with limited security staff.

Key Findings

▶ Watch: Introducing the Adapted Active Network Protocol (A&P) (7:58)

The central contribution of this talk is the introduction of the Active Network Protocol (ANP), an open-source solution designed to facilitate machine-to-machine security orchestration. ANP fundamentally changes how security systems interact, moving beyond siloed operations to a cooperative, intelligent defense posture.

Key findings and contributions include:

  • Enabling Machine-to-Machine Orchestration: ANP provides a simple, common format and protocol for security systems to share threat events. This allows individual security tools, regardless of their specific function, to contribute to and benefit from a collective intelligence pool.
  • Achieving Self-Defending Networks: By enabling direct communication, ANP allows an enterprise to develop self-defending, self-investigating, and self-responding networks. Systems automatically coordinate actions (e.g., jailing an IP, redirecting traffic to a honeypot, initiating a packet capture) in response to shared threat intelligence, drastically reducing the need for manual intervention.
  • Proactive Threat Response: Shared events increase the visibility for all participating systems. This means a server can block an attacker before they even attempt to log in, simply because another peer system has already identified and shared the threat. This shifts the defense from reactive to proactive.
  • Leveraging Existing Open-Source Tools: ANP is designed to integrate seamlessly with widely used open-source security solutions such as Fail2Ban, ModSecurity, and IPTables. This is achieved through "interfaces" that translate events between the specific tool's format and ANP's common format, making it accessible and cost-effective.
  • Flexible Peering Models: The protocol supports various peering configurations, from local multicast communication within a segment to unicast communication across different networks, cloud environments (e.g., Amazon, Azure), and even with trusted partners or individual community members. This flexibility allows for broad deployment scenarios.
  • Decentralized Intelligence and Action: Unlike traditional, controller-centric orchestration, ANP promotes a decentralized model. Systems act on shared events based on their inherent capabilities, fostering "cooperative behavior" without explicit "playbooks." This allows for a more agile and resilient security infrastructure.
  • Addressing Staff Limitations: By automating incident response processes, ANP significantly reduces the burden on limited security staff, allowing them to focus on higher-level analysis and strategic improvements rather than repetitive manual tasks.

In essence, ANP demonstrates that sophisticated security orchestration, leading to highly automated and proactive defense, is achievable with open-source components and a well-designed communication protocol, without the prohibitive costs and complexity often associated with commercial solutions.

Technical Deep Dive

▶ Watch: Building self-defending networks without playbooks (19:00)

The Active Network Protocol (ANP) forms the technical backbone of this open-source security orchestration system. It is designed for simplicity, efficiency, and security, enabling diverse security tools to exchange threat intelligence effectively.

ANP Protocol Design:

ANP's primary function is to share security events between systems in a very common and simple format. Events are stored locally on each ANP agent and are aged out over time, recognizing that a threat today may not be relevant tomorrow.

  • Communication:
  • Local Peers: Communication occurs via multicast UDP on port 15000. This allows systems on the same network segment to quickly and efficiently share events without needing explicit knowledge of each other's IP addresses.
  • Remote Peers: For systems across different network segments, locations, or cloud environments, communication uses unicast TCP on port 15000. This ensures reliable delivery across Layer 3 boundaries where multicast typically doesn't propagate.
  • Message Types: Currently, ANP implements two fundamental message types:
  • add event: To announce a new threat event (e.g., an attacker IP).
  • remove event: To retract a previously shared event, crucial for correcting mistakes or indicating a threat is no longer active.
  • Security: Messages are secured using a SHA-256 signature. The protocol mandates that the signature must be a "known good signature," implying a trust relationship between peers.
  • Protocol Rules:
  • Signature Verification: Incoming messages are checked for a valid signature from a trusted peer.
  • No Duplication: If an ANP agent already knows about an event, it does not re-share it to avoid redundant traffic.
  • No Reflection: Messages are not reflected back to their source, preventing broadcast storms or loops.
  • Message Format: ANP utilizes a binary protocol for efficiency:
  • Version: 1 byte.
  • Type: 1 byte (indicating add event or remove event).
  • Event: Variable size, containing the actual threat information.
  • Signature: 64 bytes (SHA-256).
  • Specific event fields mentioned include a 4-byte address (IPv4) and a 1-byte Time-To-Live (TTL).

Peering Models:

ANP supports a variety of peering configurations to accommodate different network topologies and trust relationships:

  • Local Peering: Systems on the same network segment (e.g., a perimeter network) share events via multicast.
  • Remote Peering:
  • Within a Network: Across Layer 3 boundaries where multicast is not propagated, using unicast TCP.
  • Across Locations: Connecting HQ to branch offices.
  • Cloud Resources: Peering within a single cloud provider (e.g., Amazon, Azure) or between different cloud environments. The demo setup exemplifies this with ANP agents in Amazon and Azure.
  • Different Networks: Sharing intelligence with trusted vendors, partners, government institutions, or even individual security researchers and communities.
  • Trust Levels: Peering can be configured for varying degrees of trust, including one-way sharing (e.g., a vendor sharing events with a customer but not receiving them) or two-way sharing for a "larger Federation." The architecture supports hybrid models rather than a strict full mesh.

ANP Interfaces:

Interfaces are the critical component that allows ANP to interact with existing security solutions. They bridge the gap between a specific tool's event format and ANP's common format.

  • Purpose:
  • Publish Events to ANP: Read events from a security solution (e.g., Fail2Ban jail logs) and push them into ANP for sharing.
  • Pull Events from ANP: Read shared threat events from ANP and translate them into actions for a local security solution (e.g., add an IP to an IPTables blacklist).
  • Components: An interface consists of a template, supporting ANP-speaking components, and a specific "reader" and "writer" that understand the particular security solution (e.g., Fail2Ban, IPTables, ModSecurity).
  • Operation: Communication between the interface and the local ANP agent typically uses inter-process communication (IPC) for publishing and published lists for polling.
  • Types of Interfaces:
  • Native Interfaces: ANP is installed on the same system as the security solution. This is common for open-source tools on Linux servers. Examples include:
  • Fail2Ban Interface: Pulls threat events from ANP to add IPs to local jails. Also publishes local Fail2Ban jail events to ANP. This extends the typical jail time from minutes (e.g., 5 minutes or 1 hour) to 24 hours due to ANP's aging mechanism. A remove threat tool is provided to reverse accidental blocks, which itself requires a signature.
  • Blacklist Interface: Pulls events from ANP to generate a local blacklist, usable by various detection platforms or distributed externally.
  • ModSecurity Interface: Publishes detected attacker addresses to ANP.
  • IPTables Interface: Pulls events from ANP to add threats to local honeypots or perform NAT redirection.
  • Surrogate Interfaces: ANP is installed on a separate system, and the interface communicates remotely with a closed-source or standalone security solution (e.g., a Cisco ASA, a network switch, or a router's API). This allows ANP to extend its reach to proprietary hardware.

Cooperative Behaviors and Use Cases:

ANP enables a wide array of automated defensive actions:

  • Threat Intelligence Sharing: Generating and consuming blacklists for firewalls, endpoint solutions, and threat detection platforms.
  • Automated Blocking: Propagating firewall rules (host and network), WAF/IPS drop rules.
  • Honeypot Redirection: Rerouting threat sources to honeypots or "netting to carpet" (slowing down traffic).
  • Investigation Triggers: Initiating packet captures on switches/routers, injecting beacons into files, redirecting traffic through alternate sensor segments, turning on verbose logging for specific sources/targets.
  • Incident Response Actions: Reporting threats to abuse addresses, isolating hosts with ACLs, triggering password resets in LDAP, Active Directory, or RADIUS.

Pickett illustrates a key example: an attacker fails multiple logins on one server. ANP shares this event, and every single server in the enterprise automatically denies access to that attacker. Simultaneously, a web application firewall might NAT the attacker to a honeypot, and the IP is added to a blacklist consumed by detection platforms. This demonstrates a self-defending network acting cooperatively and proactively without human intervention or pre-defined playbooks.

Demo / Proof of Concept

▶ Watch: Live demo: self-defending cloud network setup (23:00)

Gregory Pickett presented a live demonstration of ANP's capabilities, showcasing a self-defending network composed of systems across different cloud environments. The demo setup involved:

  • System 1 (ANP1): Located in the Amazon Cloud, running ANP with Fail2Ban and ModSecurity interfaces.
  • System 2 (ANP2): Located in the Azure Cloud, running ANP with a Fail2Ban interface and a Blacklist interface.
  • System 3 (ANP3): Also in the Azure Cloud, running ANP with Fail2Ban, ModSecurity, and IPTables interfaces. This system hosted a public-facing website, making it the initial target for attacks.

The demonstration proceeded in two main scenarios:

Scenario 1: SSH Brute Force Attack

The presenter initiated an SSH brute force attack against ANP3. The expected outcome was that ANP3's Fail2Ban interface would detect the failed logins, jail the attacker's IP, and then publish this event to ANP. Subsequently, ANP1 and ANP2, through their respective Fail2Ban interfaces, would pull this event from ANP and also jail the attacker's IP. Additionally, ANP2's blacklist interface would add the attacker's IP to a generated blacklist.

The demo successfully showed this synchronization:

  • The Fail2Ban jails on all three systems quickly started to reflect the banned IP addresses, with numbers like "123 addresses currently banned" on one system and "122" on another, demonstrating the cascading effect of shared intelligence. The slight numerical difference was attributed to timing issues and the distributed nature of event propagation.
  • A blacklist was visibly generated on ANP2, containing the attacker's IP addresses, ready for consumption by other threat detection platforms.
  • The IPTables interface on ANP3 was configured to redirect the attacker to a honeypot, making the website appear "almost identical" but subtly different to the attacker, allowing for logging and tracking.

Scenario 2: Web Application Attack (ModSecurity)

After the SSH brute force, the presenter attempted to trigger ModSecurity by sending a "non-compliant" web request to the website hosted on ANP3. The goal was to demonstrate ModSecurity's detection capabilities integrated with ANP.

  • Expected: ModSecurity on ANP3 would detect the malicious request, publish the attacker's IP to ANP. Other systems would then receive this event.
  • Result: After a brief delay (attributed to faster communication settings for the demo), the systems responded. The presenter confirmed that he was "no longer able to log on" to the target system, indicating that the Fail2Ban interfaces had jailed his IP. Furthermore, the demo concluded with the statement that the web servers and WAFs were "now starting to NAT me over to very convincing looking honeypot," and a "reset password" action was triggered. This final outcome highlighted the multi-faceted, coordinated response across different security controls—blocking, redirection, and account remediation—all driven by ANP.

The demo, despite the inherent challenges of live presentations ("famous last words are the demo worked every single time"), successfully illustrated the core concept: a network capable of autonomously defending itself, investigating threats, and responding to incidents by leveraging open-source tools and shared intelligence via ANP.

Defensive Implications

▶ Watch: Successful demo payoff: systems respond to threat (36:00)

The Active Network Protocol (ANP) and the machine-to-machine orchestration it enables hold profound defensive implications for organizations of all sizes, particularly those struggling with resource constraints and the complexities of modern threat landscapes.

  1. Automated, Proactive Defense: ANP fundamentally shifts security operations from a reactive, human-driven model to an automated, proactive one. Instead of waiting for an analyst to manually correlate alerts and trigger actions, systems can instantly share threat intelligence and respond in unison. This allows defenses to be mounted before a threat crosses a system's individual threshold, significantly reducing the window of opportunity for attackers.
  1. Enhanced Visibility and Collective Intelligence: By enabling seamless sharing of threat events, ANP creates a collective intelligence network across the enterprise. Every participating security tool contributes to and benefits from this shared pool of information. This dramatically increases visibility into attacker activities, allowing for a more comprehensive and coordinated defense against both known and emerging threats.
  1. Optimization of Limited Staff: One of the most critical implications is the ability to do "more with less." With security talent being scarce and expensive, ANP automates many repetitive and time-consuming incident response tasks. This frees up security analysts to focus on higher-value activities such as threat hunting, vulnerability management, and strategic security improvements, rather than acting as a "human bridge" between disparate systems.
  1. Leveraging Existing Investments: ANP is designed to integrate with existing open-source security solutions like Fail2Ban, ModSecurity, and IPTables. This means organizations can significantly enhance their defensive capabilities without requiring massive investments in new, expensive commercial orchestration platforms. The ability to use "surrogate interfaces" also extends this benefit to some closed-source or proprietary solutions.
  1. Self-Investigating and Self-Responding Networks: Beyond just blocking threats, ANP enables systems to cooperatively investigate and respond to incidents. This includes automatically triggering packet captures, turning on verbose logging, isolating compromised hosts with ACLs, or initiating password resets. This holistic approach ensures that not only is the immediate threat mitigated, but also that valuable forensic data is collected and broader remediation steps are taken automatically.
  1. Decentralized Resilience: Unlike centralized orchestration systems that can become single points of failure, ANP's decentralized peering model offers greater resilience. If one ANP agent or security control fails, other peers can continue to operate and share intelligence, maintaining a level of defensive capability across the network.

Future Defensive Directions:

Pickett outlined several future enhancements that will further strengthen defensive postures:

  • Expanded Message Types: Adding add target event and remove target event will enable more granular actions like dropping ACLs on specific targets or initiating targeted password resets more broadly.
  • More Interfaces: Developing interfaces for closed-source solutions (e.g., Cisco ASA) and other open-source tools (e.g., OSSEC) will broaden ANP's applicability.
  • Peer Groups and Filtering: Implementing peer groups will allow for granular trust relationships and event filtering. This means organizations can control what information is shared with whom, and even prevent certain peers from having the ability to remove threats from their network, crucial for vendor or partner relationships.
  • IoT Integration: The concept of deploying ANP on a "system-on-a-chip" (like a Raspberry Pi) at remote branch offices or IoT perimeters offers a powerful way to provide immediate, automated defensive capabilities without re-architecting existing environments.
  • Reporting and Compliance: Integrating audit logs and exporting events to industry-standard formats like STIX/TAXII will provide vital visibility into ANP's actions for reporting, compliance, and broader threat intelligence sharing.

In summary, ANP offers a practical, open-source path to building a more intelligent, autonomous, and resilient security infrastructure, allowing defenders to be more agile and effective in the face of evolving cyber threats.

Key Takeaways

  • ANP enables true machine-to-machine security orchestration: The Active Network Protocol allows disparate security systems to share threat intelligence and coordinate defensive actions autonomously, eliminating manual intervention.
  • Fosters self-defending, self-investigating, and self-responding networks: Systems like Fail2Ban, ModSecurity, and IPTables can proactively respond to threats, conduct automated investigations (e.g., packet captures), and initiate remediation (e.g., host isolation, password resets) without human oversight or complex playbooks.
  • Leverages existing open-source security tools: ANP integrates seamlessly with common open-source solutions through simple "interfaces," making advanced orchestration accessible and cost-effective without requiring new, expensive platforms.
  • Offers flexible and resilient peering models: ANP supports diverse network topologies, from local multicast within a segment to unicast TCP across clouds and with trusted partners, ensuring broad applicability and decentralized resilience.
  • Significantly reduces operational burden and enhances proactive defense: By automating incident response, ANP frees up limited security staff, allows for faster containment, and enables systems to act proactively before threats cross their individual thresholds.
  • Future development includes granular trust controls and IoT integration: Upcoming features like peer groups for fine-grained sharing rules, additional message types, and the ability to deploy ANP on low-cost IoT devices will further expand its capabilities and reach.

About the Speaker(s)

Gregory Pickett is a security professional associated with Hellfire Security and is an integral part of the SAP Security Operations group. He is the visionary and developer behind the Active Network Protocol (ANP), which he created to address the challenges of manual and siloed incident response in enterprise security environments. His work focuses on enabling automated, machine-to-machine communication for security orchestration, empowering systems to defend themselves cooperatively.

Reviews

→ Top-rated talks at BruCON 0x09

All talks from BruCON 0x09