Skip to content

Commit faa42e5

Browse files
authored
Add file.origin_referrer_url and file.origin_url to FileEvent (#514)
* add file.fields.yml * add fields.yml * add custom_file.yml * add generated files * change the fields value * add newline * change the fields value * ignore * change ingore_above to 8192 * add event example
1 parent fc99a84 commit faa42e5

File tree

7 files changed

+54
-1
lines changed

7 files changed

+54
-1
lines changed

custom_documentation/doc/endpoint/file/windows/windows_file_open.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ This event is generated when a file is opened.
6363
| process.code_signature.status |
6464
| process.code_signature.subject_name |
6565
| process.code_signature.trusted |
66+
| process.command_line |
6667
| process.entity_id |
6768
| process.executable |
6869
| process.name |

custom_schemas/custom_file.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,20 @@
426426
relevant to Apple *OS only.'
427427
example: EQHXZ8M8AV
428428

429+
- name: origin_referrer_url
430+
level: extended
431+
type: keyword
432+
ignore_above: 8192
433+
description: >
434+
The url of the webpage that linked to the file.
435+
436+
- name: origin_url
437+
level: extended
438+
type: keyword
439+
ignore_above: 8192
440+
description: >
441+
The url where the file is hosted.
442+
429443
- name: pe
430444
level: custom
431445
type: object

custom_subsets/elastic_endpoint/file/file.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ fields:
200200
name: {}
201201
owner: {}
202202
path: {}
203+
origin_referrer_url: {}
204+
origin_url: {}
203205
pe:
204206
fields:
205207
company: {}

package/endpoint/data_stream/file/fields/fields.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,18 @@
753753
ignore_above: 1024
754754
description: Name of the file including the extension, without the directory.
755755
example: example.png
756+
- name: origin_referrer_url
757+
level: extended
758+
type: keyword
759+
ignore_above: 8192
760+
description: The url of the webpage that linked to the file.
761+
default_field: false
762+
- name: origin_url
763+
level: extended
764+
type: keyword
765+
ignore_above: 8192
766+
description: The url where the file is hosted.
767+
default_field: false
756768
- name: owner
757769
level: extended
758770
type: keyword

package/endpoint/data_stream/file/sample_event.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
"path": "C:\\ProgramData\\winlogbeat\\.winlogbeat.yml.new",
9191
"extension": "new",
9292
"size": 1406,
93-
"name": ".winlogbeat.yml.new"
93+
"name": ".winlogbeat.yml.new",
94+
"origin_referrer_url": "https://example.com",
95+
"origin_url": "https://example.com/file.zip"
9496
},
9597
"ecs": {
9698
"version": "1.11.0"

package/endpoint/docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,8 @@ sent by the endpoint.
15991599
| file.mode | Mode of the file in octal representation. | keyword |
16001600
| file.mtime | Last time the file content was modified. | date |
16011601
| file.name | Name of the file including the extension, without the directory. | keyword |
1602+
| file.origin_referrer_url | The url of the webpage that linked to the file. | keyword |
1603+
| file.origin_url | The url where the file is hosted. | keyword |
16021604
| file.owner | File owner's username. | keyword |
16031605
| file.path | Full path to the file, including the file name. It should include the drive letter, when appropriate. | keyword |
16041606
| file.pe.company | Internal company name of the file, provided at compile-time. | keyword |

schemas/v1/file/file.yaml

Lines changed: 20 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)