diff --git a/tools/cis/README.md b/tools/cis/README.md new file mode 100644 index 000000000..493fb8165 --- /dev/null +++ b/tools/cis/README.md @@ -0,0 +1,6 @@ +This script prepares the file to be parsed by the converter: + +- copy the downloaded excel sheet from CIS next to this script (for instance CIS_Controls_Version_8.xlsx) +- run the preparation script by passing the filename as 1st argument and your name/entity as a second one for the packager +- run the converter on the prepared excel sheet +- use the resulting yaml in CISO Assistant \ No newline at end of file diff --git a/tools/cis/convert_cis.py b/tools/cis/prep_cis.py similarity index 96% rename from tools/cis/convert_cis.py rename to tools/cis/prep_cis.py index 458993cbb..007b2f3e7 100644 --- a/tools/cis/convert_cis.py +++ b/tools/cis/prep_cis.py @@ -86,18 +86,18 @@ ws2.append( [ "IG1", - "Essential Cyber Hygiene", + "IG1", "Minimum standard of information security for all enterprises.", ] ) ws2.append( [ "IG2", - "", + "IG2", "For enterprises managing IT infrastructure of multiple departments with differing risk profiles.", ] ) -ws2.append(["IG3", "", "To secure sensitive and confidential data."]) +ws2.append(["IG3", "IG3", "To secure sensitive and confidential data."]) print("generate ", output_file_name) wb_output.save(output_file_name) diff --git a/tools/convert_cis.sh b/tools/convert_cis.sh new file mode 100755 index 000000000..0806a6a91 --- /dev/null +++ b/tools/convert_cis.sh @@ -0,0 +1,6 @@ +file="CIS_Controls_Version_8.xlsx" +packager="personal" +python cis/prep_cis.py $file $packager +intermediate="cis-controls-v8.xlsx" +python convert_library.py cis/cis-controls-v8.xlsx +echo "Resulting file is available at cis/cis-controls-v8.yaml" \ No newline at end of file diff --git a/tools/sample/sample.xlsx b/tools/sample/sample.xlsx new file mode 100644 index 000000000..0e4a2b74e Binary files /dev/null and b/tools/sample/sample.xlsx differ