Skip to content

Commit d40d4e1

Browse files
authored
Merge pull request #1621 from oracle-devrel/oci-security-health-check-standard-2503
Oci security health check standard 2503
2 parents 970be75 + f58973b commit d40d4e1

15 files changed

+433
-109
lines changed

security/security-design/shared-assets/oci-security-health-check-standard/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

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

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 241206
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
Reviewed: 01.02.2024
88

@@ -13,7 +13,7 @@ Reviewed: 01.02.2024
1313

1414
## When to use this asset?
1515

16-
The *OCI Security Health Check - Standard Edition* checks an OCI tenancy for [CIS Oracle Cloud Infrastructure Foundations Benchmark](https://www.cisecurity.org/benchmark/Oracle_Cloud) compliance.
16+
The *OCI Security Health Check - Standard Edition* checks your OCI tenancy for [CIS Oracle Cloud Infrastructure Foundations Benchmark](https://www.cisecurity.org/benchmark/Oracle_Cloud) compliance.
1717

1818
### Disclaimer
1919

@@ -28,6 +28,25 @@ The main goals of this script are:
2828
- Make the run as easy and smooth as possible.
2929
- Do not affect your desktop whenever possible.
3030

31+
## Benefits of this package
32+
33+
This package includes *two* files
34+
- standard.sh
35+
- scripts/cis_reports/cis_reports.py
36+
37+
The file standard.sh acts as the entry point and does the following:
38+
39+
- Automatic check for Python runtime version
40+
- Automatic venv creation and activation
41+
- Automatci installation of required Python libraries
42+
- Automatic **OCI Cloud Shell** and tenancy name detection
43+
- Automatic creation of timestamped output directory
44+
- Call of cis_reports.py
45+
- Automatic output archive (ZIP file) creation
46+
- Automatic runtime protocol
47+
48+
Tested on **OCI Cloud Shell** with **Public network**, **Oracle Linux**, **MacOS 12** and higher.
49+
3150
## Complete Runtime Example
3251

3352
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).
@@ -38,22 +57,22 @@ See the *OCI Security Health Check - Standard Edition* in action and watch the [
3857

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

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).
60+
- Download the latest distribution [oci-security-health-check-standard-250307.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-250307.zip).
4261
- Download the respective checksum file:
43-
- [oci-security-health-check-standard-241206.sha512](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.sha512).
44-
- [oci-security-health-check-standard-241206.sha512256](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.sha512256).
62+
- [oci-security-health-check-standard-250307.sha512](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-250307.sha512).
63+
- [oci-security-health-check-standard-250307.sha512256](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-250307.sha512256).
4564
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
4665

4766
On MacOS:
4867
```
4968
cd <your_downloads_directory>
50-
shasum -a 512256 -c oci-security-health-check-standard-241206.sha512256
69+
shasum -a 512256 -c oci-security-health-check-standard-250307.sha512256
5170
```
5271
5372
On Linux (including Cloud Shell):
5473
```
5574
cd <your_downloads_directory>
56-
sha512sum -c oci-security-health-check-standard-241206.sha512
75+
sha512sum -c oci-security-health-check-standard-250307.sha512
5776
```
5877
5978
**Reject the downloaded file if the check fails!**
@@ -66,10 +85,10 @@ In OCI Cloud Shell you can do a short cut without downloading the files mentione
6685
2. Open Cloud Shell
6786
3. Run these commands in your Cloud Shell:
6887
```
69-
wget -q 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
70-
wget -q 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.sha512
71-
sha512sum -c oci-security-health-check-standard-241206.sha512
72-
unzip -q oci-security-health-check-standard-241206.zip
88+
wget -q 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-250307.zip
89+
wget -q 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-250307.sha512
90+
sha512sum -c oci-security-health-check-standard-250307.sha512
91+
unzip -q oci-security-health-check-standard-250307.zip
7392
```
7493
7594
## Prepare the OCI Tenancy
@@ -145,7 +164,7 @@ The *OCI Security Health Check - Standard Edition* would not be possible without
145164
146165
# License
147166
148-
Copyright (c) 2024 Oracle and/or its affiliates.
167+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
149168
150169
Licensed under the Universal Permissive License (UPL), Version 1.0.
151170

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 241206 (cis_report.py version 2.8.6)
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
## When to use this asset?
88

@@ -27,22 +27,22 @@ The main goals of this script are:
2727

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

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).
30+
- Download the latest distribution [oci-security-health-check-standard-250307.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-250307.zip).
3131
- Download the respective checksum file:
32-
- [oci-security-health-check-standard-241206.sha512](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.sha512).
33-
- [oci-security-health-check-standard-241206.sha512256](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.sha512256).
32+
- [oci-security-health-check-standard-250307.sha512](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-250307.sha512).
33+
- [oci-security-health-check-standard-250307.sha512256](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-250307.sha512256).
3434
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
3535

3636
On MacOS:
3737
```
3838
cd <your_downloads_directory>
39-
shasum -a 512256 -c oci-security-health-check-standard-241206.sha512256
39+
shasum -a 512256 -c oci-security-health-check-standard-250307.sha512256
4040
```
4141
4242
On Linux (including Cloud Shell):
4343
```
4444
cd <your_downloads_directory>
45-
sha512sum -c oci-security-health-check-standard-241206.sha512
45+
sha512sum -c oci-security-health-check-standard-250307.sha512
4646
```
4747
4848
**Reject the downloaded file when the check fails!**
@@ -187,7 +187,7 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
187187
- Upload the distribution file.
188188
- Extract it
189189
```
190-
unzip -q oci-security-health-check-standard-241206.zip
190+
unzip -q oci-security-health-check-standard-250307.zip
191191
```
192192
193193
#### Run the script
@@ -261,11 +261,11 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
261261
Follow the instructions to select /usr/bin/python3.9
262262
- Log out
263263
264-
- From your desktop, upload the `oci-security-health-check-standard-241206.zip` file to the Compute VM using any SFTP client.
264+
- From your desktop, upload the `oci-security-health-check-standard-250307.zip` file to the Compute VM using any SFTP client.
265265
- Log into the Compute VM
266266
- Extract the distribution
267267
```
268-
unzip -q oci-security-health-check-standard-241206.zip
268+
unzip -q oci-security-health-check-standard-250307.zip
269269
```
270270
- Change directory into `oci-security-health-check-standard`:
271271
```
@@ -337,7 +337,7 @@ The Compliance Checking Script is certified by the [CIS Center of Internet Secur
337337
338338
# License
339339
340-
Copyright (c) 2022-2024 Oracle and/or its affiliates.
340+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
341341
342342
Licensed under the Universal Permissive License (UPL), Version 1.0.
343343

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

Lines changed: 5 additions & 5 deletions
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: 241206 (cis_report.py version 2.8.6)
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
When to use this asset?
88

@@ -85,7 +85,7 @@ Usage
8585
- From the menu select the Cloud Shell item.
8686
- When running it the first time:
8787
- Upload the provided ZIP file.
88-
- Extract it with unzip -q oci-security-health-check-standard-241206.zip
88+
- Extract it with unzip -q oci-security-health-check-standard-250307.zip
8989
- Change directory into oci-security-health-check-standard
9090
$ cd oci-security-health-check-standard
9191
$ screen
@@ -142,11 +142,11 @@ Usage
142142
- Log out
143143

144144
- From your desktop, upload the
145-
"oci-security-health-check-standard-241206.zip" file to the Compute VM
145+
"oci-security-health-check-standard-250307.zip" file to the Compute VM
146146
using any SFTP client.
147147
- Log into the Compute VM
148148
- Extract the distribution
149-
unzip -q oci-security-health-check-standard-241206.zip
149+
unzip -q oci-security-health-check-standard-250307.zip
150150

151151
- Change directory into "oci-security-health-check-standard":
152152
cd oci-security-health-check-standard
@@ -215,7 +215,7 @@ The Compliance Checking Script is certified by the Center of Internet Security
215215

216216
License
217217

218-
Copyright (c) 2022-2024 Oracle and/or its affiliates.
218+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
219219

220220
Licensed under the Universal Permissive License (UPL), Version 1.0.
221221

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pytz
33
pandas
44
openpyxl>=3.1.5
55
pyyaml>=6.0
6-
oci>=2.129.4
6+
oci>=2.147.0
77
requests
88
matplotlib
99
numpy

0 commit comments

Comments
 (0)