Skip to content

Commit 50bae40

Browse files
Merge pull request #170 from Amndeep7/generate_datamodel
Create generate_datamodels script
2 parents 5684c73 + 6a882ac commit 50bae40

38 files changed

+3220
-476
lines changed

.github/workflows/regenerate-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
with:
1717
repository: ${{ github.event.pull_request.head.repo.full_name }}
1818
ref: ${{ github.head_ref }}
19+
- name: Clean /docs/data_model
20+
shell: bash
21+
run: rm -rfv ./docs/data_model
1922
- name: Clean /docs/analytics
2023
shell: bash
2124
run: rm -rfv ./docs/analytics
@@ -29,6 +32,9 @@ jobs:
2932
cache: 'pip'
3033
- name: Install script dependencies
3134
run: pip install -r ./scripts/requirements.txt
35+
- name: Regenerate datamodels
36+
working-directory: ./scripts
37+
run: python generate_datamodels.py
3238
- name: Regenerate analytics
3339
working-directory: ./scripts
3440
run: python generate_analytics.py

data_model/authentication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Authentication
3-
description: Authentication events occur whenever a user attempts to login to a system, or a user or process attempts to access a privileged system resource.
3+
description: An authentication event occurs whenever a user or process attempts to access a privileged system resource. Examples include logging into a system, or elevating privilege.
44
actions:
55
- name: success
66
description: The event corresponding to an authentication service responding positively to an authentication request.

data_model/driver.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ fields:
4040
- name: signature_valid
4141
description: Boolean indicator of whether the driver is signed and whether the signature is current and not revoked
4242
example: true
43+
coverage_map:
44+
load:
45+
fqdn: ["sysmon_13"]
46+
image_path: ["sysmon_13"]
47+
pid: ["sysmon_13"]
48+
sha256_hash: ["sysmon_13"]
49+
signature_valid: ["sysmon_13"]
50+
signer: ["sysmon_13"]

data_model/email.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Email
3-
description: Email events are at the email server level.
3+
description: Email events are at the mail server level.
44
actions:
55
- name: deliver
66
description: The event corresponding to an email being sent to an end recipient.

data_model/file.yaml

100755100644
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,38 @@ fields:
9494
- name: uid
9595
description: The user ID or SID for the acting entity.
9696
example: S-1-5-18
97+
coverage_map:
98+
create:
99+
company: ["autoruns_13.98", "sysmon_13"]
100+
creation_time: ["autoruns_13.98", "sysmon_13"]
101+
file_name: ["autoruns_13.98"]
102+
file_path: ["sysmon_13"]
103+
fqdn: ["autoruns_13.98", "sysmon_13"]
104+
hostname: ["autoruns_13.98"]
105+
image_path: ["sysmon_13"]
106+
md5_hash: ["autoruns_13.98"]
107+
pid: ["sysmon_13"]
108+
signer: ["sysmon_13"]
109+
delete:
110+
fqdn: ["sysmon_13"]
111+
image_path: ["sysmon_13"]
112+
pid: ["sysmon_13"]
113+
uid: ["sysmon_13"]
114+
modify:
115+
company: ["autoruns_13.98"]
116+
creation_time: ["autoruns_13.98"]
117+
file_name: ["autoruns_13.98"]
118+
fqdn: ["autoruns_13.98"]
119+
hostname: ["autoruns_13.98"]
120+
md5_hash: ["autoruns_13.98"]
121+
sha256_hash: ["autoruns_13.98"]
122+
signature_valid: ["autoruns_13.98"]
123+
signer: ["autoruns_13.98"]
124+
timestomp:
125+
creation_time: ["sysmon_13"]
126+
file_path: ["sysmon_13"]
127+
fqdn: ["sysmon_13"]
128+
image_path: ["sysmon_13"]
129+
pid: ["sysmon_13"]
130+
previous_creation_time: ["sysmon_13"]
131+
uid: ["sysmon_13"]

data_model/flow.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,21 @@ fields:
9090
- name: uid
9191
description: User ID or SID of the flow-handling entity.
9292
example: S-1-5-18
93+
coverage_map:
94+
start:
95+
dest_hostname: ["sysmon_13"]
96+
dest_ip: ["sysmon_13"]
97+
dest_port: ["sysmon_13"]
98+
exe: ["sysmon_13"]
99+
fqdn: ["sysmon_13"]
100+
hostname: ["sysmon_13"]
101+
image_path: ["sysmon_13"]
102+
pid: ["sysmon_13"]
103+
src_fdqn: ["sysmon_13"]
104+
src_hostname: ["sysmon_13"]
105+
src_ip: ["sysmon_13"]
106+
src_port: ["sysmon_13"]
107+
start_time: ["sysmon_13"]
108+
transport_protocol: ["sysmon_13"]
109+
uid: ["sysmon_13"]
110+
user: ["sysmon_13"]

data_model/module.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ fields:
4646
- name: signature_valid
4747
description: Boolean indicator of whether the signature is current and not revoked
4848
example: true
49+
coverage_map:
50+
load:
51+
fqdn: ["sysmon_13"]
52+
hostname: ["sysmon_13"]
53+
image_path: ["sysmon_13"]
54+
md5_hash: ["sysmon_13"]
55+
module_name: ["sysmon_13"]
56+
module_path: ["sysmon_13"]
57+
pid: ["sysmon_13"]
58+
sha1_hash: ["sysmon_13"]
59+
signature_valid: ["sysmon_13"]
60+
signer: ["sysmon_13"]
61+
tid: ["sysmon_13"]

data_model/process.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,27 @@ fields:
9393
- name: uid
9494
description: User ID under which original process is running.
9595
example: 509
96+
coverage_map:
97+
access:
98+
access_level: ["sysmon_13"]
99+
call_trace: ["sysmon_13"]
100+
fqdn: ["sysmon_13"]
101+
guid: ["sysmon_13"]
102+
image_path: ["sysmon_13"]
103+
pid: ["sysmon_13"]
104+
sid: ["sysmon_13"]
105+
target_guid: ["sysmon_13"]
106+
target_pid: ["sysmon_13"]
107+
target_name: ["sysmon_13"]
108+
create:
109+
command_line: ["sysmon_13"]
110+
current_working_directory: ["sysmon_13"]
111+
fqdn: ["sysmon_13"]
112+
image_path: ["sysmon_13"]
113+
integrity_level: ["sysmon_13"]
114+
parent_command_line: ["sysmon_13"]
115+
parent_guid: ["sysmon_13"]
116+
pid: ["sysmon_13"]
117+
ppid: ["sysmon_13"]
118+
sha256_hash: ["sysmon_13"]
119+
sid: ["sysmon_13"]

data_model/registry.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,43 @@ fields:
4444
- name: new_content
4545
description: The data within the new value, or the new name of a key, after an edit event.
4646
example: \%SystemRoot%\system32\svchost.exe, HKLM\SYSTEM\CurrentControlSet\services\RpcSs
47+
coverage_map:
48+
add:
49+
data: ["autoruns_13.98", "sysmon_13"]
50+
fqdn: ["sysmon_13"]
51+
hostname: ["autoruns_13.98"]
52+
hive: ["autoruns_13.98", "sysmon_13"]
53+
key: ["autoruns_13.98", "sysmon_13"]
54+
image_path: ["sysmon_13"]
55+
pid: ["sysmon_13"]
56+
type: ["autoruns_13.98"]
57+
user: ["sysmon_13"]
58+
value: ["autoruns_13.98"]
59+
key_edit:
60+
data: ["autoruns_13.98", "sysmon_13"]
61+
fqdn: ["sysmon_13"]
62+
hostname: ["autoruns_13.98"]
63+
hive: ["autoruns_13.98", "sysmon_13"]
64+
key: ["autoruns_13.98", "sysmon_13"]
65+
image_path: ["sysmon_13"]
66+
new_content: ["autoruns_13.98", "sysmon_13"]
67+
pid: ["sysmon_13"]
68+
type: ["autoruns_13.98"]
69+
user: ["sysmon_13"]
70+
value: ["autoruns_13.98", "sysmon_13"]
71+
remove:
72+
data: ["sysmon_13"]
73+
fqdn: ["sysmon_13"]
74+
hive: ["sysmon_13"]
75+
key: ["sysmon_13"]
76+
image_path: ["sysmon_13"]
77+
pid: ["sysmon_13"]
78+
user: ["sysmon_13"]
79+
value_edit:
80+
data: ["autoruns_13.98"]
81+
hostname: ["autoruns_13.98"]
82+
hive: ["autoruns_13.98"]
83+
key: ["autoruns_13.98"]
84+
new_content: ["autoruns_13.98"]
85+
type: ["autoruns_13.98"]
86+
value: ["autoruns_13.98"]

data_model/service.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ fields:
4343
- name: uid
4444
description: The ID of SID of the user who acted on the service
4545
example: S-1-5-18
46+
coverage_map:
47+
create:
48+
command_line: ["autoruns_13.98"]
49+
exe: ["autoruns_13.98"]
50+
fqdn: ["autoruns_13.98"]
51+
hostname: ["autoruns_13.98"]
52+
image_path: ["autoruns_13.98"]
53+
delete:
54+
command_line: ["autoruns_13.98"]
55+
exe: ["autoruns_13.98"]
56+
fqdn: ["autoruns_13.98"]
57+
hostname: ["autoruns_13.98"]
58+
image_path: ["autoruns_13.98"]

0 commit comments

Comments
 (0)