Building a Next-Gen Active Learning Cyber Defense System James Bower, August 22, 2023September 29, 2025 This post will outline my views on creating an “Active Learning Cyber Defense System.” The type of active learning defense system I am describing can make “Real-Time Security Decisions.” For clarification in this instance, “real-time” would be:Ingest –> Analyze –> Execute = (Under 1000ms) or under 1 second from start to finish. Let’s find out how I do this.OverviewConsider this a 30-thousand-foot view of the individual pieces and underlying technologies I’ve used to accomplish this. In order to complete this, I’m essentially creating a comprehensive cybersecurity AI solution for log analysis, anomaly detection, contextual interpretation, and decision intelligence to take action that requires a multi-faceted approach. The solution would harness advanced AI/ML techniques and enhanced data processing capabilities.The 2 Keys Needed to Make Real-Time DecisionsEvent-DrivenReducing the time from an event occurring to decision execution.Query-DrivenReduce the time from ingestion to query.Here’s a general outline to accomplish this:Primary GoalDetect anomalies within various logs and decide on the appropriate action to take and then take said action.Secondary GoalContinuously learn from new data, trends, and false positives/negatives to improve detection accuracy.Streaming Data Collection & IntegrationLog Aggregation:Implement a centralized log management solution that can handle various log sources: DNS, system, network, firewalls, routers, servers, applications, IoT devices, etc.Data Enrichment:Enrich log data with threat intelligence feeds, geolocation data, and other relevant data sources.Standardization:Convert logs into a consistent format, facilitating easier analysis.Underlying Technology:Apache KafkaEnsures that no events are missed or dropped due to TCP Back Pressure.Separate “Topics” for individual customers and/or different data source types, such as DNS, Syslog, etc.Apache AccumuloUsed for storage of data utilizing HDFS.Streaming Data PreprocessingNoise Reduction:Filter out benign, routine events that don’t represent any threat.Feature Extraction:Identify and extract relevant features from the logs that are crucial for anomaly detection. This could include but is not limited to:From the logs, extract valuable features like the frequency of a particular event, time stamps, origin of requests, etc.Underlying Technology:Apache SparkUsed for processing data and some baseline machine learning models.Contextual Anomaly DetectionBaselining:Establish normal behavioral patterns for users, applications, and devices.Use historical data to calculate baseline statistics for typical behavior for different metrics.Advanced Machine Learning Models:Statistical MethodsFor metrics with predictable patterns, use statistical thresholds (like 3σ) to detect anomalies.Machine Learning ModelsImplement unsupervised learning models such as clustering (like DBSCAN) or Autoencoders, Isolation Forest, and One-Class SVM for identifying events that deviate from the norm.Temporal Analysis:Identify trends and patterns over time to catch slow-burning threats or attacks that play out over extended periods.Underlying Technology:Apache LuceneProvides our real-time search.Contextual AnalysisFor every detected anomaly, gather contextual data to help in decision-making. This can involve the following.Threat Intelligence Integration:Match events against known threat indicators or adversaries’ tactics, techniques, and procedures (TTPs).Tracking the origin and understanding if it comes from a previously flagged IP.Checking if the anomaly coincides with any known vulnerability patches or system changes.User and Entity Behavior Analytics (UEBA):Gain insights into the typical behavior of users and entities and flag deviations.Correlation:Correlating the event with other events around the same time.Relate disparate events to recognize multi-stage attacks.Intelligent Decision Making & ActionScoring System:Assign risk scores to events based on severity, impact, and likelihood.Rules and Heuristic Engines:Have predefined rules for certain types of anomalies (e.g., if an anomaly originates from a blacklisted IP, block immediately).Decision Trees:Utilize decision trees or other decision-making algorithms to decide the most appropriate action (e.g., alert, block, ignore). Given the features and context of an anomaly, predict the most likely necessary action.Feedback Loop:Constantly incorporate feedback on the decisions. If a certain action resulted in a false positive, feed that information back into the system. Incorporate feedback from security analysts to refine the decision-making process continually.Response & AutomationAlerting:Notify security teams of high-risk events.Orchestration and Automation:Integrate with Security Orchestration, Automation, and Response (SOAR) platforms to take automatic actions like blocking IPs, disabling accounts, or isolating devices.Incident Response Integration:Automate the creation of incident response tickets and provide analysts with all the context they need to investigate further.Continuous Learning & ImprovementRetraining:Continually train the AI models with new data, especially as the company’s environment evolves.Transfer Learning:Incorporate knowledge from global threat intelligence databases or external sources to stay updated with the latest threat vectors.Tuning & Optimization:Regularly review and refine the AI’s parameters, thresholds, and decision-making criteria to ensure optimal performance.Monitoring & ReportingMetrics:Regularly evaluate the system’s performance using metrics like a Confusion Matrix to determine the system’s detection performance. Adjust the system based on these evaluations. For instance, if the false positive rate is high, adjusting thresholds or retraining models may be worthwhile.Dashboards:Create intuitive dashboards that display key metrics, high-risk events, and the AI’s decision-making rationale.Forensic Capabilities:Allow security analysts to dive deep into events, pulling up raw logs, related events, and historical data.Regulatory Compliance:Ensure the AI solution adheres to relevant regulatory requirements and can produce reports as needed for compliance checks.Scalability & EvolutionCloud-Native Design:Design the system to be scalable, taking advantage of cloud-native architectures and elastic resources.Incorporate New Technologies:Continually assess and integrate emerging AI/ML techniques and cybersecurity technologies.Open API Integration:Ensure the solution can integrate with new tools, platforms, or data sources via open APIs.Ethics & PrivacyData Privacy:Implement strict data privacy controls and ensure adherence to data protection regulations.Bias Minimization:Regularly test and refine the AI models to minimize any unintended biases in decision-making.ConclusionImplementing such an advanced cybersecurity AI solution would require collaboration between AI specialists, cybersecurity experts, and infrastructure architects. Regular testing, iteration, and feedback are crucial to ensure the system remains effective against evolving threats. Active Defense Decision Intelligence UEBA
UEBA Combine UEBA And ML To Prevent Supply Chain Attacks Now October 25, 2023October 25, 2023Could Supply Chain Attacks like Log4J have been prevented? If so, how? Well, that’s what I’m going to dive into today, and also announce the launch of a new project, DependencyCheck.ai. I had this idea a while back that if I combined both ML and UEBA (User Entity Based Analytics),… Read More
Decision Intelligence What is Artificial Decision Intelligence (ADI)? October 22, 2023October 22, 2023What is “Artificial Decision Intelligence?”, and how can it be applied? Artificial Decision Intelligence is made up of the following: Read More