Skip to content

vidar - #4217

Open
tccontre wants to merge 3 commits into
developfrom
vidar
Open

vidar#4217
tccontre wants to merge 3 commits into
developfrom
vidar

Conversation

@tccontre

Copy link
Copy Markdown
Contributor

Tagged

    modified:   detections/endpoint/executables_or_script_creation_in_suspicious_path.yml
    modified:   detections/endpoint/executables_or_script_creation_in_temp_path.yml
    modified:   detections/endpoint/non_chrome_process_accessing_chrome_default_dir.yml
    modified:   detections/endpoint/non_firefox_process_access_firefox_profile_dir.yml
    modified:   detections/endpoint/windows_access_token_manipulation_sedebugprivilege.yml
    modified:   detections/endpoint/windows_credentials_from_password_stores_chrome_extension_access.yml
    modified:   detections/endpoint/windows_credentials_from_password_stores_chrome_localstate_access.yml
    modified:   detections/endpoint/windows_credentials_from_password_stores_chrome_login_data_access.yml
    modified:   detections/endpoint/windows_disable_or_stop_browser_process.yml
    modified:   detections/endpoint/windows_indicator_removal_via_rmdir.yml
    modified:   detections/endpoint/windows_process_injection_remote_thread.yml
    modified:   detections/endpoint/windows_query_registry_uninstall_program_list.yml
    modified:   detections/endpoint/windows_screen_capture_in_temp_folder.yml
    modified:   detections/endpoint/windows_suspicious_process_file_path.yml

New Detections

    new file:   detections/endpoint/windows_azure_profile_reconnaissance.yml
    new file:   detections/endpoint/windows_azure_token_store_access.yml

Story

    new file:   stories/vidar_stealer.yml

What does this PR have in it? Screenshots are worth 1000 words 😄

Checklist

  • Validate name matches <platform>_<mitre att&ck technique>_<short description> nomenclature
  • CI/CD jobs passed ✔️
  • Validated SPL logic.
  • Validated tags, description, and how to implement.
  • Verified references match analytic.
  • Confirm updates to lookups are handled properly.

Notes For Submitters and Reviewers

  • If you're submitting a PR from a fork, ensuring the box to allow updates from maintainers is checked will help speed up the process of getting it merged.
  • Checking the output of the build CI 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.
  • Updates to existing lookup files can be tricky, because of how Splunk handles application updates and the differences between existing lookup files being updated vs new lookups. You can read more here but the short version is that any changes to lookup files need to bump the the date and version in the associated YAML file.

Comment thread detections/endpoint/windows_azure_token_store_access.yml Outdated

@onurmerdogan onurmerdogan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjectType=File might be a good filter to add. In cases where Global Object Auditing is enabled, 4663 generates a lot of events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants