Skip to content

Commit

Permalink
[Filebeat][santa] Map x509 fields in santa module (elastic#20976)
Browse files Browse the repository at this point in the history
* Map x509 fields in santa module

* Bump ecs version
  • Loading branch information
marc-gr authored Sep 8, 2020
1 parent e11283e commit f3e532c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Improve Zeek SSL module with `x509` ECS mappings {pull}20927[20927]
- Improve Zeek Kerberos module with `x509` ECS mappings {pull}20958[20958]
- Improve Fortinet firewall module with `x509` ECS mappings {pull}20983[20983]
- Improve Santa module with `x509` ECS mappings {pull}20976[20976]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/santa/log/config/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
ecs.version: 1.6.0
4 changes: 4 additions & 0 deletions filebeat/module/santa/log/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ processors:
field: related.hash
value: "{{process.hash.sha256}}"
if: "ctx?.process?.hash != null"
- set:
field: file.x509.issuer.common_name
value: "{{santa.certificate.common_name}}"
ignore_empty_value: true
on_failure:
- set:
field: error.message
Expand Down
8 changes: 8 additions & 0 deletions filebeat/module/santa/log/test/santa.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -58,6 +59,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -105,6 +107,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -151,6 +154,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -198,6 +202,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -244,6 +249,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "0",
"group.name": "wheel",
Expand Down Expand Up @@ -336,6 +342,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Software Signing",
"fileset.name": "log",
"group.id": "20",
"group.name": "staff",
Expand Down Expand Up @@ -381,6 +388,7 @@
"event.type": [
"start"
],
"file.x509.issuer.common_name": "Developer ID Application: Google, Inc. (EQHXZ8M8AV)",
"fileset.name": "log",
"group.id": "20",
"group.name": "staff",
Expand Down

0 comments on commit f3e532c

Please sign in to comment.