You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
Findings are not generated for the documents containing nested fields.
While detectors are created for nested Sigma rules, when we ingest documents with the nested field objects, no findings get generated. But when we ingest data with a flattened structure it works properly.
How can one reproduce the bug?
Steps to reproduce the behavior:
Go to the 'Security Analytics' plugin's detector section under the OpenSearch dashboard.
Click on 'Create detector'.
i. Configure detector details, select one of the log types as Cloudtrail, specify the index, and select all Sigma rules provided.
ii. Provide the mappings necessary for the configured rules. Note: If we had ingested data as per the ECS schema in the configured index, then fields would get mapped automatically.
iii. Specify alert trigger conditions with any rules. (By default it will select all configured rules for that log category)
iv. Click on 'Save changes' to generate a detector.
Ingest data to the specified index with both flattened and nested JSON structure.
See the findings and alerts for the flattened data, but no findings get generated for the nested log structure.
What is the expected behavior?
If the Sigma rule has nested field specifications such as "userIdentity.type" matching some value, then findings should be generated for both the flattened and nested kind of ingested data.
Sample flattened doc:
Though, findings are only generated for the flattened data following ECS schema as per the field mappings provided.
When, I checked the SAP detector query and removed additional index context from the query, and tried to run on the same index, both documents got matched with nested as well as flattened structures.
What is the bug?
Findings are not generated for the documents containing nested fields.
While detectors are created for nested Sigma rules, when we ingest documents with the nested field objects, no findings get generated. But when we ingest data with a flattened structure it works properly.
How can one reproduce the bug?
Steps to reproduce the behavior:
i. Configure detector details, select one of the log types as Cloudtrail, specify the index, and select all Sigma rules provided.
ii. Provide the mappings necessary for the configured rules.
Note: If we had ingested data as per the ECS schema in the configured index, then fields would get mapped automatically.
iii. Specify alert trigger conditions with any rules. (By default it will select all configured rules for that log category)
iv. Click on 'Save changes' to generate a detector.
What is the expected behavior?
If the Sigma rule has nested field specifications such as "userIdentity.type" matching some value, then findings should be generated for both the flattened and nested kind of ingested data.
Sample flattened doc:
Sample nested doc:
What is your host/environment?
Do you have any screenshots?
Sample detector query
Querying the index with detector query
API Request:

API Response:

The text was updated successfully, but these errors were encountered: