From edb6666a7f01372483074eaae33b679a721892fc Mon Sep 17 00:00:00 2001 From: wikijm Date: Sun, 6 Oct 2024 23:00:52 +0200 Subject: [PATCH] Update sigma-gen.py (#34) Change date format to ISO 8601 date with separator format : YYYY-MM-DD Source: https://github.com/SigmaHQ/sigma-specification/blob/main/specification/sigma-rules-specification.md#date --- bin/sigma-gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sigma-gen.py b/bin/sigma-gen.py index c31818eb..ab7177e4 100644 --- a/bin/sigma-gen.py +++ b/bin/sigma-gen.py @@ -76,7 +76,7 @@ def generate_sigma_rules(yaml_file: str, output_dir: str) -> List[Dict[str, Any] "status": "experimental", "description": f"Detects potential {artifact_type} activity of {name} RMM tool", "author": "LOLRMM Project", - "date": date.today().strftime('%Y/%m/%d'), + "date": date.today().strftime('%Y-%m-%d'), "tags": ["attack.execution", "attack.t1219"], "falsepositives": [f"Legitimate use of {name}"], "level": "medium", @@ -135,4 +135,4 @@ def main() -> None: print(f"[+] Sigma rule generation and YAML update complete. Files saved in {output_dir}") if __name__ == "__main__": - main() \ No newline at end of file + main()