diff --git a/tools/aircyber/aircyber.py b/tools/aircyber/aircyber.py index 72d3ad944..54fdabdfb 100644 --- a/tools/aircyber/aircyber.py +++ b/tools/aircyber/aircyber.py @@ -95,7 +95,9 @@ ws.append(["tab", "implementation_groups", "implementation_groups"]) ws1 = wb_output.create_sheet("controls") -ws1.append(["assessable", "depth", "ref_id", "name", "description", "implementation_groups"]) +ws1.append( + ["assessable", "depth", "ref_id", "name", "description", "implementation_groups"] +) for row in output_table: ws1.append(row) ws2 = wb_output.create_sheet("implementation_groups") diff --git a/tools/ccm/convert_ccm.py b/tools/ccm/convert_ccm.py index f27204481..0974ea84c 100644 --- a/tools/ccm/convert_ccm.py +++ b/tools/ccm/convert_ccm.py @@ -97,12 +97,18 @@ def pretify_content(content): ws1 = wb_output.create_sheet("controls") ws1.append( ["assessable", "depth", "ref_id", "name", "description", "implementation_groups"] - ) +) for row in output_table: ws1.append(row) ws2 = wb_output.create_sheet("implementation_groups") ws2.append(["ref_id", "name", "description"]) -ws2.append(["lite", "foundational", "foundational controls that should be implemented by any organization, regardless of their budget, maturity and risk profile"]) +ws2.append( + [ + "lite", + "foundational", + "foundational controls that should be implemented by any organization, regardless of their budget, maturity and risk profile", + ] +) ws2.append(["full", "systematic ", "systematic assessment of a cloud implementation"]) print("generate ", output_file_name) wb_output.save(output_file_name) diff --git a/tools/cis/convert_cis.py b/tools/cis/convert_cis.py index 945a10e89..458993cbb 100644 --- a/tools/cis/convert_cis.py +++ b/tools/cis/convert_cis.py @@ -44,7 +44,9 @@ else: safeguard_index += 1 safeguard = f"{control},{safeguard_index}" - implementation_groups = "IG1,IG2,IG3" if ig1 else "IG2,IG3" if ig2 else "IG3" + implementation_groups = ( + "IG1,IG2,IG3" if ig1 else "IG2,IG3" if ig2 else "IG3" + ) output_table.append( ("x", 2, safeguard, title, description, implementation_groups) ) @@ -73,14 +75,28 @@ ws.append(["tab", "implementation_groups", "implementation_groups"]) ws1 = wb_output.create_sheet("controls") -ws1.append(["assessable", "depth", "ref_id", "name", "description", "implementation_groups"]) +ws1.append( + ["assessable", "depth", "ref_id", "name", "description", "implementation_groups"] +) for row in output_table: ws1.append(row) ws2 = wb_output.create_sheet("implementation_groups") ws2.append(["ref_id", "name", "description"]) -ws2.append(["IG1", "Essential Cyber Hygiene", "Minimum standard of information security for all enterprises."]) -ws2.append(["IG2", "", "For enterprises managing IT infrastructure of multiple departments with differing risk profiles."]) +ws2.append( + [ + "IG1", + "Essential Cyber Hygiene", + "Minimum standard of information security for all enterprises.", + ] +) +ws2.append( + [ + "IG2", + "", + "For enterprises managing IT infrastructure of multiple departments with differing risk profiles.", + ] +) ws2.append(["IG3", "", "To secure sensitive and confidential data."]) print("generate ", output_file_name) diff --git a/tools/convert_framework.py b/tools/convert_framework.py index a64a1c901..313e96b6c 100644 --- a/tools/convert_framework.py +++ b/tools/convert_framework.py @@ -217,7 +217,7 @@ def read_header(row): if annotation: req_node["annotation"] = annotation if implementation_groups: - req_node["implementation_groups"] = implementation_groups.split(',') + req_node["implementation_groups"] = implementation_groups.split(",") threats = row[header["threats"]].value if "threats" in header else None reference_controls = ( row[header["reference_controls"]].value @@ -404,13 +404,19 @@ def read_header(row): "description": library_vars["framework_description"], } if "framework_min_score" in library_vars: - library["objects"]["framework"]["min_score"] = library_vars["framework_min_score"] + library["objects"]["framework"]["min_score"] = library_vars[ + "framework_min_score" + ] if "framework_max_score" in library_vars: - library["objects"]["framework"]["max_score"] = library_vars["framework_max_score"] + library["objects"]["framework"]["max_score"] = library_vars[ + "framework_max_score" + ] if scores_definition: library["objects"]["framework"]["scores_definition"] = scores_definition if implementation_groups_definition: - library["objects"]["framework"]["implementation_groups_definition"] = implementation_groups_definition + library["objects"]["framework"]["implementation_groups_definition"] = ( + implementation_groups_definition + ) library["objects"]["framework"]["requirement_nodes"] = requirement_nodes if has_reference_controls: diff --git a/tools/tisax/convert_tisax.py b/tools/tisax/convert_tisax.py index e010fdb87..b58e1faee 100644 --- a/tools/tisax/convert_tisax.py +++ b/tools/tisax/convert_tisax.py @@ -50,9 +50,9 @@ req_sga = None req_vehicle = None further_info = None - ex_normal=None - ex_high=None - ex_very_high=None + ex_normal = None + ex_high = None + ex_very_high = None if title == "Information Security": ( _, @@ -127,10 +127,19 @@ output_table.append(("", level, control_number, control_question, "")) output_table.append(("x", level + 1, "", "(must)", req_must, "must")) if req_should and req_should != "None": - output_table.append(("x", level + 1, "", "(should)", req_should, "should")) + output_table.append( + ("x", level + 1, "", "(should)", req_should, "should") + ) if req_high and req_high != "None": output_table.append( - ("x", level + 1, "", "(for high protection needs)", req_high, "high") + ( + "x", + level + 1, + "", + "(for high protection needs)", + req_high, + "high", + ) ) if req_very_high and req_very_high != "None": output_table.append( @@ -140,7 +149,7 @@ "", "(for very high protection needs)", req_very_high, - "very_high" + "very_high", ) ) if req_sga and req_sga != "None": @@ -194,7 +203,9 @@ ws.append(["tab", "implementation_groups", "implementation_groups"]) ws1 = wb_output.create_sheet("controls") -ws1.append(["assessable", "depth", "ref_id", "name", "description", "implementation_groups"]) +ws1.append( + ["assessable", "depth", "ref_id", "name", "description", "implementation_groups"] +) for row in output_table: ws1.append(row)