Amazon GuardDuty is a threat detection service that monitors various log sources in AWS accounts
It applies machine learning and detection rules to identify threats in real-time
GuardDuty Runtime Monitoring is an optional solution that deploys an eBPF agent to compute workloads to gather OS-level events for monitoring and threat detection
Importance of Testing Runtime Monitoring
Testing runtime monitoring is crucial to:
Evaluate if it meets requirements
Test incident response capabilities
Many customers use simplistic tests that only map to a single MITRE technique
These tests are not realistic and do not provide insights into noise reduction/management
How GuardDuty Gathers Real-World Threat Intelligence
Customer incident data from the AWSert team
Learns about tactics, techniques, and top initial access methods used in attacks
Compromised credentials and public-facing application compromise are the top initial access techniques
Threat intelligence from in-house and third-party sources
Indicators of compromise (IPs, domains, file hashes)
Tactics, techniques, and activity patterns used in real attacks
Context around threat targets and attack sequences
Example Real-World Attack Scenario
Web application compromise is a common attack vector
Typical steps:
Attacker compromises web app vulnerability to deploy a web shell
Downloads and executes a script malware
Downloads and executes a second-stage malware (e.g., crypto miner, DDoS)
Persists the malware execution via cron job or scheduled task
These actions map to specific MITRE tactics and techniques
GuardDuty learns about these patterns and uses them to develop detections
Testing GuardDuty Runtime Monitoring
Set up the Amazon GuardDuty Tester environment
Deploys a lockdown VPC with EC2, ECS, and EKS resources
Ensures GuardDuty Runtime Monitoring is enabled
Execute a realistic attack scenario
Deploy a vulnerable PHP web application on the EKS cluster
Execute an attack to compromise the web app, deploy a web shell, and execute malware
These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.
If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.