Kubernetes Anomaly Detection via Role-Based ML

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing network security solutions for Kubernetes clusters rely on simple static policies, which are prone to false positives and fail to address unknown threats or vulnerabilities, thereby lacking confidence in proactive action.

Innovation Solution

A machine-learning based approach that learns normal behavior for various user roles within a Kubernetes cluster using data from the Kubernetes API server audit log augmented with external data, enabling proactive action based on anomaly detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If simple static policies are used for security monitoring, then device complexity is reduced, but reliability of threat detection deteriorates due to false positives and inability to address unknown threats

Engineering Contradiction:
Improvethreat detection reliabilityVSAvoidsecurity system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent transforms static security policies into dynamic, adaptive policies by implementing a machine learning model that continuously learns from audit logs and automatically updates anomaly detection thresholds. The system evolves its understanding of normal behavior patterns over time, allowing it to adapt to new threats and reduce false positives without requiring manual policy updates.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The security system performs self-learning and self-adjustment by automatically analyzing audit logs, identifying normal behavior patterns, and updating anomaly detection criteria without external intervention. The machine learning model continuously trains on incoming data, enabling the system to improve its detection capabilities autonomously while maintaining operational simplicity.

Inventive Principle:
Principle #25Self-service

2Measurement precision

If machine-learning based anomaly detection is implemented, then reliability of suspicious activity detection improves, but device complexity increases due to ML model training and data processing requirements

Engineering Contradiction:
Improveanomaly detection precisionVSAvoidML system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the security monitoring system into distinct functional modules: audit log collection, data preprocessing, machine learning model training, anomaly detection, and alert generation. This modular architecture allows each component to be optimized independently and facilitates easier maintenance and deployment while achieving high detection precision.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces an intermediary layer between raw audit logs and security decisions, consisting of feature extraction and preprocessing modules. This intermediary transforms complex, unstructured log data into standardized features that the machine learning model can efficiently process, reducing the computational burden while maintaining high detection accuracy.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If audit logs are augmented with external data such as user roles and anomaly thresholds, then measurement precision of behavior analysis improves, but loss of information processing increases due to additional data handling requirements

Engineering Contradiction:
Improvebehavior analysis precisionVSAvoiddata processing overhead
Core Design Contradiction:
Measurement precisionVSLoss of information

Solution Approach 1:

The patent applies local quality by selectively augmenting audit logs with external data only where relevant to specific user roles and contexts. Rather than uniformly adding all possible external data, the system tailors the augmentation to each user's role, resource access patterns, and historical behavior, optimizing the signal-to-noise ratio and reducing unnecessary data processing overhead.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS20250193220A1Proactively taking action responsive to events within a cluster based on a range of normal behavior learned for various user roles
Publication Date: 2025.06.12 NETAPP INC
  • US20250193220A1 patent drawing
  • US20250193220A1 patent drawing
  • US20250193220A1 patent drawing

AI summary

Systems and methods are provided for learning normal behavior for user roles of an application running within a cluster of container orchestration platform and based thereon proactively taking action responsive to suspicious events. According to one embodiment, an event data stream is created by an API server of the cluster. The data for each event includes information regarding a request made to an API exposed by the API server with which the event is associated and a user of the application by which the event was initiated. The data is augmented with a role associated with the user and an anomaly threshold for the role. Normal behavior is learned by an ML algorithm of respective user roles by processing the augmented data. When an anomaly score associated with a particular event is output by the ML algorithm that exceeds the anomaly threshold, a predefined or configurable action may be triggered.