Skip to content

About

Cloud SOC lab on AWS: an exposed EC2 instance monitored with GuardDuty, with findings aggregated in Security Hub

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ AWS Cloud SOC Lab

A small Security Operations Center (SOC) built on AWS: one exposed EC2 instance acts as the target, GuardDuty detects threats, and Security Hub gathers every finding into one queue for triage.

GuardDuty summary showing 364 findings

Results at a glance

Metric Value
Total GuardDuty findings 364 across 18 resources
By severity 3 Critical · 148 High · 150 Medium · 63 Low
Attack sequences (multi-step) 3 (credential compromise, S3 data compromise, EKS cluster compromise)
Where they were triaged AWS Security Hub, filtered by severity and resource type

Most findings came from GuardDuty's sample findings feature (resources like i-99999999). It produces realistic alerts for every finding type, so you can practice triage without a real attack.

Architecture

            Internet (SSH 22 open to 0.0.0.0/0)
                          │
                          ▼
                 ┌─────────────────┐
                 │  EC2 t2.micro   │  "SOC-Linux-Server" (target)
                 └────────┬────────┘
     VPC Flow Logs · CloudTrail · DNS logs
                          ▼
                 ┌─────────────────┐
                 │ Amazon GuardDuty│  threat detection
                 └────────┬────────┘
                          ▼
                 ┌─────────────────┐
                 │AWS Security Hub │  aggregation + triage
                 └─────────────────┘

🚀 Step-by-Step Setup

1️⃣ Launch an EC2 Instance

Use EC2 to simulate a vulnerable cloud asset.

  • AMI: Amazon Linux 2
  • Instance type: t2.micro (free tier)
  • Inbound rule: SSH (port 22) open to 0.0.0.0/0

    This invites real-world SSH brute-force attempts. Never do this on a production system.

EC2 instance details (identifiers redacted)

2️⃣ Enable Amazon GuardDuty

GuardDuty is AWS's managed threat detection service.

  • Go to Amazon GuardDuty → Enable
  • It automatically monitors VPC Flow Logs, CloudTrail, and DNS logs
  • Optional: Settings → Generate sample findings to fill the console with every finding type

Example finding: 🛑 UnauthorizedAccess:EC2/SSHBruteForce

3️⃣ Set Up AWS Security Hub

Security Hub gathers findings from GuardDuty and other AWS security services.

  • Go to AWS Security Hub → Enable
  • GuardDuty is integrated by default
  • Use the quick filters (severity, resource type, top accounts) to prioritize the queue

Security Hub findings list (account details redacted)

🔎 Triage approach

How to work a queue like this:

  1. Start with Critical attack sequences. These chain several signals together (for example, an IAM credential used for discovery and then S3 data access), so one alert tells the whole story.
  2. Group by resource. 18 resources produced 364 findings, so grouping cuts down noise fast.
  3. Map to MITRE ATT&CK. Examples:
    • UnauthorizedAccess:EC2/SSHBruteForce → T1110 Brute Force
    • DGA domain queried by an EC2 instance → T1568.002 Dynamic Resolution: DGA
    • EC2 instance used for DoS over TCP → T1498 Network Denial of Service
    • Container escape via runc → T1611 Escape to Host
  4. Decide: contain (isolate the security group, revoke keys), escalate, or archive as expected or sample activity.

🧹 Cleanup (avoid surprise bills)

  • Terminate the EC2 instance and delete its security group
  • Disable GuardDuty and Security Hub, or stay within the 30-day free trials
  • Archive the sample findings

🔍 What I Learned

  • How GuardDuty turns raw flow, DNS, and CloudTrail data into findings
  • The role each AWS service plays in a cloud SOC pipeline
  • How to prioritize a high-volume alert queue by severity and attack sequence

🧠 Technologies Used

AWS EC2 · Amazon GuardDuty · AWS Security Hub · VPC Flow Logs · CloudTrail

The original console exports are kept as PDFs: EC2 · GuardDuty · Security Hub

👨‍🎓 Author

Anthony (AJ) Bayate Jr., IT & Cybersecurity student at Kean University LinkedIn • GitHub

About

Cloud SOC lab on AWS: an exposed EC2 instance monitored with GuardDuty, with findings aggregated in Security Hub

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors