-
Notifications
You must be signed in to change notification settings - Fork 583
Update cardinality field in schema for threshold rules #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
brokensound77
merged 13 commits into
elastic:main
from
brokensound77:host-masquerading-rule
Jul 21, 2021
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
15ad8e9
Make cardinality array in schema for threshold rules
brokensound77 3a8eaa4
update index and tags
brokensound77 0022f2d
alphabetize definitions
brokensound77 a87cd75
Merge remote-tracking branch 'upstream/main' into host-masquerading-rule
brokensound77 9ba3c3b
update master, 7.13, and 7.14 schemas with cardinality fix
brokensound77 a0f46fe
fix 7.12 downgrade to handle cardinality as an array
brokensound77 db8c4b6
toml formatter close if hasattr "close"
brokensound77 5a39e2c
use NonEmptyStr in type validation for StringListMaxSizeThree
brokensound77 e9ea4b9
Merge remote-tracking branch 'origin/host-masquerading-rule' into hos…
brokensound77 de04b8d
rename definition to CardinalityFields
brokensound77 7be4507
Merge branch 'main' into host-masquerading-rule
brokensound77 2972157
regenerate API schemas to pull in changes
brokensound77 b4f2101
Merge branch 'main' into host-masquerading-rule
brokensound77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
rules/cross-platform/defense_evasion_agent_spoofing_mismatched_id.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[metadata] | ||
creation_date = "2021/07/14" | ||
maturity = "production" | ||
updated_date = "2021/07/14" | ||
min_stack_version = "7.14.0" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """Detects events which have a mismatch on the expected event agent ID. The status "agent_id_mismatch" | ||
occurs when the expected agent ID associated with the API key does not match the actual agent ID in an event. This could | ||
indicate attempts to spoof events in order to masquerade actual activity to evade detection. | ||
""" | ||
false_positives = [ | ||
""" | ||
This is meant to run only on datasources using agents v7.14+ since versions prior to that will be missing the | ||
necessary field, resulting in false positives. | ||
""", | ||
] | ||
from = "now-9m" | ||
index = ["logs-*", "metrics-*", "traces-*"] | ||
language = "kuery" | ||
license = "Elastic License v2" | ||
name = "Agent Spoofing - Mismatched Agent ID" | ||
risk_score = 73 | ||
rule_id = "3115bd2c-0baa-4df0-80ea-45e474b5ef93" | ||
severity = "high" | ||
tags = ["Elastic", "Threat Detection", "Defense Evasion"] | ||
timestamp_override = "event.ingested" | ||
type = "query" | ||
|
||
query = ''' | ||
event.agent_id_status:agent_id_mismatch | ||
''' | ||
|
||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
[[rule.threat.technique]] | ||
id = "T1036" | ||
name = "Masquerading" | ||
reference = "https://attack.mitre.org/techniques/T1036/" | ||
|
||
|
||
[rule.threat.tactic] | ||
id = "TA0005" | ||
name = "Defense Evasion" | ||
reference = "https://attack.mitre.org/tactics/TA0005/" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.