Detecting Threats and Vulnerabilities with AWS Security Services
This lesson explains the managed AWS security services that find threats, vulnerabilities and sensitive data, and the service that brings their findings together in one place.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish Amazon GuardDuty, Amazon Inspector, Amazon Macie and Amazon Detective.
- Describe how AWS Security Hub brings findings together.
- Choose the security service that answers a given question.
The services at a glance
Several security services sound alike but do different jobs. Amazon GuardDuty detects threats that are happening: it analyses CloudTrail events, VPC Flow Logs and DNS logs with machine learning and threat intelligence to spot compromised instances, cryptocurrency mining, contact with malicious IP addresses and unusual API activity, with no agents to install. Amazon Inspector finds weaknesses before they are exploited, scanning EC2 instances, container images and Lambda functions for known software vulnerabilities and unintended network exposure.
AWS Security Hub collects findings from GuardDuty, Inspector, Macie and partner tools across accounts into one view and checks resources against security best practices. Amazon Detective helps investigate a finding, showing related activity to find its root cause. Amazon Macie discovers sensitive data, such as personal information, in S3 and flags buckets that are public or unencrypted. AWS Trusted Advisor includes security checks, such as security groups open to the internet or a root user without MFA. The following table summarises the services.
| Service | What it does |
|---|---|
| Amazon GuardDuty | Intelligent threat detection: analyses CloudTrail, VPC Flow Logs and DNS logs with ML and threat intelligence to find compromised instances, cryptocurrency mining, malicious IPs and unusual API activity. No agents |
| Amazon Inspector | Automated vulnerability scanning of EC2, ECR container images and Lambda for software vulnerabilities (CVEs) and network exposure, prioritised by risk |
| AWS Security Hub | Central view of security findings from GuardDuty, Inspector, Macie and partners across accounts, plus best-practice checks |
| Amazon Detective | Investigates the root cause of findings by visualising related activity |
| Amazon Macie | Discovers sensitive data such as PII in S3, and flags public or unencrypted buckets |
| AWS Trusted Advisor | Includes security checks: open security groups, root user without MFA, S3 permissions |
Security services
One service per question
A security manager asks five questions. Each is answered by a different service:
| Question | Service |
|---|---|
| "Is anyone using our account maliciously, for example mining cryptocurrency?" | Amazon GuardDuty |
| "Do our servers or container images have known software vulnerabilities?" | Amazon Inspector |
| "Are there credit card numbers stored in our S3 buckets?" | Amazon Macie |
| "Can I see all security findings in one place?" | AWS Security Hub |
| "What exactly happened in this incident, and what else was affected?" | Amazon Detective |
A helpful way to remember them: GuardDuty guards against threats, Inspector inspects for vulnerabilities, Macie finds sensitive data, Security Hub is the hub for findings, and Detective investigates.
Which service scans EC2 instances and container images for software vulnerabilities?
Show answer
Amazon Inspector. Amazon GuardDuty detects threats from activity logs instead.
Exam Tips
Remember for the exam
- To detect threats such as compromised instances or cryptocurrency mining, use GuardDuty.
- To scan EC2, containers and Lambda for software vulnerabilities, use Inspector.
- To find sensitive data (PII) in S3, use Macie.
- For a central dashboard of security findings, use Security Hub.
- To investigate the root cause of a finding, use Detective.