Data transforming your sewage into signatures - lessons learnt from building a hybrid honeypot named Amber
Adam Schoeman (Security Analyst · SensePost)
BruCON 0x06 · Day 2
Overview
In this insightful BruCON talk, Adam Schoeman, a Security Analyst at SensePost, introduces Amber, a novel hybrid honeypot designed to bridge the gap between traditional signature-based security controls and the dynamic, presence-based detection offered by honeypots. Schoeman’s presentation, titled "Data transforming your sewage into signatures," delves into the limitations of existing security paradigms, particularly the ineffectiveness of generic IP-based threat feeds, and proposes a more relevant and actionable approach to threat intelligence.

Key moments
- 4:00 Traditional security: Decision Through Detection (DTD) model
- 6:00 Honeypots: Decision Through Presence (DTP) model
- 15:40 Cost analysis: DTD (Tony Montana) vs DTP (Patrick Jane)
- 24:40 Introducing Amber: A hybrid honeypot security model
- 31:40 Disproving IP-based threat feeds: The 'threat tsunami' failure
- 35:40 Transforming data: Geolocating IPs for broader insights
- 41:00 Port-level analysis: Tailoring signatures to network specifics
- 53:00 Q&A: The debate on geolocation vs. IP reputation
Data transforming your sewage into signatures - lessons learnt from building a hybrid honeypot named Amber
Speakers: Adam Schoeman, Security Analyst, SensePost
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=M_BppG-wXC8
Overview
In this insightful BruCON talk, Adam Schoeman, a Security Analyst at SensePost, introduces Amber, a novel hybrid honeypot designed to bridge the gap between traditional signature-based security controls and the dynamic, presence-based detection offered by honeypots. Schoeman’s presentation, titled "Data transforming your sewage into signatures," delves into the limitations of existing security paradigms, particularly the ineffectiveness of generic IP-based threat feeds, and proposes a more relevant and actionable approach to threat intelligence.
The core of Schoeman’s work lies in demonstrating how raw, seemingly disparate security data, often dismissed as "sewage," can be transformed through contextual analysis into highly specific and actionable signatures. By combining the efficient discovery capabilities of honeypots with the robust actioning mechanisms of detection systems, Amber aims to provide defenders with real-time, network-specific insights. This approach empowers organizations to move beyond static, generalized threat intelligence and build security controls that are dynamically informed by their unique threat landscape.
This talk is particularly relevant for blue teams, incident responders, and security architects grappling with alert fatigue and the challenge of deriving actionable intelligence from a deluge of security data. Schoeman’s journey, marked by both initial hypotheses and unexpected findings, underscores the importance of empirical research and adaptive strategies in the ever-evolving field of cybersecurity, offering a practical framework for enhancing defensive posture through intelligent data transformation.
Background
▶ Watch: Traditional security: Decision Through Detection (DTD) model (4:00)
Schoeman begins by dissecting the fundamental models underpinning most security controls: Decision Through Detection (DTD) and Decision Through Presence (DTP). The DTD model, exemplified by antivirus (AV), Intrusion Detection Systems (IDS), Intrusion Prevention Systems (IPS), and firewalls, operates on the principle of known malicious patterns. These systems are configured with signatures – predefined rules or indicators of compromise – and then act (block, quarantine, alert) when a match is found. This model excels in its "action phase," where decisions are rapidly executed based on established research, making it highly scalable and cost-effective for widespread deployment. Schoeman likens this to Tony Montana's M-16 prowess: a lot of upfront work to define targets, then efficient, no-thought-process action.
Conversely, the DTP model is primarily embodied by honeypots. These systems are deployed in unused IP space, deliberately exposing services to attract attackers. The fundamental assumption is that anything interacting with a honeypot should not be, thus its mere "presence" indicates malicious intent. While honeypots are excellent at the "discovery phase," revealing unknown threats and attacker methodologies, they traditionally struggle with scaling the "action phase." Each interaction requires costly, often human-intensive research to understand its significance, making it expensive and difficult to automate. Schoeman draws an analogy to Patrick Jane from The Mentalist: brilliant at discovery and reading situations, but hesitant when direct action is required.
The history of honeypots dates back to Cliff Stoll's "The Cuckoo's Egg" (1991), where a bogus system was used to manually track an attacker exploiting a sendmail vulnerability. The first commercial honeypot, Network Associates' CyberCop Sting, emerged in 1998, marketed as an emulation system to trap attackers. Fred Cohen's Deception Toolkit (1999) provided an open-source alternative, fostering community engagement. The most significant push came from Lance Spitzner's Honeynet Project (1999), which has since become a cornerstone for honeypot research.
Honeypots are further categorized by their interaction level:
- Low interaction honeypots (e.g., Kippo for SSH, old spam relays) emulate basic services without a full operating system stack, primarily collecting login attempts or spam.
- High interaction honeypots (e.g., Sebek, now Qubec) run on real virtual machines with full TCP/OS stacks, offering a complete environment for attackers but requiring more resources and posing higher risk.
- Medium interaction honeypots (or "goal-focused" honeypots like Trigona) strike a balance, providing enough complexity for specific objectives, such as capturing malware payloads from botnets, without the overhead of a full VM.
- Other related concepts include honey tokens (valueless data designed to be alluring, like a "director salaries" database table or fake credit card numbers) and tar pit honeypots (e.g., Labrea, designed to slow down worms like Code Red by responding slowly, effectively trapping them).
The problem Schoeman identifies is that while both DTD and DTP models have strengths, neither perfectly addresses the need for scalable, real-time, and actionable threat intelligence. DTD requires costly upfront research for generalized signatures, while DTP provides raw, specific data but struggles with efficient analysis and action. The talk posits that a hybrid approach, combining the best of both worlds, could offer a superior security posture.
Key Findings
▶ Watch: Cost analysis: DTD (Tony Montana) vs DTP (Patrick Jane) (15:40)
Adam Schoeman's research with Amber led to several pivotal findings that challenge conventional wisdom in threat intelligence and honeypot deployment:
- Feasibility of a Hybrid Security Model: The primary finding is that a hybrid security model, effectively combining the efficient discovery phase of a presence-based honeypot with the robust action phase of a detection-based system, is not only possible but also functionally effective. Amber demonstrated that a simple honeypot could identify malicious activity, and this intelligence could then be used to inform upstream network enforcers (like firewalls) to block further attacks.
- Ineffectiveness of Generic IP-Based Threat Feeds: A significant and disheartening discovery was the extremely low correlation rate of raw IP addresses across geographically distributed honeypots. Over nine months, out of 14,000 unique IPs collected across South African, German, and American nodes, only four appeared in all three. Furthermore, correlating this data with a large, external threat feed like OpenBL.org yielded a zero percent correlation. This strongly suggests that blindly relying on generic IP-based threat feeds for blocking or alerting is largely a waste of resources due to their lack of relevance to specific network contexts.
- Value in Data Transformation, Not Raw Data: The raw IP addresses and destination ports initially collected by Amber provided little actionable intelligence. The true value emerged only when this "sewage" data was "transformed" through aggregation and contextualization. By geolocating IPs to countries and then analyzing port distribution per country, Schoeman was able to uncover meaningful patterns and develop more nuanced threat indicators.
- Localized Threat Intelligence is Superior: The analysis revealed distinct attack patterns for each honeypot node. For example, the American node saw predominantly Taiwanese and American traffic targeting RPC ports, while the South African and German nodes observed significant Chinese traffic, but with different port distributions (RDP for South Africa, RDP/RPC split for Germany). This highlights that threat landscapes are localized, and building custom tools tailored to an organization's specific network environment yields far more relevant and actionable intelligence than generalized, off-the-shelf feeds.
- Dynamic Signature Augmentation: The transformed data (e.g., country-port combinations) can be used to dynamically adjust the weighting or thresholding of existing signature-based controls. Instead of hard blocks, this intelligence can make existing systems like Snort or SIEMs more sensitive to specific traffic patterns observed as malicious on the local honeypot, improving their accuracy and relevance.
Technical Deep Dive
▶ Watch: Disproving IP-based threat feeds: The 'threat tsunami' failure (31:40)
The technical implementation of Amber focused on simplicity and efficiency, adhering to Schoeman's "duct tape coding" philosophy. The objective was to build a system that could effectively execute the hybrid security model: leveraging DTP for discovery and DTD for action.
Amber's Core Architecture:
The honeypot itself was designed to be exceedingly simple. It comprised a small Pearl script that opened listening sockets on a set of common, typically vulnerable ports: 135 (RPC), 139 (NetBIOS Session Service), 3389 (Remote Desktop Protocol - RDP), 445 (SMB), 443 (HTTPS), and 80 (HTTP). The script's sole purpose in the discovery phase was to log the source IP address, destination port, and timestamp of any incoming connection. This minimal data collection was crucial for maintaining a low-interaction profile, reducing the complexity and risk associated with a full-stack honeypot.
To enhance its resilience and prevent simple exploitation, Amber incorporated basic anti-spoofing controls:
- It only accepted TCP connections, discarding UDP traffic.
- SYN cookies were implemented to mitigate SYN flood attacks.
- Rate limiting was applied to prevent brute-forcing of SYN cookies or other connection attempts.
In the action phase, the design principle was to immediately feed identified malicious IP addresses to an upstream enforcer, specifically a firewall. This direct integration meant that any IP address detected by the honeypot (sitting on unused IP space, therefore inherently suspicious) would be automatically blocked from accessing any other network assets. This mechanism effectively combined the immediate, low-cost discovery of a honeypot with the high-efficiency actioning of a firewall.
Proof of Concept and Validation:
A significant challenge was testing this model in a production environment without risking interference. Schoeman devised an ancillary system for validation:
- Packet Capture Node: A dedicated node was set up with one port connected to the Amber honeypot to receive the detected malicious IP addresses.
- Wiretap and Span Port: This node also had a wiretap connected to a span port at the root level of the network segment. This allowed it to capture all traffic (pcap) traversing the entire segment.
- Data Volume and Analysis Challenges: The packet capture generated an immense volume of data, around 200 GB per day. Analyzing this with traditional tools proved difficult. Wireshark, while excellent for manual inspection, was "really shitty" for mass packet analysis due to its single-threaded nature and limitations on conditional filters (a maximum of 5,000 conditional loops before failing).
- Custom Tooling: To overcome Wireshark's limitations, Schoeman developed a Python script for parallel processing. This script would launch multiple Wireshark instances against different pcap files, effectively distributing the analysis workload and recycling processes as files were completed. This brought the analysis time down to a manageable level (less than 24 hours for a day's worth of traffic).
Validation Results:
The validation process involved taking the IPs identified by Amber and checking if they subsequently attempted to access other legitimate systems on the network segment within the pcap data. The results were compelling: for every IP address that the honeypot captured, it was observed attempting to access other systems on the network between six and seven additional times. This confirmed that the hybrid model was effective; if a firewall had been configured to block these IPs immediately upon honeypot detection, it would have prevented an average of 6-7 subsequent malicious accesses per detected IP, significantly reducing the "malicious noise" on the network.
Geographic Distribution and Correlation:
Schoeman then expanded Amber's deployment to three nodes: South Africa, Germany, and the USA, collecting data for nine months.
- South Africa: 2,800 unique IPs
- Germany: 1,100 unique IPs
- USA: 10,000 unique IPs
The initial hypothesis of a "threat tsunami" – seeing the same IPs rolling across time zones – was disproven. Only four IP addresses showed up across all three nodes out of a total of approximately 14,000 unique IPs. Furthermore, correlating this dataset with a 360-day list from OpenBL.org (a known threat intelligence source) yielded zero correlation. This starkly highlighted the limited utility of raw, generic IP-based threat feeds.
Data Transformation for Actionable Intelligence:
Faced with this lack of correlation, Schoeman shifted focus to transforming the raw data:
- Geolocation: IP addresses were geolocated to their respective countries (achieving ~99% accuracy at the country level). This grouped the "sewage" into broader, more manageable categories.
- Scoring and Weighting: By combining the country data across all nodes and assigning arbitrary scores based on prevalence, Schoeman created a "danger score" for each country. For example, China, being top in two nodes and middle in another, accumulated a high score.
- Port Distribution Analysis: Overlaying the destination port data onto the geolocated country data revealed specific attack patterns.
- South Africa: ~70% of Chinese traffic targeted port 3389 (RDP).
- Germany: Chinese traffic was split almost evenly between 3389 (RDP) and 445 (SMB/RPC).
- USA: Predominantly Taiwanese and American traffic, mostly targeting RPC ports.
This level of detail allowed for dynamic, localized signature augmentation. Instead of a blanket block, an organization could use this intelligence to, for instance, increase the alert threshold or suspiciousness score for RDP traffic originating from China on their local SIEM or Snort rules, making their existing DTD controls more intelligent and relevant to observed threats. This transformation of raw data into contextualized, actionable insights formed the cornerstone of Amber's value proposition.
Demo / Proof of Concept
▶ Watch: Transforming data: Geolocating IPs for broader insights (35:40)
While the presentation did not feature a live, interactive demonstration, Adam Schoeman thoroughly detailed the Proof of Concept (PoC) and validation process for the Amber hybrid honeypot model. This involved a rigorous testing methodology designed to confirm the model's effectiveness in identifying and mitigating malicious network activity.
The PoC's primary goal was to validate that the simple Amber honeypot, acting as a Decision Through Presence (DTP) discovery mechanism, could generate intelligence that, when fed into a Decision Through Detection (DTD) action system (like a firewall), would demonstrably prevent subsequent attacks.
The setup for this validation included:
- Amber Honeypot Deployment: A basic Pearl script-based honeypot was deployed, listening on common ports (135, 139, 3389, 445, 443, 80) and logging source IP, destination port, and timestamp. It incorporated anti-spoofing measures such as TCP-only connections, SYN cookies, and rate limiting.
- Ancillary Packet Capture Node: To simulate the firewall's blocking action without impacting a live production network, a separate node was used. This node received the list of suspicious IP addresses from Amber. Crucially, it was connected to a span port on the network's root switch, allowing it to capture all network traffic (pcap) across the segment. This setup effectively created a "virtual firewall" for analysis.
- Data Analysis Pipeline: The captured pcap data, often exceeding 200 GB per day, posed a significant analysis challenge. Standard tools like Wireshark proved inadequate due to performance limitations and a cap on conditional filters (5,000). Schoeman developed custom Python scripts to parallelize Wireshark instances, enabling efficient processing of the large datasets.
- Validation Logic: The core of the PoC involved correlating the IP addresses identified by the Amber honeypot with the full pcap data. The objective was to determine if an IP that first interacted with the honeypot (indicating malicious intent) subsequently attempted to connect to other legitimate, non-honeypot systems on the network.
Results of the PoC:
The validation was successful. Schoeman reported that for every IP address observed interacting with the Amber honeypot, that same IP was detected attempting to access other systems on the network an average of six to seven additional times. This empirical evidence provided a strong indication that if Amber's intelligence were directly integrated with an active firewall, these subsequent malicious attempts could have been proactively blocked. This outcome allowed Schoeman to "declare victory" on the initial phase of the project, confirming the functional viability of the hybrid model for reducing malicious network noise.
Defensive Implications
▶ Watch: Q&A: The debate on geolocation vs. IP reputation (53:00)
Adam Schoeman's work with Amber offers several critical defensive implications for organizations seeking to enhance their security posture:
- Embrace Hybrid Security Models: Defenders should move beyond the rigid separation of DTD and DTP controls. By integrating the efficient discovery of low-interaction honeypots with the rapid actioning capabilities of existing detection systems (like firewalls, IPS, or SIEMs), organizations can create a more dynamic and responsive defense. This means setting up simple honeypots to identify early reconnaissance or opportunistic scanning and immediately feeding those suspicious IPs to network enforcement points.
- Re-evaluate Generic IP-Based Threat Feeds: The research conclusively showed that raw IP-based threat feeds, especially those not contextualized to an organization's specific environment, have very limited value (demonstrated by the 0-3% correlation rates). Defenders should question the efficacy of simply plugging in such feeds without deeper analysis. Instead of relying on broad blacklists, focus should shift to generating or consuming threat intelligence that is highly relevant to the organization's unique attack surface and observed threats.
- Prioritize Data Transformation for Actionable Intelligence: Raw security data (IPs, ports, timestamps) often resembles "sewage" without context. Organizations should invest in tools and processes to transform this data. This includes:
- Geolocation: Aggregating IPs by country provides a higher-level view of threat origins.
- Port Distribution Analysis: Understanding which ports are being targeted from specific geolocations adds critical context. For example, if honeypots consistently show RDP (3389) traffic from China, this insight is far more valuable than just "China is attacking."
- Scoring and Weighting: Develop internal scoring mechanisms to assign risk levels to specific country-port combinations based on observed malicious activity on honeypots.
- Implement Dynamic Signature Augmentation: The transformed data from honeypots can be used to dynamically adjust the sensitivity and weighting of existing signature-based controls. Instead of hard blocking, this intelligence can inform Snort rules or SIEM correlation rules to:
- Increase the threat score of connections from certain countries or to specific ports.
- Elevate alerts for traffic patterns that align with observed honeypot interactions (e.g., "if traffic is from China AND targeting RDP, add +2.5 to the alert threshold").
This approach allows defenders to fine-tune their existing systems for more relevant alerts and proactive blocking without creating excessive false positives.
- Build Custom, Network-Specific Threat Intelligence: The varying attack patterns observed across different geographic nodes emphasize that threat intelligence is highly localized. Organizations should consider building their own low-interaction honeypots and analysis pipelines to generate intelligence directly relevant to their specific network environment. This "homegrown" intelligence is inherently more actionable because it reflects actual threats targeting their assets, eliminating the ambiguity often associated with generic feeds.
- Focus on Information Gathering Prevention: While Amber may not stop advanced, targeted attacks that bypass simple listening sockets, it excels at identifying and blocking early-stage information gathering and opportunistic scanning. By quickly cutting off these initial probes, defenders can reduce the "malicious noise" on their network, allowing security teams to focus on more sophisticated threats.
Key Takeaways
- Honeypots are invaluable yet underutilized tools: Their unique presence-based detection offers a different, complementary perspective to traditional signature-based controls, providing insights into unknown threats and attacker reconnaissance.
- Generic IP-based threat feeds are largely ineffective: Relying solely on raw IP address blacklists from external sources yields minimal correlation and value; focus on contextualized, localized intelligence.
- Transforming raw data unlocks actionable intelligence: Aggregating and analyzing data by factors like geolocation and targeted ports turns seemingly useless "sewage" into specific, relevant insights for dynamic defense.
- A hybrid security model is functional and effective: Combining the efficient discovery of honeypots with the robust actioning of detection systems (e.g., feeding honeypot-identified IPs to firewalls) significantly enhances threat mitigation.
- Tailoring security tools to your network is crucial: Building custom honeypots and analysis pipelines generates highly relevant threat intelligence specific to an organization's unique attack patterns, making it inherently more actionable.
- Challenge assumptions and avoid hubris in security research: Initial hypotheses, like the "threat tsunami," can be disproven; embracing empirical data and adapting research directions is key to meaningful findings.
About the Speaker(s)
Adam Schoeman is a Security Analyst specializing in intelligence at SensePost, a prominent security firm based in South Africa. With approximately seven years of experience in information security, Adam brings a diverse professional background to his role, having previously explored careers as a musician and an investment banker. He holds a Master's degree in Computer Science and Information Security, which underpins his analytical approach to cybersecurity challenges. Adam identifies himself as a defensive security enthusiast, focusing on areas such as security intelligence, incident response, and all aspects of "blue team" operations. He can be reached on Twitter (@adamschoeman) and maintains a blog, though he notes it is updated infrequently.