Skip to content

Commit 953b35f

Browse files
authored
Added registry rollback fields associated with recovered values (#362)
* Added registry rollback fields associated with recovered values * added sample value * added sample value
1 parent d1a1b70 commit 953b35f

File tree

5 files changed

+122
-1
lines changed

5 files changed

+122
-1
lines changed

custom_schemas/custom_responses.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@
7676
type: keyword
7777
description: NT path of registry key recovered by Rollback
7878

79+
- name: action.key.values
80+
level: custom
81+
type: nested
82+
description: Values modified
83+
84+
- name: action.key.values.name
85+
level: custom
86+
type: keyword
87+
description: Value name recovered by Rollback
88+
89+
- name: action.key.values.actions
90+
level: custom
91+
type: keyword
92+
description: Actions taken by Registry Rollback for value
93+
7994
- name: message
8095
level: custom
8196
type: text

package/endpoint/data_stream/alerts/fields/fields.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,23 @@
417417
ignore_above: 1024
418418
description: NT path of registry key recovered by Rollback
419419
default_field: false
420+
- name: action.key.values
421+
level: custom
422+
type: nested
423+
description: Values modified
424+
default_field: false
425+
- name: action.key.values.actions
426+
level: custom
427+
type: keyword
428+
ignore_above: 1024
429+
description: Actions taken by Registry Rollback for value
430+
default_field: false
431+
- name: action.key.values.name
432+
level: custom
433+
type: keyword
434+
ignore_above: 1024
435+
description: Value name recovered by Rollback
436+
default_field: false
420437
- name: action.source.attributes
421438
level: custom
422439
type: keyword

package/endpoint/data_stream/alerts/sample_event.json

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,5 +548,62 @@
548548
"user": {
549549
"domain": "NT AUTHORITY",
550550
"name": "SYSTEM"
551-
}
551+
},
552+
"Responses": [
553+
{
554+
"@timestamp": "2023-04-13T16:15:16.0Z",
555+
"action": {
556+
"action": "file_rollback",
557+
"file": {
558+
"attributes": [
559+
"invalid"
560+
],
561+
"path": "",
562+
"reason": 2147484160
563+
},
564+
"source": {
565+
"attributes": [
566+
"archive"
567+
],
568+
"path": "\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy55\\git\\endpoint-dev\\Python\\runtime\\failed_test_logs\\20230413_181248\\EndpointRollbackTestCase\\test_rollback_trigger_malware_1_prevent\\tmp\\TRA14KA5Z2\\ExceptionlistTester-Windows.1d1phoq97d"
569+
}
570+
},
571+
"message": "Successful production rollback",
572+
"result": 0
573+
},
574+
{
575+
"@timestamp": "2023-04-13T16:15:16.0Z",
576+
"action": {
577+
"action": "registry_rollback",
578+
"key": {
579+
"actions": [
580+
"Deleted"
581+
],
582+
"path": "\\REGISTRY\\MACHINE\\SOFTWARE\\WOW6432Node\\TestRollback\\1"
583+
}
584+
},
585+
"message": "Successful production registry rollback",
586+
"result": 0
587+
},
588+
{
589+
"@timestamp": "2023-04-13T16:15:16.0Z",
590+
"action": {
591+
"action": "registry_rollback",
592+
"key": {
593+
"actions": [
594+
"Modified"
595+
],
596+
"path": "\\REGISTRY\\MACHINE\\SOFTWARE\\WOW6432Node\\TestRollback.valuetest",
597+
"values": [
598+
{
599+
"actions": [
600+
"Deleted"
601+
],
602+
"name": "SomeValue"
603+
}
604+
]
605+
}
606+
}
607+
}
608+
]
552609
}

package/endpoint/docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ sent by the endpoint.
8080
| Responses.action.file.reason | Combined USN file modification reason | long |
8181
| Responses.action.key.actions | Actions taken by Registry Rollback for key | keyword |
8282
| Responses.action.key.path | NT path of registry key recovered by Rollback | keyword |
83+
| Responses.action.key.values | Values modified | nested |
84+
| Responses.action.key.values.actions | Actions taken by Registry Rollback for value | keyword |
85+
| Responses.action.key.values.name | Value name recovered by Rollback | keyword |
8386
| Responses.action.source.attributes | Source file attributes | keyword |
8487
| Responses.action.source.path | Source file path | keyword |
8588
| Responses.action.state | Index of event in events array to use for field lookup | long |

schemas/v1/alerts/rule_detection_event.yaml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)