Amazon GuardDuty
Threat Detection, ML-based Security Monitoring, Malware Protection
Tổng quan
Amazon GuardDuty là một dịch vụ threat detection (phát hiện mối đe dọa) được quản lý hoàn toàn, sử dụng machine learning, anomaly detection và threat intelligence để liên tục giám sát và phát hiện các hoạt động đáng ngờ trong AWS environment.
Đặc điểm chính
| Đặc điểm | Mô tả |
|---|---|
| Fully Managed | Không cần deploy/quản lý infrastructure |
| Continuous Monitoring | Giám sát 24/7 tự động |
| One-Click Enable | Bật với 1 click, không cần cấu hình phức tạp |
| Multi-Account Support | Quản lý tập trung qua AWS Organizations |
| Agentless | Không cần cài đặt agent trên EC2/EKS |
| 30-Day Free Trial | Dùng thử miễn phí 30 ngày |
Data Sources - Nguồn dữ liệu phân tích
GuardDuty phân tích nhiều nguồn dữ liệu để phát hiện threats:
1. Foundational Data Sources (Mặc định)
[!NOTE] GuardDuty KHÔNG yêu cầu bạn phải enable VPC Flow Logs hay CloudTrail. Nó đọc trực tiếp từ AWS internal data sources.
2. Optional Protection Plans
| Protection | Data Source | Phát hiện gì |
|---|---|---|
| S3 Protection | CloudTrail S3 data events | Data exfiltration, suspicious access |
| EKS Protection | EKS audit logs + Runtime | Compromised pods, privilege escalation |
| RDS Protection | RDS login events | Brute-force, anomalous login |
| Lambda Protection | VPC network logs | Malicious network activity |
| EC2 Malware Protection | EBS volume scanning | Malware trong EC2 instances |
| S3 Malware Protection | S3 object scanning | Malware trong uploaded files |
Kiến trúc hoạt động
Protection Plans Chi tiết
1. S3 Protection
Giám sát API calls liên quan đến S3 để phát hiện data exfiltration và suspicious access.
2. EKS Protection
Bảo vệ Amazon EKS clusters với 2 components:
3. RDS Protection
Phát hiện suspicious login attempts vào Amazon RDS databases.
| Threat | Mô tả |
|---|---|
| Brute-force attacks | Nhiều failed login attempts |
| Anomalous login | Login từ unusual location/time |
| Successful login after brute-force | Compromised credentials |
Supported Databases: Amazon Aurora (MySQL & PostgreSQL), RDS for PostgreSQL, RDS for MySQL
4. Lambda Protection
5. Malware Protection
EC2 Malware Protection
S3 Malware Protection (New 2024)
Threat Intelligence Sources
GuardDuty sử dụng nhiều nguồn threat intelligence:
Finding Types - Các loại phát hiện
Categories
| Category | Prefix | Mô tả |
|---|---|---|
| Backdoor | Backdoor: | EC2 bị cài backdoor |
| Behavior | Behavior: | Hành vi bất thường |
| CryptoCurrency | CryptoCurrency: | Crypto mining |
| Impact | Impact: | Tấn công gây hại |
| Pentest | PenTest: | Phát hiện pentesting tools |
| Recon | Recon: | Reconnaissance/scanning |
| Stealth | Stealth: | Che giấu hoạt động |
| Trojan | Trojan: | Malware trojan |
| UnauthorizedAccess | UnauthorizedAccess: | Truy cập trái phép |
Ví dụ Finding Types phổ biến
Finding Severity
| Severity | Range | Mô tả |
|---|---|---|
| Low | 1.0 - 3.9 | Suspicious nhưng chưa compromise |
| Medium | 4.0 - 6.9 | Deviation từ normal behavior |
| High | 7.0 - 8.9 | Likely compromised, cần action ngay |
| Critical | 9.0 - 10.0 | Actively compromised |
Multi-Account Management
Với AWS Organizations
Automated Response
EventBridge Integration
Ví dụ Auto-Remediation
So sánh với các Security Services khác
| Service | Focus | Method | Target |
|---|---|---|---|
| GuardDuty | Threat Detection | Behavioral analysis | Account-wide |
| Macie | Data Discovery | ML + Pattern matching | S3 only |
| Inspector | Vulnerabilities | CVE scanning | EC2, ECR, Lambda |
| Config | Compliance | Rule evaluation | AWS resources |
| Security Hub | Aggregation | Consolidation | All services |
Pricing
Pricing Model
| Component | Pricing Basis |
|---|---|
| VPC Flow Logs | Per GB analyzed |
| CloudTrail Events | Per million events |
| DNS Logs | Per million queries |
| S3 Data Events | Per million events |
| EKS Logs | Per million events |
| Malware Scan | Per GB scanned |
Free Trial
- 30 days free cho tất cả features
- Hiển thị estimated monthly cost trong trial period
[!TIP] Trong free trial, GuardDuty sẽ hiển thị chi phí ước tính hàng ngày để bạn dự đoán chi phí khi trial kết thúc.
Best Practices
1. Enable Across All Accounts & Regions
2. Enable All Protection Plans
| Plan | Recommendation |
|---|---|
| S3 Protection | ✅ Enable (mặc định ON) |
| EKS Protection | ✅ Enable nếu dùng EKS |
| RDS Protection | ✅ Enable nếu dùng RDS |
| Lambda Protection | ✅ Enable nếu dùng Lambda in VPC |
| Malware Protection | ✅ Enable cho critical workloads |
3. Setup Automated Response
- Integrate với EventBridge
- Setup alerts cho High/Critical findings
- Automate common remediation actions
- Integrate với ticketing system (Jira, ServiceNow)
4. Regular Review
- Review findings weekly
- Tune suppression rules để reduce noise
- Update trusted/threat IP lists
- Test detection với penetration testing
Use Cases thực tế
1. Phát hiện Crypto Mining
2. Phát hiện Data Exfiltration
3. Kubernetes Attack Detection
Exam Tips cho Cloud Practitioner
[!IMPORTANT] Keywords để nhớ GuardDuty:
- Threat Detection
- Machine Learning + Anomaly Detection
- VPC Flow Logs, CloudTrail, DNS Logs
- Protect: EC2, S3, EKS, RDS, Lambda
- Agentless (mostly)
- 30-day free trial
Câu hỏi thường gặp
| Câu hỏi | Trả lời |
|---|---|
| GuardDuty dùng data sources nào? | VPC Flow Logs, CloudTrail, DNS logs |
| Có cần enable VPC Flow Logs trước? | KHÔNG, GuardDuty đọc internal data |
| GuardDuty và Macie khác nhau thế nào? | GuardDuty = Threats, Macie = Sensitive Data |
| GuardDuty có cần agent không? | Hầu hết KHÔNG (trừ EKS Runtime) |
| GuardDuty findings gửi đi đâu? | EventBridge, Security Hub, CloudWatch |