-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Analytic Rules errors with Front Door Premium WAF - SQLi Detection and Front Door Premium WAF - XSS Detection #10495
Comments
Hi @cyb3n3tic, |
Great, thank you @v-rusraut |
Hi @cyb3n3tic, |
Hey @cyb3n3tic, Based on your provided issue description and screenshots, it looks the required columns does not get created, which defined into the Rule. So, can you check the AzureDiagnostics table schema or share schema with us, to check those columns are get created or not. Thanks! |
Thanks @v-sudkharat - I will follow up on this shortly. Not sure why columns would be missing/not created though? |
@cyb3n3tic, Great. Please let us know once it done. Thanks! |
Hi @cyb3n3tic, |
Sorry @v-rusraut , I am currently away so won't be able to follow up for another two weeks |
Sorry @v-sudkharat @v-rusraut , finally back and able to look at this again. The suggestion above is showing the process for creating a new NRT rule whereas the process I am trying to follow is using templates, specifically Front Door Premium WAF - SQLi Detection and Front Door Premium WAF - XSS Detection templates. When using these templates I right click the template to create a new rule Following this, when I try to setup the Rule Logic I am seeing the errors I mentioned - 'where' operator: Failed to resolve scalar expression named 'details_msg_s' Attempting to view query results generates the error below: Should I expect to be able to use these templates with Application Gateway / WAF ? I currently use templates "App GW WAF - Path Traversal Attack" and "App GW WAF - Code Injection" , ideally I want to implement similar templates for SQLi Detection and XSS Detection, I'm not clear whether the Front Door Premium WAF templates should work or I am barking up the wrong tree? |
1 similar comment
Sorry @v-sudkharat @v-rusraut , finally back and able to look at this again. The suggestion above is showing the process for creating a new NRT rule whereas the process I am trying to follow is using templates, specifically Front Door Premium WAF - SQLi Detection and Front Door Premium WAF - XSS Detection templates. When using these templates I right click the template to create a new rule Following this, when I try to setup the Rule Logic I am seeing the errors I mentioned - 'where' operator: Failed to resolve scalar expression named 'details_msg_s' Attempting to view query results generates the error below: Should I expect to be able to use these templates with Application Gateway / WAF ? I currently use templates "App GW WAF - Path Traversal Attack" and "App GW WAF - Code Injection" , ideally I want to implement similar templates for SQLi Detection and XSS Detection, I'm not clear whether the Front Door Premium WAF templates should work or I am barking up the wrong tree? |
Hi @cyb3n3tic, There are data connector configuration issue, so data is not flowing into respective data source, please refer below screen shot. Thanks |
Hi @cyb3n3tic, Did you get a chance to look at above shared solution? We are waiting for your response. Thanks! |
Hi @cyb3n3tic, Gentle Reminder: We are waiting for your response on this issue. If you still need to keep this issue active, please respond to it in the next 2 days. If we don't receive a response by 12-07-2024 date, we will be closing this issue. |
Hi again. @v-rusraut @v-sudkharat We don't have front door so it's just Application Gateway that is applicable - is this template usable nonetheless? I know by template name probably not but I'm looking for coverage of SQLi somehow. |
Hi @cyb3n3tic, Sorry for delay in response. Thanks! |
Hi @cyb3n3tic, Gentle Reminder: We are waiting for your response on this issue. If you still need to keep this issue active, please respond to it in the next 2 days. If we don't receive a response by 07-08-2024 date, we will be closing this issue. |
Hi @v-sudkharat So, tried that and get 'project' operator: Failed to resolve scalar expression named 'trackingReference_s' I think the main issue is the lack of Frontdoor in our case - I will leave this now as not making any headway. I was hoping that additional App GW templates for WAF beyond the current two would be possible, to align with those available for Front Door Premium to cover SQLi and XSS Thanks for your input nonetheless |
@cyb3n3tic, thank you for your suggestion on it. So, as nothing of us, closing this issue. If you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation. |
Describe the bug
It appears that it is not possible to create analytics rules for either Front Door Premium WAF - SQLi Detection or Front Door Premium WAF - XSS Detection. (I assume these can be used with only Application Gateway?)
When defining the rule logic, the pre-populated rule query throws errors as indicated below.
The name 'details_msg_s' does not refer to any known column, table, variable or function.(KS142)
The name 'trackingReference_s' does not refer to any known column, table, variable or function.(KS142)
The name 'details_matches_s' does not refer to any known column, table, variable or function.(KS142)
The column 'trackingReference_s' must exist on both sides of the join.(KS145)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The rule query generated should be valid with no errors
Screenshots


Screenshots attached
Additional context
Running Application Gateway with WAF, FrontDoor not in use but assume this should work as Data sources listed are Application Gateways and appear valid in that respect, I have not found any application gateway WAF specific templates?
I have used some other templates such as App GW WAF - Path Traversal Attack without problem but not seeing App GW WAF - SQLi or XSS - I assume those templates lised for Front Door Premium should work, or is that not the case?
Appreciate some guidance.
The text was updated successfully, but these errors were encountered: