Skip to content

Commit 2f5b1a0

Browse files
authored
Merge pull request #1795 from oracle-devrel/oheimbur-250602
OCI Security Health Check - Standard Edition - Script fix
2 parents e3c87b0 + 631a5af commit 2f5b1a0

File tree

9 files changed

+27
-26
lines changed

9 files changed

+27
-26
lines changed

security/security-design/shared-assets/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: 250530 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
5+
Version: 250602 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
66

77
# Introduction
88
![Flyer](./files/resources/OCI_Security_Health_Check_Standard.png)
@@ -56,22 +56,22 @@ See the *OCI Security Health Check - Standard Edition* in action and watch the [
5656

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

59-
- Download the latest distribution [oci-security-health-check-standard-250530.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-250530.zip).
59+
- Download the latest distribution [oci-security-health-check-standard-250602.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-250602.zip).
6060
- Download the respective checksum file:
61-
- [oci-security-health-check-standard-250530.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-250530.sha512).
62-
- [oci-security-health-check-standard-250530.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-250530.sha512256).
61+
- [oci-security-health-check-standard-250602.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-250602.sha512).
62+
- [oci-security-health-check-standard-250602.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-250602.sha512256).
6363
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
6464

6565
On MacOS:
6666
```
6767
cd <your_downloads_directory>
68-
shasum -a 512256 -c oci-security-health-check-standard-250530.sha512256
68+
shasum -a 512256 -c oci-security-health-check-standard-250602.sha512256
6969
```
7070
7171
On Linux (including Cloud Shell):
7272
```
7373
cd <your_downloads_directory>
74-
sha512sum -c oci-security-health-check-standard-250530.sha512
74+
sha512sum -c oci-security-health-check-standard-250602.sha512
7575
```
7676
7777
**Reject the downloaded file if the check fails!**
@@ -84,10 +84,10 @@ In OCI Cloud Shell you can do a short cut without downloading the files mentione
8484
2. Open Cloud Shell
8585
3. Run these commands in your Cloud Shell:
8686
```
87-
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-250530.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-250530.sha512
89-
sha512sum -c oci-security-health-check-standard-250530.sha512
90-
unzip -q oci-security-health-check-standard-250530.zip
87+
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-250602.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-250602.sha512
89+
sha512sum -c oci-security-health-check-standard-250602.sha512
90+
unzip -q oci-security-health-check-standard-250602.zip
9191
```
9292
9393
## Prepare the OCI Tenancy

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

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

33
Owner: Olaf Heimburger
44

5-
Version: 250530 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
5+
Version: 250602 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
66

77
## When to use this asset?
88

@@ -47,22 +47,22 @@ Tested on **OCI Cloud Shell** with **Public network**, **Oracle Linux**, **MacOS
4747

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

50-
- Download the latest distribution [oci-security-health-check-standard-250530.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-250530.zip).
50+
- Download the latest distribution [oci-security-health-check-standard-250602.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-250602.zip).
5151
- Download the respective checksum file:
52-
- [oci-security-health-check-standard-250530.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-250530.sha512).
53-
- [oci-security-health-check-standard-250530.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-250530.sha512256).
52+
- [oci-security-health-check-standard-250602.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-250602.sha512).
53+
- [oci-security-health-check-standard-250602.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-250602.sha512256).
5454
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
5555

5656
On MacOS:
5757
```
5858
cd <your_downloads_directory>
59-
shasum -a 512256 -c oci-security-health-check-standard-250530.sha512256
59+
shasum -a 512256 -c oci-security-health-check-standard-250602.sha512256
6060
```
6161
6262
On Linux (including Cloud Shell):
6363
```
6464
cd <your_downloads_directory>
65-
sha512sum -c oci-security-health-check-standard-250530.sha512
65+
sha512sum -c oci-security-health-check-standard-250602.sha512
6666
```
6767
6868
**Reject the downloaded file when the check fails!**
@@ -207,7 +207,7 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
207207
- Upload the distribution file.
208208
- Extract it
209209
```
210-
unzip -q oci-security-health-check-standard-250530.zip
210+
unzip -q oci-security-health-check-standard-250602.zip
211211
```
212212
213213
#### Run the script
@@ -281,11 +281,11 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
281281
Follow the instructions to select /usr/bin/python3.9
282282
- Log out
283283
284-
- From your desktop, upload the `oci-security-health-check-standard-250530.zip` file to the Compute VM using any SFTP client.
284+
- From your desktop, upload the `oci-security-health-check-standard-250602.zip` file to the Compute VM using any SFTP client.
285285
- Log into the Compute VM
286286
- Extract the distribution
287287
```
288-
unzip -q oci-security-health-check-standard-250530.zip
288+
unzip -q oci-security-health-check-standard-250602.zip
289289
```
290290
- Change directory into `oci-security-health-check-standard`:
291291
```

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

Lines changed: 4 additions & 4 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: 250530 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
5+
Version: 250602 (cis_report.py version 3.0.0.4) for CIS OCI Foundation Benchmark 3.0.0
66

77
When to use this asset?
88

@@ -112,7 +112,7 @@ Usage
112112
- From the menu select the Cloud Shell item.
113113
- When running it the first time:
114114
- Upload the provided ZIP file.
115-
- Extract it with unzip -q oci-security-health-check-standard-250530.zip
115+
- Extract it with unzip -q oci-security-health-check-standard-250602.zip
116116
- Change directory into oci-security-health-check-standard
117117
$ cd oci-security-health-check-standard
118118
$ screen
@@ -169,11 +169,11 @@ Usage
169169
- Log out
170170

171171
- From your desktop, upload the
172-
"oci-security-health-check-standard-250530.zip" file to the Compute VM
172+
"oci-security-health-check-standard-250602.zip" file to the Compute VM
173173
using any SFTP client.
174174
- Log into the Compute VM
175175
- Extract the distribution
176-
unzip -q oci-security-health-check-standard-250530.zip
176+
unzip -q oci-security-health-check-standard-250602.zip
177177

178178
- Change directory into "oci-security-health-check-standard":
179179
cd oci-security-health-check-standard

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# Author: Olaf Heimburger
99
#
10-
VERSION=250430
10+
VERSION=250602
1111

1212
graal_version=24.2.1
1313
OS_TYPE=$(uname)
@@ -166,6 +166,7 @@ make_env() {
166166
printf "ERROR: Permissions to install the required libraries are missing.\n"
167167
printf "ERROR: Please check with your OCI administrator.\n"
168168
exit 1
169+
fi
169170
}
170171

171172
check_shasum() {

security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250530.sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.

security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250530.sha512256

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
106f98ec280fa3392dd4ad3697ea7f61f515b5192574014cc0083221d930a08922bb8707909d74dbcbcd2f1aa830282431d3156880d9afc92c9d23b9ec484523 oci-security-health-check-standard-250602.zip
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
867810ce9b4c38e9f5eb5644881fccdaec53f83be0f129a5dc6564d5ba6d8e6f oci-security-health-check-standard-250602.zip

0 commit comments

Comments
 (0)