Guest Authors:
Senior WAF engineer
Senior WAF engineer
We are happy to present a new way of getting additional security insights using two existing Oracle Cloud Infrastructure (OCI) services: OCI Web Application Firewall (WAF) enforcement on the flexible load balancer and OCI Logging Analytics. Combining these two OCI services will provide detailed traffic analysis of your web application and real-time information about triggered countermeasures to address the findings which you have setup in WAF.
Initial Setup
Create a WAF policy & attach it to OCI Load Balancer (LB). Be sure to have an up-to-date OCI command line interface (CLI) installed & fully configured on your machine. More information about the installation process can be found in the OCI CLI Quickstart guide.
Implementation & Flow Logic
The diagram above represents how a request from an end user will end up being displayed in Logging Analytics. There are a few steps that need to be accomplished in order to send WAF service logs to Logging Analytics to better identify the findings you have set up in WAF:
Step by step setup
Here are the setup details:
1. Manually enable the WAF service logs.
To enable WAF service logs, you simply need to enable them under in the OCI WAF interface by following these steps:
2. Create Logging Analytics log group.
Next, you will need to set up the Logging Analytics log group to be able to store your WAF policy service logs. Logging Analytics is part of the Observability and Management section of OCI.
3. Create a service connector which will send WAF service logs to Logging Analytics.
Once the OCI WAF and OCI Logging Analytics have been set up, a service connector is needed to transfer data (logs) between these two OCI services.
Lastly, click "Create" for "Create default policy allowing this service connector to write to Logging Analytics in compartment"
4. Use predefined WAF Dashboards.
To help visualize your data, take a look at some predefined dashboards. This set includes three pre-built dashboards for WAF Logging Analytics as follows:
How do you import the predefined Dashboards?
Now everything is in place & the WAF service logs are being sent to OCI Logging Analytics!
With the dashboards provided in this blog, you can take advantage of the features they provide and take a look at your traffic from different angles. Additionally, you can check which WAF rules are triggered the most, adjust protection capabilities based on summary and see potential malicious behavior with real-time feed. Lastly, not only WAF protection capabilities are monitored,but Access rules and rate limiting are monitored as well.
We strongly encourage you to take the opportunity and test it out yourself, either with your current account or the OCI free-tier.
Additional links:
Daniela has a background in Oracle Observability and Management solutions product management, training, and curriculum development. She currently manages the observability and management user assistance development team, focusing on optimizing the end user experience with our products and various types of technical content.
Previous Post
Next Post