Edge security strategy and rules
SCS-C03 · Lesson 7 of 22 · 1:04:05
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: choosing edge controls from expected threats (Shield for network floods, AWS WAF for request floods and web exploits, CloudFront in front), geo match statements and labels, rate-based rules with custom aggregation keys, JA3 and JA4 fingerprints, Bot Control and the fraud control rule groups, and third-party integrations with AWS Marketplace rule groups, WAF logs, and Security Lake custom sources in OCSF. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
The front door
The patient app is on the internet, so its first line of defense is the edge, where requests arrive before they reach any server. In one month, AnyCompany Health saw a flood of requests during a flu season campaign, bots trying stolen passwords on the sign-in page, and SQL injection attempts on the API. This lesson covers edge security strategies, edge rules, and integrations with third-party services.
Threats and strategies
Start from the threats that you expect, then choose the controls. Against network floods at layers three and four, Shield Standard protects every AWS customer automatically, at no extra cost, and Shield Advanced adds more for critical resources. Against floods of web requests at layer seven, AWS WAF offers rate-based rules and the Anti-DDoS managed rule group, which detects, labels, and challenges the requests of an attack. Against web exploits, managed rule groups such as the core rule set cover common vulnerabilities, including many from the OWASP Top 10, and other groups block known bad inputs and SQL injection. And place CloudFront in front of the app, so that attacks hit the large edge network, not your servers.
Geography and rate limits
AWS WAF rules match requests on what you know about them. A geo match statement matches the country of origin, with two-letter ISO codes, and it adds country and region labels to every request, so that a label match rule can act on a region. CloudFront geographic restrictions can also allow or block whole countries for a distribution. A rate-based rule counts requests over an evaluation window of one, two, five, or ten minutes, and it limits the clients that go over the limit, which can be as low as ten requests. By default, it groups requests by IP address, but it can also group them by a header, a cookie, a query argument, or an IP address in a header such as X-Forwarded-For, when a proxy sits in front of the app.
Fingerprints and bots
IP addresses change easily, so match the client itself. On CloudFront distributions and Application Load Balancers, AWS WAF can inspect the JA3 and JA4 fingerprints of a request, which come from the TLS handshake of the client, and they stay the same when an attacker rotates addresses. The Bot Control managed rule group works at two levels: the common level recognizes bots that identify themselves, such as search engines, and the targeted level finds bots that do not, with browser interrogation, fingerprinting, and behavior analysis, and it can challenge them. For the sign-in and sign-up pages, the account takeover prevention and account creation fraud prevention rule groups watch for stolen credentials and fake accounts.
Third-party integrations
Edge services also work with third parties. AWS Marketplace offers AWS WAF rule groups written by security vendors, which you subscribe to, then add to a web ACL, called a protection pack in the newer console, like any managed rule group. To use one in a Firewall Manager policy, every account of the organization must subscribe to it. AWS WAF logs go to CloudWatch Logs, S3, or Data Firehose, with sensitive fields redacted, and Security Lake collects them as a native source, in the OCSF format. Logs from a third-party CDN or firewall become a custom source: they arrive as OCSF in Parquet files, and Security Lake creates the IAM role that writes them and the crawler that partitions them.
Recap
Let's recap. Choose edge controls from the threats that you expect: Shield for network floods, AWS WAF for floods of requests and web exploits, and CloudFront in front. Geo match statements and labels act on countries and regions, and rate-based rules limit clients per window, grouped by IP address or by other keys. JA3 and JA4 fingerprints, Bot Control, and the fraud control rule groups catch clients that change addresses. And Marketplace rule groups, WAF logs, and Security Lake custom sources in OCSF bring in third parties.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Behind a third-party proxy, every request arrives from the same few addresses; the real client address is in X-Forwarded-For. A rate-based rule must limit each client to 200 requests in five minutes. How should the rule group the requests?
- By the source IP address of each request
- By the IP address in X-Forwarded-For
- By the country label of a geo match rule
- By the HTTP method of each request
Show the answer
By the IP address in X-Forwarded-For
With a forwarded IP address, the rule groups requests by the first address in that header, which is the real client. “By the source IP address of each request” would only see the addresses of the proxy, so all the clients behind it would share one limit. “By the country label of a geo match rule” would put all the clients of a country in one group. And “By the HTTP method of each request” would put almost every request in the same group.
Bots that rotate through thousands of IP addresses try stolen passwords on the sign-in page of the patient app, behind CloudFront. The bots do not identify themselves. Which protection fits best?
- A rate-based rule grouped by IP address
- A geo match rule for the home country
- An IP set with yesterday's addresses
- The account takeover prevention rule group
Show the answer
The account takeover prevention rule group
Account takeover prevention inspects sign-in attempts, checks them against a database of stolen credentials, and groups data by IP address and by client session. “A rate-based rule grouped by IP address” would miss bots that spread their attempts over thousands of addresses. “A geo match rule for the home country” would block real patients abroad, while the bots could come from anywhere. And “An IP set with yesterday's addresses” would always be one day behind the attacker.
AnyCompany Health wants AWS WAF rules that a specialized security vendor writes and keeps up to date, against attacks on the software of its clinician portal, managed like the other rule groups of its web ACL. What should the team use?
- An AWS Marketplace rule group
- A custom rule written by the team
- A Security Lake custom source
- A GuardDuty threat list from the vendor
Show the answer
An AWS Marketplace rule group
Marketplace rule groups are written and updated by vendors, and you add them to a web ACL like any managed rule group. “A custom rule written by the team” would leave the team to write and maintain the rules itself. “A Security Lake custom source” would collect logs, without blocking any request. And “A GuardDuty threat list from the vendor” would raise findings, without filtering any web request.