Threat detection and edge protection

Intermediate · 28 min

GuardDuty, Inspector, Macie and Security Hub for finding problems; WAF, Shield and Network Firewall for blocking them; and acting on findings.

Before thisCloudTrail and AWS ConfigVPC flow logs and network troubleshootingCloudFront and edge cachingEventBridge

knowledgeindia - LearnCloud · 28 min

Threat detection and edge protection

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by knowledgeindia - LearnCloudReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • Detection and prevention are different jobs. Most of these services report findings and block nothing.
  • GuardDuty watches activity for threats, Inspector finds vulnerabilities, Macie finds sensitive data in S3 and Security Hub CSPM checks configuration.
  • Security Hub correlates those signals into prioritised exposures.
  • AWS WAF filters HTTP requests at resources such as CloudFront, load balancers and API Gateway. Shield Standard absorbs common network-layer DDoS at no extra charge.
  • Introduce WAF rules in count mode, read what they would block, then enforce.
  • A finding nobody routes or acts on protects nothing. Send them to EventBridge and decide who responds.

Assume something gets through

You have tight IAM policies, private subnets and security groups. Then a key leaks, a library gets a vulnerability, or a botnet discovers your login page. Two further layers matter: noticing, and filtering at the front door. In a building these are the alarm system and the doorman. The alarm doesn’t stop anyone, and the doorman doesn’t search the rooms.

Noticing

Service Question it answers
Amazon GuardDuty Is something behaving like an attack?
Amazon Inspector Where is vulnerable software or unintended network exposure?
Amazon Macie Which S3 objects hold sensitive data?
Security Hub CSPM Which resources break security best practices?
AWS Security Hub Which of all these should I fix first?

GuardDuty is the usual first switch to turn on. It reads CloudTrail management events, VPC flow logs and DNS logs on its own, with no agents and nothing for you to configure in those sources. Optional protection plans add S3 data events, EKS audit logs, RDS logins, runtime monitoring and more. Extended Threat Detection strings separate signals into one attack sequence, at no extra cost. On first enablement every plan except runtime monitoring is on, under a 30-day trial, so check the bill afterwards.

Inspector continuously scans EC2 instances, ECR images and Lambda functions. Security Hub CSPM runs controls against standards such as AWS Foundational Security Best Practices and CIS; it was formerly just “Security Hub”. The current AWS Security Hub sits above, correlating CSPM, Inspector, Macie and GuardDuty signals into exposure findings. Older videos and posts use the name for the CSPM product, so read carefully.

Enable these organisation-wide with a delegated administrator account, in every Region you allow. Attackers favour Regions you never look at.

Filtering at the front

AWS Shield Standard protects every customer against common network and transport layer DDoS attacks at no extra charge. Shield Advanced is a paid service with more detection, response help and application-layer mitigation.

AWS WAF inspects HTTP requests to CloudFront, Application Load Balancers, API Gateway REST APIs, AppSync, Cognito user pools and other resources. You attach a web ACL (the console now says protection pack) containing rules:

  • Managed rule groups for common attacks and bad inputs, maintained for you.
  • Custom rules on addresses, countries, headers, paths or bodies.
  • Rate-based rules, which limit a client that exceeds a count in a window of 1, 2, 5 or 10 minutes (5 by default, minimum limit 10). Enforcement is approximate.

Roll out in count mode first. A rule that blocks real customers is an outage you built yourself. WAF also isn’t a substitute for parameterised queries and input validation.

For traffic inside and out of a VPC that isn’t HTTP to those resources, AWS Network Firewall provides stateful filtering and intrusion prevention at the network level.

Acting

Findings arrive in EventBridge. A practical setup routes high severity to a person on call, opens tickets for the rest, and automates only actions that are safe if wrong, such as isolating a test instance or blocking public access on a bucket. Write down who does what for a leaked key before you have one. Suppress known noise deliberately, with a recorded reason.

Detection services are billed by volume of data or resources analysed, so watch the cost of each plan.

Where to start

On a new estate, turn on GuardDuty everywhere, then posture checks, then vulnerability scanning, and add WAF in front of anything public. Fix the findings about public exposure and long-lived credentials first; they are how most real incidents begin.

About the video

The embed is knowledgeindia’s “AWS Security Services Explained - GuardDuty vs Inspector vs Detective vs Security Hub”, September 2026, 28 minutes, framed as a discussion and partly toward certification. Its description says it also covers Macie, Shield, WAF, CloudTrail, Config and Access Analyzer. It has no chapters, so I can’t say how deep each goes. I judged it from the description only, since transcripts couldn’t be fetched. English was judged from its English caption track and title. A re:Inforce session on GuardDuty attack sequences is in deeper.

What was run: nothing; these services can’t be emulated meaningfully. All behaviour is from the AWS docs, checked 2026-11-29.

Where this fits

Much of responding means running commands on instances safely, which is the job of Systems Manager.

Check yourself

  1. 01GuardDuty reports that an instance is talking to a known cryptomining server. Has it stopped the traffic?

    No. GuardDuty detects and reports. Containment is yours: for example an automation triggered from EventBridge that swaps the instance into a quarantine security group, followed by investigation of how it was compromised.

  2. 02A security group already allows only port 443 to your load balancer. Why add WAF?

    A security group decides by address and port. It cannot see inside the request, so an injection attempt or a credential-stuffing flood over HTTPS passes. WAF inspects the HTTP request.

  3. 03You enable a managed rule group in block mode on Friday and file uploads start failing. What should you have done?

    Run the rules in count mode against production traffic first, review the matches, add exceptions or scope-down statements, and only then block.

  4. 04Which service would tell you that a library inside a container image has a newly published CVE?

    Amazon Inspector, which scans ECR images, EC2 instances and Lambda functions and re-evaluates them when new vulnerabilities are published.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark