Repository navigation
Adding new threat hunting query - #15253
Ravi Nandan Ray (Rajaravi99) wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
Review effort: Lite
Findings: 2
Open (5)
StartTimeandEndTimeare referenced but not defined within the query. Hunting queries should… · NewStartTimeandEndTimeare referenced but not defined within the query. Hunting queries should… · New This template is clearly scoped to Azure WAF / Application Gateway WAF… · Newhas_any()is term/token-based matching, which can miss common admin endpoint variants that appear… · Newhas_any()is term/token-based matching, which can miss common admin endpoint variants that appear… · New
What changed in this PR
Adds a new Microsoft Sentinel hunting query template to detect potential WAF bypass attempts using double URL-encoding, covering both modern (AGWFirewallLogs) and legacy (AzureDiagnostics) schemas and mapping results to investigation entities.
Changes:
- Introduces a new hunting query YAML for double URL-encoded admin-path detection.
- Supports both
AGWFirewallLogsandAzureDiagnosticsWAF log structures and unions results. - Adds entity mappings (IP, Host) and custom details for investigation enrichment.
| File | Description |
|---|---|
| Solutions/Azure Firewall/Hunting Queries/Azure Firewall - Bypass Via Double URL Encoded Admin Paths.yaml | New hunting query template for detecting double URL-encoding-based access attempts to admin/sensitive paths across modern/legacy WAF logs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
I reviewed the query and the failing KQL Validation check. Please address the following before approval:
After the updates, please share the KQL validation results and confirm the intended solution placement. |
|
Hi v-skharode, thanks for reviewing. I will check on the copilots comments on the query ASAP. |
|
Friendly follow-up. The KQL Validation check is still failing, and the review items raised earlier remain unaddressed. Could you please provide an update on the required changes, validation results, and the intended solution placement for this query? Thanks. |
|
Hi v-skharode, I have made the changes suggested, please do have a look and let me know if this works. Also let me know if anymore changes needs to be done.
|
|
hi Ravi Nandan Ray (@Rajaravi99), |
|
Hi v-skharode , I have made these changes. Please do let me know if we need anymore refinement.
|
|
Hey Ravi Nandan Ray (@Rajaravi99) |
|
Hi v-skharode , shall I close this PR and I will open a fresh PR with all the proper changes and version bumps, if that is OK. I don't know why but I am unable to push to this PR. I am getting this issue |
|
Hey Ravi Nandan Ray (@Rajaravi99) |
|
Hi v-skharode , as discussed I have closed this PR and opened a new one #15285 Please do have a look, and do let me know if anything needs to be updated. |


Required items, please complete
Change(s):
WAFBypassDoubleURLEncodingAdminPath.yaml.AGWFirewallLogs) and legacy (AzureDiagnostics) Azure Web Application Firewall structures.split(..., '?')[0]to isolate request directories safely.IPandHost) directly to the Microsoft Sentinel Graph investigation matrix.Reason for Change(s):
/admin,/config,/setup).Version Updated:
1.0.0within the YAML metadata structure).Testing Completed:
Checked that the validations are passing and have addressed any issues that are present:
DetectionTemplateSchemaValidation) and syntax evaluation procedures (KqlValidationTests) were completed locally via the native.NET Core SDK test environment(dotnet test) and returned perfect pass statuses with no schema alignment warnings.