DCR for 1Password CCP connector is incorrect, causing Analytic rules to not match
Describe the bug The DCR for the new 1Password CCP connector (not based on the Azure Function) has incorrect logic for setting the log_source field. The Function-based connector set the log_source field based directly on the API endpoint which was called. However, the DCR has logic to set the log_source field based on which columns are present in the logs.
This is a critical issue as the Analytic rules are specifically scoped to the log_source being set to "auditevents", but some of the events they are matching on have the log_source incorrectly set to itemusages. As a result, a number of the built-in analytic rules will never match on activity. Some examples of that are:
- 1Password - Potential insider privilege escalation via vault
- 1Password - Privileged vault permission change
- 1Password - Secret extraction post vault access change by administrator
To Reproduce Run the following query against logs which were ingested via the prior Function-based solution. The dcrAdjusted_log_source column is the same logic which is in the DCR in the new connector, whereas the log_source column would contain the original log_source set by the function app. This query will show events where the new log_source doesn't correctly match the original log_source.
OnePasswordEventLogs_CL
| where log_source <> "healthevents"
| extend dcrAdjusted_log_source =
case(isnotempty(used_version) or isnotempty(aux_id), 'itemusages', isnotempty(country), 'signinattempts', isempty(used_version) and isempty(aux_id) and isempty(country), 'auditevents', 'unknown')
| where log_source <> dcrAdjusted_log_source
Expected behavior The log_source column should be the same from the Function-based connector and the new CCP-based connector.
Hello @migrande, thanks for flagging this issue. We will investigate this issue and get back to you with some updates. Thanks!
Hello @migrande, we have checked this solution, this solution is supported with “1Password”, and we are not authorized to make modification into it. We kindly request you to raise an issue/support ticket with “1Password” support team so your query can be addressed more efficiently. Please use the following link — https://support.1password.com/ — to raise a support case for this solution. We will now proceed to close this issue on GitHub. If you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation!