Realtime analysis and visualization of internet status

Tiago Balgan Henriques, Tiago Martins, João Gouveia (CTO · AnubisNetworks)

BruCON 0x05 · Day 1

Overview

In this BruCON talk, "Realtime analysis and visualization of internet status," Tiago Balgan Henriques, Tiago Martins, and João Gouveia from AnubisNetworks introduce StreamForce, a Complex Event Processor (CEP) designed to tackle the immense challenges of processing high-volume, volatile security information in real-time. The core focus of StreamForce is on the "variety" and "velocity" aspects of big data, aiming for near-zero latency in ingesting, processing, and making diverse security events available. The speakers demonstrate how this platform not only enables rapid analysis and visualization of global threat landscapes but also facilitates the sharing of critical security intelligence among organizations.

Watch on YouTube

Visual summary for Realtime analysis and visualization of internet status by Tiago Balgan Henriques, Tiago Martins, João Gouveia
Visual summary for Realtime analysis and visualization of internet status by Tiago Balgan Henriques, Tiago Martins, João Gouveia

Key moments

  1. 0:00 Introduction to high-volume security event processing
  2. 6:00 CyberFeed: Massive real-world security data volumes
  3. 9:50 Interactive web dashboard for real-time data visualization
  4. 20:00 Backend architecture: Node.js, MongoDB, Redis for processing
  5. 31:00 Real-time WebGL globe visualizing botnet activity
  6. 41:30 Distributed port scanning with Raspberry Pi minions
  7. 43:50 Demonstration of ultra-fast port scan data querying
  8. 48:30 Q&A: How they achieve internet-scale data collection

Realtime analysis and visualization of internet status

Speakers: Tiago Balgan Henriques, Tiago Martins, João Gouveia (CTO, AnubisNetworks)

Conference: BruCON

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

Overview

In this BruCON talk, "Realtime analysis and visualization of internet status," Tiago Balgan Henriques, Tiago Martins, and João Gouveia from AnubisNetworks introduce StreamForce, a Complex Event Processor (CEP) designed to tackle the immense challenges of processing high-volume, volatile security information in real-time. The core focus of StreamForce is on the "variety" and "velocity" aspects of big data, aiming for near-zero latency in ingesting, processing, and making diverse security events available. The speakers demonstrate how this platform not only enables rapid analysis and visualization of global threat landscapes but also facilitates the sharing of critical security intelligence among organizations.

The presentation delves into the architectural design of StreamForce, highlighting its scalability, performance, and the use of a common JSON-based API for seamless data exchange. A significant portion of the talk showcases practical applications, including dynamic web dashboards for real-time threat monitoring and an interactive WebGL globe visualizing global botnet infections. Furthermore, the speakers introduce a distributed "minion" architecture, leveraging low-cost hardware like Raspberry Pis, to conduct reliable port scanning and data enrichment on a global scale, underscoring the platform's utility for both defensive and potentially offensive security operations.

This talk is crucial for security professionals, researchers, and network defenders grappling with the overwhelming volume and complexity of modern cyber threats. By providing a framework for real-time intelligence gathering, analysis, and visualization, StreamForce offers a powerful approach to understanding the ever-changing internet status and responding to threats with unprecedented speed and insight. The discussion also touches upon the broader implications of such powerful platforms, from enhancing collective defense to the potential for misuse.

Background

▶ Watch: Introduction to high-volume security event processing (0:00)

The landscape of internet security is characterized by an unprecedented volume of events generated by billions of connected devices. These events are inherently volatile, existing at a specific moment in time before dissipating, making real-time processing a critical, yet challenging, requirement. The speakers frame this challenge within the context of big data, emphasizing not just the sheer "volume" of information but, more importantly, the "variety" of data sources and the "velocity" at which it must be processed. Traditional security information management systems often struggle to cope with the demand for near-zero latency analysis across disparate data types.

The fundamental problem StreamForce aims to solve is multifaceted: how to handle a massive influx of security events, process them to extract meaningful insights, and deliver those insights with minimal delay. Beyond raw processing power, there's a significant need for mechanisms that enable secure and efficient sharing of this intelligence among various entities, such as CERTs, ISPs, and research teams. This sharing requires a unique and common API that supports both publishing and consuming events, alongside robust capabilities for complex queries on the processed data.

Prior approaches often relied on storing vast quantities of event data in databases for later analysis, which inherently introduces latency and can hinder proactive threat response. StreamForce deviates from this paradigm by focusing on streaming technology, where the emphasis is on immediate processing and rapid dissemination of information rather than long-term storage of raw events. This shift is crucial for developing applications that provide real-time situational awareness and enable timely defensive actions against fast-evolving threats. The talk implicitly critiques the limitations of purely batch-oriented or storage-centric security analytics by presenting a streaming-first, performance-driven alternative.

Key Findings

▶ Watch: Interactive web dashboard for real-time data visualization (9:50)

The presentation introduces several pivotal findings and contributions through the StreamForce platform:

  • High-Performance Complex Event Processing: StreamForce demonstrates exceptional scalability and performance, capable of processing approximately 50,000 real-life security events per second on commodity hardware. This capability is central to achieving near-zero latency for security intelligence.
  • Flexible and Standardized API: The platform offers a highly flexible, JSON-based API that facilitates easy integration for both publishing and consuming events. This standardization simplifies the development of diverse security applications and enables complex queries across multiple data feeds.
  • Federated Event Sharing Model: StreamForce provides mechanisms for securely sharing security events across different organizations, fostering a collaborative defense ecosystem. This federated model allows for granular control over data access and anonymization.
  • Comprehensive CyberFeed: AnubisNetworks curates and provides a CyberFeed, a package of high-value security feeds available through the API. This includes sinkhole data (capturing around 400 million botnet check-ins per day), trap data (with 15-20 million email trap messages daily identifying malicious URLs), and IP reputation data (tracking approximately 20 million active malicious IP addresses).
  • Real-time Visualization Capabilities: The talk showcases dynamic web dashboards and an interactive WebGL globe that connect directly to the StreamForce API. These tools provide immediate, intuitive visualizations of global threat landscapes, such as botnet activity by country or ASN, enhancing situational awareness.
  • Robust Backend Processing Architecture: For deeper analysis, a backend system utilizing Node.js, MongoDB, and Redis is presented. This architecture efficiently collects, processes, and stores real-time and historical threat data, capable of handling 6,000 events per second on average, with peaks exceeding 10,000 events per second. Redis, in particular, is highlighted for its speed, managing over 400,000 requests per second for real-time counters.
  • Distributed Minion-Based Operations: A novel master-slave architecture, employing "minions" (demonstrated using low-cost Raspberry Pis running PwnPi), enables distributed tasks like port scanning and DNS resolution. This distributed approach overcomes the inherent unreliability and geographic limitations of single-server scanning, providing more comprehensive and accurate data.
  • Accelerated Port Scan Data Querying: The speakers demonstrate a custom web interface for querying aggregated port scan data that offers significantly faster response times compared to existing tools like Shodan, allowing for instant insights into global internet status and common misconfigurations (e.g., prevalence of Telnet over SSH, HTTP on port 80 over HTTPS on port 443).
  • Re-injection of Enriched Data: Results from minion operations (e.g., scan data) are re-injected back into the StreamForce platform, enriching existing event data and making newly derived intelligence available to all subscribers.

Technical Deep Dive

▶ Watch: Real-time WebGL globe visualizing botnet activity (31:00)

The technical foundation of StreamForce is built around a highly scalable and performant Complex Event Processor (CEP). At its core, it operates on a publish/subscribe model, where various data sources publish security events, and consumers subscribe to specific feeds via an API. All data exchange is standardized using JSON, ensuring ease of integration across diverse applications and backend systems. This end-to-end JSON approach means events are published in JSON, queried results are in JSON, and applications consume JSON.

StreamForce's performance is critical, boasting the ability to process approximately 50,000 real-life events per second on commodity hardware. The platform aggregates a wide array of security-relevant data, including feeds from social networks, honeypots, email traps, IP reputation systems, and sinkholes. The CyberFeed, a curated package of these feeds, consistently provides around 6,000 events per second to consumers, with peaks exceeding 10,000 events per second. Specific data volumes include 400 million botnet check-ins per day from sinkholes, 15-20 million email messages per day from traps, and tracking of roughly 20 million active malicious IP addresses for reputation. Beyond raw event delivery, the CEP offers advanced capabilities like querying, measuring trends, grouping, correlating, and deduplicating events to extract only the most relevant intelligence.

For persistent storage and deeper analysis of this high-volume data, a robust backend processing architecture is employed, primarily demonstrated for botnet activity. This system leverages Node.js as a server-side JavaScript engine, chosen for its prototyping speed, scalability, and extensive module ecosystem. Data persistence is handled by MongoDB, a NoSQL database, used for storing information for later analysis and maintaining a 24-hour window of "active" infected machines. For real-time counters and extremely fast lookups, Redis is utilized, capable of handling over 400,000 requests per second with low CPU usage (around 30% for a 10x increase in event volume).

The backend processing is orchestrated through three main components:

  • Collector: This component receives events from the StreamForce CEP. It distributes these events to workers, maintains the 24-hour active machine data in MongoDB by removing inactive machines, and decrements associated counters in Redis. It also can trigger warnings for changes in botnet status.
  • Worker: Upon receiving events, workers create new entries in MongoDB for previously unseen infected machines. They enrich existing machine entries with information about new trojans or domains associated with an IP address, and update the last communication timestamp.
  • Processor: This component aggregates information by various criteria such as botnet family, ASN, and country. It persists this aggregated data to MongoDB, allowing for historical queries (e.g., hourly infection counts for a specific country over the last week). To optimize MongoDB performance, entries for hourly aggregations are pre-allocated, preventing document growth during updates. The test environment for MongoDB manages over 3 million infected machines with about 2 gigabytes of data and stores aggregated information for over 100 days, totaling 18 million entries and roughly 6.5 gigabytes of data, or 56 megabytes per day.

A crucial aspect of enriching the raw stream data is the distributed "minion" architecture. This master-slave system is designed to perform computationally or bandwidth-intensive operations. Requesters (e.g., for DNS resolution, port scanning) submit tasks to a master, which then distributes the work to multiple "minions." These minions are modular, allowing for easy integration of new capabilities like DNS queries, data mining, or network scanning. The results of these operations are then re-injected back into the StreamForce platform, enriching the original event data and making the newly derived intelligence available to all subscribers.

For the port scanning component, the speakers highlight the unreliability of single-server scanning due to geographic blocking, timeouts, and network instability. To overcome this, the "minions" are deployed globally, often using low-cost hardware such as Raspberry Pis (Model B, 512MB RAM, Ethernet card) running a specialized Linux distribution like PwnPi (a version of Kali/BackTrack for Raspberry Pi) along with Node.js and custom minion scripts. This creates a cheap, distributed network of scanners. The team developed a custom scanner that directly injects packets and reads responses from TCP dump at the kernel level, similar in principle to ZMap but developed independently a year prior. This custom tool was necessary to achieve the desired speed and reliability for large-scale internet scanning.

Demo / Proof of Concept

▶ Watch: Distributed port scanning with Raspberry Pi minions (41:30)

The talk featured several compelling demonstrations illustrating the power and versatility of the StreamForce platform.

The first demonstration was a web dashboard presented by Tiago Balgan Henriques. This dashboard is a lightweight, static HTML application that connects directly to the StreamForce API. It requires no server-side application layer, making it highly portable. The dashboard dynamically generates various visualization charts, including bar charts, pie charts, and vector maps, in real-time. Examples included:

  • A global overview of botnet check-ins, showing total volumes (e.g., 400 million events per day).
  • Filtering the botnet check-in data specifically for Belgium, demonstrating how users can manipulate API queries via a user-friendly form to generate highly specific visualizations.
  • A pie chart illustrating the top ASNs associated with botnet infections, allowing for quick identification of problematic networks.

The dashboard provides both pre-defined templates for common security queries and an advanced form to simplify complex API interactions, making it accessible even for users without deep API knowledge.

Following this, Tiago Martins showcased an even more visually engaging application: an interactive WebGL globe. This 3D visualization tool renders botnet infection data in real-time on a spinning globe. Users can filter by specific botnet families to observe their geographic distribution and activity hotspots. The demo highlighted:

  • The globe displaying 3.7 million infected machines globally, with Zeus identified as the currently most active botnet.
  • Connections per second, providing a live pulse of botnet activity.
  • A beta version of the globe that includes HUD-like warnings appearing directly on the globe, such as "Puerto Rico has just been infected by Conficker.B at AS something," offering immediate alerts on emerging threats.

This globe is built using Node.js (as a proxy to protect the stream from direct browser access), jQuery, socket.io client, WebGL, and web workers for efficient geolocation rendering.

Finally, Tiago Martins presented a custom web interface designed for fast querying of port scan data. This tool was developed as a faster alternative to existing services like Shodan, which the speakers found too slow for their needs. The demo illustrated:

  • Instantaneous query results for broad searches, such as machines located in "country Portugal (PT)."
  • Rapid filtering for specific services, like "Telnet," demonstrating how quickly the system could retrieve and display relevant data from a massive dataset.
  • The ability to scroll through thousands of results in real-time with no slowdowns, emphasizing the optimized backend for data storage and retrieval.

This interface, backed by Node.js and MongoDB, effectively transforms raw port scan data into actionable intelligence, allowing users to quickly identify internet-wide trends and misconfigurations, such as the disproportionate presence of port 80 over 443, or Telnet over SSH.

Defensive Implications

▶ Watch: Q&A: How they achieve internet-scale data collection (48:30)

The StreamForce platform offers profound defensive implications for organizations and security professionals by providing unparalleled real-time threat intelligence and operational capabilities.

Firstly, access to the CyberFeed is a game-changer for proactive threat intelligence. Defenders can tap into real-time data on 400 million daily botnet check-ins, 15-20 million daily email trap messages, and the reputation status of 20 million malicious IP addresses. This allows for immediate identification of active botnet command-and-control (C2) infrastructure, phishing campaign URLs, and newly compromised or weaponized IP addresses, enabling faster blocking and mitigation efforts. Organizations can also create custom feeds via the API, tailoring threat intelligence to their specific risk profile or geographic footprint.

Secondly, the platform's real-time visualization tools (web dashboards, WebGL globe) provide enhanced situational awareness. Security operations centers (SOCs) can monitor global and localized threat landscapes dynamically, observing the spread of botnets or the emergence of new attack vectors as they happen. This intuitive visual representation helps analysts quickly grasp complex threat patterns and prioritize responses. The beta globe's warning system further aids in immediate threat notification, allowing for rapid investigation of new infections in specific regions or ASNs.

Thirdly, the robust backend processing and querying capabilities facilitate faster incident response and forensic analysis. The ability to quickly query historical and real-time data on infected machines, associated domains, and network ranges in MongoDB and Redis empowers defenders to understand the scope of an incident, identify affected assets, and trace the origins of an attack with high efficiency. The system's capacity to group and aggregate data by various parameters (botnet, country, ASN, time) makes it easier to conduct detailed statistical studies and track long-term trends.

Fourthly, the distributed "minion" architecture fundamentally changes how vulnerability assessments and threat hunting can be conducted. By deploying low-cost Raspberry Pis globally, defenders can perform reliable, large-scale port scanning and DNS resolutions that overcome the limitations of single-server scanning (e.g., ISP blocking, geographic network restrictions). This allows for a more comprehensive and accurate picture of an organization's external attack surface or the global internet's vulnerabilities. The re-injection of scan results back into the stream enriches the overall intelligence, providing context for observed threats.

Finally, the analysis of aggregated port scan data reveals widespread internet misconfigurations and vulnerabilities. The speakers highlighted the prevalence of Telnet over SSH and HTTP on port 80 over HTTPS on port 443. This insight allows defenders to identify common security weaknesses that adversaries exploit and to prioritize hardening efforts (e.g., migrating to secure protocols, closing unnecessary ports) across their own infrastructure and within their supply chains. The federated model for event sharing also promotes collective defense, allowing CERTs and ISPs to collaboratively identify and mitigate threats by pooling their intelligence.

Key Takeaways

  • StreamForce CEP for Real-time Security: StreamForce is a high-performance Complex Event Processor designed to handle massive volumes of diverse, volatile security events with near-zero latency, focusing on the "variety" and "velocity" of big data.
  • Rich & Actionable Threat Intelligence: The platform provides a comprehensive CyberFeed, including 400 million daily botnet check-ins, 15-20 million daily email trap messages, and tracking of 20 million malicious IP addresses, offering unparalleled real-time insights into global threats.
  • Scalable Backend Architecture: Leveraging Node.js, MongoDB, and Redis, the system efficiently collects, processes, and stores millions of events per second, with Redis achieving over 400,000 requests per second for real-time counters, enabling both immediate and historical analysis.
  • Distributed Global Operations with Minions: A modular master-slave "minion" architecture, implemented using low-cost Raspberry Pis, facilitates reliable, global distributed port scanning and data enrichment, effectively bypassing the limitations and biases of single-point scanning.
  • Intuitive Real-time Visualization & Rapid Querying: Dynamic web dashboards and an interactive WebGL globe provide immediate, visual situational awareness of global threat landscapes, complemented by a custom, high-speed querying system for port scan data that significantly outperforms existing tools.
  • Empowering Defensive and Highlighting Offensive Potential: StreamForce provides powerful tools for defenders to gain proactive threat intelligence and enhance incident response, while simultaneously demonstrating how similar capabilities could be leveraged by adversaries for automated, large-scale exploitation.

About the Speaker(s)

The talk was delivered by Tiago Balgan Henriques, Tiago Martins, and João Gouveia. João Gouveia is identified as the CTO of AnubisNetworks, the company behind the StreamForce platform. While specific titles for Tiago Balgan Henriques and Tiago Martins are not explicitly stated in the transcript, their contributions highlight their roles as key technical experts in the development and application of StreamForce. Tiago Balgan Henriques primarily focused on the StreamForce platform's core capabilities and the web dashboard demonstration. Tiago Martins delved into the backend processing architecture, the distributed "minion" system, and the advanced WebGL globe visualization, as well as the custom port scanning and querying tools. The speakers collaborated across different teams within AnubisNetworks to bring this comprehensive security intelligence platform to fruition.

Reviews

→ Top-rated talks at BruCON 0x05

All talks from BruCON 0x05