Conversation
onurmerdogan
left a comment
There was a problem hiding this comment.
Looks great, just a few minor points and suggestion regarding increased scope for Cloud credential theft.
| | `security_content_ctime(firstTime)` | ||
| | `security_content_ctime(lastTime)` | ||
| | `windows_azure_profile_reconnaissance_filter` | ||
| how_to_implement: To successfully implement this search, you must ingest Windows Security Event logs and track event code 4663. For 4663, enable "Audit Object Access" in Group Policy. Then check the two boxes listed for both "Success" and "Failure." |
There was a problem hiding this comment.
4663 logs additionally require enabling auditing on folder level, probably it would be good to mention that \.azure\ folder should be configured to log "Read" events.
https://techcommunity.microsoft.com/discussions/windowsinsiderprogram/file-system-auditing---event-id-4663-not-logging/4429279
| "*\\.azd\\bin\\azd.exe" | ||
| ) | ||
| ) | ||
| ObjectName = "*\\.azure\\azureProfile.json" |
There was a problem hiding this comment.
Does it make sense to join this detection and windows_azure_token_store_access.yml? They are both anomalies and targeting Cloud accounts for Collection stage. Since the reference article features other providers, we can consider covering all 3 major cloud providers within this rule.
Useful articles regarding other sensitive cloud config files,
https://redcanary.com/blog/threat-detection/gcp-service-accounts/
https://redcanary.com/blog/threat-detection/aws-sso-access-tokens/
| search: |- | ||
| `wineventlog_security` EventCode=4663 AccessMask=0x1 | ||
| NOT ( | ||
| ProcessName IN |
There was a problem hiding this comment.
I was thinking common scripting languages such as Python/NodeJS might be interacting with these files often for legitimate reasons?
| data_source: | ||
| - Windows Event Log Security 4663 | ||
| search: |- | ||
| `wineventlog_security` EventCode=4663 AccessMask=0x1 |
There was a problem hiding this comment.
ObjectType=File might be a good filter to add. In cases where Global Object Auditing is enabled, 4663 generates a lot of events.
Tagged
New Detections
Story
What does this PR have in it? Screenshots are worth 1000 words 😄
Checklist
<platform>_<mitre att&ck technique>_<short description>nomenclatureNotes For Submitters and Reviewers
buildCI job when it fails will likely show an error about what is failing. You may have a very descriptive error of the specific field(s) in the specific file(s) that is causing an issue. In some cases, its also possible there is an issue with the YAML. Many of these can be caught with the pre-commit hooks if you set them up. These errors will be less descriptive as to what exactly is wrong, but will give you a column and row position in a specific file where the YAML processing breaks. If you're having trouble with this, feel free to add a comment to your PR tagging one of the maintainers and we'll be happy to help troubleshoot it.