@@ -388,6 +388,16 @@ def main():
388388 new_yaml ["platforms" ] = {"visionOS" : {}}
389389
390390 new_yaml ["platforms" ]["visionOS" ].update ({os_ : {}})
391+ if "visionos_stig" in rule_yaml ["tags" ]:
392+ if "benchmarks" in new_yaml ["platforms" ]["visionOS" ][os_ ]:
393+ new_yaml ["platforms" ]["visionOS" ][os_ ]["benchmarks" ].append (
394+ "visionos_stig"
395+ )
396+ else :
397+ new_yaml ["platforms" ]["visionOS" ][os_ ].update (
398+ {"benchmarks" : ["visionos_stig" ]}
399+ )
400+ new_yaml ["tags" ].remove ("visionos_stig" )
391401 if "severity" in rule_yaml :
392402 new_yaml ["platforms" ]["visionOS" ][os_ ].update (
393403 {"severity" : rule_yaml ["severity" ]}
@@ -459,6 +469,7 @@ def main():
459469 {"benchmarks" : ["ios_stig" ]}
460470 )
461471 new_yaml ["tags" ].remove ("ios_stig" )
472+
462473 if "ios_stig_byoad" in rule_yaml ["tags" ]:
463474 if "benchmarks" in new_yaml ["platforms" ]["iOS" ][os_ ]:
464475 new_yaml ["platforms" ]["iOS" ][os_ ]["benchmarks" ].append (
@@ -890,7 +901,30 @@ def main():
890901 ].update (
891902 {"supervised" : rule_yaml ["supervised" ]}
892903 )
893- # print(update_rule_yaml)
904+ if "severity" in rule_yaml :
905+ update_rule_yaml ["platforms" ]["visionOS" ][
906+ os_
907+ ].update ({"severity" : rule_yaml ["severity" ]})
908+
909+ if "visionos_stig" in rule_yaml ["tags" ]:
910+ if (
911+ "benchmarks"
912+ in update_rule_yaml ["platforms" ][
913+ "visionOS"
914+ ][os_ ]
915+ ):
916+ update_rule_yaml ["platforms" ]["visionOS" ][
917+ os_
918+ ]["benchmarks" ].append ("visionos_stig" )
919+ else :
920+ update_rule_yaml ["platforms" ]["visionOS" ][
921+ os_
922+ ].update ({"benchmarks" : ["visionos_stig" ]})
923+
924+ if "visionos_stig" in update_rule_yaml ["tags" ]:
925+ update_rule_yaml ["tags" ].remove (
926+ "visionos_stig"
927+ )
894928 else :
895929 if "iOS" not in update_rule_yaml ["platforms" ]:
896930 update_rule_yaml ["platforms" ].update (
@@ -998,6 +1032,7 @@ def main():
9981032
9991033 if "ios_stig" in update_rule_yaml ["tags" ]:
10001034 update_rule_yaml ["tags" ].remove ("ios_stig" )
1035+
10011036 if "ios_stig_byoad" in rule_yaml ["tags" ]:
10021037 if (
10031038 "benchmarks"
@@ -1371,6 +1406,7 @@ def main():
13711406 {"benchmarks" : ["ios_stig" ]}
13721407 )
13731408 new_yaml ["tags" ].remove ("ios_stig" )
1409+
13741410 if "ios_stig_byoad" in rule_yaml ["tags" ]:
13751411 if "benchmarks" in new_yaml ["platforms" ]["iOS" ][os_ ]:
13761412 new_yaml ["platforms" ]["iOS" ][os_ ][
@@ -1432,6 +1468,19 @@ def main():
14321468 new_yaml ["platforms" ]["visionOS" ][os_ ].update (
14331469 {"supervised" : rule_yaml ["supervised" ]}
14341470 )
1471+ if "visionos_stig" in rule_yaml ["tags" ]:
1472+ if (
1473+ "benchmarks"
1474+ in new_yaml ["platforms" ]["visionOS" ][os_ ]
1475+ ):
1476+ new_yaml ["platforms" ]["visionOS" ][os_ ][
1477+ "benchmarks"
1478+ ].append ("visionos_stig" )
1479+ else :
1480+ new_yaml ["platforms" ]["visionOS" ][os_ ].update (
1481+ {"benchmarks" : ["visionos_stig" ]}
1482+ )
1483+ new_yaml ["tags" ].remove ("visionos_stig" )
14351484
14361485 if "800-53r5" in rule_yaml ["references" ]:
14371486 new_yaml ["references" ]["nist" ].update (
0 commit comments