Skip to content

Commit

Permalink
Sync rules from Elastic Security
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-forte-elastic authored and github-actions[bot] committed May 18, 2024
1 parent 4a400dd commit 3523509
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 1 deletion.
15 changes: 14 additions & 1 deletion custom_rules/etc/version.lock.json
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
{}
{
"794d2fc0-ecd0-4963-99da-fd587666b80d": {
"rule_name": "DAC Demo Dev Rule 1",
"sha256": "5e437732d012988436e8b9ed87b71d748d29ba7c1c847c06670824d6d9684518",
"type": "eql",
"version": 1
},
"e8e3af2a-11b8-4ab7-9ca1-c6db621ea89d": {
"rule_name": "DAC Demo Dev Rule 2",
"sha256": "e32fa9b058f94183eda08bb88473f9fe48661d06e83be3255e6aaae3b13f6ce2",
"type": "eql",
"version": 1
}
}
75 changes: 75 additions & 0 deletions custom_rules/rules/command_and_control_dac_demo_dev_rule_1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[metadata]
creation_date = "2024/05/18"
maturity = "production"
updated_date = "2024/05/18"

[rule]
actions = []
author = ["DAC User"]
description = "Test Rule"
enabled = true
exceptions_list = []
false_positives = []
filters = []
from = "now-540s"
index = ["logs*"]
interval = "5m"
language = "eql"
license = "Elastic License v2"
max_signals = 100
name = "DAC Demo Dev Rule 1"
note = "Test Note"
references = ["https://dac-reference.readthedocs.io/en/latest/"]
risk_score = 47
risk_score_mapping = []
rule_id = "794d2fc0-ecd0-4963-99da-fd587666b80d"
setup = "Test Setup"
severity = "medium"
severity_mapping = []
tags = [
"OS: Linux",
"Use Case: Threat Detection",
"Tactic: Command and Control",
"Data Source: Elastic Defend",
]
timestamp_override = "event.ingested"
to = "now"
type = "eql"

query = '''
process where host.os.type == "linux" and process.name == "updated"
'''


[[rule.related_integrations]]
package = "endpoint"
version = "^8.2.0"

[[rule.required_fields]]
ecs = true
name = "host.os.type"
type = "keyword"

[[rule.required_fields]]
ecs = true
name = "process.name"
type = "keyword"

[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1572"
name = "Protocol Tunneling"
reference = "https://attack.mitre.org/techniques/T1572/"
subtechnique = []


[rule.threat.tactic]
id = "TA0011"
name = "Command and Control"
reference = "https://attack.mitre.org/tactics/TA0011/"

[rule.meta]
from = "4m"
kibana_siem_app_url = ""

69 changes: 69 additions & 0 deletions custom_rules/rules/command_and_control_dac_demo_dev_rule_2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[metadata]
creation_date = "2024/05/18"
maturity = "production"
updated_date = "2024/05/18"

[rule]
actions = []
author = ["DAC User"]
description = "Test Rule"
enabled = true
exceptions_list = []
false_positives = []
from = "now-9m"
index = ["logs*"]
interval = "5m"
language = "eql"
license = "Elastic License v2"
max_signals = 100
name = "DAC Demo Dev Rule 2"
note = "Test Note"
references = ["https://dac-reference.readthedocs.io/en/latest/"]
risk_score = 47
risk_score_mapping = []
rule_id = "e8e3af2a-11b8-4ab7-9ca1-c6db621ea89d"
setup = "Test Setup"
severity = "medium"
severity_mapping = []
tags = [
"OS: Linux",
"Use Case: Threat Detection",
"Tactic: Command and Control",
"Data Source: Elastic Defend",
]
timestamp_override = "event.ingested"
to = "now"
type = "eql"

query = '''
process where host.os.type == "linux" and process.name == "updated"
'''


[[rule.related_integrations]]
package = "endpoint"
version = "^8.2.0"

[[rule.required_fields]]
ecs = true
name = "host.os.type"
type = "keyword"

[[rule.required_fields]]
ecs = true
name = "process.name"
type = "keyword"

[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1572"
name = "Protocol Tunneling"
reference = "https://attack.mitre.org/techniques/T1572/"


[rule.threat.tactic]
id = "TA0011"
name = "Command and Control"
reference = "https://attack.mitre.org/tactics/TA0011/"

0 comments on commit 3523509

Please sign in to comment.