...
An analyst wants to detect malicious network traffic in web applications. Using the WAF ACL SQS collector to send firewall logs to Devo, the analyst will find malicious IP activity. As a result, the analyst will use Access Control Lists to block the traffic, preventing attackers from cross-site scripting.
...
Authorize SQS Data Access.
For this service, the bucket name must start with
aws-waf-logs-
.
In WAF, select a Web ACL.
Select “Logging” and “Enable.”
Set the destination to the S3 bucket previously authorized.
Run It
In the Cloud Collector App, create an SQS Collector instance using this parameters template, replacing the values enclosed in < >
.
...
Code Block |
---|
/* A malicious user has gained access to WAF configuration. The user has created a rule which has blocked critical traffic. Identify new rules which are blocking lots of traffic so they can be removed. */ from cloud.aws.waf.logs where eq(action,"BLOCK") group by terminatingRuleId select count() as requests_blocked, first(eventdate) as rule_started where rule_started>today()-7d //recently created rule |
Monitor It
Create an inactivity alert to detect interruptions of transfer of data from the source to the SQS queue using the query
...