Container Security Event Processing via eBPF Kernel Hooks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional security solutions in container virtualization environments fail to effectively recognize and manage container-specific malicious behaviors, such as container escape, due to their lack of specialization in addressing these threats.

Innovation Solution

A method and apparatus for processing security events in a container virtualization environment that collects and manages designated security events in the kernel space, using eBPF programs to execute kprobes and LSM hooks, allowing or blocking events based on predefined rules, and detecting privilege escalation and malicious files by comparing status values and hash values with reference values and blacklists.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional security solutions (IPS or EDR) are used in container virtualization environments, then general security coverage is provided, but container-specific malicious behaviors such as container escape cannot be effectively recognized or managed

Engineering Contradiction:
Improvesecurity effectivenessVSAvoidcontainer-specific security support
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent segments security event collection into different kernel spaces (host kernel space and container kernel space) and uses separate eBPF programs for different security scenarios. The security event collection module is divided into multiple sub-modules that collect different types of security events independently, allowing specialized handling of container-specific threats while maintaining general security coverage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces eBPF programs as an intermediary layer between the kernel and user space for security event collection. This intermediary enables specialized security monitoring without modifying the existing kernel structure or conventional security solutions, allowing container-specific security requirements to be met while maintaining compatibility with general security frameworks.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If security events are collected and monitored in real-time in container virtualization environments, then security incident detection capability is improved, but system complexity increases

Engineering Contradiction:
Improvesecurity event detection accuracyVSAvoidsecurity event collection system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent creates a universal security event collection framework using eBPF programs that can handle multiple security scenarios (container escape, privilege escalation, malicious file execution) through a single unified architecture. The security event collection module serves multiple functions including event collection, filtering, and forwarding, reducing the need for separate specialized systems for each security concern.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The eBPF-based security event collection system operates autonomously in the kernel space, automatically collecting and processing security events without requiring external intervention or complex configuration. The system self-manages event filtering, aggregation, and forwarding to user space, reducing operational complexity while maintaining high detection accuracy.

Inventive Principle:
Principle #25Self-service

3Reliability

If eBPF programs with kprobes and LSM hooks are deployed for security monitoring, then container escape detection capability is enhanced, but kernel space resource consumption increases

Engineering Contradiction:
Improvecontainer escape detectionVSAvoidkernel space resource consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent implements partial monitoring by selectively applying eBPF programs only to critical security functions and high-risk container processes. Instead of monitoring all kernel operations uniformly, the system focuses resources on specific security-critical paths (e.g., privilege escalation syscalls, container namespace operations), reducing overall resource consumption while maintaining effective container escape detection.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent dynamically adjusts monitoring parameters and eBPF program execution based on system conditions and security threats. The system can modify collection frequency, filtering thresholds, and eBPF program activation states to optimize resource usage, reducing kernel space overhead during normal operation while maintaining high detection capability when threats are detected.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20230376591A1Method and apparatus for processing security events in container virtualization environment
Publication Date: 2023.11.23 ELECTRONICS & TELECOMM RES INST
  • US20230376591A1 patent drawing
  • US20230376591A1 patent drawing
  • US20230376591A1 patent drawing

AI summary

Disclosed herein is a method for processing a security event in a container virtualization environment. The method may include collecting designated security events in a kernel space, storing the collected security events in a security event storage module in real time, and providing a security manager with the security event corresponding to a query request from a security event management module, among the security events stored in the security event storage module.