CLOUD CONCEPT

Runtime Threat Detection

Runtime Threat Detection identifies potentially malicious activity by observing workloads and their behavior while they execute.

Cloud Concepts Hub →

What is Runtime Threat Detection

Runtime threat detection looks for signs of compromise in active compute workloads, such as unexpected process execution, suspicious network connections, or attempts to access sensitive files. It complements vulnerability scanning by identifying attack behavior rather than merely identifying software weaknesses that could be exploited.

Runtime threat detection observes executing workloads to identify behavior associated with compromise. Depending on the platform and collection method, evidence can include process creation, command execution, file access, network connections, and interactions with operating-system components. Detection engines evaluate this evidence using threat intelligence, behavioral rules, or anomaly models. A finding indicates activity that warrants investigation; it does not necessarily prove that an attacker has succeeded.

The central distinction is between a vulnerability and an active threat. Vulnerability scanning identifies weaknesses, such as a library version associated with a known Common Vulnerabilities and Exposures identifier. Runtime detection identifies suspicious activity, such as a web application spawning a shell that downloads and executes an unfamiliar binary. A workload can contain vulnerabilities without showing evidence of exploitation, and an attacker can misuse valid credentials or legitimate tools without exploiting a known software vulnerability.

In cloud environments, runtime visibility depends on the workload and its execution model. Virtual machines and supported container platforms can expose operating-system events through security agents or other sensors. Managed serverless environments generally provide less direct access to the underlying host, so detection may instead rely on provider-managed telemetry. Engineers must distinguish direct process-level observation from indirect evidence in network or audit records; these sources provide different coverage.

On AWS, Amazon GuardDuty Runtime Monitoring analyzes runtime events from supported Amazon EC2 instances, Amazon EKS workloads, and Amazon ECS workloads, including supported AWS Fargate configurations. Support depends on factors such as operating system, architecture, Region, and deployment configuration. GuardDuty Lambda Protection uses network activity associated with Lambda functions to identify threats; it is not the same as deploying the Runtime Monitoring security agent inside a Lambda execution environment.

Amazon Inspector serves a complementary purpose: it scans supported EC2 resources, container images in Amazon ECR, and Lambda functions for vulnerabilities. Lambda standard scanning assesses supported package dependencies, while optional Lambda code scanning identifies certain code-level security issues. For an exam scenario asking for known vulnerabilities in container images or Lambda dependencies, choose vulnerability scanning. For suspicious behavior in an executing workload, choose threat detection with the appropriate telemetry coverage.

For example, a container image scan might identify a vulnerable application library before deployment. After deployment, runtime monitoring might detect an unexpected shell or a connection to infrastructure associated with malware. Investigators should correlate the finding with the image digest, deployment history, workload identity, and relevant audit records. Preserve evidence and use a tested response procedure to isolate or replace the workload, revoke compromised credentials, and correct the underlying weakness.

Operational trade-offs include agent overhead, telemetry costs, privacy considerations, and false positives from legitimate administrative activity. Verify sensor deployment, permissions, connectivity, and coverage health rather than assuming that enabling a service protects every resource. Missing findings do not establish that a workload is safe. Runtime detection also does not inherently block attacks: containment requires separate preventive controls or explicitly configured response automation, ideally with safeguards against disrupting legitimate production activity.

Key aspects of Runtime Threat Detection

Effective runtime threat detection combines behavioral evidence, verified workload coverage, contextual investigation, and tested response procedures alongside vulnerability scanning.

Behavior observed during execution

Detect suspicious actions in active workloads rather than relying only on software inventories. Process ancestry, command execution, file access, and network activity can provide evidence that a workload is being misused.

Complementary vulnerability assessment

Use vulnerability scanning to identify exploitable weaknesses and runtime detection to identify possible attack activity. Neither capability substitutes for the other, and a clean vulnerability report does not rule out credential abuse or malicious execution.

Explicit telemetry coverage

Confirm which resources, operating systems, architectures, and execution environments a detector supports. Network-based monitoring and process-level sensors provide different visibility and should not be treated as interchangeable.

Coverage health and operational tuning

Monitor sensor health and collection failures, especially as workloads scale or are replaced. Investigate recurring false positives and narrowly scope suppressions so that legitimate exceptions do not hide unrelated attacks.

Context-aware investigation

Correlate findings with workload identity, deployment history, image versions, and audit events. Severity and business impact should guide triage, while the underlying evidence determines whether the activity is malicious.

Detection separated from response

Treat alerts as inputs to an incident-response workflow, not as proof that containment has occurred. Configure and test isolation, credential revocation, and workload replacement separately, preserving evidence where practical.

Cloud services for Runtime Threat Detection

Amazon Inspector identifies vulnerable software and supported code-level weaknesses, while Amazon GuardDuty detects suspicious activity using the telemetry available for each supported workload type. AWS Security Hub brings findings together for centralized review, helping teams relate workload vulnerabilities to evidence of possible compromise. Amazon EventBridge can route finding events to operational workflows or response automation. These services address different stages of security operations: discovering weaknesses, detecting threats, reviewing evidence, and initiating action. Configure coverage, permissions, and response safeguards explicitly; aggregating findings does not add missing runtime visibility or automatically contain an attack.

Amazon GuardDuty image Amazon GuardDuty

Detects threats using cloud telemetry and supported protection capabilities. Runtime Monitoring analyzes operating-system-level events for supported compute workloads, while Lambda Protection detects threats using Lambda-related network activity rather than an in-function runtime agent.

Open Amazon GuardDuty →
Amazon Inspector image Amazon Inspector

Complements runtime detection by finding vulnerabilities in supported EC2 instances, Amazon ECR container images, and Lambda functions. Use it for known software vulnerabilities and supported Lambda code-security checks, not as a substitute for behavioral threat detection.

Open Amazon Inspector →
AWS Security Hub image AWS Security Hub

Provides a central location for supported security findings, including findings from GuardDuty and Inspector. It helps teams review threat and vulnerability information together but does not itself collect workload process telemetry.

Open AWS Security Hub →
Amazon EventBridge image Amazon EventBridge

Routes supported security finding events to notification, investigation, or response workflows. Carefully scoped rules can initiate automated actions, but EventBridge does not independently detect malicious workload behavior.

Open Amazon EventBridge →