You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: security/security-design/shared-assets/oci-security-health-check-standard/README.md
+30-18Lines changed: 30 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Owner: Olaf Heimburger
4
4
5
-
Version: 241011
5
+
Version: 241206
6
6
7
7
Reviewed: 01.02.2024
8
8
@@ -19,6 +19,15 @@ The *OCI Security Health Check - Standard Edition* checks an OCI tenancy for [CI
19
19
20
20
This asset covers the OCI platform as specified in the *CIS Oracle Cloud Infrastructure Foundations Benchmark*, only. Any workload provisioned in Databases, Compute VMs (running any Operating System), the Container Engine for Kubernetes, or in the VMware Solution is *out of scope* of the *OCI Security Health Check*.
21
21
22
+
**This is not an official Oracle application and it is not supported by Oracle Support.**
23
+
24
+
## Before you begin
25
+
26
+
The main goals of this script are:
27
+
28
+
- Make the run as easy and smooth as possible.
29
+
- Do not affect your desktop whenever possible.
30
+
22
31
## Complete Runtime Example
23
32
24
33
See the *OCI Security Health Check - Standard Edition* in action and watch the [OCI Health Checks - Self Service video](https://www.youtube.com/watch?v=EzjKLxfxaAM).
@@ -29,22 +38,22 @@ See the *OCI Security Health Check - Standard Edition* in action and watch the [
29
38
30
39
Before running the *OCI Security Health Check - Standard Edition* you should download and verify it.
31
40
32
-
- Download the latest distribution [oci-security-health-check-standard-241011.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241011.zip).
41
+
- Download the latest distribution [oci-security-health-check-standard-241206.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.zip).
@@ -76,7 +85,8 @@ quickest way. If you decide to use this option, please continue reading in
76
85
77
86
### Recurring usage
78
87
79
-
For recurring usage, setting up a group for auditing is recommended. For setting this up follow the steps documented next.
88
+
For recurring usage, setting up a group for auditing is recommended. For setting this up follow the steps documented in the next section.
89
+
This applies for scenarios using the OCI Cloud Shell with public Internet access. For additional usage scenarios see the detailed instructions [README](files/oci-security-health-check-standard/README.md).
80
90
81
91
### Setting up an *Auditor* group and policy
82
92
@@ -88,20 +98,22 @@ To create a group for auditing do the following steps:
88
98
- Create a policy `pcy-auditing` with these statements (if your tenancy does not have Domains, replace `'Default'/'grp-auditors'` with `grp-auditors`):
89
99
```
90
100
allow group 'Default'/'grp-auditors' to inspect all-resources in tenancy
91
-
allow group 'Default'/'grp-auditors' to read instances in tenancy
92
-
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
101
+
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
93
102
allow group 'Default'/'grp-auditors' to read buckets in tenancy
94
-
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
95
-
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
103
+
allow group 'Default'/'grp-auditors' to read dns in tenancy
104
+
allow group 'Default'/'grp-auditors' to read domains in tenancy
96
105
allow group 'Default'/'grp-auditors' to read file-family in tenancy
97
106
allow group 'Default'/'grp-auditors' to read instance-configurations in tenancy
107
+
allow group 'Default'/'grp-auditors' to read instances in tenancy
108
+
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
109
+
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
98
110
allow group 'Default'/'grp-auditors' to read network-security-groups in tenancy
111
+
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
99
112
allow group 'Default'/'grp-auditors' to read resource-availability in tenancy
100
-
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
101
113
allow group 'Default'/'grp-auditors' to read users in tenancy
102
114
allow group 'Default'/'grp-auditors' to read vss-family in tenancy
103
-
allow group 'Default'/'grp-auditors' to read dns in tenancy
104
115
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy
116
+
allow group 'Default'/'grp-auditors' to use cloud-shell-public-network in tenancy
105
117
```
106
118
- Assign a user to the `grp-auditors` group.
107
119
- Log out of the OCI Console.
@@ -117,7 +129,7 @@ After a completed run you will find a directory with a name starting with your t
117
129
To start with reviewing the results, open the file named `tenancy_name_YYYYMMDDHHmmss_standard_cis_html_summary_report.html`.
Copy file name to clipboardExpand all lines: security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/README.md
+96-25Lines changed: 96 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Owner: Olaf Heimburger
4
4
5
-
Version: 241011 (cis_report.py version 2.8.4+)
5
+
Version: 241206 (cis_report.py version 2.8.6)
6
6
7
7
## When to use this asset?
8
8
@@ -12,31 +12,37 @@ The *OCI Security Health Check - Standard Edition* checks an OCI tenancy for CIS
12
12
13
13
This asset covers the OCI platform as specified in the *CIS Oracle Cloud Infrastructure Foundations Benchmark*, only. Any workload provisioned in Databases, Compute VMs (running any Operating System), the Container Engine for Kubernetes, or in the VMware Solution is *out of scope* of the *OCI Security Health Check*.
14
14
15
-
This is not an official Oracle application and it is not supported
16
-
by Oracle Support.
15
+
**This is not an official Oracle application and it is not supported by Oracle Support.**
16
+
17
+
## Before you begin
18
+
19
+
The main goals of this script are:
20
+
21
+
- Make the run as easy and smooth as possible.
22
+
- Do not affect your desktop whenever possible.
17
23
18
24
## Usage
19
25
20
26
### Download and verify the release file
21
27
22
28
Before running the *OCI Security Health Check - Standard Edition* you should download and verify it.
23
29
24
-
- Download the latest distribution [oci-security-health-check-standard-241011.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241011.zip).
30
+
- Download the latest distribution [oci-security-health-check-standard-241206.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.zip).
**Reject the downloaded file when the check fails!**
@@ -67,45 +73,109 @@ To create a group for auditing do the following steps:
67
73
- For tenancies **without** Identity Domains use
68
74
```
69
75
allow group grp-auditors to inspect all-resources in tenancy
70
-
allow group grp-auditors to read instances in tenancy
71
-
allow group grp-auditors to read load-balancers in tenancy
76
+
allow group grp-auditors to read audit-events in tenancy
72
77
allow group grp-auditors to read buckets in tenancy
73
-
allow group grp-auditors to read nat-gateways in tenancy
74
-
allow group grp-auditors to read public-ips in tenancy
78
+
allow group grp-auditors to read dns in tenancy
79
+
allow group grp-auditors to read domains in tenancy
75
80
allow group grp-auditors to read file-family in tenancy
76
81
allow group grp-auditors to read instance-configurations in tenancy
82
+
allow group grp-auditors to read instances in tenancy
83
+
allow group grp-auditors to read load-balancers in tenancy
84
+
allow group grp-auditors to read nat-gateways in tenancy
77
85
allow group grp-auditors to read network-security-groups in tenancy
86
+
allow group grp-auditors to read public-ips in tenancy
78
87
allow group grp-auditors to read resource-availability in tenancy
79
-
allow group grp-auditors to read audit-events in tenancy
80
88
allow group grp-auditors to read users in tenancy
81
89
allow group grp-auditors to read vss-family in tenancy
82
-
allow group grp-auditors to read dns in tenancy
83
90
allow group grp-auditors to use cloud-shell in tenancy
91
+
allow group grp-auditors to use cloud-shell-public-network in tenancy
84
92
```
85
93
- For tenancies **with** Identity Domains use
86
94
```
87
95
allow group 'Default'/'grp-auditors' to inspect all-resources in tenancy
88
-
allow group 'Default'/'grp-auditors' to read instances in tenancy
89
-
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
96
+
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
90
97
allow group 'Default'/'grp-auditors' to read buckets in tenancy
91
-
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
92
-
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
98
+
allow group 'Default'/'grp-auditors' to read dns in tenancy
99
+
allow group 'Default'/'grp-auditors' to read domains in tenancy
93
100
allow group 'Default'/'grp-auditors' to read file-family in tenancy
94
101
allow group 'Default'/'grp-auditors' to read instance-configurations in tenancy
102
+
allow group 'Default'/'grp-auditors' to read instances in tenancy
103
+
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
104
+
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
95
105
allow group 'Default'/'grp-auditors' to read network-security-groups in tenancy
106
+
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
96
107
allow group 'Default'/'grp-auditors' to read resource-availability in tenancy
97
-
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
98
108
allow group 'Default'/'grp-auditors' to read users in tenancy
99
109
allow group 'Default'/'grp-auditors' to read vss-family in tenancy
100
-
allow group 'Default'/'grp-auditors' to read dns in tenancy
101
110
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy
111
+
allow group 'Default'/'grp-auditors' to use cloud-shell-public-network in tenancy
102
112
```
103
113
- Assign a user to the `grp-auditors` group
104
114
- Log out of the OCI Console
105
115
106
116
### Run the OCI Security Health Check in OCI Cloud Shell
107
117
108
-
The recommended way is to run the *OCI Security Health Check - Standard* in the OCI Cloud Shell. It does not require any additional configuration on a local desktop machine.
118
+
The recommended way is to run the *OCI Security Health Check - Standard* in the [OCI Cloud Shell](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cloudshellintro.htm). It does not require any additional configuration on a local desktop machine.
119
+
120
+
#### Required IAM Policy statements
121
+
122
+
The following policy statement is part of the recommended policy statements for the `grp-auditors` group:
123
+
```
124
+
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy
125
+
```
126
+
127
+
#### Networking Options for OCI Cloud Shell
128
+
129
+
OCI Cloud Shell sessions do not allow for any incoming connections, and there is no public IP address available.
130
+
131
+
So far, the *OCI Security Health Check - Standard Edition* in OCI Cloud Shell has been tested with Public Network Access only.
132
+
133
+
For details on OCI Cloud Shell Networking refer to [OCI Cloud Shell Networking](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cloudshellintro_topic-Cloud_Shell_Networking.htm#cloudshellintro_topic-Cloud_Shell_Networking) documentation.
134
+
135
+
<!--
136
+
##### Public Network Access
137
+
138
+
The best networking option. When enabled the *OCI Security Health Check - Standard* can be run without any additional conifguration steps. To enable this option the following policy statement must be assigned to the `grp-auditors`:
139
+
140
+
```
141
+
allow group 'Default'/'grp-auditors' to use cloud-shell-public-network in tenancy
142
+
```
143
+
144
+
##### OCI Service Network Access
145
+
146
+
The default networking option for OCI Cloud Shell.
147
+
148
+
To use this option without access to the public Internet remove any presence of this policy statement:
149
+
150
+
```
151
+
allow group ... to use cloud-shell-public-network in tenancy
152
+
```
153
+
154
+
This option requires manual configuration of these Python libraries:
155
+
- [xlsxwriter]()
156
+
- [pytz]()
157
+
- [pandas]()
158
+
- [openpyxl]()
159
+
- [pyyaml]()
160
+
- [requests]()
161
+
162
+
For each library these steps need to done:
163
+
164
+
- Download the packages
165
+
- Upload the packages
166
+
- Unzip the packages
167
+
- Install the packages
168
+
169
+
##### Private Network Access
170
+
171
+
```
172
+
allow group 'Default'/'grp-auditors' to use subnets in compartment <compartment>
173
+
allow group 'Default'/'grp-auditors' to use vnics in compartment <compartment>
174
+
allow group 'Default'/'grp-auditors' to use network-security-groups in compartment <compartment>
175
+
allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment>
176
+
```
177
+
-->
178
+
109
179
110
180
#### Upload the release file
111
181
@@ -117,10 +187,10 @@ The recommended way is to run the *OCI Security Health Check - Standard* in the
0 commit comments