[New Rules] RMM Installation via Internet-Originated MSI - #6633
Conversation
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
|
⛔️ Test failed Results
|
There was a problem hiding this comment.
Pull request overview
Adds complementary Windows ES|QL rules correlating Internet-originated MSI downloads, msiexec execution, and RMM installation.
Changes:
- Separates commonly abused web services from other Internet origins.
- Correlates download, execution, and RMM executable creation events.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
command_and_control_rmm_software_installation_from_internet_originated_msi.toml |
Detects RMM installation from other Internet origins. |
command_and_control_rmm_software_installation_from_commonly_abused_web_service.toml |
Detects RMM installation from curated abused services. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
⛔️ Test failed Results
|
|
ES|QL Validation will continue to fail on this PR until #6665 is merged. The queries do pass validation on this branch, so it is expected that they are valid/correct. |
terrancedejesus
left a comment
There was a problem hiding this comment.
Quite a bit to unpack! Very cool approach to sequences with nested FROM. Reviewed some of the download locations missing for cloud. Tested queries in TRADE stack, both work. Min-stack seems appropriate
|
⛔️ Test failed Results
|
Issues
Part of https://github.com/elastic/ia-trade-team/issues/984
Summary
This PR introduces 2 rules that complement each other, they use the same correlation mechanism, so I'll detail it once:
The logic here correlates 3 events in an ES|QL sequence (yeah, you've read it right): an Internet download identified through Elastic Defend's MoTW enrichment, the same user executing the downloaded MSI with
msiexecwithin 10 minutes, and a same-hostmsiexeccreating a known RMM executable within the next 5 minutes.This goes beyond what we could express with an EQL sequence here: we normalize the MSI path inside the query, use different correlation keys and time limits between stages, and return the original download event as the alert.
This PR doesn't introduce Investigation Guides on purpose, this will be handled in a separated PR to not distract from what is important to review.
Rules
The rules partition the Internet-originated downloads to avoid duplicate coverage:
RMM Software Installation from a Commonly Abused Web Servicecovers the curated service set, whileRMM Software Installation from an Internet-Originated MSIexcludes that set and covers the remaining origins.RMM Software Installation from a Commonly Abused Web Servicewas tested against a LimeWire-hosted MSI sourced from VirusTotal, link to our stack.RMM Software Installation from an Internet-Originated MSIwas tested against a live malicious ScreenConnect MSI delivery, link to our stack.Both rules set a min_stack version of 9.5 because
FROMsubqueries became GA in that version.