Skip to content

Commit

Permalink
[WMSID 11492] SQL Firewall updates (#198)
Browse files Browse the repository at this point in the history
* Story-Hack_v1

* Story-Hack_v1

* adb_dbv_ocw22

* adb_dbv_ocw22

* adb_dbv_ocw22

* Story-Hack_v1_ocw22

* ocw22-manifest

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-V5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab-v6

* dbseclab-v5

* dbseclab-v5

* dbseclab-v5

* dbseclab_v5.5

* dbseclab_v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab_v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab-v5.2

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab-v5.3

* dbseclab_v5.3

* dbseclab-v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab-v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclabs_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab-v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab-v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.3

* dbseclab_v5.4

* dbseclab_v5.4

* dbseclab_v5.4

* dbseclab_v5.4

* dbseclab_v5.4

* dbseclab-v5.4

* dbseclab_v5.4

* dbseclab-v5.5

* dbseclab-v5;5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab-v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* dbseclab_v5.5

* Squashed commit of the following:

commit 41135e2
Author: Dan Wiliams <127415766+dannymgithub@users.noreply.github.com>
Date:   Thu Dec 21 17:09:01 2023 -0500

    WMS 11492- SQL Firewall  new Livelabs  (#157)

    * Revert "[WMSID 11492] SQL Firewall new Livelabs (#153)"

    This reverts commit b00fe40.

    * Revert "Revert "[WMSID 11492] SQL Firewall new Livelabs (#153)""

    This reverts commit 575187b.

* dbseclab_v5.5

* dbseclab_v5

* dbseclab_v5.5

* dbseclab_v5.6

* dbseclab_v5.6

* dbseclab_v5.6

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab_v6.0

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab_v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.2

* dbseclab-v6.2

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* updating dv lab - rce

* small updates - rce

* make changes - rce

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

* dbseclab-v6.1

---------

Co-authored-by: Hakim LOUMI <hloumi76@gmail.com>
Co-authored-by: Dan Wiliams <127415766+dannymgithub@users.noreply.github.com>
Co-authored-by: richardcevans <richardcevans@gmail.com>
  • Loading branch information
4 people authored May 14, 2024
1 parent bbf2433 commit f76a226
Show file tree
Hide file tree
Showing 58 changed files with 17 additions and 17 deletions.
Binary file modified database/baseline/sqlfw/images/sqlfw-005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-026.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-027.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-028.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-029.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-030.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-031.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-033.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-034.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-035.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-036.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-038.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-039.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-040.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-041.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-043.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified database/baseline/sqlfw/images/sqlfw-045.png
Binary file modified database/baseline/sqlfw/images/sqlfw-046.png
Binary file modified database/baseline/sqlfw/images/sqlfw-049.png
Binary file modified database/baseline/sqlfw/images/sqlfw-050.png
Binary file modified database/baseline/sqlfw/images/sqlfw-052.png
Binary file modified database/baseline/sqlfw/images/sqlfw-053.png
Binary file modified database/baseline/sqlfw/images/sqlfw-056.png
Binary file modified database/baseline/sqlfw/images/sqlfw-057.png
Binary file modified database/baseline/sqlfw/images/sqlfw-058.png
Binary file modified database/baseline/sqlfw/images/sqlfw-059.png
Binary file modified database/baseline/sqlfw/images/sqlfw-061.png
Binary file modified database/baseline/sqlfw/images/sqlfw-067b.png
Binary file modified database/baseline/sqlfw/images/sqlfw-071.png
Binary file modified database/baseline/sqlfw/images/sqlfw-072.png
Binary file modified database/baseline/sqlfw/images/sqlfw-073.png
Binary file modified database/baseline/sqlfw/images/sqlfw-074.png
Binary file modified database/baseline/sqlfw/images/sqlfw-075.png
Binary file modified database/baseline/sqlfw/images/sqlfw-076.png
Binary file modified database/baseline/sqlfw/images/sqlfw-077.png
Binary file modified database/baseline/sqlfw/images/sqlfw-078.png
Binary file modified database/baseline/sqlfw/images/sqlfw-079.png
Binary file modified database/baseline/sqlfw/images/sqlfw-080.png
Binary file added database/baseline/sqlfw/images/sqlfw-081.png
Binary file modified database/baseline/sqlfw/images/sqlfw-082.png
Binary file modified database/baseline/sqlfw/images/sqlfw-090.png
Binary file modified database/baseline/sqlfw/images/sqlfw-091.png
Binary file modified database/baseline/sqlfw/images/sqlfw-092.png
Binary file modified database/baseline/sqlfw/images/sqlfw-204.png
Binary file modified database/baseline/sqlfw/images/sqlfw-205.png
Binary file modified database/baseline/sqlfw/images/sqlfw-207.png
Binary file modified database/baseline/sqlfw/images/sqlfw-concept.png
30 changes: 15 additions & 15 deletions database/baseline/sqlfw/sqlfw.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This workshop introduces the functionality of Oracle SQL Firewall. It gives the
*Version tested in this lab:* Oracle DBEE 23.2

### Video Preview
Watch a preview of "*Introducing SQL Firewall – a new security capability in Oracle Database*" [](youtube:aiwb6od3mfo)
Watch a preview of "*Introducing SQL Firewall – a new security capability in Oracle Database 23ai*" [](youtube:81N23MDhYXU)

### Objectives
- Train the SQL Firewall to learn the normal activity
Expand Down Expand Up @@ -73,7 +73,7 @@ To use a database with Oracle Data Safe, you first need to register it with Orac

6. Fill out as following:

- Name: `<Your Private Endpoint Name>` (here "*`DBSeclabs_DB23c`*")
- Name: `<Your Private Endpoint Name>` (here "*`DBSeclabs_EP_DB23ai`*")
- Compartment: Select your Compartment
- Virtual cloud network: Select your VCN
- Subnet: Select your Subnet
Expand All @@ -87,7 +87,7 @@ To use a database with Oracle Data Safe, you first need to register it with Orac
![SQLFW](./images/sqlfw-006.png "the Private endpoint is ACTIVE")

**Note**:
- A Private IP is assigned to this Private endpoint (here '10.0.0.113')
- A Private IP is assigned to this Private endpoint (here '10.0.0.57')
- There's no target database register by default

9. Now, configure your target database to be registered into Data Safe
Expand Down Expand Up @@ -135,14 +135,14 @@ To use a database with Oracle Data Safe, you first need to register it with Orac
- Fill out the "Register Target Database" as following
- Database Type: Select *`Oracle On-Premises Database`*
- Data Safe Target Display Name: *`DBSeclabs_DB23c-freepdb1`*
- Description: *`On-Premises pluggable database of DB23c VM (freepdb1)`*
- Data Safe Target Display Name: *`DBSeclabs_DB23ai-freepdb1`*
- Description: *`On-Premises pluggable database of DB23ai VM (freepdb1)`*
- Compartment: Select your own Compartment
![SQLFW](./images/sqlfw-011.png "Fill out the Register Target Database parameters")
- Choose a connectivity option: *`Private endpoint`*
- Select private endpoint: Select *`DBSeclabs_DB23c`*
- Select private endpoint: Select *`DBSeclabs_EP_DB23ai`*
- TCP/TLS: *`TCP`*
- Database Service Name: *`freepdb1`*
- Database IP Address: *`10.0.0.155`*
Expand Down Expand Up @@ -202,7 +202,7 @@ To use a database with Oracle Data Safe, you first need to register it with Orac
## Task 1b: Enable SQL Firewall to protect Glassfish HR Application
In this lab you will learn how the administrator trains the system to learn the authorized SQL statements and the trusted connection paths of HR application. SQL Firewall policy is generated with allow-lists representing authorized SQL connections and statements, and deployed to the target.
In this task you will learn how the administrator trains the system to learn the authorized SQL statements and the trusted connection paths of HR application. SQL Firewall policy is generated with allow-lists representing authorized SQL connections and statements, and deployed to the target.
### Step 1: Enable SQL Firewall
Expand All @@ -215,7 +215,7 @@ In this lab you will learn how the administrator trains the system to learn the
![SQLFW](./images/sqlfw-026.png "Click on SQL Firewall sub-menu")
3. Click on the target database **`DBSeclabs_DB23c-freepdb1`**
3. Click on the target database **`DBSeclabs_DB23ai-freepdb1`**
![SQLFW](./images/sqlfw-027.png "Click on the target DB")
Expand Down Expand Up @@ -278,7 +278,7 @@ In this lab you will learn how the administrator trains the system to learn the
**Note:** Click [**Refresh insights**] if you don't see any data!
![SQLFW](./images/sqlfw-037.png "Refresh SQL collections insights")
<!-- ![SQLFW](./images/sqlfw-037.png "Refresh SQL collections insights") -->
4. If you are satisfied, click [**Stop**] to stop the SQL workload capture
Expand Down Expand Up @@ -375,17 +375,17 @@ In this lab you will learn how the administrator trains the system to learn the
- Associate the SQL Firewall violation policy to your target database
- Select **Selected targets only (up to 10)** and choose *`DBSeclabs_DB23c-freepdb1`*
- Select **Selected policies only** and choose *`SQL Firewall violations`*
- Select **Selected targets only (up to 10)** and choose *`DBSeclabs_DB23ai-freepdb1`*
- Select **Selected policies only** and choose *`All policies`*
![SQLFW](./images/sqlfw-057.png "Associate the SQL Firewall violation policy")
- Click [**Apply policy**]
![SQLFW](./images/sqlfw-058.png "Apply policy")
- Once the association is done, you can click on **Close** to close the window
![SQLFW](./images/sqlfw-058.png "Apply policy")
- Now, you should see your target database associated to the SQL Firewall violations policy
![SQLFW](./images/sqlfw-059.png "SQL Firewall violations policy associated")
Expand Down Expand Up @@ -680,7 +680,7 @@ Here, we will enable the SQL Firewall to block on detection of unauthorized SQL
![SQLFW](./images/sqlfw-203.png "Target databases")
- Click on the target database **`DBSeclabs_DB23c-freepdb1`**
- Click on the target database **`DBSeclabs_DB23ai-freepdb1`**
![SQLFW](./images/sqlfw-204.png "Target database to deregister")
Expand Down Expand Up @@ -718,7 +718,7 @@ With PL/SQL procedures in the `SYS.DBMS_SQL_FIREWALL` package, you can administe
In this lab you will learn how the administrator trains the system to learn the authorized SQL statements and the trusted connection paths of HR application. SQL Firewall policy is generated with allow-lists representing authorized SQL connections and statements, and deployed to the target.
## Step 1: Setup SQL Firewall env
### Step 1: Setup SQL Firewall env
1. Create an administrator (**`dba_tom`**) to manage SQL Firewall
Expand Down
4 changes: 2 additions & 2 deletions database/common/init-start-env/init-start-env-sqlfw.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This lab assumes you have:
![DB Service Status](images/db-service-status.png "DB Service Status")
- DBSec-lab Service (Enterprise Manager 13c and My HR Applications on Glassfish)
- DBSec-lab Service (My HR Applications on Glassfish and other components)
```
<copy>
Expand Down Expand Up @@ -154,7 +154,7 @@ You may now **proceed to the next lab**.
<copy>sudo systemctl restart oracle-database</copy>
```
2. DBSec-lab Service (Enterprise Manager 13c and My HR Applications on Glassfish)
2. DBSec-lab Service (My HR Applications on Glassfish and other components)
- Start
Expand Down

0 comments on commit f76a226

Please sign in to comment.