Amazon Q Developer Demonstration: Analyze WAF Logs and Block Malicious IPs

· 14:39 · Watch on YouTube ↗

Summary

A tutorial demonstrates using Amazon Q Developer to query AWS WAF logs for SQL injection and cross-site scripting requests, then create an IP set and add a blocking rule. The presenter shows commands for review and execution.

Key points

  • The tutorial uses Amazon Q Developer in Visual Studio Code to review security-related capabilities and interact with AWS resources.
  • The demo sends SQL injection and cross-site scripting test requests to a WordPress site protected by AWS WAF.
  • WAF logs are sent to CloudWatch Logs, which the presenter queries to identify offending request sources.
  • Amazon Q Developer is shown preparing commands to create an IP set and add a blocking rule to the web ACL.
  • The presenter reviews and runs proposed commands, then checks the updated rule in the AWS console.
  • A subsequent access attempt in the demo returns a 403 response after the blocking rule is applied.

Article Details

Topics
  • [01:08] Amazon Q Developer security capabilities in Visual Studio Code
  • [01:50] AWS architecture and WAF log flow
  • [02:58] Authenticating to an AWS account
  • [04:17] Starting the demo's AWS resources
  • [07:04] Testing SQL injection and cross-site scripting requests
  • [08:35] Querying CloudWatch Logs for offending request sources
  • [11:20] Creating an IP set, updating the web ACL, and verifying the block

Vendors

Products

Related Articles