Skip to content

Commit

Permalink
Add process.Ext.protection to Windows library events (#528)
Browse files Browse the repository at this point in the history
* add process.Ext.protection to library event

* add generated files

* update sample events
  • Loading branch information
jdu2600 authored and pzl committed Aug 22, 2024
1 parent 56608b2 commit 79db083
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ This event is generated when a DLL or driver is loaded.
| process.Ext.code_signature.status |
| process.Ext.code_signature.subject_name |
| process.Ext.code_signature.trusted |
| process.Ext.protection |
| process.code_signature.exists |
| process.code_signature.status |
| process.code_signature.subject_name |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fields:
- process.Ext.code_signature.status
- process.Ext.code_signature.subject_name
- process.Ext.code_signature.trusted
- process.Ext.protection
- process.code_signature.exists
- process.code_signature.status
- process.code_signature.subject_name
Expand Down
1 change: 1 addition & 0 deletions custom_subsets/elastic_endpoint/library/library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ fields:
subject_name: {}
trusted: {}
valid: {}
protection: {}
file:
fields:
pe:
Expand Down
6 changes: 6 additions & 0 deletions package/endpoint/data_stream/library/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,12 @@
Leave unpopulated if a certificate was unchecked.'
example: 'true'
default_field: false
- name: Ext.protection
level: custom
type: keyword
ignore_above: 1024
description: Indicates the protection level of this process. Uses the same syntax as Process Explorer. Examples include PsProtectedSignerWinTcb, PsProtectedSignerWinTcb-Light, and PsProtectedSignerWindows-Light.
default_field: false
- name: code_signature.exists
level: core
type: boolean
Expand Down
3 changes: 2 additions & 1 deletion package/endpoint/data_stream/library/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"exists": true,
"status": "trusted"
}
]
],
"protection": "PsProtectedSignerAntimalware-Light"
},
"code_signature": {
"trusted": true,
Expand Down
1 change: 1 addition & 0 deletions package/endpoint/data_stream/process/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"CET dynamic APIs can only be called out of proc",
"CF Guard"
],
"protection": "PsProtectedSignerAntimalware-Light",
"device": {
"volume_device_type": "Disk File System"
},
Expand Down
1 change: 1 addition & 0 deletions package/endpoint/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,7 @@ sent by the endpoint.
| process.Ext.code_signature.subject_name | Subject name of the code signer | keyword |
| process.Ext.code_signature.trusted | Stores the trust status of the certificate chain. Validating the trust of the certificate chain may be complicated, and this field should only be populated by tools that actively check the status. | boolean |
| process.Ext.code_signature.valid | Boolean to capture if the digital signature is verified against the binary content. Leave unpopulated if a certificate was unchecked. | boolean |
| process.Ext.protection | Indicates the protection level of this process. Uses the same syntax as Process Explorer. Examples include PsProtectedSignerWinTcb, PsProtectedSignerWinTcb-Light, and PsProtectedSignerWindows-Light. | keyword |
| process.code_signature.exists | Boolean to capture if a signature is present. | boolean |
| process.code_signature.signing_id | The identifier used to sign the process. This is used to identify the application manufactured by a software vendor. The field is relevant to Apple *OS only. | keyword |
| process.code_signature.status | Additional information about the certificate status. This is useful for logging cryptographic errors with the certificate validity or trust status. Leave unpopulated if the validity or trust of the certificate was unchecked. | keyword |
Expand Down
12 changes: 12 additions & 0 deletions schemas/v1/library/library.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79db083

Please sign in to comment.