Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create generate_datamodels script #170

Merged
merged 24 commits into from
Feb 27, 2023

Conversation

Amndeep7
Copy link
Contributor

No description provided.

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
@Amndeep7 Amndeep7 changed the title grabbed cleaned up datamodels from the yaml branch Create generate_datamodels script Feb 24, 2023
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…ts script

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…er use that path anyways

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
@Amndeep7 Amndeep7 marked this pull request as ready for review February 27, 2023 00:27
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
|**[driver](driver)**|`load`<br />`unload`|`base_address`<br />`fqdn`<br />`hostname`<br />`image_path`<br />`md5_hash`<br />`module_name`<br />`pid`<br />`sha1_hash`<br />`sha256_hash`<br />`signer`<br />`signature_valid`|
|**[email](email)**|`block`<br />`delete`<br />`deliver`<br />`redirect`<br />`quarantine`|`action_reason`<br />`attachment_mime_type`<br />`attachment_name`<br />`attachment_size`<br />`date`<br />`dest_address`<br />`dest_ip`<br />`dest_port`<br />`from`<br />`message_body`<br />`message_links`<br />`message_type`<br />`return_address`<br />`server_relay`<br />`smtp_uid`<br />`src_address`<br />`src_domain`<br />`src_ip`<br />`src_port`<br />`subject`<br />`to`|
|**[file](file)**|`acl_modify`<br />`create`<br />`delete`<br />`modify`<br />`read`<br />`timestomp`<br />`write`|`content`<br />`company`<br />`creation_time`<br />`file_name`<br />`file_path`<br />`file_uid`<br />`file_user`<br />`file_extension`<br />`file_gid`<br />`file_gid`<br />`fqdn`<br />`hostname`<br />`image_path`<br />`link_target`<br />`md5_hash`<br />`mime_type`<br />`pid`<br />`ppid`<br />`previous_creation_time`<br />`sha1_hash`<br />`sha256_hash`<br />`signer`<br />`signature_valid`<br />`uid`<br />`user`|
|**[flow](flow)**|`end`<br />`message`<br />`start`|`application_protocol`<br />`content`<br />`dest_fqdn`<br />`dest_hostname`<br />`dest_ip`<br />`dest_port`<br />`end_time`<br />`exe`<br />`fqdn`<br />`hostname`<br />`image_path`<br />`in_bytes`<br />`network_direction`<br />`out_bytes`<br />`packet_count`<br />`pid`<br />`ppid`<br />`proto_info`<br />`protocol`<br />`src_fqdn`<br />`src_hostname`<br />`src_ip`<br />`src_port`<br />`start_time`<br />`tcp_flags`<br />`transport_protocol`<br />`uid`<br />`user`|
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double check stuff like this 'protocol' field which is not specified anywhere else. Should it be? Or is this location the mistake?

@@ -8,19 +8,19 @@ The Data Model, strongly inspired by [CybOX](https://cyboxproject.github.io/), i

|Object|Actions|Fields|
|---|---|---|
|**[authentication](authentication)**|`error`<br />`failure`<br />`success`|`ad_domain`<br />`app_name`<br />`auth_service`<br />`auth_target`<br />`decision_reason`<br />`fqdn`<br />`hostname`<br />`fqdn`<br />`method`<br />`response_time`<br />`target_ad_domain`<br />`target_uid`<br />`target_user`<br />`target_user_role`<br />`target_user_type`<br />`uid`<br />`user`<br />`user_agent`<br />`user_role`|
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'fqdn' was duplicated here

@Amndeep7
Copy link
Contributor Author

Amndeep7 commented Feb 27, 2023

I think that the other scripts and templates could be improved/added so as to be cleaner and leverage the templating engine more instead of piecing components together within the script. On the whole, I'm reasonably satisfied with the script and templating done in this PR and think that they could be used as a reference for a revision for the pre-existing ones.

Amndeep7 and others added 9 commits February 27, 2023 11:49
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…e of them

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
… in a different order than live

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…enerating files

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…cutable

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Build and Push Automation Script <>
@alexiacrumpton alexiacrumpton merged commit 50bae40 into mitre-attack:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants