-
Notifications
You must be signed in to change notification settings - Fork 587
[New Rule] Unusual Web Config File Access #4927
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
base: main
Are you sure you want to change the base?
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
|
index = ["logs-endpoint.events.file-*"] | ||
language = "kuery" | ||
license = "Elastic License v2" | ||
name = "Unusual Web Config File Access" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is web.config
a generalized filename or specific to Sharepoint & IIS? If not, maybe we add them in the rule name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is specific to IIS/ASP.NET
type = "new_terms" | ||
|
||
query = ''' | ||
event.category:file and event.action:open and file.name:"web.config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event.category:file and event.action:open and file.name:"web.config" | |
host.os.type:window and event.category:file and event.action:open and file.name:"web.config" |
Summary
Detects unusual access to the web.config file, which contains sensitive credential information such as database
connection strings, machineKey validation/decryption keys, and SAML/OAuth token settings. Attackers can use the
information extracted to forge malicious __VIEWSTATE requests for persistent RCE on the web server or pivot to the SQL
server using exposed connection strings.
https://trade-cloud-threat-lab-dd975d.kb.us-east-1.aws.elastic.cloud/app/r/s/eDENF