Skip to content

Lesson 09 — Runtime Security

By the end of this lesson, you will be able to:

  • Understand what Runtime Security is
  • Learn why runtime protection is essential in Kubernetes
  • Understand common runtime threats
  • Learn how runtime detection works
  • Explore enterprise runtime security tools
  • Implement Runtime Security in Amazon EKS
  • Apply enterprise monitoring and incident response best practices

Security does not end when a Pod is successfully deployed.

Even after an application passes:

  • Image scanning
  • Pod Security Admission
  • Security Context validation
  • CI/CD security checks

It may still become compromised due to:

  • Newly discovered vulnerabilities
  • Application exploits
  • Stolen credentials
  • Insider threats
  • Zero-day attacks
  • Misconfigured applications

Runtime Security continuously monitors workloads while they are running, helping organizations detect and respond to suspicious behaviour before attackers can compromise the cluster.


Runtime Security is the continuous monitoring of containers, Pods and Kubernetes nodes while applications are running.

Instead of checking workloads only during deployment, Runtime Security focuses on:

  • Process execution
  • File access
  • Network activity
  • System calls
  • Privilege escalation
  • Container behaviour

Its goal is to identify malicious or unexpected activity as quickly as possible.


Build
Image Scan
Deploy
Pod Security Admission
Container Starts
Runtime Security Monitoring
Detect
Respond

Runtime Security begins after the container starts executing.


Preventive controls cannot stop every attack.

For example:

Secure Image
Zero-Day Vulnerability
Application Exploited
Runtime Attack

Runtime Security provides visibility into attacks that occur after deployment.


Cloud Security Engineers monitor for:

  • Container escape attempts
  • Privilege escalation
  • Reverse shells
  • Cryptocurrency miners
  • Malware execution
  • Suspicious processes
  • Unexpected network connections
  • Unauthorized file modifications
  • Secret theft
  • Lateral movement

These activities often indicate an active compromise.


Runtime Security continuously observes container activity.

Container
Processes
Files
Network
System Calls
Security Engine

Any suspicious behaviour can trigger an alert or automated response.


One important capability is process monitoring.

Example:

Expected Process
Java Application
Normal

Unexpected process:

Java Application
Bash Shell
Potential Compromise

If a web application suddenly launches a shell, it may indicate remote code execution.


Runtime Security also monitors changes to files.

Example:

Application
Attempts to Modify
/bin
Alert Generated

Unexpected modifications may indicate malware or persistence attempts.


Runtime monitoring observes network communication.

Examples include:

  • Outbound connections
  • Unknown IP addresses
  • Suspicious ports
  • Command-and-Control (C2) traffic
  • Lateral movement between Pods

Unexpected network activity is often one of the earliest indicators of compromise.


Containers interact with the Linux kernel through system calls (syscalls).

Application
System Call
Linux Kernel

Runtime Security solutions analyse system calls to detect malicious behaviour.

Examples include:

  • Mount operations
  • Privilege escalation attempts
  • Namespace changes
  • Process injection
  • Kernel exploitation

Several enterprise tools provide runtime protection.

Tool Purpose
Falco Runtime threat detection
Amazon GuardDuty for EKS Managed threat detection
Sysdig Secure Runtime monitoring and compliance
Aqua Security Container runtime protection
Prisma Cloud Cloud-native runtime security
Microsoft Defender for Containers Runtime threat detection
Red Hat Advanced Cluster Security (ACS) Kubernetes security monitoring

These tools monitor workloads continuously and integrate with enterprise security platforms.


Falco is one of the most widely used open-source runtime security tools.

It monitors:

  • Linux system calls
  • Process execution
  • Container activity
  • Kubernetes events

Example detection:

Container
Unexpected Shell
Falco Rule Triggered
Security Alert

Amazon GuardDuty extends managed threat detection to Kubernetes.

It detects:

  • Suspicious API activity
  • Compromised Pods
  • Cryptocurrency mining
  • Malicious container behaviour
  • Kubernetes audit log anomalies

GuardDuty integrates with AWS Security Hub and Amazon EventBridge for automated response workflows.


Developer
CI/CD Pipeline
Amazon EKS
Running Containers
Runtime Security Platform
Alerts
SOC Team
Incident Response

Runtime monitoring becomes part of the organization’s Security Operations Centre (SOC).


Application
Unexpected Behaviour
Runtime Detection
Alert
SOC Investigation
Containment
Recovery

Detection should be followed by a rapid response process.


Enterprise security teams may respond by:

  • Generating alerts
  • Capturing forensic evidence
  • Isolating Pods
  • Blocking network communication
  • Killing malicious processes
  • Terminating compromised containers
  • Rebuilding workloads
  • Creating incident tickets

Rapid containment minimizes business impact.


Developer
Amazon EKS
Pods
Runtime Security Agent
CloudWatch
GuardDuty
Security Hub
SOC Dashboard

Security events can be centralized for investigation and response.


A healthcare provider hosts patient management systems on Amazon EKS.

During normal operations, one application suddenly:

  • Launches /bin/bash
  • Connects to an unknown external IP address
  • Downloads an executable
  • Attempts to modify system binaries

Falco immediately detects the unexpected shell and file modification.

Amazon GuardDuty identifies suspicious outbound network activity.

Amazon EventBridge triggers an automated workflow that:

  • Isolates the Pod
  • Notifies the SOC
  • Creates an incident ticket
  • Preserves logs for forensic analysis

The compromised workload is replaced automatically using a clean container image.


Cloud Security Engineers frequently identify:

  • Missing runtime monitoring
  • Containers executing unexpected processes
  • Unapproved outbound connections
  • Container escape attempts
  • Privilege escalation
  • Cryptomining malware
  • Weak incident response procedures
  • Missing runtime alerts
  • Unmonitored Kubernetes audit events
  • Lack of forensic logging

Without runtime monitoring, many attacks remain undetected.


Security teams should monitor:

  • Process execution
  • Container lifecycle events
  • System calls
  • Network connections
  • File modifications
  • Privilege escalation attempts
  • Kubernetes audit logs
  • GuardDuty findings
  • Falco alerts
  • Node security events

Monitoring should feed directly into the SOC for rapid investigation.


A recommended rollout:

Step 1
Enable Kubernetes Audit Logs
Step 2
Deploy Runtime Security Platform
Step 3
Configure Detection Rules
Step 4
Integrate with CloudWatch
Step 5
Integrate with GuardDuty
Step 6
Configure Security Hub
Step 7
Test Incident Response
Step 8
Continuously Tune Detection Rules

This phased approach improves detection capabilities while reducing false positives.


As a Kubernetes Security Engineer:

  • Enable Runtime Security for every production cluster.
  • Continuously monitor process execution and network activity.
  • Detect unexpected shell access inside containers.
  • Monitor file integrity and system calls.
  • Integrate runtime alerts with the SOC.
  • Use Amazon GuardDuty for EKS and Security Hub where appropriate.
  • Deploy Falco or another runtime detection platform.
  • Automate incident response using EventBridge and Lambda where appropriate.
  • Regularly review and tune detection rules.
  • Combine Runtime Security with preventive controls such as Security Contexts, Pod Security Standards and image scanning.

Runtime Security should complement—not replace—preventive security controls.


An online banking application is deployed on Amazon EKS.

An attacker exploits a newly discovered vulnerability in a web service.

After gaining remote code execution, the attacker:

  • Starts a Bash shell
  • Downloads a cryptocurrency miner
  • Attempts to contact an external command-and-control server
  • Tries to modify application files

The organization’s Runtime Security platform detects:

  • Unexpected shell execution
  • Suspicious outbound network traffic
  • File modification attempts

An automated response workflow immediately:

  • Isolates the affected Pod
  • Terminates the compromised container
  • Creates an incident in the SOC platform
  • Preserves audit logs and runtime events
  • Deploys a clean replacement Pod

The attack is contained before it spreads to other workloads.


After completing this lesson, you should understand:

  • What Runtime Security is
  • Why runtime monitoring is essential
  • Common runtime threats
  • Process, file, network and system call monitoring
  • Enterprise runtime security tools
  • Amazon EKS runtime monitoring architecture
  • Incident response and monitoring best practices

Runtime Security provides continuous visibility into running Kubernetes workloads. By monitoring processes, system calls, file activity and network behaviour, organizations can rapidly detect and respond to attacks that bypass preventive controls. Combined with Security Contexts, Pod Security Standards and image scanning, Runtime Security forms a critical layer in a defence-in-depth strategy for Amazon EKS.


What is the primary purpose of Runtime Security?

  • A. Build container images
  • B. Continuously monitor running workloads for suspicious behaviour
  • C. Schedule Pods onto Nodes
  • D. Configure Kubernetes networking

Answer: B


Which of the following is an example of suspicious runtime behaviour?

  • A. A web application responding to HTTP requests
  • B. A container unexpectedly launching a Bash shell
  • C. A Pod starting successfully
  • D. A Deployment scaling from two to three replicas

Answer: B


Which open-source tool is widely used for Kubernetes runtime threat detection?

  • A. Helm
  • B. Falco
  • C. Prometheus
  • D. CoreDNS

Answer: B


Which AWS service provides managed threat detection for Amazon EKS?

  • A. Amazon Route 53
  • B. Amazon GuardDuty
  • C. Amazon ECR
  • D. AWS CloudFormation

Answer: B


Which combination represents enterprise best practice?

  • A. Rely only on image scanning before deployment.
  • B. Continuously monitor runtime activity, integrate alerts with the SOC, automate incident response and regularly tune detection rules.
  • C. Disable Kubernetes audit logs to improve performance.
  • D. Allow unrestricted shell access inside production containers.

Answer: B


In the next lesson, you will learn about Enterprise Workload Hardening, exploring how organizations combine Security Contexts, Pod Security Standards, Runtime Security, Resource Governance and policy enforcement into a comprehensive workload hardening strategy for Amazon EKS.

➡️ Next Lesson: Lesson 10 — Enterprise Workload Hardening