44
How to create a query-based white list

Howto create a query based white list

Embed Size (px)

Citation preview

Page 1: Howto create a query based white list

How to create a

query-based

white list

Page 2: Howto create a query based white list

Create a query-based white list: 4 simple steps

1. Create a new Query Group 2. Create a new IPS/IDS rule 3. Create a new Database

Firewall rule 4. Propagate the white list

Query Group

Page 3: Howto create a query based white list

1 Create a new Query Group

Page 4: Howto create a query based white list

Step 1: Log on to the GreenSQL management GUI.

Page 5: Howto create a query based white list

Step 1a: Click on the Policies icon at the top of the management screen.

Page 6: Howto create a query based white list

Step 1b: Click on the Query Groups policy option to proceed to the query groups configuration function.

Page 7: Howto create a query based white list

Step 1c: Click on the Create New button in order to create a new Query Group.

Page 8: Howto create a query based white list

Step 1d: Give the new Query Group a meaningful name, e.g., "White List".

Page 9: Howto create a query based white list

Step 1e: Choose your database type, e.g., MySQL.

Page 10: Howto create a query based white list

Step 1f: Choose the proxy that protects your database type.

Page 11: Howto create a query based white list

Step 1g: Choose the appropriate color for the newly created Query Group.

Page 12: Howto create a query based white list

Step 1h: Click the Create button to finalize the configuration.

Page 13: Howto create a query based white list

Step 1i: Check that the White List Query Group was created and displays in the Query Groups section.

Page 14: Howto create a query based white list

2 Create a new IPS/IDS rule

Page 15: Howto create a query based white list

Step 2 (optional): Minimize the floating notification bar for a better view of the management GUI.

Page 16: Howto create a query based white list

Step 2a: Click on Policy to create a new IPS/IDS (intruder prevention system/intruder detection system) rule.

Page 17: Howto create a query based white list

Step 2b: Click on the Create New button.

Page 18: Howto create a query based white list

Step 2c: Choose the Risk Based - IPS/IDS Rule Type.

Page 19: Howto create a query based white list

Step 2d: Select the Database that the new rule will apply to.

Page 20: Howto create a query based white list

Step 2e: Make sure that the Mode is set to Active Protection.

Page 21: Howto create a query based white list

Step 2f: Make sure that the SQL Injection Detection box is checked.

Page 22: Howto create a query based white list

Step 2g: Make sure that the Action is set to Block.

Page 23: Howto create a query based white list

Step 2h: The Blocking action has a number of options; for this example, we will choose Close SQL Connection.

Page 24: Howto create a query based white list

Step 2i: Make sure that the Logging option is set to Intrusion Events.

Page 25: Howto create a query based white list

Step 2j: Scroll down and click the Create button to confirm rule creation.

Page 26: Howto create a query based white list

Step 2k: Notice that our new Blocking rule, which defends our database against SQL injections, appears before the Allow Any rule.

Page 27: Howto create a query based white list

3 Create a new Database Firewall rule

Page 28: Howto create a query based white list

Step 3a: To create the White List rule, click on the Create New button.

Page 29: Howto create a query based white list

Step 3b: Choose the Database Firewall Rule Type.

Page 30: Howto create a query based white list

Step 3c: Select the Database that the new rule will apply to.

Page 31: Howto create a query based white list

Step 3d: Choose Query Groups as the Firewall Type. Remember, we created the White List Query Group and now we want to use it.

Page 32: Howto create a query based white list

Step 3e: Choose the White List Query Group we created earlier for this specific rule.

Page 33: Howto create a query based white list

Step 3f: Select Allow as the Action, to allow White List queries to access the database.

Page 34: Howto create a query based white list

Step 3g: Click Create to finalize rule creation.

Page 35: Howto create a query based white list

Step 3h: Your policy should now contain three policy rules, as shown in the example above.

Page 36: Howto create a query based white list

4 Propagate the white list query group

Page 37: Howto create a query based white list

Step 4a: Now, we need to investigate if there are legitimate queries that were blocked by the SQL Injection rule. Click on the Logs icon.

Page 38: Howto create a query based white list

Step 4b: Click on Intrusion Logs to look for legitimate blocked queries.

Page 39: Howto create a query based white list

Step 4c: This example shows that there was an intrusion event. Click on the event to view the event details.

Page 40: Howto create a query based white list

Step 4d: Scroll down in the event details to look for the Pattern field.

Page 41: Howto create a query based white list

Step 4e: Review the pattern and note that this query is legitimate. Click on the pattern to add it to our White List Query Group.

Page 42: Howto create a query based white list

Step 4f: Choose White List from the pop-up window and click Assign.

Page 43: Howto create a query based white list

Step 4g: See that the new Query Group contains our white-listed pattern.

Page 44: Howto create a query based white list

The white list is configured and operational.

That’s it!