Security, Identity & Compliance | AWS WAF Flashcards

1
Q

What is AWS WAF?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF is a web application firewall that helps protect web applications from attacks by allowing you to configure rules that allow, block, or monitor (count) web requests based on conditions that you define. These conditions include IP addresses, HTTP headers, HTTP body, URI strings, SQL injection and cross-site scripting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does AWS WAF block or allow traffic?

General

AWS WAF | Security, Identity & Compliance

A

As the underlying service receives requests for your web sites, it forwards those requests to AWS WAF for inspection against your rules. Once a request meets a condition defined in your rules, AWS WAF instructs the underlying service to either block or allow the request based on the action you define.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does AWS WAF protect my web site or application?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF is tightly integrated with Amazon CloudFront and the Application Load Balancer (ALB), services that AWS customers commonly use to deliver content for their websites and applications. When you use AWS WAF on Amazon CloudFront, your rules run in all AWS Edge Locations, located around the world close to your end users. This means security doesn’t come at the expense of performance. Blocked requests are stopped before they reach your web servers. When you use AWS WAF on Application Load Balancer, your rules run in region and can be used to protect internet-facing as well as internal load balancers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can I use AWS WAF to protect web sites not hosted in AWS?

General

AWS WAF | Security, Identity & Compliance

A

Yes, AWS WAF is integrated with Amazon CloudFront, which supports custom origins outside of AWS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What types of attacks can AWS WAF help me to stop?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF helps protects your website from common attack techniques like SQL injection and Cross-Site Scripting (XSS). In addition, you can create rules that can block attacks from specific user-agents, bad bots, or content scrapers. See the AWS WAF Developer Guide for examples.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can I get a history of all AWS WAF API calls made on my account for security, operational or compliance auditing?

General

AWS WAF | Security, Identity & Compliance

A

Yes. To receive a history of all AWS WAF API calls made on your account, you simply turn on AWS CloudTrail in the CloudTrail’s AWS Management Console. For more information, visit AWS CloudTrail home page or visit the AWS WAF Developer Guide.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does AWS WAF support IPv6?

General

AWS WAF | Security, Identity & Compliance

A

Yes, support for IPv6 allows the AWS WAF to inspect HTTP/S requests coming from both IPv6 and IPv4 addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Does IPSet match condition for an AWS WAF Rule support IPv6?

General

AWS WAF | Security, Identity & Compliance

A

Yes, you can setup new IPv6 match condition(s) for new and existing WebACLs, as per the documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can I expect to see IPv6 address appear in the AWS WAF sampled requests where applicable?

General

AWS WAF | Security, Identity & Compliance

A

Yes. The sampled requests will show the IPv6 address where applicable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can I use IPv6 with all AWS WAF features?

General

AWS WAF | Security, Identity & Compliance

A

Yes. You will be able to use all the existing features for traffic both over IPv6 and IPv4 without any discernable changes to performance, scalability or availability of the service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What services does AWS WAF support?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF can be deployed on Amazon CloudFront and the Application Load Balancer (ALB). As part of Amazon CloudFront it can be part of your Content Distribution Network (CDN) protecting your resources and content at the Edge locations and as part of the Application Load Balancer it can protect your origin web servers running behind the ALBs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In what Regions is AWS WAF on ALB available in?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF on ALB is available in the following AWS Regions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is AWS WAF HIPAA eligible?

General

AWS WAF | Security, Identity & Compliance

A

Yes, AWS has expanded its HIPAA compliance program to include AWS WAF as a HIPAA eligible service. If you have an executed Business Associate Agreement (BAA) with AWS, you can use AWS WAF to protect your web applications from common web exploits. For more information, see HIPAA Compliance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does AWS WAF pricing work? Are there any upfront costs?

General

AWS WAF | Security, Identity & Compliance

A

AWS WAF charges based on the number of web access control lists (web ACLs) that you create, the number of rules that you add per web ACL, and the number of web requests that you receive. There are no upfront commitments. AWS WAF charges are in addition to Amazon CloudFront Pricing and/or the Application Load Balancer (ALB) pricing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Rate-based Rule in AWS WAF?

General

AWS WAF | Security, Identity & Compliance

A

Rate-based Rules are a new type of Rule that can be configured in AWS WAF. This feature allows you to specify the number of web requests that are allowed by a client IP in a trailing, continuously updated, 5 minute period. If an IP address breaches the configured limit, new requests will be blocked until the request rate falls below the configured threshold.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does a Rate-based rule compare to a regular AWS WAF Rule?

General

AWS WAF | Security, Identity & Compliance

A

Rate-based Rules are similar to regular Rules, with one addition: the ability to configure a rate-based threshold. If, for example, the threshold for the Rate-based Rule is set to (say) 2,000, the rule will block all IPs that have more than 2,000 requests in the last 5 minute interval. Rate-based Rule can also contain any other AWS WAF Condition that a regular rule would?

17
Q

What does the Rate-based Rule cost?

General

AWS WAF | Security, Identity & Compliance

A

A Rate-based Rule costs the same as a regular AWS WAF Rule which is $1 per rule per WebACL per month

18
Q

What are the use cases for the Rate-based Rule?

General

AWS WAF | Security, Identity & Compliance

A

Here are some popular use cases customers can address with Rate-based rules:

I want to blacklist or count an IP address when that IP address exceeds the configured threshold rate (configurable in web requests per trailing 5 minute period)

I want to know which IP address are currently being blacklisted because they exceeded the configured threshold rate

I want IP addresses that have been added to the blacklist to be automatically removed when they are no longer violating the configured threshold rate

I want to exempt certain high-traffic source IP ranges from being blacklisted by my Rate-based rules

19
Q

Are the existing matching conditions compatible with the Rate-base Rule?

General

AWS WAF | Security, Identity & Compliance

A

Yes. Rate-based rules are compatible with existing AWS WAF match conditions. This allows you to further refine your match criteria and limit rate-based mitigations to specific URLs of your website or traffic coming from specific referrers (or user agents) or add other custom match criteria.

20
Q

Can I use Rate-based rule to mitigate Web layer DDoS attacks?

General

AWS WAF | Security, Identity & Compliance

A

Yes. This new rules type is designed to protect you from use cases such web-layer DDoS attacks, brute force login attempts and bad bots.

21
Q

What visibility features does Rate-based Rules offer?

General

AWS WAF | Security, Identity & Compliance

A

Rate-based Rules support all the visibility features currently available on the regular AWS WAF Rules. Additionally, they will get visibility into the IP addresses blocked as a result of the Rate-based Rule.

22
Q

Can I use Rate-based rule to limit access to a certain parts of my Webpage?

General

AWS WAF | Security, Identity & Compliance

A

Yes. Here is an example. Suppose that you want to limit requests to the login page on your website. To do this, you could add the following string match condition to a rate-based rule:

The Part of the request to filter on is “URI”.

The Match Type is “Starts with”.

A Value to match is “/login” (this need to be whatever identifies the login page in the URI portion of the web request)

Additionally, you would specify a Rate Limit of, say, 15,000 requests per 5 minutes. Adding this rate-based rule to a web ACL will limit requests to your login page per IP address without affecting the rest of your site.

23
Q

Can I exempt certain high-traffic source IP ranges from being blacklisted by my Rate-based Rule(s)?

General

AWS WAF | Security, Identity & Compliance

A

Yes. You can do this by having an IP Whitelist condition within the Rate-base Rule.

24
Q

How accurate is your GeoIP database?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

The accuracy of the IP Address to country lookup database varies by region. Based on recent tests, our overall accuracy for the IP address to country mapping is 99.8%.

25
Q

What are AWS WAF Managed Rules?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

AWS WAF Managed Rules are an easy way to deploy pre-configured rules to protect your applications common threats like application vulnerabilities like OWASP, bots, or Common Vulnerabilities and Exposures (CVE). All Managed Rules are automatically updated by AWS Marketplace security Sellers.

26
Q

How can I subscribe to Managed Rules?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

You can subscribe to a Managed Rule provided by a Marketplace security Seller from the AWS WAF console or from the AWS Marketplace. All subscribed Managed Rules will be available for you to add to an AWS WAF web ACL.

27
Q

Can I use Managed Rules along with my existing AWS WAF rules?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

Yes, you can use Managed Rules along with your custom AWS WAF rules. You can add Managed Rules to your existing AWS WAF web ACL to which you might have already added your own rules.

28
Q

Does a Managed Rule have multiple AWS WAF rules?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

Yes, each Managed Rule could have multiple AWS WAF rules. The number of rules depends on each security seller and their Marketplace product.

29
Q

Will Managed Rules add to my existing AWS WAF limit on number of rules?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

The number of rules inside a Managed Rule does not impact your AWS WAF limits. But each Managed Rule added to your web ACL will count as 1 rule.

30
Q

How can I disable a Managed Rule?

Managed Rules for AWS WAF

AWS WAF | Security, Identity & Compliance

A

You can add a Managed Rule to a web ACL or remove it from the web ACL anytime. The Managed Rules are disabled once you disassociate a Managed Rule from any web ACLs.

31
Q

How can I test a Managed Rule?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

AWS WAF allows you to configure a “count” action for a Managed Rule, which counts the number of web requests that are matched by the rules inside the Managed Rule. You can look at the number of counted web requests to estimate how many of your web requests would be blocked if you enable the Managed Rule.

32
Q

Can I configure custom error pages?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

Yes, you can configure CloudFront to present a custom error page when requests are blocked. Please see the CloudFront Developer Guide for more information

33
Q

How long does it take AWS WAF to propagate my rules?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

After an initial setup, adding or changing to rules typically takes around a minute to propagate worldwide.

34
Q

How can I see if my rules are working?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

AWS WAF includes two different ways to see how your website is being protected: one-minute metrics are available in CloudWatch and Sampled Web Requests are available in the AWS WAF API or management console. These allow you to see which requests were blocked, allowed, or counted and what rule was matched on a given request (i.e., this web request was blocked due to an IP address condition, etc.). For more information see the AWS WAF Developer Guide.

35
Q

How can I test my rules?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

AWS WAF allows you to configure a “count” action for rules, which counts the number of web requests that meet your rule conditions. You can look at the number of counted web requests to estimate how many of your web requests would be blocked or allowed if you enable the rule.

36
Q

How long are Real-Time Metrics and Sampled Web Requests stored?

AWS WAF Configuration

AWS WAF | Security, Identity & Compliance

A

Real-Time Metrics are stored in Amazon CloudWatch. Using Amazon CloudWatch you can configure the time period in which you want to expire events. Sampled Web Requests are stored for up to 2 hours.