Skip to content

Commit

Permalink
Update sigma-gen.py (#34)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wikijm authored Oct 6, 2024
1 parent 3a73573 commit edb6666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/sigma-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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()
main()

0 comments on commit edb6666

Please sign in to comment.