Skip to content

Commit

Permalink
Update ala-rule.py
Browse files Browse the repository at this point in the history
  • Loading branch information
socprime authored Dec 30, 2019
1 parent f015c97 commit 92bc96a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/sigma/backends/ala-rule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Azure Log Analytics output backend for sigmac
# John Tuckner (@tuckner)
# Azure Log Analytics Rule output backend for sigmac

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -49,13 +48,15 @@ def create_rule(self, config):
tag_list = tag.split("_")
tag_list = [item.title() for item in tag_list]
tactics.append("".join(tag_list))
else:
tactics.append(tag.title())

rule = {
"analytics":
[
{
"displayName": "{} by {}".format(config.get("title"), config.get('author')),
"description": "{} {}".format(config.get("description"), "Technics: {}.".format(",".join(technics))),
"description": "{} {}".format(config.get("description"), "Technique: {}.".format(",".join(technics))),
"severity": config.get("level"),
"enabled": True,
"query": config.get("translation"),
Expand Down

0 comments on commit 92bc96a

Please sign in to comment.