[FEATURE] Custom Rule field mappings should be provided while configuring detector #393
Labels
enhancement
New feature or request
good first issue
Good for newcomers
v2.5.0
2.5.0 release
v2.6.0
v2.7.0
v2.8.0
Is your feature request related to a problem?
Custom Rule Mappings are not provided out-of-the-box while configuring field mappings for the detectors.
While creating detectors, after the selection of log type for a particular detector i.e. Cloudtrail, and configuring all Sigma rules, we are provided with the field mappings screen. In field mappings, on the left-hand side, it gives all fields as per the chosen log category, and on the right-hand side, it gives a list of fields in the ingested index to choose from. But on the selection of custom rules, it does not recognize its fields for the field mappings and hence, we are not able to map custom rule fields properly.
Also, due to ongoing issues of "." to "_" conversion #375 in custom rule queries, it does not even matches the exact field that we use for rule specification.
What solution would you like?
Based on the Sigma or custom rules selection, we should be prompted with necessary fields as per the chosen log category, which allows us to map our ingested fields correctly.
What alternatives have you considered?
As fields were not getting mapped automatically, we tried to put alias mappings to the respective index manually. That will map the necessary fields while running detector queries on the index.
Custom rule specification
Custom rule detector query
API Request:
API Response:
Field alias mapping specification on index
After manually mapping the fields, we were able to generate the relevant findings.
The text was updated successfully, but these errors were encountered: