AWS WAF Cloud Security Monitoring and Analytics
AWS WAF (web application firewall) data is a rich source of security findings, as it allows you to monitor the HTTP and HTTPS requests that are forwarded to CloudFront and let you control overall access to your content. Each dashboard within this application takes a different lens on AWS WAF data, from traffic patterns to threat intelligence, allowing you to truly identify the needles in the haystack that drives critical security concerns within your AWS infrastructure.
Sample log messages
{
"timestamp": 1687891200000,
"formatVersion": 1,
"webaclId": "arn:aws:wafv2:us-east-1:123456789012:regional/webacl/ExampleWebACL/abc12345-1234-1234-1234-abc123456789",
"terminatingRuleId": "ExampleRuleGroup",
"terminatingRuleType": "GROUP",
"action": "BLOCK",
"terminatingRuleMatchDetails": [],
"httpSourceName": "ALB",
"httpSourceId": "123456789012-app/ExampleALB/abc123",
"ruleGroupList": [
{
"ruleGroupId": "arn:aws:wafv2:us-east-1:123456789012:regional/rulegroup/ExampleRuleGroup/abc12345",
"terminatingRule": {
"ruleId": "ExampleRule",
"action": "BLOCK",
"ruleMatchDetails": []
},
"nonTerminatingMatchingRules": [],
"excludedRules": null
}
],
"rateBasedRuleList": [],
"nonTerminatingMatchingRules": [],
"requestHeadersInserted": null,
"responseCodeSent": null,
"httpRequest": {
"clientIp": "198.51.100.42",
"country": "US",
"headers": [
{ "name": "Host", "value": "example.com" },
{ "name": "User-Agent", "value": "Mozilla/5.0" }
],
"uri": "/login",
"args": "",
"httpVersion": "HTTP/1.1",
"httpMethod": "POST",
"requestId": "abc123def456"
}
}
Sample queries
=aws/waf BLOCK
| json field= "httpRequest", "action" nodrop
| json field=httpRequest "clientIp", "httpMethod", "uri" nodrop
| where action="BLOCK"
| count by clientip, httpMethod, uri
| sort _count
Collecting logs for AWS WAF Security Analytics
To configure Collection for AWS WAF App, follow the instructions from Collecting Logs for the AWS WAF App.
Installing the AWS WAF Security Analytics App
Now that you have set up collection for AWS WAF, install the Sumo Logic App for AWS WAF to use the pre-configured searches and dashboards.
To install the app, do the following:
Next-Gen App: To install or update the app, you must be an account administrator or a user with Manage Apps, Manage Monitors, Manage Fields, Manage Metric Rules, and Manage Collectors capabilities depending upon the different content types part of the app.
- Select App Catalog.
- In the 🔎 Search Apps field, run a search for your desired app, then select it.
- Click Install App.
note
Sometimes this button says Add Integration.
- Click Next in the Setup Data section.
- In the Configure section of your respective app, complete the following fields.
- Field Name. If you already have collectors and sources set up, select the configured metadata field name (eg _sourcecategory) or specify other custom metadata (eg: _collector) along with its metadata Field Value.
- Click Next. You will be redirected to the Preview & Done section.
Post-installation
Once your app is installed, it will appear in your Installed Apps folder, and dashboard panels will start to fill automatically.
Each panel slowly fills with data matching the time range query received since the panel was created. Results will not immediately be available but will be updated with full graphs and charts over time.
Viewing AWS WAF Security Monitoring dashboards
AWS WAF - Security Monitoring - Overview
See an overview of threats detected and traffic passing through AWS WAF.
Traffic Map. Geolocation heat map of inbound and outbound traffic passing through the WAF.
Traffic Trend. Line chart comparing the volume of blocked and allowed connections.
IP Count. Line chart of unique IP addresses connecting over time.
URI Hits. Table of directory and file paths connected to sorted by frequency.
All Traffic by Rule Type. Column chart of connections by WAF rule type.
HTTP Versions. Donut chart showing the total number of connections broken down by HTTP versions.
All Traffic by Rule ID. Table showing connections sorted by most frequent rule ID.
HTTP Methods. Donut chart showing the total number of connections broken down by HTTP methods.
AWS WAF - Security Analytics - Traffic
See details of threats allowed and blocked by AWS WAF.
Traffic by Geographic Location. Each section contains the same panels with the only difference being traffic allowed or blocked.
Traffic by Location. Geolocation heatmap of locations. Zoom into the map for additional details of the location.
Traffic by Country. Column chart of connections by country over time. Multiple countries can be selected by clicking on one or more countries in the legend at the bottom.
Anomalies Within Traffic. Line chart of connections over time. The grey thresholds show three standard deviations based on the last ten means. Pink triangles show values outside the thresholds that represent anomalies.
Traffic by Rule Type. Donut chart of connections broken down by rule type.
Traffic by Rule ID. A table detailing rule IDs of connections sorted by frequency.
AWS WAF - Security Analytics - Threat Intelligence
See details of allowed and blocked AWS WAF traffic that matches the built-in Sumo Logic threat IP list.
Unique Threats Map. Geolocation heatmap of connection locations.
Threats Trend. Line chart of connections over time.
Threats by Actors. Donut chart showing the ratios of connections attributed to particular threat actor groups.
Traffic by Threat Confidence. Donut chart showing the ratios of connections broken down by confidence levels.
Threat Breakdown by Sources. Donut chart showing the ratios of connections broken down by source categories.
Traffic by Malicious IPs. Table showing details of connections keyed off of remote IP address.
Create monitors for AWS WAF Security Analytics app
From your App Catalog:
- From the Sumo Logic navigation, select App Catalog.
- In the Search Apps field, search for and then select your app.
- Make sure the app is installed.
- Navigate to What's Included tab and scroll down to the Monitors section.
- Click Create next to the pre-configured monitors. In the create monitors window, adjust the trigger conditions and notifications settings based on your requirements.
- Scroll down to Monitor Details.
- Under Location click on New Folder.
note
By default, monitor will be saved in the root folder. So to make the maintenance easier, create a new folder in the location of your choice.
- Enter Folder Name. Folder Description is optional.
tip
Using app version in the folder name will be helpful to determine the versioning for future updates.
- Click Create. Once the folder is created, click on Save.
AWS WAF Security Analytics alerts
| Name | Description | Alert Condition | Recover Condition |
|---|---|---|---|
AWS WAF - Allowed Traffic from Malicious IP | This alert is triggered when AWS WAF allows traffic from an IP address that matches a known malicious source in the CrowdStrike threat intelligence feed, indicating a potential security gap in WAF rules. | Count > 0 | Count < = 0 |
AWS WAF - High Volume of Blocked Requests from Single IP | This alert is triggered when a single source IP generates more than 5 blocked requests within a 5-minute window, indicating active scanning, brute-force, or a persistent attack. | Count > 0 | Count < = 0 |
AWS WAF - High Volume of Blocked Requests to Single URI | This alert is triggered when a single URI receives more than 5 blocked requests within a 5-minute window, indicating targeted exploitation attempts such as vulnerability probing against a specific endpoint. | Count > 0 | Count < = 0 |
Upgrade/Downgrade the AWS WAF Security Analytics app (Optional)
To update the app, do the following:
Next-Gen App: To install or update the app, you must be an account administrator or a user with Manage Apps, Manage Monitors, Manage Fields, Manage Metric Rules, and Manage Collectors capabilities depending upon the different content types part of the app.
- Select App Catalog.
- In the Search Apps field, search for and then select your app.
Optionally, you can identify apps that can be upgraded in the Upgrade available section. - To upgrade the app, select Upgrade from the Manage dropdown.
- If the upgrade does not have any configuration or property changes, you will be redirected to the Preview & Done section.
- If the upgrade has any configuration or property changes, you will be redirected to the Setup Data page.
- In the Configure section of your respective app, complete the following fields.
- Field Name. If you already have collectors and sources set up, select the configured metadata field name (eg _sourcecategory) or specify other custom metadata (eg: _collector) along with its metadata Field Value.
- Click Next. You will be redirected to the Preview & Done section.
Post-update
Your upgraded app will be installed in the Installed Apps folder and dashboard panels will start to fill automatically.
See our Release Notes changelog for new updates in the app.
To revert the app to a previous version, do the following:
- Select App Catalog.
- In the Search Apps field, search for and then select your app.
- To version down the app, select Revert to < previous version of your app > from the Manage dropdown.
Uninstalling the AWS WAF Security Analytics app (Optional)
To uninstall the app, do the following:
- Select App Catalog.
- In the 🔎 Search Apps field, run a search for your desired app, then select it.
- Click Uninstall.