-
Notifications
You must be signed in to change notification settings - Fork 570
[New Rule] Azure Storage Account Key Regenerated #188
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
bm11100
merged 4 commits into
elastic:main
from
bm11100:Azure-Storage-Account-Key-Regenerated
Sep 4, 2020
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5e2993b
Create credential_access_storage_account_key_regenerated.toml
68760d5
Update rules/azure/credential_access_storage_account_key_regenerated.…
bm11100 97cd25b
Update credential_access_storage_account_key_regenerated.toml
0bd6ee3
Merge branch 'main' into Azure-Storage-Account-Key-Regenerated
bm11100 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
52 changes: 52 additions & 0 deletions
52
rules/azure/credential_access_storage_account_key_regenerated.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,52 @@ | ||
[metadata] | ||
creation_date = "2020/08/19" | ||
ecs_version = ["1.5.0"] | ||
maturity = "production" | ||
updated_date = "2020/08/19" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
Identifies a rotation to storage account access keys in Azure. Regenerating access keys can affect any applications | ||
or Azure services that are dependent on the storage account key. | ||
bm11100 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
""" | ||
false_positives = [ | ||
""" | ||
It's recommended that you rotate your access keys periodically to help keep your storage account secure. Normal key | ||
rotation can be exempted from the rule. An abnormal time frame and/or a key rotation from unfamiliar users, hosts, | ||
or locations should be investigated. | ||
""", | ||
] | ||
from = "now-25m" | ||
index = ["filebeat-*"] | ||
language = "kuery" | ||
license = "Elastic License" | ||
name = "Azure Storage Account Key Regenerated" | ||
note = "The Azure Filebeat module must be enabled to use this rule." | ||
references = [ | ||
"https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?tabs=azure-portal", | ||
] | ||
risk_score = 21 | ||
rule_id = "1e0b832e-957e-43ae-b319-db82d228c908" | ||
severity = "low" | ||
tags = ["Azure", "Elastic", "SecOps", "Continuous Monitoring", "Identity and Access"] | ||
type = "query" | ||
|
||
query = ''' | ||
event.module:azure and event.dataset:azure.activitylogs and event.category:Administrative and azure.activitylogs.operation_name:MICROSOFT.STORAGE/STORAGEACCOUNTS/REGENERATEKEY/ACTION and event.outcome:Success | ||
''' | ||
|
||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
[[rule.threat.technique]] | ||
id = "T1528" | ||
name = "Steal Application Access Token" | ||
reference = "https://attack.mitre.org/techniques/T1528/" | ||
|
||
|
||
[rule.threat.tactic] | ||
id = "TA0006" | ||
name = "Credential Access" | ||
reference = "https://attack.mitre.org/tactics/TA0006/" | ||
|
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.