Security services

Each one does a single job: block, detect, record or protect

BLOCKstop the attackAWS ShieldDDoS floodsAWS WAFbad web requestsFirewall Managerrules in every accountDETECTnotice something wrongAmazon GuardDutythreats in progressAmazon Inspectorsoftware vulnerabilitiesAmazon Maciesensitive data in S3RECORDkeep the evidenceAWS CloudTrailwho did whatAmazon CloudWatchhow it is runningAWS Configwhat changedPROTECT DATAkeys and certificatesAWS KMSencryption keysCertificate ManagerTLS certificatesSecrets Managerpasswords, rotatedAWS Security Hub: all findings in one placeAWS Artifact: AWS's compliance reportsEach security service does one job. Learn the job, and the question answers itself.Four jobs cover most of them: block attacks, detect problems, record what happened, and protect data. A questiondescribes a need in plain words ("find personal data in our buckets") and the options are four of these names.The rest of this lesson takes each column in turn, in the pairs the exam confuses.

Sort every security service into block, detect, record or protect data, and the options stop looking alike.

DDoS and web attacks

Shield absorbs floods; WAF filters requests

The interneta flood of trafficAWS Shieldabsorbs DDoS floodsnetwork and transportlayers (3 and 4)AWS WAFfilters web requestsby rule, at theapplication layer (7)blocks SQL injection, cross-sitescripting, bad bots, by country or rateYour applicationCloudFront, a load balanceror API GatewayShield stops the flood. WAF reads each request and stops the ones that break your rules.A DDoS attack tries to drown a site in traffic; Shield absorbs it, and Shield Standard does so for every customer at nocharge. An injection attack is a single clever request; only WAF, which inspects requests, can stop it.Clue words: "DDoS" is Shield. "SQL injection", "cross-site scripting" or "block by IP or country" is WAF.

AWS Shield is for DDoS. AWS WAF is for bad web requests such as SQL injection.

DDoS and web attacks · Going deeper

Shield Standard, Shield Advanced and Firewall Manager

Shield StandardShield AdvancedPricefree, on by default for everyonepaid subscriptionProtects againstcommon network and transport attackslarger and more sophisticated attacksHelp during an attacknone24/7 access to the Shield Response TeamCost protectionnonecredits for scaling charges caused by an attackVisibilitynoneattack diagnostics and reportsAWS Firewall Managersets and enforces WAF, Shield Advanced and security group rules across every accountin an AWS Organization, from one place. Clue: "centrally manage firewall rules".Standard is free and automatic. Advanced is paid, and adds people, reports and cost protection.

Shield Advanced is paid: a response team, cost protection and reports.

Detection

GuardDuty finds attackers, Inspector weaknesses, Macie sensitive data

ServiceIt looks atIt findsAmazon GuardDutyCloudTrail events, VPC Flow Logs, DNS logssomeone is attacking, or already in"an instance is talking to a known malicious address"Amazon InspectorEC2 instances, container images, Lambda codea weakness that could be attacked"this server runs a library with a known vulnerability"Amazon Macieobjects in S3 bucketssensitive data, and how exposed it is"this bucket holds card numbers and is public"GuardDuty finds attackers. Inspector finds weaknesses. Macie finds sensitive data.The three are offered against each other constantly. A threat is behaviour happening now; a vulnerability is a flawnot yet exploited. GuardDuty needs no agents: you switch it on and it reads logs AWS already has. Inspectorscans what you run. Macie reads what you store.

GuardDuty: threats. Inspector: vulnerabilities. Macie: sensitive data in S3.

Detection · Going deeper

Security Hub and Detective

GuardDutyInspectorMacieConfigPartner toolsAWS Security Hubone list of findings, and ascore against standardsdig into oneAmazon Detectivegraphs of who, what and whento find the root cause"a single view of security posture""investigate a finding"Security Hub collects findings. Detective investigates one.Security Hub aggregates findings from AWS services and partners, and checks the account against standards such asthe AWS Foundational Security Best Practices and CIS benchmarks. Detective links logs into a graph, so an analystcan see what a suspicious identity or address did before and after an alert.

Security Hub gathers findings; Detective investigates one.

Check yourself

EC2 instanceopenssl 1.0.2known vulnerability?Report

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

AWS CloudTrailWho did it?every API call: who, what, when, from whereana DeleteSecurityGroup 02:14 203.0.113.7Amazon CloudWatchHow is it running?metrics, logs and alarms about resourcesCPUUtilization 91% for 10 minutes → alarmAWS ConfigWhat does it look like, and did it change?the configuration of each resource over timevolume vol-0a1: encrypted false → rule failedCloudTrail records who did it. CloudWatch shows how it is running. Config shows what it looks like.These three are the governance trio of task 2.2: auditing with CloudTrail and Config, monitoring with CloudWatch.The quickest test: is the question about a person's action (CloudTrail), a measurement (CloudWatch), or asetting (Config)? "Trail" is the audit trail. "Watch" watches performance.

CloudTrail audits actions, CloudWatch monitors behaviour, Config tracks configuration.

Logging and audit · Going deeper

Where each log lives

When the question saysThe service isBecause it"which user made this API call"AWS CloudTrailevent history, 90 days free; trails to S3 for longer"application and system logs"Amazon CloudWatch Logscollected by an agent or by the service"network traffic in and out of the VPC"VPC Flow Logsaccepted and rejected connections"requests made to a bucket"S3 server access logsone line per request"status of every user's password and keys"IAM credential reportaccount-wide download"which permissions are never used"IAM access reportslast-accessed information; Access Analyzer"is this resource compliant with our rule"AWS Config rulescontinuous evaluation"best-practice checks on the account"AWS Trusted Advisorsecurity is one of its categoriesTask 2.2 asks "where to capture and locate logs". These eight places are the answer.Trusted Advisor's security checks flag open ports, public buckets and a root user without MFA.

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

A userencrypted in transit: TLSLoad balancercertificate fromAWS Certificate ManagerENCRYPTED AT RESTEBSS3RDSAWS KMSholds the keysStolen disks or a copied snapshot are unreadable without the key.Nobody on the network path can read it.Encryption has two places: in transit, with TLS certificates, and at rest, with KMS keys.In transit protects data moving across a network; AWS Certificate Manager issues and renews the public certificatesfor free. At rest protects stored data; AWS Key Management Service creates and controls the keys, and most servicesencrypt with one tick box. Deciding to encrypt, and who may use the key, is the customer's responsibility.

Certificate Manager for encryption in transit; KMS for encryption at rest.

Encryption · Going deeper

Keys, certificates and secrets

When the question saysThe service isBecause it"create and control encryption keys"AWS KMSmanaged keys, used by most services"dedicated, single-tenant hardware for keys"AWS CloudHSMyour own hardware security module"TLS/SSL certificate for a website"AWS Certificate Managerfree public certificates, auto-renewed"store and rotate database credentials"AWS Secrets Managersecrets, with automatic rotation"configuration values and parameters"Systems Manager Parameter Storeplain or encrypted parametersKinds of KMS keyAWS owned and AWS managed keyscreated and rotated by AWS for a service; nothing to doCustomer managed keysyou create them, set who can use them, and can disable or schedule deletionKMS is the default answer for keys. CloudHSM appears only when the question says "dedicated hardware".

CloudHSM only when the question says dedicated hardware; otherwise KMS.

Check yourself

Who?DeleteSecurityGroupSecurity groupdeleted at 02:14

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 PROVES ITS HALFAWS Artifactdownload AWS's audit reports:SOC 1, 2 and 3, ISO 27001, PCI DSSaccept agreements:the HIPAA Business Associate AddendumCompliance programmes differ by service and by Region.YOU PROVE YOURS✓Choose Regions that meet data-residency law✓Use only services in scope for your standard✓Configure them compliantly: encryption, access, logs✓Keep your own evidence: CloudTrail and ConfigAWS being certified does not make your workload compliant. It makes compliance possible.Compliance is shared like security. AWS is audited for the infrastructure and publishes the reports in Artifact. Youare audited for what you build on it. Not every service is in scope for every programme, so check the "services inscope" list. Clue words: "compliance report", "SOC", "ISO", "PCI", "agreement with AWS" all mean Artifact.

AWS Artifact holds AWS's compliance reports and agreements. Your workload's compliance is still yours.

Compliance · Going deeper

Governance and where to find security information

When the question saysThe service isBecause it"policies that limit what accounts can do"AWS Organizations (SCPs)guardrails above IAM"set up a secure multi-account environment"AWS Control Towera landing zone with guardrails"only approved products can be launched"AWS Service Cataloga catalogue of vetted templates"third-party security software"AWS Marketplacefirewalls, scanners, from vendors"security announcements from AWS"AWS Security Centersecurity bulletins and guidance"how-to articles on security"AWS Security Blogwritten by AWS"answers to common questions"AWS Knowledge CenterFAQs from AWS Support"share resources between accounts"AWS RAMResource Access ManagerTask 2.4 also asks where security information lives: Security Center, Security Blog, Knowledge Center.

Organizations, Control Tower and Service Catalog govern; the Security Center and Blog inform.

Check yourself

Audit reportfrom?ArtifactConfigInspector

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.

Open in a new tab