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
Copy file name to clipboardExpand all lines: docs/cse/get-started-with-cloud-siem/cse-heads-up-display.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,10 @@ The default time range is 24 hours. You can change the time range using the drop
37
37
38
38
## 2. Insight Metrics
39
39
40
-
The **Insight Metrics** section displays the following metrics for the currently selected time range:
41
-
42
-
***Detection**. The average period of time between when the first event happened (when the first record in the insight occurred) and when the insight was generated, in days. (This differs from "dwell time", which is the time between when the first record and the last record occurred in an insight.)
43
-
***Response**. The average response time, which is the average time between when an insight was generated and when its status was set to **In Progress**, in seconds.
44
-
***Remediation**. The average remediation time, which is the average time between when the insight was created and when its status was set to **Closed**, in seconds.
40
+
The **Insight Metrics** section displays the following metrics for all the insights in the Heads Up Display for the currently selected time range:
41
+
***Detection**. The average period of time for all insights between when the first record is observed and the insight is created. (This differs from "dwell time", which is the time between when the first record and the last record occurred.)
42
+
***Response**. The average time for all insights since the insight was last updated. Any update of the insights, including from automation processes, changes the average response time.
43
+
***Remediation**. The average time between when the insights are created and the insights are closed. A value of "0" means that no insights were closed during the selected timeframe.
45
44
46
45
If you use an [HTTP POST V2 Action](/docs/cse/administration/create-cse-actions/) to send insights to the Sumo Logic platform or another system, the insight metrics are included in the insight JSON object. The fields are `timeToDetection`, `timeToResponse` , and `timeToRemediation`.
Copy file name to clipboardExpand all lines: docs/cse/rules/before-writing-custom-rule.md
+34-38Lines changed: 34 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,56 +51,52 @@ Now that we understand the mapping in Cloud SIEM, we can see we will want to be
51
51
52
52
In this step, we’ll create the query that will serve as the rule expression when we create the rule.
53
53
54
-
Using the attributes we discovered from looking at the log mapping, we’ll run the following query, which returns the usernames that have successfully logged on over the last week, counted by `user_username`.
54
+
1.Using the attributes we discovered from looking at the log mapping, we’ll run the following query, which returns the usernames that have successfully logged on over the last week, counted by `user_username`:
55
55
56
-
```sql
57
-
_index=sec_record_*
58
-
| where metadata_vendor ="Microsoft"and metadata_product ="Windows"and metadata_deviceEventId ="Security-4624"
59
-
| count by user_username
60
-
```
56
+
```sql
57
+
_index=sec_record_*
58
+
| where metadata_vendor ="Microsoft"and metadata_product ="Windows"and metadata_deviceEventId ="Security-4624"
59
+
| count by user_username
60
+
```
61
61
62
-
<img src={useBaseUrl('img/cse/count-by-user.png')} alt="Count by user" width="800"/>
62
+
<img src={useBaseUrl('img/cse/count-by-user.png')} alt="Count by user" width="800"/>
63
63
64
-
The results show two of our standard username patterns:
64
+
The results show two of our standard username patterns:
65
65
66
-
* The username for regular user accounts are a plain string, with no special characters, like specops and jask.
67
-
* Machine usernames are a string, followed by a dash character, followed by a string, followed by a dollar sign, like `win10-admin$` and `win10-client$`.
66
+
* The username for regular user accounts are a plain string, with no special characters, like `specops` and `jask`.
67
+
* Machine usernames are a string, followed by a dash character, followed by a string, followed by a dollar sign, like `win10-admin$` and `win10-client$`.
68
68
69
-
Now, we can refine our search to return usernames that do not comply with either of our standard patterns.
69
+
1.Now, we can refine our search to return usernames that do not comply with either of our standard patterns:
Usernames returned include “anonymous logon”. A little [research](https://social.technet.microsoft.com/Forums/ie/en-US/dbcbb9f1-c6a7-43ea-94b8-ba72a89e2221/nt-authorityanonymous-logon?forum=winservergen) indicates that this is typically no cause for alarm, so we’ll refine our search again to exclude “anonymous logon”.
79
+
1.Usernames returned include “anonymous logon”. A little [research](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-special-identities-groups) indicates that this is typically no cause for alarm, so we’ll refine our search again to exclude “anonymous logon”:
80
80
81
-
```sql
82
-
_index=sec_record_*
83
-
| where metadata_vendor ="Microsoft"and metadata_product ="Windows"and metadata_deviceEventId ="Security-4624"and !(user_username matches /^[a-zA-Z]*$/or user_username matches "*-*$") and user_username !="anonymous logon"
84
-
```
81
+
```sql
82
+
_index=sec_record_*
83
+
| where metadata_vendor ="Microsoft"and metadata_product ="Windows"and metadata_deviceEventId ="Security-4624"and !(user_username matches /^[a-zA-Z]*$/or user_username matches "*-*$") and user_username !="anonymous logon"
84
+
```
85
85
86
-
Now that we’ve sorted out the usernames formats and values we want to exclude, we’ve removed \| count by `user_username` from the query.
86
+
Now that we’ve sorted out the usernames formats and values we want to exclude, we’ve removed `| count by user_username` from the query.
87
87
88
-
Let’s say there is a field of interest in our raw messages—`EventData.ProcessName`—that isn’t mapped to a Cloud SIEM schema attribute. We want to parse that field out of the message so we can use it in our logic as well. We only want our rule to fire if a user with an anomalous logon ran an .exe process after successfully logging in. You can see all of the fields in the raw message in the **Messages** tab of your search results.
88
+
1. Now we have a query we can use as the basis of an expression for our rule. Note that when you paste it into the rules editor, you should remove the first portion of the query (`_index=sec_record_*` and `| where`), which is only necessary when you are querying records in Sumo Logic. The expression is then as follows:
and !(user_username matches /^[a-zA-Z]*$/or user_username matches "*-*$")
95
+
and user_username !="anonymous logon"
96
+
```
91
97
92
-
We update the query to parse out `EventData.ProcessName`, naming it `process_name`, and filtering to only fire on `.exe` files.
98
+
Also ensure that the syntax of the expression matches what is needed by the [Cloud SIEM rules syntax](/docs/cse/rules/cse-rules-syntax/). Once you are satisfied that the expression is ready, click **Test Rule Expression**to verify that the expression returns expected results.
You can use an expression like this example in any rule type. Here is an example Match rule with the expression, shown in the rules editor.
99
101
100
-
Now we have a query we can use as the rule expression for our rule. Note that when you paste it into the rules editor you should remove the first portion of the query, which is only necessary when you are querying records in Sumo Logic:
101
-
102
-
`_index=sec_record_*`
103
-
104
-
You can use an expression like this example in any rule type. Here is an example Match rule with the expression, shown in the rules editor.
105
-
106
-
<img src={useBaseUrl('img/cse/example-in-editor.png')} alt="Example in editor" width="700"/>
102
+
<img src={useBaseUrl('img/cse/example-in-editor.png')} alt="Example in editor" width="700"/>
0 commit comments