Security services
Each one does a single job: block, detect, record or protect
Sort every security service into block, detect, record or protect data, and the options stop looking alike.
AWS has more than a dozen security services on this exam, and the questions set them against each other. Sort them by job. Some block attacks: Shield, WAF and Firewall Manager. Some detect problems: GuardDuty, Inspector and Macie. Some record what happened: CloudTrail, CloudWatch and Config. Some protect data: KMS, Certificate Manager and Secrets Manager. And two sit across the rest: Security Hub gathers every finding, and Artifact holds AWS's compliance reports.
DDoS and web attacks
Shield absorbs floods; WAF filters requests
AWS Shield is for DDoS. AWS WAF is for bad web requests such as SQL injection.
Two services stand in front of a public application. A distributed denial of service attack sends a flood of traffic to drown the site. AWS Shield absorbs it, at the network and transport layers. The standard level protects every customer automatically, for free. What gets through reaches AWS WAF, the web application firewall. It reads each request and applies rules: block SQL injection, block cross-site scripting, block a country, limit a rate. Only clean requests reach the application.
DDoS and web attacks · Going deeper
Shield Standard, Shield Advanced and Firewall Manager
Shield Advanced is paid: a response team, cost protection and reports.
Detection
GuardDuty finds attackers, Inspector weaknesses, Macie sensitive data
GuardDuty: threats. Inspector: vulnerabilities. Macie: sensitive data in S3.
Three detection services are confused more than any others. GuardDuty reads logs that AWS already has, account activity, network flows and DNS queries, and finds threats: someone attacking, or already inside. Inspector scans what you run, instances, container images and functions, and finds vulnerabilities: weaknesses nobody has used yet. Macie reads what you store in S3 and finds sensitive data, such as names and card numbers, and tells you how exposed it is.
Detection · Going deeper
Security Hub and Detective
Security Hub gathers findings; Detective investigates one.
Check yourself
A scan must report which EC2 instances run software with known vulnerabilities. Which service?
Logging and audit
CloudTrail: who did it. CloudWatch: how it runs. Config: what changed
CloudTrail audits actions, CloudWatch monitors behaviour, Config tracks configuration.
Three services keep the record, and each answers a different question. CloudTrail: who did it? It logs every API call, with the identity, the time and the source address. CloudWatch: how is it running? It collects metrics and logs and raises alarms, for example when a processor stays above ninety percent. Config: what does it look like, and did it change? It records the configuration of each resource over time and checks it against rules, such as every volume must be encrypted.
Logging and audit · Going deeper
Where each log lives
Eight places to "capture and locate logs", from CloudTrail to the IAM credential report.
Encryption
In transit it is TLS and ACM; at rest it is KMS
Certificate Manager for encryption in transit; KMS for encryption at rest.
Encryption protects data in two places. In transit, as it crosses a network. The connection uses TLS, and the certificate comes from AWS Certificate Manager, which issues and renews public certificates for free. At rest, where it is stored: on EBS volumes, in S3, in RDS. The keys are created and controlled in the Key Management Service, KMS. Together they mean that nobody on the path can read the data, and a stolen disk or snapshot is useless without the key.
Encryption · Going deeper
Keys, certificates and secrets
CloudHSM only when the question says dedicated hardware; otherwise KMS.
Check yourself
Last night a security group was deleted. Which service shows which user did it?
Compliance
AWS proves its half in Artifact; you still prove yours
AWS Artifact holds AWS's compliance reports and agreements. Your workload's compliance is still yours.
Compliance is shared in the same way as security. AWS is audited for the infrastructure, and publishes the results in AWS Artifact: SOC reports, ISO certificates, PCI attestations. Artifact is also where you accept agreements such as the business associate addendum for health data. Which programmes apply differs by service and by Region. Your half is what you build: choosing Regions that satisfy data-residency law, using services that are in scope, configuring them properly and keeping your own evidence.
Compliance · Going deeper
Governance and where to find security information
Organizations, Control Tower and Service Catalog govern; the Security Center and Blog inform.
Check yourself
An auditor asks for proof that AWS data centres meet ISO 27001. Where does the customer get it?
Lesson complete
You finished “AWS security and compliance services”
Answer the questions along the way to see your score here.