Skip to content

Commit 5ec9d29

Browse files
Merge pull request #800 from oracle-devrel/oci-security-health-check-update-240130
Oci security health check update 240130
2 parents 040474e + d904cbb commit 5ec9d29

File tree

7 files changed

+916
-167
lines changed

7 files changed

+916
-167
lines changed

security/security-design/shared-assets/oci-security-health-check-standard/README.md

+31-22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 230922
5+
Version: 240130
66

77
Reviewed: 01.02.2024
88

@@ -67,28 +67,37 @@ For recurring usage, setting up a group for auditing is recommended. For setting
6767
Using an auditor group is the recommended way to run the assessment script.
6868
To create a group for auditing do the following steps:
6969
70-
- Log into OCI Console as OCI administrator
71-
- Create a group `grp-auditors`
72-
- Create a policy `pcy-auditing` with these statements:
70+
- Log into OCI Console as OCI administrator.
71+
- In your Default domain create a group `grp-auditors`
72+
- Create a policy `pcy-auditing` with these statements (if your tenancy does not have Domains, replace `'Default'/'grp-auditors'` with `grp-auditors`):
7373
```
74-
allow group grp-auditors to inspect all-resources in tenancy
75-
allow group grp-auditors to read instances in tenancy
76-
allow group grp-auditors to read load-balancers in tenancy
77-
allow group grp-auditors to read buckets in tenancy
78-
allow group grp-auditors to read nat-gateways in tenancy
79-
allow group grp-auditors to read public-ips in tenancy
80-
allow group grp-auditors to read file-family in tenancy
81-
allow group grp-auditors to read instance-configurations in tenancy
82-
allow group grp-auditors to read network-security-groups in tenancy
83-
allow group grp-auditors to read resource-availability in tenancy
84-
allow group grp-auditors to read audit-events in tenancy
85-
allow group grp-auditors to read users in tenancy
86-
allow group grp-auditors to read vss-family in tenancy
87-
allow group grp-auditors to read dns in tenancy
88-
allow group grp-auditors to use cloud-shell in tenancy
89-
```
90-
- Assign a user to the `grp-auditors` group
91-
- Log out of the OCI Console
74+
allow group 'Default'/'grp-auditors' to inspect all-resources in tenancy
75+
allow group 'Default'/'grp-auditors' to read instances in tenancy
76+
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
77+
allow group 'Default'/'grp-auditors' to read buckets in tenancy
78+
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
79+
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
80+
allow group 'Default'/'grp-auditors' to read file-family in tenancy
81+
allow group 'Default'/'grp-auditors' to read instance-configurations in tenancy
82+
allow group 'Default'/'grp-auditors' to read network-security-groups in tenancy
83+
allow group 'Default'/'grp-auditors' to read resource-availability in tenancy
84+
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
85+
allow group 'Default'/'grp-auditors' to read users in tenancy
86+
allow group 'Default'/'grp-auditors' to read vss-family in tenancy
87+
allow group 'Default'/'grp-auditors' to read dns in tenancy
88+
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy ```
89+
- Assign a user to the `grp-auditors` group.
90+
- Log out of the OCI Console.
91+
92+
## Run the OCI Security Health Check in OCI Cloud Shell
93+
94+
For a detailed description go to [Run the OCI Security Health Check in OCI Cloud Shell](https://github.com/oracle-devrel/technology-engineering/blob/main/security/security-design/oci-security-health-check-standard/files/oci-security-health-check-standard/README.md#run-the-oci-security-health-check-in-cloud-shell)
95+
96+
## Sample Output
97+
98+
After a completed run you will find a directory with a name starting with your tenancy name followed by a timestamp in your working directory (like `tenancy_name_YYYYMMDDHHmmss_standard`). A zip archive for easier download using the same name will be created, too. Both hold data files for your review.
99+
100+
To start with reviewing the results, open the file named [cis_html_summary_report.html](files/resources/cis_html_summary_report.html)(sample report).
92101
93102
# Credits
94103

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/README.md

+56-28
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 230922
5+
Version: 240130
66

77
## When to use this asset?
88

@@ -14,25 +14,25 @@ The *OCI Security Health Check - Standard Edition* checks an OCI tenancy for CIS
1414

1515
Before running the *OCI Security Health Check - Standard Edition* you should download and verify it.
1616

17-
- Download the latest distribution [oci-security-health-check-standard-230922.zip](https://github.com/oracle-devrel/technology-engineering/releases/download/oci-security-health-check-std-230922/oci-security-health-check-standard-230922.zip).
18-
- Download the respective checksum file [oci-security-health-check-standard-230922.sha512256](https://github.com/oracle-devrel/technology-engineering/releases/download/oci-security-health-check-std-230922/oci-security-health-check-standard-230922.sha512256).
17+
- Download the latest distribution [oci-security-health-check-standard-240130.zip](https://github.com/oracle-devrel/technology-engineering/releases/download/oci-security-health-check-std-240130/oci-security-health-check-standard-240130.zip).
18+
- Download the respective checksum file [oci-security-health-check-standard-240130.sha512256](https://github.com/oracle-devrel/technology-engineering/releases/download/oci-security-health-check-std-240130/oci-security-health-check-standard-240130.sha512256).
1919
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
2020

2121
On MacOS:
2222
```
2323
$ cd <your_downloads_directory>
24-
$ shasum -a 512256 -c oci-security-health-check-standard-230922.sha512256
25-
oci-security-health-check-standard-230922.zip: OK
24+
$ shasum -a 512256 -c oci-security-health-check-standard-240130.sha512256
25+
oci-security-health-check-standard-240130.zip: OK
2626
```
2727
2828
On Linux (including Cloud Shell):
2929
```
3030
$ cd <your_downloads_directory>
31-
$ sha512sum -c oci-security-health-check-standard-230922.sha512
32-
oci-security-health-check-standard-230922.zip: OK
31+
$ sha512sum -c oci-security-health-check-standard-240130.sha512
32+
oci-security-health-check-standard-240130.zip: OK
3333
```
3434
35-
**Reject the downloaded file if the check fails!**
35+
**Reject the downloaded file when the check fails!**
3636
3737
### Prepare the OCI Tenancy
3838
@@ -51,26 +51,48 @@ steps for setting this up are described in the next chapter.
5151
Using an auditor group is the recommended way to run the assessment script.
5252
To create a group for auditing do the following steps:
5353
54-
- Log into OCI Console as OCI administrator
54+
- Check whether your tenancy is still not migrated to Identity Domains:
55+
- Login to OCI Console as OCI administrator
56+
- Select "Identity & Security"
57+
- If "Domains" are listed you are migrated to Identity Domains
5558
- Create a group `grp-auditors`
5659
- Create a policy `pcy-auditing` with these statements:
57-
```
58-
allow group grp-auditors to inspect all-resources in tenancy
59-
allow group grp-auditors to read instances in tenancy
60-
allow group grp-auditors to read load-balancers in tenancy
61-
allow group grp-auditors to read buckets in tenancy
62-
allow group grp-auditors to read nat-gateways in tenancy
63-
allow group grp-auditors to read public-ips in tenancy
64-
allow group grp-auditors to read file-family in tenancy
65-
allow group grp-auditors to read instance-configurations in tenancy
66-
allow group grp-auditors to read network-security-groups in tenancy
67-
allow group grp-auditors to read resource-availability in tenancy
68-
allow group grp-auditors to read audit-events in tenancy
69-
allow group grp-auditors to read users in tenancy
70-
allow group grp-auditors to read vss-family in tenancy
71-
allow group grp-auditors to read dns in tenancy
72-
allow group grp-auditors to use cloud-shell in tenancy
73-
```
60+
- For tenancies **without** Identity Domains use
61+
```
62+
allow group grp-auditors to inspect all-resources in tenancy
63+
allow group grp-auditors to read instances in tenancy
64+
allow group grp-auditors to read load-balancers in tenancy
65+
allow group grp-auditors to read buckets in tenancy
66+
allow group grp-auditors to read nat-gateways in tenancy
67+
allow group grp-auditors to read public-ips in tenancy
68+
allow group grp-auditors to read file-family in tenancy
69+
allow group grp-auditors to read instance-configurations in tenancy
70+
allow group grp-auditors to read network-security-groups in tenancy
71+
allow group grp-auditors to read resource-availability in tenancy
72+
allow group grp-auditors to read audit-events in tenancy
73+
allow group grp-auditors to read users in tenancy
74+
allow group grp-auditors to read vss-family in tenancy
75+
allow group grp-auditors to read dns in tenancy
76+
allow group grp-auditors to use cloud-shell in tenancy
77+
```
78+
- For tenancies **with** Identity Domains use
79+
```
80+
allow group 'Default'/'grp-auditors' to inspect all-resources in tenancy
81+
allow group 'Default'/'grp-auditors' to read instances in tenancy
82+
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
83+
allow group 'Default'/'grp-auditors' to read buckets in tenancy
84+
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
85+
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
86+
allow group 'Default'/'grp-auditors' to read file-family in tenancy
87+
allow group 'Default'/'grp-auditors' to read instance-configurations in tenancy
88+
allow group 'Default'/'grp-auditors' to read network-security-groups in tenancy
89+
allow group 'Default'/'grp-auditors' to read resource-availability in tenancy
90+
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
91+
allow group 'Default'/'grp-auditors' to read users in tenancy
92+
allow group 'Default'/'grp-auditors' to read vss-family in tenancy
93+
allow group 'Default'/'grp-auditors' to read dns in tenancy
94+
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy
95+
```
7496
- Assign a user to the `grp-auditors` group
7597
- Log out of the OCI Console
7698
@@ -128,6 +150,12 @@ The report results are summarized in two files:
128150
- *cis_html_summary_report.html* &ndash; The report in HTML that displays the all recommendations and their compliance status, respectively.
129151
- *Consolidated_Report.xslx* &ndash; An XSLX workbook with a summary and sheets for the non-compliant recommendations.
130152
153+
### Known Issues
154+
155+
#### Wrong urllib3 version
156+
157+
There is a known dependency between Python urllib3 version 2 and the OS installed version of OpenSSL. The script tries to handle this automatically using a working version of urllib3. If the handling does not work let us know.
158+
131159
## Credits
132160
133161
The *OCI Security Health Check - Standard Edition* streamlines the usage of the bundled [Compliance Checking Script](https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart/blob/main/compliance-script.md) provided by the [CIS OCI Landing Zone Quick Start Template](https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart).
@@ -140,8 +168,8 @@ The Compliance Checking Script is certified by the [CIS Center of Internet Secur
140168
141169
# License
142170
143-
Copyright (c) 2022-2023 Oracle and/or its affiliates.
171+
Copyright (c) 2022-2024 Oracle and/or its affiliates.
144172
145173
Licensed under the Universal Permissive License (UPL), Version 1.0.
146174
147-
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/folder-structure/LICENSE) for more details.
175+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/README.txt

+31-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OCI Security Health Check - Standard Edition
33
============================================
44
Owner: Olaf Heimburger
5-
Version: 230922
5+
Version: 240130
66

77
When to use this asset?
88

@@ -23,12 +23,13 @@ Usage
2323
steps for setting this up are described in the next chapter.
2424

2525
1.1 Setup an Auditor group and policy
26-
Using an auditor group is the recommended way to run the assessment script.
27-
To create a group for auditing do the following steps:
28-
29-
- Log into OCI Console as OCI administrator
26+
- Check whether your tenancy is still not migrated to Identity Domains:
27+
- Login to OCI Console as OCI Administrator
28+
- Select "Identity & Security"
29+
- If "Domains" are listed you are migrated to Identity Domains
3030
- Create a group grp-auditors
3131
- Create a policy pcy-auditing with these statements:
32+
- For tenancies without Identity Domains use
3233
allow group grp-auditors to inspect all-resources in tenancy
3334
allow group grp-auditors to read instances in tenancy
3435
allow group grp-auditors to read load-balancers in tenancy
@@ -44,6 +45,22 @@ Usage
4445
allow group grp-auditors to read vss-family in tenancy
4546
allow group grp-auditors to read dns in tenancy
4647
allow group grp-auditors to use cloud-shell in tenancy
48+
- For tenancies *with* Identity Domains use
49+
allow group 'Default'/'grp-auditors' to inspect all-resources in tenancy
50+
allow group 'Default'/'grp-auditors' to read instances in tenancy
51+
allow group 'Default'/'grp-auditors' to read load-balancers in tenancy
52+
allow group 'Default'/'grp-auditors' to read buckets in tenancy
53+
allow group 'Default'/'grp-auditors' to read nat-gateways in tenancy
54+
allow group 'Default'/'grp-auditors' to read public-ips in tenancy
55+
allow group 'Default'/'grp-auditors' to read file-family in tenancy
56+
allow group 'Default'/'grp-auditors' to read instance-configurations in tenancy
57+
allow group 'Default'/'grp-auditors' to read network-security-groups in tenancy
58+
allow group 'Default'/'grp-auditors' to read resource-availability in tenancy
59+
allow group 'Default'/'grp-auditors' to read audit-events in tenancy
60+
allow group 'Default'/'grp-auditors' to read users in tenancy
61+
allow group 'Default'/'grp-auditors' to read vss-family in tenancy
62+
allow group 'Default'/'grp-auditors' to read dns in tenancy
63+
allow group 'Default'/'grp-auditors' to use cloud-shell in tenancy
4764
- Assign a user to the grp-auditors group
4865
- Log out of OCI Console
4966

@@ -72,20 +89,25 @@ Usage
7289
compressed in a single ZIP file and the resulting ZIP file will be moved to
7390
the home directory of the account running the script.
7491

92+
4 Known Issues
93+
94+
4.1 Wrong urllib3 version
95+
96+
There is a known dependency between Python urllib3 version 2 and the OS installed version of OpenSSL. The script tries to handle this automatically using a working version of urllib3. If the handling does not work let us know.
7597

76-
4 Credits
98+
5 Credits
7799

78100
The OCI Security Health Check - Standard Edition streamlines the usage of the bundled Compliance Checking Script (https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart/blob/main/compliance-script.md) provided by the CIS OCI Landing Zone Quick Start Template (https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart).
79101

80102
The OCI Security Health Check - Standard Edition would not be possible without the great work of the CIS OCI Landing Zone Quick Start Template Team (https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart/graphs/contributors).
81103

82-
5 Certification
104+
6 Certification
83105

84106
The Compliance Checking Script is certified by the CIS Center of Internet Security for the OCI Oracle Cloud Foundation Benchmark v1.2.O, Level 1 and 2 (https://www.cisecurity.org/partner/oracle).
85107

86-
6 License
108+
7 License
87109

88-
Copyright (c) 2022-2023 Oracle and/or its affiliates.
110+
Copyright (c) 2022-2024 Oracle and/or its affiliates.
89111

90112
Licensed under the Universal Permissive License (UPL), Version 1.0.
91113

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
urllib3==1.26.17
12
xlsxwriter>=3.0.3
23
pandas>=1.5.2
34
openpyxl>=3.0.10
45
pyyaml>=6.0
5-
oci>=2.110
6+
oci>=2.119.0

0 commit comments

Comments
 (0)