mmisp-lib 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. mmisp/api_schemas/__init__.py +0 -0
  2. mmisp/api_schemas/attributes/__init__.py +0 -0
  3. mmisp/api_schemas/attributes/add_attribute_body.py +34 -0
  4. mmisp/api_schemas/attributes/add_attribute_response.py +33 -0
  5. mmisp/api_schemas/attributes/add_remove_tag_attribute_response.py +13 -0
  6. mmisp/api_schemas/attributes/delete_attribute_response.py +8 -0
  7. mmisp/api_schemas/attributes/delete_selected_attribute_body.py +9 -0
  8. mmisp/api_schemas/attributes/delete_selected_attribute_response.py +13 -0
  9. mmisp/api_schemas/attributes/edit_attribute_body.py +24 -0
  10. mmisp/api_schemas/attributes/edit_attributes_response.py +42 -0
  11. mmisp/api_schemas/attributes/get_all_attributes_response.py +38 -0
  12. mmisp/api_schemas/attributes/get_attribute_response.py +41 -0
  13. mmisp/api_schemas/attributes/get_attribute_statistics_response.py +137 -0
  14. mmisp/api_schemas/attributes/get_describe_types_response.py +29 -0
  15. mmisp/api_schemas/attributes/restore_attribute_reponse.py +25 -0
  16. mmisp/api_schemas/attributes/search_attributes_body.py +74 -0
  17. mmisp/api_schemas/attributes/search_attributes_response.py +52 -0
  18. mmisp/api_schemas/auth_keys/__init__.py +0 -0
  19. mmisp/api_schemas/auth_keys/add_auth_key_body.py +10 -0
  20. mmisp/api_schemas/auth_keys/add_auth_key_response.py +20 -0
  21. mmisp/api_schemas/auth_keys/edit_auth_key_body.py +8 -0
  22. mmisp/api_schemas/auth_keys/edit_auth_key_response.py +24 -0
  23. mmisp/api_schemas/auth_keys/search_auth_keys_body.py +17 -0
  24. mmisp/api_schemas/auth_keys/search_get_all_auth_keys_users_response.py +28 -0
  25. mmisp/api_schemas/auth_keys/view_auth_key_response.py +24 -0
  26. mmisp/api_schemas/authentication/__init__.py +0 -0
  27. mmisp/api_schemas/authentication/exchange_token_login_body.py +5 -0
  28. mmisp/api_schemas/authentication/password_login_body.py +6 -0
  29. mmisp/api_schemas/authentication/start_login_body.py +5 -0
  30. mmisp/api_schemas/authentication/start_login_response.py +21 -0
  31. mmisp/api_schemas/authentication/token_response.py +5 -0
  32. mmisp/api_schemas/events/FreeTextImportWorkerBody.py +17 -0
  33. mmisp/api_schemas/events/__init__.py +0 -0
  34. mmisp/api_schemas/events/add_attribute_via_free_text_import_event_body.py +12 -0
  35. mmisp/api_schemas/events/add_attribute_via_free_text_import_event_response.py +14 -0
  36. mmisp/api_schemas/events/add_edit_get_event_response.py +234 -0
  37. mmisp/api_schemas/events/add_event_body.py +30 -0
  38. mmisp/api_schemas/events/add_remove_tag_events_response.py +11 -0
  39. mmisp/api_schemas/events/delete_event_response.py +14 -0
  40. mmisp/api_schemas/events/edit_event_body.py +28 -0
  41. mmisp/api_schemas/events/get_all_events_response.py +99 -0
  42. mmisp/api_schemas/events/get_event_response.py +8 -0
  43. mmisp/api_schemas/events/index_events_body.py +30 -0
  44. mmisp/api_schemas/events/index_events_response.py +40 -0
  45. mmisp/api_schemas/events/publish_event_response.py +13 -0
  46. mmisp/api_schemas/events/search_events_body.py +43 -0
  47. mmisp/api_schemas/events/search_events_response.py +10 -0
  48. mmisp/api_schemas/events/unpublish_event_response.py +13 -0
  49. mmisp/api_schemas/feeds/__init__.py +0 -0
  50. mmisp/api_schemas/feeds/cache_feed_response.py +12 -0
  51. mmisp/api_schemas/feeds/create_feed_body.py +30 -0
  52. mmisp/api_schemas/feeds/enable_disable_feed_response.py +10 -0
  53. mmisp/api_schemas/feeds/fetch_feeds_response.py +8 -0
  54. mmisp/api_schemas/feeds/get_feed_response.py +47 -0
  55. mmisp/api_schemas/feeds/toggle_feed_body.py +8 -0
  56. mmisp/api_schemas/feeds/update_feed_body.py +30 -0
  57. mmisp/api_schemas/galaxies/__init__.py +0 -0
  58. mmisp/api_schemas/galaxies/attach_galaxy_cluster_body.py +12 -0
  59. mmisp/api_schemas/galaxies/attach_galaxy_cluster_response.py +10 -0
  60. mmisp/api_schemas/galaxies/delete_force_update_import_galaxy_response.py +12 -0
  61. mmisp/api_schemas/galaxies/export_galaxies_body.py +16 -0
  62. mmisp/api_schemas/galaxies/export_galaxies_response.py +44 -0
  63. mmisp/api_schemas/galaxies/galaxy_schema.py +18 -0
  64. mmisp/api_schemas/galaxies/get_all_search_galaxies_response.py +22 -0
  65. mmisp/api_schemas/galaxies/get_galaxy_response.py +37 -0
  66. mmisp/api_schemas/galaxies/import_galaxies_body.py +15 -0
  67. mmisp/api_schemas/galaxies/search_galaxies_body.py +22 -0
  68. mmisp/api_schemas/noticelists/__init__.py +0 -0
  69. mmisp/api_schemas/noticelists/get_all_noticelist_response.py +10 -0
  70. mmisp/api_schemas/noticelists/get_noticelist_response.py +38 -0
  71. mmisp/api_schemas/objects/__init__.py +0 -0
  72. mmisp/api_schemas/objects/create_object_body.py +19 -0
  73. mmisp/api_schemas/objects/get_object_response.py +50 -0
  74. mmisp/api_schemas/objects/search_objects_body.py +49 -0
  75. mmisp/api_schemas/organisations/__init__.py +0 -0
  76. mmisp/api_schemas/organisations/organisation.py +24 -0
  77. mmisp/api_schemas/roles/__init__.py +0 -0
  78. mmisp/api_schemas/roles/role.py +71 -0
  79. mmisp/api_schemas/sharing_groups/__init__.py +0 -0
  80. mmisp/api_schemas/sharing_groups/add_org_to_sharing_group_body.py +6 -0
  81. mmisp/api_schemas/sharing_groups/add_org_to_sharing_group_legacy_body.py +5 -0
  82. mmisp/api_schemas/sharing_groups/add_server_to_sharing_group_body.py +6 -0
  83. mmisp/api_schemas/sharing_groups/add_server_to_sharing_group_legacy_body.py +5 -0
  84. mmisp/api_schemas/sharing_groups/create_sharing_group_body.py +12 -0
  85. mmisp/api_schemas/sharing_groups/create_sharing_group_legacy_body.py +23 -0
  86. mmisp/api_schemas/sharing_groups/create_sharing_group_legacy_response.py +18 -0
  87. mmisp/api_schemas/sharing_groups/delete_sharing_group_legacy_response.py +5 -0
  88. mmisp/api_schemas/sharing_groups/get_all_sharing_groups_response.py +53 -0
  89. mmisp/api_schemas/sharing_groups/get_sharing_group_info_response.py +44 -0
  90. mmisp/api_schemas/sharing_groups/sharing_group.py +19 -0
  91. mmisp/api_schemas/sharing_groups/sharing_group_org.py +8 -0
  92. mmisp/api_schemas/sharing_groups/sharing_group_server.py +8 -0
  93. mmisp/api_schemas/sharing_groups/update_sharing_group_body.py +10 -0
  94. mmisp/api_schemas/sharing_groups/update_sharing_group_legacy_body.py +28 -0
  95. mmisp/api_schemas/sharing_groups/view_update_sharing_group_legacy_response.py +40 -0
  96. mmisp/api_schemas/sightings/__init__.py +0 -0
  97. mmisp/api_schemas/sightings/create_sighting_body.py +49 -0
  98. mmisp/api_schemas/sightings/get_sighting_response.py +27 -0
  99. mmisp/api_schemas/standard_status_response.py +13 -0
  100. mmisp/api_schemas/tags/__init__.py +0 -0
  101. mmisp/api_schemas/tags/create_tag_body.py +15 -0
  102. mmisp/api_schemas/tags/delete_tag_response.py +10 -0
  103. mmisp/api_schemas/tags/get_tag_response.py +31 -0
  104. mmisp/api_schemas/tags/search_tags_response.py +26 -0
  105. mmisp/api_schemas/tags/update_tag_body.py +15 -0
  106. mmisp/api_schemas/taxonomies/__init__.py +0 -0
  107. mmisp/api_schemas/taxonomies/export_taxonomies_response.py +30 -0
  108. mmisp/api_schemas/taxonomies/get_taxonomy_by_id_response.py +30 -0
  109. mmisp/api_schemas/taxonomies/get_taxonomy_response.py +21 -0
  110. mmisp/api_schemas/taxonomies/get_taxonomy_tags_response.py +32 -0
  111. mmisp/api_schemas/user_settings/__init__.py +0 -0
  112. mmisp/api_schemas/user_settings/get_uid_user_setting_response.py +21 -0
  113. mmisp/api_schemas/user_settings/get_user_settings_response.py +13 -0
  114. mmisp/api_schemas/user_settings/search_user_setting_body.py +7 -0
  115. mmisp/api_schemas/user_settings/search_user_setting_response.py +11 -0
  116. mmisp/api_schemas/user_settings/set_user_setting_body.py +5 -0
  117. mmisp/api_schemas/user_settings/set_user_setting_response.py +13 -0
  118. mmisp/api_schemas/user_settings/view_user_setting_response.py +13 -0
  119. mmisp/api_schemas/users/__init__.py +0 -0
  120. mmisp/api_schemas/users/user.py +42 -0
  121. mmisp/api_schemas/users/users_view_me_response.py +12 -0
  122. mmisp/api_schemas/warninglists/__init__.py +0 -0
  123. mmisp/api_schemas/warninglists/check_value_warninglists_body.py +8 -0
  124. mmisp/api_schemas/warninglists/check_value_warninglists_response.py +14 -0
  125. mmisp/api_schemas/warninglists/create_warninglist_body.py +220 -0
  126. mmisp/api_schemas/warninglists/delete_warninglist_response.py +13 -0
  127. mmisp/api_schemas/warninglists/get_selected_all_warninglists_response.py +14 -0
  128. mmisp/api_schemas/warninglists/get_selected_warninglists_body.py +9 -0
  129. mmisp/api_schemas/warninglists/toggle_enable_warninglists_body.py +10 -0
  130. mmisp/api_schemas/warninglists/toggle_enable_warninglists_response.py +10 -0
  131. mmisp/api_schemas/warninglists/warninglist_response.py +42 -0
  132. mmisp/db/__init__.py +0 -0
  133. mmisp/db/config.py +17 -0
  134. mmisp/db/database.py +42 -0
  135. mmisp/db/models/__init__.py +0 -0
  136. mmisp/db/models/attribute.py +92 -0
  137. mmisp/db/models/auth_key.py +24 -0
  138. mmisp/db/models/event.py +62 -0
  139. mmisp/db/models/feed.py +32 -0
  140. mmisp/db/models/galaxy.py +22 -0
  141. mmisp/db/models/galaxy_cluster.py +52 -0
  142. mmisp/db/models/identity_provider.py +22 -0
  143. mmisp/db/models/noticelist.py +22 -0
  144. mmisp/db/models/object.py +39 -0
  145. mmisp/db/models/organisation.py +26 -0
  146. mmisp/db/models/role.py +42 -0
  147. mmisp/db/models/server.py +33 -0
  148. mmisp/db/models/sharing_group.py +43 -0
  149. mmisp/db/models/sighting.py +21 -0
  150. mmisp/db/models/tag.py +19 -0
  151. mmisp/db/models/taxonomy.py +41 -0
  152. mmisp/db/models/user.py +44 -0
  153. mmisp/db/models/user_setting.py +29 -0
  154. mmisp/db/models/warninglist.py +33 -0
  155. mmisp/db/print_changes.py +59 -0
  156. mmisp/lib/__init__.py +0 -0
  157. mmisp/lib/attributes.py +1386 -0
  158. mmisp_lib-0.1.0.dist-info/METADATA +77 -0
  159. mmisp_lib-0.1.0.dist-info/RECORD +161 -0
  160. mmisp_lib-0.1.0.dist-info/WHEEL +5 -0
  161. mmisp_lib-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1386 @@
1
+ from collections import defaultdict
2
+ from enum import Enum
3
+
4
+
5
+ class AttributeCategories(Enum):
6
+ PAYLOAD_DELIVERY = "Payload delivery"
7
+ ARTIFACTS_DROPPED = "Artifacts dropped"
8
+ PAYLOAD_INSTALLATION = "Payload installation"
9
+ EXTERNAL_ANALYSIS = "External analysis"
10
+ PERSISTENCE_MECHANISM = "Persistence mechanism"
11
+ NETWORK_ACTIVITY = "Network activity"
12
+ ATTRIBUTION = "Attribution"
13
+ SOCIAL_NETWORK = "Social network"
14
+ PERSON = "Person"
15
+ OTHER = "Other"
16
+ INTERNAL_REFERENCE = "Internal reference"
17
+ ANTIVIRUS_DETECTION = "Antivirus detection"
18
+ SUPPORT_TOOL = "Support Tool"
19
+ TARGETING_DATA = "Targeting data"
20
+ PAYLOAD_TYPE = "Payload type"
21
+ FINANCIAL_FRAUD = "Financial fraud"
22
+
23
+
24
+ mapper_val_safe_clsname = {
25
+ "md5": "Md5",
26
+ "sha1": "Sha1",
27
+ "sha256": "Sha256",
28
+ "filename": "Filename",
29
+ "pdb": "Pdb",
30
+ "filename|sha1": "FilenameSha1",
31
+ "filename|sha256": "FilenameSha256",
32
+ "ip-src": "IpSrc",
33
+ "ip-dst": "IpDst",
34
+ "hostname": "Hostname",
35
+ "domain": "Domain",
36
+ "domain|ip": "DomainIp",
37
+ "email": "Email",
38
+ "email-src": "EmailSrc",
39
+ "email-dst": "EmailDst",
40
+ "email-subject": "EmailSubject",
41
+ "email-attachment": "EmailAttachment",
42
+ "email-body": "EmailBody",
43
+ "eppn": "Eppn",
44
+ "float": "Float",
45
+ "git-commit-id": "GitCommitId",
46
+ "url": "Url",
47
+ "http-method": "HttpMethod",
48
+ "user-agent": "UserAgent",
49
+ "ja3-fingerprint-md5": "Ja3FingerprintMd5",
50
+ "jarm-fingerprint": "JarmFingerprint",
51
+ "favicon-mmh3": "FaviconMmh3",
52
+ "hassh-md5": "HasshMd5",
53
+ "hasshserver-md5": "HasshserverMd5",
54
+ "regkey": "Regkey",
55
+ "regkey|value": "RegkeyValue",
56
+ "AS": "As",
57
+ "bro": "Bro",
58
+ "zeek": "Zeek",
59
+ "community-id": "CommunityId",
60
+ "pattern-in-file": "PatternInFile",
61
+ "aba-rtn": "AbaRtn",
62
+ "anonymised": "Anonymised",
63
+ "attachment": "Attachment",
64
+ "authentihash": "Authentihash",
65
+ "azure-application-id": "AzureApplicationId",
66
+ "bank-account-nr": "BankAccountNr",
67
+ "bic": "Bic",
68
+ "bin": "Bin",
69
+ "boolean": "Boolean",
70
+ "btc": "Btc",
71
+ "campaign-id": "CampaignId",
72
+ "campaign-name": "CampaignName",
73
+ "cc-number": "CcNumber",
74
+ "cdhash": "Cdhash",
75
+ "chrome-extension-id": "ChromeExtensionId",
76
+ "comment": "Comment",
77
+ "cookie": "Cookie",
78
+ "cortex": "Cortex",
79
+ "counter": "Counter",
80
+ "country-of-residence": "CountryOfResidence",
81
+ "cpe": "Cpe",
82
+ "dash": "Dash",
83
+ "datetime": "Datetime",
84
+ "date-of-birth": "DateOfBirth",
85
+ "dkim": "Dkim",
86
+ "dkim-signature": "DkimSignature",
87
+ "dns-soa-email": "DnsSoaEmail",
88
+ "email-dst-display-name": "EmailDstDisplayName",
89
+ "email-header": "EmailHeader",
90
+ "email-message-id": "EmailMessageId",
91
+ "email-mime-boundary": "EmailMimeBoundary",
92
+ "email-reply-to": "EmailReplyTo",
93
+ "email-src-display-name": "EmailSrcDisplayName",
94
+ "email-thread-index": "EmailThreadIndex",
95
+ "email-x-mailer": "EmailXMailer",
96
+ "filename|authentihash": "FilenameAuthentihash",
97
+ "filename|impfuzzy": "FilenameImpfuzzy",
98
+ "filename|imphash": "FilenameImphash",
99
+ "filename|md5": "FilenameMd5",
100
+ "filename-pattern": "FilenamePattern",
101
+ "filename|pehash": "FilenamePehash",
102
+ "filename|sha224": "FilenameSha224",
103
+ "filename|sha384": "FilenameSha384",
104
+ "filename|sha3-224": "FilenameSha3224",
105
+ "filename|sha3-256": "FilenameSha3256",
106
+ "filename|sha3-384": "FilenameSha3384",
107
+ "filename|sha3-512": "FilenameSha3512",
108
+ "filename|sha512": "FilenameSha512",
109
+ "filename|sha512/224": "FilenameSha512224",
110
+ "filename|sha512/256": "FilenameSha512256",
111
+ "filename|ssdeep": "FilenameSsdeep",
112
+ "filename|tlsh": "FilenameTlsh",
113
+ "filename|vhash": "FilenameVhash",
114
+ "first-name": "FirstName",
115
+ "frequent-flyer-number": "FrequentFlyerNumber",
116
+ "full-name": "FullName",
117
+ "gender": "Gender",
118
+ "gene": "Gene",
119
+ "github-organisation": "GithubOrganisation",
120
+ "github-repository": "GithubRepository",
121
+ "github-username": "GithubUsername",
122
+ "hex": "Hex",
123
+ "hostname|port": "HostnamePort",
124
+ "iban": "Iban",
125
+ "identity-card-number": "IdentityCardNumber",
126
+ "impfuzzy": "Impfuzzy",
127
+ "imphash": "Imphash",
128
+ "ip-dst|port": "IpDstPort",
129
+ "ip-src|port": "IpSrcPort",
130
+ "issue-date-of-the-visa": "IssueDateOfTheVisa",
131
+ "jabber-id": "JabberId",
132
+ "kusto-query": "KustoQuery",
133
+ "last-name": "LastName",
134
+ "link": "Link",
135
+ "mac-address": "MacAddress",
136
+ "mac-eui-64": "MacEui64",
137
+ "malware-sample": "MalwareSample",
138
+ "malware-type": "MalwareType",
139
+ "middle-name": "MiddleName",
140
+ "mime-type": "MimeType",
141
+ "mobile-application-id": "MobileApplicationId",
142
+ "mutex": "Mutex",
143
+ "named pipe": "NamedPipe",
144
+ "nationality": "Nationality",
145
+ "other": "Other",
146
+ "passenger-name-record-locator-number": "PassengerNameRecordLocatorNumber",
147
+ "passport-country": "PassportCountry",
148
+ "passport-expiration": "PassportExpiration",
149
+ "passport-number": "PassportNumber",
150
+ "pattern-in-memory": "PatternInMemory",
151
+ "pattern-in-traffic": "PatternInTraffic",
152
+ "payment-details": "PaymentDetails",
153
+ "pehash": "Pehash",
154
+ "pgp-private-key": "PgpPrivateKey",
155
+ "pgp-public-key": "PgpPublicKey",
156
+ "phone-number": "PhoneNumber",
157
+ "place-of-birth": "PlaceOfBirth",
158
+ "place-port-of-clearance": "PlacePortOfClearance",
159
+ "place-port-of-onward-foreign-destination": "PlacePortOfOnwardForeignDestination",
160
+ "place-port-of-original-embarkation": "PlacePortOfOriginalEmbarkation",
161
+ "port": "Port",
162
+ "primary-residence": "PrimaryResidence",
163
+ "process-state": "ProcessState",
164
+ "prtn": "Prtn",
165
+ "redress-number": "RedressNumber",
166
+ "sha224": "Sha224",
167
+ "sha384": "Sha384",
168
+ "sha3-224": "Sha3224",
169
+ "sha3-256": "Sha3256",
170
+ "sha3-384": "Sha3384",
171
+ "sha3-512": "Sha3512",
172
+ "sha512": "Sha512",
173
+ "sha512/224": "Sha512224",
174
+ "sha512/256": "Sha512256",
175
+ "sigma": "Sigma",
176
+ "size-in-bytes": "SizeInBytes",
177
+ "snort": "Snort",
178
+ "special-service-request": "SpecialServiceRequest",
179
+ "ssdeep": "Ssdeep",
180
+ "ssh-fingerprint": "SshFingerprint",
181
+ "stix2-pattern": "Stix2Pattern",
182
+ "target-email": "TargetEmail",
183
+ "target-external": "TargetExternal",
184
+ "target-location": "TargetLocation",
185
+ "target-machine": "TargetMachine",
186
+ "target-org": "TargetOrg",
187
+ "target-user": "TargetUser",
188
+ "telfhash": "Telfhash",
189
+ "text": "Text",
190
+ "threat-actor": "ThreatActor",
191
+ "tlsh": "Tlsh",
192
+ "travel-details": "TravelDetails",
193
+ "twitter-id": "TwitterId",
194
+ "uri": "Uri",
195
+ "vhash": "Vhash",
196
+ "visa-number": "VisaNumber",
197
+ "vulnerability": "Vulnerability",
198
+ "weakness": "Weakness",
199
+ "whois-creation-date": "WhoisCreationDate",
200
+ "whois-registrant-email": "WhoisRegistrantEmail",
201
+ "whois-registrant-name": "WhoisRegistrantName",
202
+ "whois-registrant-org": "WhoisRegistrantOrg",
203
+ "whois-registrant-phone": "WhoisRegistrantPhone",
204
+ "whois-registrar": "WhoisRegistrar",
205
+ "windows-scheduled-task": "WindowsScheduledTask",
206
+ "windows-service-displayname": "WindowsServiceDisplayname",
207
+ "windows-service-name": "WindowsServiceName",
208
+ "x509-fingerprint-md5": "X509FingerprintMd5",
209
+ "x509-fingerprint-sha1": "X509FingerprintSha1",
210
+ "x509-fingerprint-sha256": "X509FingerprintSha256",
211
+ "xmr": "Xmr",
212
+ "yara": "Yara",
213
+ }
214
+
215
+ mapper_safe_clsname_val = dict((v, k) for k, v in mapper_val_safe_clsname.items())
216
+
217
+
218
+ default_category = {
219
+ "md5": AttributeCategories.PAYLOAD_DELIVERY,
220
+ "sha1": AttributeCategories.PAYLOAD_DELIVERY,
221
+ "sha256": AttributeCategories.PAYLOAD_DELIVERY,
222
+ "filename": AttributeCategories.PAYLOAD_DELIVERY,
223
+ "pdb": AttributeCategories.ARTIFACTS_DROPPED,
224
+ "filename|sha1": AttributeCategories.PAYLOAD_DELIVERY,
225
+ "filename|sha256": AttributeCategories.PAYLOAD_DELIVERY,
226
+ "ip-src": AttributeCategories.NETWORK_ACTIVITY,
227
+ "ip-dst": AttributeCategories.NETWORK_ACTIVITY,
228
+ "hostname": AttributeCategories.NETWORK_ACTIVITY,
229
+ "domain": AttributeCategories.NETWORK_ACTIVITY,
230
+ "domain|ip": AttributeCategories.NETWORK_ACTIVITY,
231
+ "email": AttributeCategories.SOCIAL_NETWORK,
232
+ "email-src": AttributeCategories.PAYLOAD_DELIVERY,
233
+ "email-dst": AttributeCategories.NETWORK_ACTIVITY,
234
+ "email-subject": AttributeCategories.PAYLOAD_DELIVERY,
235
+ "email-attachment": AttributeCategories.PAYLOAD_DELIVERY,
236
+ "email-body": AttributeCategories.PAYLOAD_DELIVERY,
237
+ "eppn": AttributeCategories.NETWORK_ACTIVITY,
238
+ "float": AttributeCategories.OTHER,
239
+ "git-commit-id": AttributeCategories.INTERNAL_REFERENCE,
240
+ "url": AttributeCategories.NETWORK_ACTIVITY,
241
+ "http-method": AttributeCategories.NETWORK_ACTIVITY,
242
+ "user-agent": AttributeCategories.NETWORK_ACTIVITY,
243
+ "ja3-fingerprint-md5": AttributeCategories.NETWORK_ACTIVITY,
244
+ "jarm-fingerprint": AttributeCategories.NETWORK_ACTIVITY,
245
+ "favicon-mmh3": AttributeCategories.NETWORK_ACTIVITY,
246
+ "hassh-md5": AttributeCategories.NETWORK_ACTIVITY,
247
+ "hasshserver-md5": AttributeCategories.NETWORK_ACTIVITY,
248
+ "regkey": AttributeCategories.PERSISTENCE_MECHANISM,
249
+ "regkey|value": AttributeCategories.PERSISTENCE_MECHANISM,
250
+ "AS": AttributeCategories.NETWORK_ACTIVITY,
251
+ "bro": AttributeCategories.NETWORK_ACTIVITY,
252
+ "zeek": AttributeCategories.NETWORK_ACTIVITY,
253
+ "community-id": AttributeCategories.NETWORK_ACTIVITY,
254
+ "pattern-in-file": AttributeCategories.PAYLOAD_INSTALLATION,
255
+ "aba-rtn": AttributeCategories.FINANCIAL_FRAUD,
256
+ "anonymised": AttributeCategories.OTHER,
257
+ "attachment": AttributeCategories.EXTERNAL_ANALYSIS,
258
+ "authentihash": AttributeCategories.PAYLOAD_DELIVERY,
259
+ "azure-application-id": AttributeCategories.PAYLOAD_DELIVERY,
260
+ "bank-account-nr": AttributeCategories.FINANCIAL_FRAUD,
261
+ "bic": AttributeCategories.FINANCIAL_FRAUD,
262
+ "bin": AttributeCategories.FINANCIAL_FRAUD,
263
+ "boolean": AttributeCategories.OTHER,
264
+ "btc": AttributeCategories.FINANCIAL_FRAUD,
265
+ "campaign-id": AttributeCategories.ATTRIBUTION,
266
+ "campaign-name": AttributeCategories.ATTRIBUTION,
267
+ "cc-number": AttributeCategories.FINANCIAL_FRAUD,
268
+ "cdhash": AttributeCategories.PAYLOAD_DELIVERY,
269
+ "chrome-extension-id": AttributeCategories.PAYLOAD_DELIVERY,
270
+ "comment": AttributeCategories.OTHER,
271
+ "cookie": AttributeCategories.NETWORK_ACTIVITY,
272
+ "cortex": AttributeCategories.EXTERNAL_ANALYSIS,
273
+ "counter": AttributeCategories.OTHER,
274
+ "country-of-residence": AttributeCategories.PERSON,
275
+ "cpe": AttributeCategories.EXTERNAL_ANALYSIS,
276
+ "dash": AttributeCategories.FINANCIAL_FRAUD,
277
+ "datetime": AttributeCategories.OTHER,
278
+ "date-of-birth": AttributeCategories.PERSON,
279
+ "dkim": AttributeCategories.NETWORK_ACTIVITY,
280
+ "dkim-signature": AttributeCategories.NETWORK_ACTIVITY,
281
+ "dns-soa-email": AttributeCategories.ATTRIBUTION,
282
+ "email-dst-display-name": AttributeCategories.PAYLOAD_DELIVERY,
283
+ "email-header": AttributeCategories.PAYLOAD_DELIVERY,
284
+ "email-message-id": AttributeCategories.PAYLOAD_DELIVERY,
285
+ "email-mime-boundary": AttributeCategories.PAYLOAD_DELIVERY,
286
+ "email-reply-to": AttributeCategories.PAYLOAD_DELIVERY,
287
+ "email-src-display-name": AttributeCategories.PAYLOAD_DELIVERY,
288
+ "email-thread-index": AttributeCategories.PAYLOAD_DELIVERY,
289
+ "email-x-mailer": AttributeCategories.PAYLOAD_DELIVERY,
290
+ "filename|authentihash": AttributeCategories.PAYLOAD_DELIVERY,
291
+ "filename|impfuzzy": AttributeCategories.PAYLOAD_DELIVERY,
292
+ "filename|imphash": AttributeCategories.PAYLOAD_DELIVERY,
293
+ "filename|md5": AttributeCategories.PAYLOAD_DELIVERY,
294
+ "filename-pattern": AttributeCategories.PAYLOAD_INSTALLATION,
295
+ "filename|pehash": AttributeCategories.PAYLOAD_DELIVERY,
296
+ "filename|sha224": AttributeCategories.PAYLOAD_DELIVERY,
297
+ "filename|sha384": AttributeCategories.PAYLOAD_DELIVERY,
298
+ "filename|sha3-224": AttributeCategories.PAYLOAD_DELIVERY,
299
+ "filename|sha3-256": AttributeCategories.PAYLOAD_DELIVERY,
300
+ "filename|sha3-384": AttributeCategories.PAYLOAD_DELIVERY,
301
+ "filename|sha3-512": AttributeCategories.PAYLOAD_DELIVERY,
302
+ "filename|sha512": AttributeCategories.PAYLOAD_DELIVERY,
303
+ "filename|sha512/224": AttributeCategories.PAYLOAD_DELIVERY,
304
+ "filename|sha512/256": AttributeCategories.PAYLOAD_DELIVERY,
305
+ "filename|ssdeep": AttributeCategories.PAYLOAD_DELIVERY,
306
+ "filename|tlsh": AttributeCategories.PAYLOAD_DELIVERY,
307
+ "filename|vhash": AttributeCategories.PAYLOAD_DELIVERY,
308
+ "first-name": AttributeCategories.PERSON,
309
+ "frequent-flyer-number": AttributeCategories.PERSON,
310
+ "full-name": AttributeCategories.PERSON,
311
+ "gender": AttributeCategories.PERSON,
312
+ "gene": AttributeCategories.ARTIFACTS_DROPPED,
313
+ "github-organisation": AttributeCategories.SOCIAL_NETWORK,
314
+ "github-repository": AttributeCategories.SOCIAL_NETWORK,
315
+ "github-username": AttributeCategories.SOCIAL_NETWORK,
316
+ "hex": AttributeCategories.OTHER,
317
+ "hostname|port": AttributeCategories.NETWORK_ACTIVITY,
318
+ "iban": AttributeCategories.FINANCIAL_FRAUD,
319
+ "identity-card-number": AttributeCategories.PERSON,
320
+ "impfuzzy": AttributeCategories.PAYLOAD_DELIVERY,
321
+ "imphash": AttributeCategories.PAYLOAD_DELIVERY,
322
+ "ip-dst|port": AttributeCategories.NETWORK_ACTIVITY,
323
+ "ip-src|port": AttributeCategories.NETWORK_ACTIVITY,
324
+ "issue-date-of-the-visa": AttributeCategories.PERSON,
325
+ "jabber-id": AttributeCategories.SOCIAL_NETWORK,
326
+ "kusto-query": AttributeCategories.ARTIFACTS_DROPPED,
327
+ "last-name": AttributeCategories.PERSON,
328
+ "link": AttributeCategories.EXTERNAL_ANALYSIS,
329
+ "mac-address": AttributeCategories.NETWORK_ACTIVITY,
330
+ "mac-eui-64": AttributeCategories.NETWORK_ACTIVITY,
331
+ "malware-sample": AttributeCategories.PAYLOAD_DELIVERY,
332
+ "malware-type": AttributeCategories.PAYLOAD_DELIVERY,
333
+ "middle-name": AttributeCategories.PERSON,
334
+ "mime-type": AttributeCategories.ARTIFACTS_DROPPED,
335
+ "mobile-application-id": AttributeCategories.PAYLOAD_DELIVERY,
336
+ "mutex": AttributeCategories.ARTIFACTS_DROPPED,
337
+ "named pipe": AttributeCategories.ARTIFACTS_DROPPED,
338
+ "nationality": AttributeCategories.PERSON,
339
+ "other": AttributeCategories.OTHER,
340
+ "passenger-name-record-locator-number": AttributeCategories.PERSON,
341
+ "passport-country": AttributeCategories.PERSON,
342
+ "passport-expiration": AttributeCategories.PERSON,
343
+ "passport-number": AttributeCategories.PERSON,
344
+ "pattern-in-memory": AttributeCategories.PAYLOAD_INSTALLATION,
345
+ "pattern-in-traffic": AttributeCategories.NETWORK_ACTIVITY,
346
+ "payment-details": AttributeCategories.PERSON,
347
+ "pehash": AttributeCategories.PAYLOAD_DELIVERY,
348
+ "pgp-private-key": AttributeCategories.PERSON,
349
+ "pgp-public-key": AttributeCategories.PERSON,
350
+ "phone-number": AttributeCategories.PERSON,
351
+ "place-of-birth": AttributeCategories.PERSON,
352
+ "place-port-of-clearance": AttributeCategories.PERSON,
353
+ "place-port-of-onward-foreign-destination": AttributeCategories.PERSON,
354
+ "place-port-of-original-embarkation": AttributeCategories.PERSON,
355
+ "port": AttributeCategories.NETWORK_ACTIVITY,
356
+ "primary-residence": AttributeCategories.PERSON,
357
+ "process-state": AttributeCategories.ARTIFACTS_DROPPED,
358
+ "prtn": AttributeCategories.FINANCIAL_FRAUD,
359
+ "redress-number": AttributeCategories.PERSON,
360
+ "sha224": AttributeCategories.PAYLOAD_DELIVERY,
361
+ "sha384": AttributeCategories.PAYLOAD_DELIVERY,
362
+ "sha3-224": AttributeCategories.PAYLOAD_DELIVERY,
363
+ "sha3-256": AttributeCategories.PAYLOAD_DELIVERY,
364
+ "sha3-384": AttributeCategories.PAYLOAD_DELIVERY,
365
+ "sha3-512": AttributeCategories.PAYLOAD_DELIVERY,
366
+ "sha512": AttributeCategories.PAYLOAD_DELIVERY,
367
+ "sha512/224": AttributeCategories.PAYLOAD_DELIVERY,
368
+ "sha512/256": AttributeCategories.PAYLOAD_DELIVERY,
369
+ "sigma": AttributeCategories.PAYLOAD_INSTALLATION,
370
+ "size-in-bytes": AttributeCategories.OTHER,
371
+ "snort": AttributeCategories.NETWORK_ACTIVITY,
372
+ "special-service-request": AttributeCategories.PERSON,
373
+ "ssdeep": AttributeCategories.PAYLOAD_DELIVERY,
374
+ "ssh-fingerprint": AttributeCategories.NETWORK_ACTIVITY,
375
+ "stix2-pattern": AttributeCategories.PAYLOAD_INSTALLATION,
376
+ "target-email": AttributeCategories.TARGETING_DATA,
377
+ "target-external": AttributeCategories.TARGETING_DATA,
378
+ "target-location": AttributeCategories.TARGETING_DATA,
379
+ "target-machine": AttributeCategories.TARGETING_DATA,
380
+ "target-org": AttributeCategories.TARGETING_DATA,
381
+ "target-user": AttributeCategories.TARGETING_DATA,
382
+ "telfhash": AttributeCategories.PAYLOAD_DELIVERY,
383
+ "text": AttributeCategories.OTHER,
384
+ "threat-actor": AttributeCategories.ATTRIBUTION,
385
+ "tlsh": AttributeCategories.PAYLOAD_DELIVERY,
386
+ "travel-details": AttributeCategories.PERSON,
387
+ "twitter-id": AttributeCategories.SOCIAL_NETWORK,
388
+ "uri": AttributeCategories.NETWORK_ACTIVITY,
389
+ "vhash": AttributeCategories.PAYLOAD_DELIVERY,
390
+ "visa-number": AttributeCategories.PERSON,
391
+ "vulnerability": AttributeCategories.EXTERNAL_ANALYSIS,
392
+ "weakness": AttributeCategories.EXTERNAL_ANALYSIS,
393
+ "whois-creation-date": AttributeCategories.ATTRIBUTION,
394
+ "whois-registrant-email": AttributeCategories.ATTRIBUTION,
395
+ "whois-registrant-name": AttributeCategories.ATTRIBUTION,
396
+ "whois-registrant-org": AttributeCategories.ATTRIBUTION,
397
+ "whois-registrant-phone": AttributeCategories.ATTRIBUTION,
398
+ "whois-registrar": AttributeCategories.ATTRIBUTION,
399
+ "windows-scheduled-task": AttributeCategories.ARTIFACTS_DROPPED,
400
+ "windows-service-displayname": AttributeCategories.ARTIFACTS_DROPPED,
401
+ "windows-service-name": AttributeCategories.ARTIFACTS_DROPPED,
402
+ "x509-fingerprint-md5": AttributeCategories.NETWORK_ACTIVITY,
403
+ "x509-fingerprint-sha1": AttributeCategories.NETWORK_ACTIVITY,
404
+ "x509-fingerprint-sha256": AttributeCategories.NETWORK_ACTIVITY,
405
+ "xmr": AttributeCategories.FINANCIAL_FRAUD,
406
+ "yara": AttributeCategories.PAYLOAD_INSTALLATION,
407
+ }
408
+
409
+ categories = {
410
+ "aba-rtn": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
411
+ "anonymised": frozenset(
412
+ {
413
+ AttributeCategories.TARGETING_DATA,
414
+ AttributeCategories.PAYLOAD_INSTALLATION,
415
+ AttributeCategories.INTERNAL_REFERENCE,
416
+ AttributeCategories.PAYLOAD_TYPE,
417
+ AttributeCategories.PERSISTENCE_MECHANISM,
418
+ AttributeCategories.FINANCIAL_FRAUD,
419
+ AttributeCategories.PERSON,
420
+ AttributeCategories.SUPPORT_TOOL,
421
+ AttributeCategories.ATTRIBUTION,
422
+ AttributeCategories.SOCIAL_NETWORK,
423
+ AttributeCategories.PAYLOAD_DELIVERY,
424
+ AttributeCategories.ANTIVIRUS_DETECTION,
425
+ AttributeCategories.EXTERNAL_ANALYSIS,
426
+ AttributeCategories.ARTIFACTS_DROPPED,
427
+ AttributeCategories.OTHER,
428
+ AttributeCategories.NETWORK_ACTIVITY,
429
+ }
430
+ ),
431
+ "AS": frozenset(
432
+ {
433
+ AttributeCategories.PAYLOAD_DELIVERY,
434
+ AttributeCategories.EXTERNAL_ANALYSIS,
435
+ AttributeCategories.NETWORK_ACTIVITY,
436
+ }
437
+ ),
438
+ "attachment": frozenset(
439
+ {
440
+ AttributeCategories.PAYLOAD_INSTALLATION,
441
+ AttributeCategories.SUPPORT_TOOL,
442
+ AttributeCategories.PAYLOAD_DELIVERY,
443
+ AttributeCategories.ANTIVIRUS_DETECTION,
444
+ AttributeCategories.EXTERNAL_ANALYSIS,
445
+ AttributeCategories.ARTIFACTS_DROPPED,
446
+ AttributeCategories.NETWORK_ACTIVITY,
447
+ }
448
+ ),
449
+ "authentihash": frozenset(
450
+ {
451
+ AttributeCategories.ARTIFACTS_DROPPED,
452
+ AttributeCategories.PAYLOAD_DELIVERY,
453
+ AttributeCategories.PAYLOAD_INSTALLATION,
454
+ }
455
+ ),
456
+ "azure-application-id": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}),
457
+ "bank-account-nr": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
458
+ "bic": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
459
+ "bin": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
460
+ "boolean": frozenset({AttributeCategories.OTHER}),
461
+ "bro": frozenset({AttributeCategories.EXTERNAL_ANALYSIS, AttributeCategories.NETWORK_ACTIVITY}),
462
+ "btc": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
463
+ "campaign-id": frozenset({AttributeCategories.ATTRIBUTION}),
464
+ "campaign-name": frozenset({AttributeCategories.ATTRIBUTION}),
465
+ "cc-number": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
466
+ "cdhash": frozenset(
467
+ {
468
+ AttributeCategories.ARTIFACTS_DROPPED,
469
+ AttributeCategories.PAYLOAD_DELIVERY,
470
+ AttributeCategories.PAYLOAD_INSTALLATION,
471
+ }
472
+ ),
473
+ "chrome-extension-id": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}),
474
+ "comment": frozenset(
475
+ {
476
+ AttributeCategories.TARGETING_DATA,
477
+ AttributeCategories.PAYLOAD_INSTALLATION,
478
+ AttributeCategories.INTERNAL_REFERENCE,
479
+ AttributeCategories.PAYLOAD_TYPE,
480
+ AttributeCategories.PERSISTENCE_MECHANISM,
481
+ AttributeCategories.FINANCIAL_FRAUD,
482
+ AttributeCategories.PERSON,
483
+ AttributeCategories.SUPPORT_TOOL,
484
+ AttributeCategories.ATTRIBUTION,
485
+ AttributeCategories.SOCIAL_NETWORK,
486
+ AttributeCategories.PAYLOAD_DELIVERY,
487
+ AttributeCategories.ANTIVIRUS_DETECTION,
488
+ AttributeCategories.EXTERNAL_ANALYSIS,
489
+ AttributeCategories.ARTIFACTS_DROPPED,
490
+ AttributeCategories.OTHER,
491
+ AttributeCategories.NETWORK_ACTIVITY,
492
+ }
493
+ ),
494
+ "community-id": frozenset({AttributeCategories.EXTERNAL_ANALYSIS, AttributeCategories.NETWORK_ACTIVITY}),
495
+ "cookie": frozenset({AttributeCategories.ARTIFACTS_DROPPED, AttributeCategories.NETWORK_ACTIVITY}),
496
+ "cortex": frozenset({AttributeCategories.EXTERNAL_ANALYSIS}),
497
+ "counter": frozenset({AttributeCategories.OTHER}),
498
+ "country-of-residence": frozenset({AttributeCategories.PERSON}),
499
+ "cpe": frozenset(
500
+ {
501
+ AttributeCategories.PAYLOAD_DELIVERY,
502
+ AttributeCategories.OTHER,
503
+ AttributeCategories.EXTERNAL_ANALYSIS,
504
+ AttributeCategories.PAYLOAD_INSTALLATION,
505
+ }
506
+ ),
507
+ "dash": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
508
+ "datetime": frozenset({AttributeCategories.OTHER}),
509
+ "date-of-birth": frozenset({AttributeCategories.PERSON}),
510
+ "dkim": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
511
+ "dkim-signature": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
512
+ "dns-soa-email": frozenset({AttributeCategories.ATTRIBUTION}),
513
+ "domain": frozenset(
514
+ {
515
+ AttributeCategories.PAYLOAD_DELIVERY,
516
+ AttributeCategories.EXTERNAL_ANALYSIS,
517
+ AttributeCategories.NETWORK_ACTIVITY,
518
+ }
519
+ ),
520
+ "domain|ip": frozenset({AttributeCategories.EXTERNAL_ANALYSIS, AttributeCategories.NETWORK_ACTIVITY}),
521
+ "email": frozenset(
522
+ {
523
+ AttributeCategories.PERSON,
524
+ AttributeCategories.ATTRIBUTION,
525
+ AttributeCategories.SOCIAL_NETWORK,
526
+ AttributeCategories.PAYLOAD_DELIVERY,
527
+ AttributeCategories.NETWORK_ACTIVITY,
528
+ }
529
+ ),
530
+ "email-attachment": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
531
+ "email-body": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
532
+ "email-dst": frozenset(
533
+ {AttributeCategories.SOCIAL_NETWORK, AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.NETWORK_ACTIVITY}
534
+ ),
535
+ "email-dst-display-name": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
536
+ "email-header": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
537
+ "email-message-id": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
538
+ "email-mime-boundary": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
539
+ "email-reply-to": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
540
+ "email-src": frozenset(
541
+ {AttributeCategories.SOCIAL_NETWORK, AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.NETWORK_ACTIVITY}
542
+ ),
543
+ "email-src-display-name": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
544
+ "email-subject": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.NETWORK_ACTIVITY}),
545
+ "email-thread-index": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
546
+ "email-x-mailer": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
547
+ "eppn": frozenset({AttributeCategories.SOCIAL_NETWORK, AttributeCategories.NETWORK_ACTIVITY}),
548
+ "favicon-mmh3": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
549
+ "filename": frozenset(
550
+ {
551
+ AttributeCategories.PAYLOAD_INSTALLATION,
552
+ AttributeCategories.PERSISTENCE_MECHANISM,
553
+ AttributeCategories.PAYLOAD_DELIVERY,
554
+ AttributeCategories.EXTERNAL_ANALYSIS,
555
+ AttributeCategories.ARTIFACTS_DROPPED,
556
+ }
557
+ ),
558
+ "filename|authentihash": frozenset(
559
+ {
560
+ AttributeCategories.ARTIFACTS_DROPPED,
561
+ AttributeCategories.PAYLOAD_DELIVERY,
562
+ AttributeCategories.PAYLOAD_INSTALLATION,
563
+ }
564
+ ),
565
+ "filename|impfuzzy": frozenset(
566
+ {
567
+ AttributeCategories.ARTIFACTS_DROPPED,
568
+ AttributeCategories.PAYLOAD_DELIVERY,
569
+ AttributeCategories.PAYLOAD_INSTALLATION,
570
+ }
571
+ ),
572
+ "filename|imphash": frozenset(
573
+ {
574
+ AttributeCategories.ARTIFACTS_DROPPED,
575
+ AttributeCategories.PAYLOAD_DELIVERY,
576
+ AttributeCategories.PAYLOAD_INSTALLATION,
577
+ }
578
+ ),
579
+ "filename|md5": frozenset(
580
+ {
581
+ AttributeCategories.ARTIFACTS_DROPPED,
582
+ AttributeCategories.PAYLOAD_DELIVERY,
583
+ AttributeCategories.EXTERNAL_ANALYSIS,
584
+ AttributeCategories.PAYLOAD_INSTALLATION,
585
+ }
586
+ ),
587
+ "filename-pattern": frozenset(
588
+ {
589
+ AttributeCategories.PAYLOAD_INSTALLATION,
590
+ AttributeCategories.PAYLOAD_DELIVERY,
591
+ AttributeCategories.EXTERNAL_ANALYSIS,
592
+ AttributeCategories.ARTIFACTS_DROPPED,
593
+ AttributeCategories.NETWORK_ACTIVITY,
594
+ }
595
+ ),
596
+ "filename|pehash": frozenset(
597
+ {
598
+ AttributeCategories.ARTIFACTS_DROPPED,
599
+ AttributeCategories.PAYLOAD_DELIVERY,
600
+ AttributeCategories.PAYLOAD_INSTALLATION,
601
+ }
602
+ ),
603
+ "filename|sha1": frozenset(
604
+ {
605
+ AttributeCategories.ARTIFACTS_DROPPED,
606
+ AttributeCategories.PAYLOAD_DELIVERY,
607
+ AttributeCategories.EXTERNAL_ANALYSIS,
608
+ AttributeCategories.PAYLOAD_INSTALLATION,
609
+ }
610
+ ),
611
+ "filename|sha224": frozenset(
612
+ {
613
+ AttributeCategories.ARTIFACTS_DROPPED,
614
+ AttributeCategories.PAYLOAD_DELIVERY,
615
+ AttributeCategories.PAYLOAD_INSTALLATION,
616
+ }
617
+ ),
618
+ "filename|sha256": frozenset(
619
+ {
620
+ AttributeCategories.ARTIFACTS_DROPPED,
621
+ AttributeCategories.PAYLOAD_DELIVERY,
622
+ AttributeCategories.EXTERNAL_ANALYSIS,
623
+ AttributeCategories.PAYLOAD_INSTALLATION,
624
+ }
625
+ ),
626
+ "filename|sha384": frozenset(
627
+ {
628
+ AttributeCategories.ARTIFACTS_DROPPED,
629
+ AttributeCategories.PAYLOAD_DELIVERY,
630
+ AttributeCategories.PAYLOAD_INSTALLATION,
631
+ }
632
+ ),
633
+ "filename|sha3-224": frozenset(
634
+ {
635
+ AttributeCategories.ARTIFACTS_DROPPED,
636
+ AttributeCategories.PAYLOAD_DELIVERY,
637
+ AttributeCategories.EXTERNAL_ANALYSIS,
638
+ AttributeCategories.PAYLOAD_INSTALLATION,
639
+ }
640
+ ),
641
+ "filename|sha3-256": frozenset(
642
+ {
643
+ AttributeCategories.ARTIFACTS_DROPPED,
644
+ AttributeCategories.PAYLOAD_DELIVERY,
645
+ AttributeCategories.EXTERNAL_ANALYSIS,
646
+ AttributeCategories.PAYLOAD_INSTALLATION,
647
+ }
648
+ ),
649
+ "filename|sha3-384": frozenset(
650
+ {
651
+ AttributeCategories.ARTIFACTS_DROPPED,
652
+ AttributeCategories.PAYLOAD_DELIVERY,
653
+ AttributeCategories.EXTERNAL_ANALYSIS,
654
+ AttributeCategories.PAYLOAD_INSTALLATION,
655
+ }
656
+ ),
657
+ "filename|sha3-512": frozenset(
658
+ {
659
+ AttributeCategories.ARTIFACTS_DROPPED,
660
+ AttributeCategories.PAYLOAD_DELIVERY,
661
+ AttributeCategories.EXTERNAL_ANALYSIS,
662
+ AttributeCategories.PAYLOAD_INSTALLATION,
663
+ }
664
+ ),
665
+ "filename|sha512": frozenset(
666
+ {
667
+ AttributeCategories.ARTIFACTS_DROPPED,
668
+ AttributeCategories.PAYLOAD_DELIVERY,
669
+ AttributeCategories.PAYLOAD_INSTALLATION,
670
+ }
671
+ ),
672
+ "filename|sha512/224": frozenset(
673
+ {
674
+ AttributeCategories.ARTIFACTS_DROPPED,
675
+ AttributeCategories.PAYLOAD_DELIVERY,
676
+ AttributeCategories.PAYLOAD_INSTALLATION,
677
+ }
678
+ ),
679
+ "filename|sha512/256": frozenset(
680
+ {
681
+ AttributeCategories.ARTIFACTS_DROPPED,
682
+ AttributeCategories.PAYLOAD_DELIVERY,
683
+ AttributeCategories.PAYLOAD_INSTALLATION,
684
+ }
685
+ ),
686
+ "filename|ssdeep": frozenset(
687
+ {
688
+ AttributeCategories.ARTIFACTS_DROPPED,
689
+ AttributeCategories.PAYLOAD_DELIVERY,
690
+ AttributeCategories.PAYLOAD_INSTALLATION,
691
+ }
692
+ ),
693
+ "filename|tlsh": frozenset(
694
+ {
695
+ AttributeCategories.ARTIFACTS_DROPPED,
696
+ AttributeCategories.PAYLOAD_DELIVERY,
697
+ AttributeCategories.PAYLOAD_INSTALLATION,
698
+ }
699
+ ),
700
+ "filename|vhash": frozenset(
701
+ {
702
+ AttributeCategories.ARTIFACTS_DROPPED,
703
+ AttributeCategories.PAYLOAD_DELIVERY,
704
+ AttributeCategories.PAYLOAD_INSTALLATION,
705
+ }
706
+ ),
707
+ "first-name": frozenset({AttributeCategories.PERSON}),
708
+ "float": frozenset({AttributeCategories.OTHER}),
709
+ "frequent-flyer-number": frozenset({AttributeCategories.PERSON}),
710
+ "full-name": frozenset({AttributeCategories.PERSON}),
711
+ "gender": frozenset({AttributeCategories.PERSON}),
712
+ "gene": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
713
+ "github-organisation": frozenset({AttributeCategories.SOCIAL_NETWORK}),
714
+ "github-repository": frozenset({AttributeCategories.SOCIAL_NETWORK, AttributeCategories.EXTERNAL_ANALYSIS}),
715
+ "github-username": frozenset({AttributeCategories.SOCIAL_NETWORK}),
716
+ "git-commit-id": frozenset({AttributeCategories.INTERNAL_REFERENCE}),
717
+ "hasshserver-md5": frozenset(
718
+ {
719
+ AttributeCategories.PAYLOAD_DELIVERY,
720
+ AttributeCategories.EXTERNAL_ANALYSIS,
721
+ AttributeCategories.NETWORK_ACTIVITY,
722
+ }
723
+ ),
724
+ "hassh-md5": frozenset(
725
+ {
726
+ AttributeCategories.PAYLOAD_DELIVERY,
727
+ AttributeCategories.EXTERNAL_ANALYSIS,
728
+ AttributeCategories.NETWORK_ACTIVITY,
729
+ }
730
+ ),
731
+ "hex": frozenset(
732
+ {
733
+ AttributeCategories.PAYLOAD_INSTALLATION,
734
+ AttributeCategories.INTERNAL_REFERENCE,
735
+ AttributeCategories.PERSISTENCE_MECHANISM,
736
+ AttributeCategories.FINANCIAL_FRAUD,
737
+ AttributeCategories.SUPPORT_TOOL,
738
+ AttributeCategories.PAYLOAD_DELIVERY,
739
+ AttributeCategories.ANTIVIRUS_DETECTION,
740
+ AttributeCategories.ARTIFACTS_DROPPED,
741
+ AttributeCategories.OTHER,
742
+ AttributeCategories.NETWORK_ACTIVITY,
743
+ }
744
+ ),
745
+ "hostname": frozenset(
746
+ {
747
+ AttributeCategories.PAYLOAD_DELIVERY,
748
+ AttributeCategories.EXTERNAL_ANALYSIS,
749
+ AttributeCategories.NETWORK_ACTIVITY,
750
+ }
751
+ ),
752
+ "hostname|port": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.NETWORK_ACTIVITY}),
753
+ "http-method": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
754
+ "iban": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
755
+ "identity-card-number": frozenset({AttributeCategories.PERSON}),
756
+ "impfuzzy": frozenset(
757
+ {
758
+ AttributeCategories.ARTIFACTS_DROPPED,
759
+ AttributeCategories.PAYLOAD_DELIVERY,
760
+ AttributeCategories.PAYLOAD_INSTALLATION,
761
+ }
762
+ ),
763
+ "imphash": frozenset(
764
+ {
765
+ AttributeCategories.ARTIFACTS_DROPPED,
766
+ AttributeCategories.PAYLOAD_DELIVERY,
767
+ AttributeCategories.PAYLOAD_INSTALLATION,
768
+ }
769
+ ),
770
+ "ip-dst": frozenset(
771
+ {
772
+ AttributeCategories.PAYLOAD_DELIVERY,
773
+ AttributeCategories.EXTERNAL_ANALYSIS,
774
+ AttributeCategories.NETWORK_ACTIVITY,
775
+ }
776
+ ),
777
+ "ip-dst|port": frozenset(
778
+ {
779
+ AttributeCategories.PAYLOAD_DELIVERY,
780
+ AttributeCategories.EXTERNAL_ANALYSIS,
781
+ AttributeCategories.NETWORK_ACTIVITY,
782
+ }
783
+ ),
784
+ "ip-src": frozenset(
785
+ {
786
+ AttributeCategories.PAYLOAD_DELIVERY,
787
+ AttributeCategories.EXTERNAL_ANALYSIS,
788
+ AttributeCategories.NETWORK_ACTIVITY,
789
+ }
790
+ ),
791
+ "ip-src|port": frozenset(
792
+ {
793
+ AttributeCategories.PAYLOAD_DELIVERY,
794
+ AttributeCategories.EXTERNAL_ANALYSIS,
795
+ AttributeCategories.NETWORK_ACTIVITY,
796
+ }
797
+ ),
798
+ "issue-date-of-the-visa": frozenset({AttributeCategories.PERSON}),
799
+ "ja3-fingerprint-md5": frozenset(
800
+ {
801
+ AttributeCategories.PAYLOAD_DELIVERY,
802
+ AttributeCategories.EXTERNAL_ANALYSIS,
803
+ AttributeCategories.NETWORK_ACTIVITY,
804
+ }
805
+ ),
806
+ "jabber-id": frozenset({AttributeCategories.SOCIAL_NETWORK}),
807
+ "jarm-fingerprint": frozenset(
808
+ {
809
+ AttributeCategories.PAYLOAD_DELIVERY,
810
+ AttributeCategories.EXTERNAL_ANALYSIS,
811
+ AttributeCategories.NETWORK_ACTIVITY,
812
+ }
813
+ ),
814
+ "kusto-query": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
815
+ "last-name": frozenset({AttributeCategories.PERSON}),
816
+ "link": frozenset(
817
+ {
818
+ AttributeCategories.INTERNAL_REFERENCE,
819
+ AttributeCategories.SUPPORT_TOOL,
820
+ AttributeCategories.PAYLOAD_DELIVERY,
821
+ AttributeCategories.ANTIVIRUS_DETECTION,
822
+ AttributeCategories.EXTERNAL_ANALYSIS,
823
+ }
824
+ ),
825
+ "mac-address": frozenset(
826
+ {
827
+ AttributeCategories.PAYLOAD_DELIVERY,
828
+ AttributeCategories.EXTERNAL_ANALYSIS,
829
+ AttributeCategories.NETWORK_ACTIVITY,
830
+ }
831
+ ),
832
+ "mac-eui-64": frozenset(
833
+ {
834
+ AttributeCategories.PAYLOAD_DELIVERY,
835
+ AttributeCategories.EXTERNAL_ANALYSIS,
836
+ AttributeCategories.NETWORK_ACTIVITY,
837
+ }
838
+ ),
839
+ "malware-sample": frozenset(
840
+ {
841
+ AttributeCategories.ARTIFACTS_DROPPED,
842
+ AttributeCategories.PAYLOAD_DELIVERY,
843
+ AttributeCategories.EXTERNAL_ANALYSIS,
844
+ AttributeCategories.PAYLOAD_INSTALLATION,
845
+ }
846
+ ),
847
+ "malware-type": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}),
848
+ "md5": frozenset(
849
+ {
850
+ AttributeCategories.ARTIFACTS_DROPPED,
851
+ AttributeCategories.PAYLOAD_DELIVERY,
852
+ AttributeCategories.EXTERNAL_ANALYSIS,
853
+ AttributeCategories.PAYLOAD_INSTALLATION,
854
+ }
855
+ ),
856
+ "middle-name": frozenset({AttributeCategories.PERSON}),
857
+ "mime-type": frozenset(
858
+ {
859
+ AttributeCategories.ARTIFACTS_DROPPED,
860
+ AttributeCategories.PAYLOAD_DELIVERY,
861
+ AttributeCategories.PAYLOAD_INSTALLATION,
862
+ }
863
+ ),
864
+ "mobile-application-id": frozenset(
865
+ {AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}
866
+ ),
867
+ "mutex": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
868
+ "named pipe": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
869
+ "nationality": frozenset({AttributeCategories.PERSON}),
870
+ "other": frozenset(
871
+ {
872
+ AttributeCategories.PAYLOAD_INSTALLATION,
873
+ AttributeCategories.INTERNAL_REFERENCE,
874
+ AttributeCategories.PAYLOAD_TYPE,
875
+ AttributeCategories.PERSISTENCE_MECHANISM,
876
+ AttributeCategories.FINANCIAL_FRAUD,
877
+ AttributeCategories.PERSON,
878
+ AttributeCategories.SUPPORT_TOOL,
879
+ AttributeCategories.ATTRIBUTION,
880
+ AttributeCategories.SOCIAL_NETWORK,
881
+ AttributeCategories.PAYLOAD_DELIVERY,
882
+ AttributeCategories.ANTIVIRUS_DETECTION,
883
+ AttributeCategories.EXTERNAL_ANALYSIS,
884
+ AttributeCategories.ARTIFACTS_DROPPED,
885
+ AttributeCategories.OTHER,
886
+ AttributeCategories.NETWORK_ACTIVITY,
887
+ }
888
+ ),
889
+ "passenger-name-record-locator-number": frozenset({AttributeCategories.PERSON}),
890
+ "passport-country": frozenset({AttributeCategories.PERSON}),
891
+ "passport-expiration": frozenset({AttributeCategories.PERSON}),
892
+ "passport-number": frozenset({AttributeCategories.PERSON}),
893
+ "pattern-in-file": frozenset(
894
+ {
895
+ AttributeCategories.PAYLOAD_INSTALLATION,
896
+ AttributeCategories.PAYLOAD_DELIVERY,
897
+ AttributeCategories.EXTERNAL_ANALYSIS,
898
+ AttributeCategories.ARTIFACTS_DROPPED,
899
+ AttributeCategories.NETWORK_ACTIVITY,
900
+ }
901
+ ),
902
+ "pattern-in-memory": frozenset(
903
+ {
904
+ AttributeCategories.ARTIFACTS_DROPPED,
905
+ AttributeCategories.PAYLOAD_INSTALLATION,
906
+ AttributeCategories.EXTERNAL_ANALYSIS,
907
+ }
908
+ ),
909
+ "pattern-in-traffic": frozenset(
910
+ {
911
+ AttributeCategories.PAYLOAD_DELIVERY,
912
+ AttributeCategories.NETWORK_ACTIVITY,
913
+ AttributeCategories.EXTERNAL_ANALYSIS,
914
+ AttributeCategories.PAYLOAD_INSTALLATION,
915
+ }
916
+ ),
917
+ "payment-details": frozenset({AttributeCategories.PERSON}),
918
+ "pdb": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
919
+ "pehash": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}),
920
+ "pgp-private-key": frozenset(
921
+ {
922
+ AttributeCategories.ARTIFACTS_DROPPED,
923
+ AttributeCategories.SOCIAL_NETWORK,
924
+ AttributeCategories.PERSON,
925
+ AttributeCategories.OTHER,
926
+ }
927
+ ),
928
+ "pgp-public-key": frozenset(
929
+ {
930
+ AttributeCategories.ARTIFACTS_DROPPED,
931
+ AttributeCategories.SOCIAL_NETWORK,
932
+ AttributeCategories.PERSON,
933
+ AttributeCategories.OTHER,
934
+ }
935
+ ),
936
+ "phone-number": frozenset(
937
+ {AttributeCategories.FINANCIAL_FRAUD, AttributeCategories.PERSON, AttributeCategories.OTHER}
938
+ ),
939
+ "place-of-birth": frozenset({AttributeCategories.PERSON}),
940
+ "place-port-of-clearance": frozenset({AttributeCategories.PERSON}),
941
+ "place-port-of-onward-foreign-destination": frozenset({AttributeCategories.PERSON}),
942
+ "place-port-of-original-embarkation": frozenset({AttributeCategories.PERSON}),
943
+ "port": frozenset({AttributeCategories.OTHER, AttributeCategories.NETWORK_ACTIVITY}),
944
+ "primary-residence": frozenset({AttributeCategories.PERSON}),
945
+ "process-state": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
946
+ "prtn": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
947
+ "redress-number": frozenset({AttributeCategories.PERSON}),
948
+ "regkey": frozenset(
949
+ {
950
+ AttributeCategories.ARTIFACTS_DROPPED,
951
+ AttributeCategories.PERSISTENCE_MECHANISM,
952
+ AttributeCategories.EXTERNAL_ANALYSIS,
953
+ }
954
+ ),
955
+ "regkey|value": frozenset(
956
+ {
957
+ AttributeCategories.ARTIFACTS_DROPPED,
958
+ AttributeCategories.PERSISTENCE_MECHANISM,
959
+ AttributeCategories.EXTERNAL_ANALYSIS,
960
+ }
961
+ ),
962
+ "sha1": frozenset(
963
+ {
964
+ AttributeCategories.ARTIFACTS_DROPPED,
965
+ AttributeCategories.PAYLOAD_DELIVERY,
966
+ AttributeCategories.EXTERNAL_ANALYSIS,
967
+ AttributeCategories.PAYLOAD_INSTALLATION,
968
+ }
969
+ ),
970
+ "sha224": frozenset({AttributeCategories.PAYLOAD_DELIVERY}),
971
+ "sha256": frozenset(
972
+ {
973
+ AttributeCategories.ARTIFACTS_DROPPED,
974
+ AttributeCategories.PAYLOAD_DELIVERY,
975
+ AttributeCategories.EXTERNAL_ANALYSIS,
976
+ AttributeCategories.PAYLOAD_INSTALLATION,
977
+ }
978
+ ),
979
+ "sha384": frozenset(
980
+ {
981
+ AttributeCategories.ARTIFACTS_DROPPED,
982
+ AttributeCategories.PAYLOAD_DELIVERY,
983
+ AttributeCategories.PAYLOAD_INSTALLATION,
984
+ }
985
+ ),
986
+ "sha3-224": frozenset(
987
+ {
988
+ AttributeCategories.ARTIFACTS_DROPPED,
989
+ AttributeCategories.PAYLOAD_DELIVERY,
990
+ AttributeCategories.EXTERNAL_ANALYSIS,
991
+ AttributeCategories.PAYLOAD_INSTALLATION,
992
+ }
993
+ ),
994
+ "sha3-256": frozenset(
995
+ {
996
+ AttributeCategories.ARTIFACTS_DROPPED,
997
+ AttributeCategories.PAYLOAD_DELIVERY,
998
+ AttributeCategories.EXTERNAL_ANALYSIS,
999
+ AttributeCategories.PAYLOAD_INSTALLATION,
1000
+ }
1001
+ ),
1002
+ "sha3-384": frozenset(
1003
+ {
1004
+ AttributeCategories.ARTIFACTS_DROPPED,
1005
+ AttributeCategories.PAYLOAD_DELIVERY,
1006
+ AttributeCategories.EXTERNAL_ANALYSIS,
1007
+ AttributeCategories.PAYLOAD_INSTALLATION,
1008
+ }
1009
+ ),
1010
+ "sha3-512": frozenset(
1011
+ {
1012
+ AttributeCategories.ARTIFACTS_DROPPED,
1013
+ AttributeCategories.PAYLOAD_DELIVERY,
1014
+ AttributeCategories.EXTERNAL_ANALYSIS,
1015
+ AttributeCategories.PAYLOAD_INSTALLATION,
1016
+ }
1017
+ ),
1018
+ "sha512": frozenset(
1019
+ {
1020
+ AttributeCategories.ARTIFACTS_DROPPED,
1021
+ AttributeCategories.PAYLOAD_DELIVERY,
1022
+ AttributeCategories.PAYLOAD_INSTALLATION,
1023
+ }
1024
+ ),
1025
+ "sha512/224": frozenset(
1026
+ {
1027
+ AttributeCategories.ARTIFACTS_DROPPED,
1028
+ AttributeCategories.PAYLOAD_DELIVERY,
1029
+ AttributeCategories.PAYLOAD_INSTALLATION,
1030
+ }
1031
+ ),
1032
+ "sha512/256": frozenset(
1033
+ {
1034
+ AttributeCategories.ARTIFACTS_DROPPED,
1035
+ AttributeCategories.PAYLOAD_DELIVERY,
1036
+ AttributeCategories.PAYLOAD_INSTALLATION,
1037
+ }
1038
+ ),
1039
+ "sigma": frozenset(
1040
+ {
1041
+ AttributeCategories.ARTIFACTS_DROPPED,
1042
+ AttributeCategories.PAYLOAD_DELIVERY,
1043
+ AttributeCategories.PAYLOAD_INSTALLATION,
1044
+ }
1045
+ ),
1046
+ "size-in-bytes": frozenset({AttributeCategories.OTHER}),
1047
+ "snort": frozenset({AttributeCategories.EXTERNAL_ANALYSIS, AttributeCategories.NETWORK_ACTIVITY}),
1048
+ "special-service-request": frozenset({AttributeCategories.PERSON}),
1049
+ "ssdeep": frozenset(
1050
+ {
1051
+ AttributeCategories.ARTIFACTS_DROPPED,
1052
+ AttributeCategories.PAYLOAD_DELIVERY,
1053
+ AttributeCategories.PAYLOAD_INSTALLATION,
1054
+ }
1055
+ ),
1056
+ "ssh-fingerprint": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
1057
+ "stix2-pattern": frozenset(
1058
+ {
1059
+ AttributeCategories.ARTIFACTS_DROPPED,
1060
+ AttributeCategories.PAYLOAD_DELIVERY,
1061
+ AttributeCategories.NETWORK_ACTIVITY,
1062
+ AttributeCategories.PAYLOAD_INSTALLATION,
1063
+ }
1064
+ ),
1065
+ "target-email": frozenset({AttributeCategories.TARGETING_DATA}),
1066
+ "target-external": frozenset({AttributeCategories.TARGETING_DATA}),
1067
+ "target-location": frozenset({AttributeCategories.TARGETING_DATA}),
1068
+ "target-machine": frozenset({AttributeCategories.TARGETING_DATA}),
1069
+ "target-org": frozenset({AttributeCategories.TARGETING_DATA}),
1070
+ "target-user": frozenset({AttributeCategories.TARGETING_DATA}),
1071
+ "telfhash": frozenset(
1072
+ {
1073
+ AttributeCategories.ARTIFACTS_DROPPED,
1074
+ AttributeCategories.PAYLOAD_DELIVERY,
1075
+ AttributeCategories.PAYLOAD_INSTALLATION,
1076
+ }
1077
+ ),
1078
+ "text": frozenset(
1079
+ {
1080
+ AttributeCategories.PAYLOAD_INSTALLATION,
1081
+ AttributeCategories.INTERNAL_REFERENCE,
1082
+ AttributeCategories.PAYLOAD_TYPE,
1083
+ AttributeCategories.PERSISTENCE_MECHANISM,
1084
+ AttributeCategories.FINANCIAL_FRAUD,
1085
+ AttributeCategories.PERSON,
1086
+ AttributeCategories.SUPPORT_TOOL,
1087
+ AttributeCategories.ATTRIBUTION,
1088
+ AttributeCategories.SOCIAL_NETWORK,
1089
+ AttributeCategories.PAYLOAD_DELIVERY,
1090
+ AttributeCategories.ANTIVIRUS_DETECTION,
1091
+ AttributeCategories.EXTERNAL_ANALYSIS,
1092
+ AttributeCategories.ARTIFACTS_DROPPED,
1093
+ AttributeCategories.OTHER,
1094
+ AttributeCategories.NETWORK_ACTIVITY,
1095
+ }
1096
+ ),
1097
+ "threat-actor": frozenset({AttributeCategories.ATTRIBUTION}),
1098
+ "tlsh": frozenset({AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.PAYLOAD_INSTALLATION}),
1099
+ "travel-details": frozenset({AttributeCategories.PERSON}),
1100
+ "twitter-id": frozenset({AttributeCategories.SOCIAL_NETWORK}),
1101
+ "uri": frozenset({AttributeCategories.NETWORK_ACTIVITY}),
1102
+ "url": frozenset(
1103
+ {
1104
+ AttributeCategories.PAYLOAD_DELIVERY,
1105
+ AttributeCategories.EXTERNAL_ANALYSIS,
1106
+ AttributeCategories.NETWORK_ACTIVITY,
1107
+ }
1108
+ ),
1109
+ "user-agent": frozenset(
1110
+ {
1111
+ AttributeCategories.PAYLOAD_DELIVERY,
1112
+ AttributeCategories.EXTERNAL_ANALYSIS,
1113
+ AttributeCategories.NETWORK_ACTIVITY,
1114
+ }
1115
+ ),
1116
+ "vhash": frozenset(
1117
+ {
1118
+ AttributeCategories.ARTIFACTS_DROPPED,
1119
+ AttributeCategories.PAYLOAD_DELIVERY,
1120
+ AttributeCategories.PAYLOAD_INSTALLATION,
1121
+ }
1122
+ ),
1123
+ "visa-number": frozenset({AttributeCategories.PERSON}),
1124
+ "vulnerability": frozenset(
1125
+ {
1126
+ AttributeCategories.PAYLOAD_DELIVERY,
1127
+ AttributeCategories.EXTERNAL_ANALYSIS,
1128
+ AttributeCategories.PAYLOAD_INSTALLATION,
1129
+ }
1130
+ ),
1131
+ "weakness": frozenset(
1132
+ {
1133
+ AttributeCategories.PAYLOAD_DELIVERY,
1134
+ AttributeCategories.EXTERNAL_ANALYSIS,
1135
+ AttributeCategories.PAYLOAD_INSTALLATION,
1136
+ }
1137
+ ),
1138
+ "whois-creation-date": frozenset({AttributeCategories.ATTRIBUTION}),
1139
+ "whois-registrant-email": frozenset(
1140
+ {AttributeCategories.ATTRIBUTION, AttributeCategories.PAYLOAD_DELIVERY, AttributeCategories.SOCIAL_NETWORK}
1141
+ ),
1142
+ "whois-registrant-name": frozenset({AttributeCategories.ATTRIBUTION}),
1143
+ "whois-registrant-org": frozenset({AttributeCategories.ATTRIBUTION}),
1144
+ "whois-registrant-phone": frozenset({AttributeCategories.ATTRIBUTION}),
1145
+ "whois-registrar": frozenset({AttributeCategories.ATTRIBUTION}),
1146
+ "windows-scheduled-task": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
1147
+ "windows-service-displayname": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
1148
+ "windows-service-name": frozenset({AttributeCategories.ARTIFACTS_DROPPED}),
1149
+ "x509-fingerprint-md5": frozenset(
1150
+ {
1151
+ AttributeCategories.PAYLOAD_INSTALLATION,
1152
+ AttributeCategories.ATTRIBUTION,
1153
+ AttributeCategories.PAYLOAD_DELIVERY,
1154
+ AttributeCategories.EXTERNAL_ANALYSIS,
1155
+ AttributeCategories.ARTIFACTS_DROPPED,
1156
+ AttributeCategories.NETWORK_ACTIVITY,
1157
+ }
1158
+ ),
1159
+ "x509-fingerprint-sha1": frozenset(
1160
+ {
1161
+ AttributeCategories.PAYLOAD_INSTALLATION,
1162
+ AttributeCategories.ATTRIBUTION,
1163
+ AttributeCategories.PAYLOAD_DELIVERY,
1164
+ AttributeCategories.EXTERNAL_ANALYSIS,
1165
+ AttributeCategories.ARTIFACTS_DROPPED,
1166
+ AttributeCategories.NETWORK_ACTIVITY,
1167
+ }
1168
+ ),
1169
+ "x509-fingerprint-sha256": frozenset(
1170
+ {
1171
+ AttributeCategories.PAYLOAD_INSTALLATION,
1172
+ AttributeCategories.ATTRIBUTION,
1173
+ AttributeCategories.PAYLOAD_DELIVERY,
1174
+ AttributeCategories.EXTERNAL_ANALYSIS,
1175
+ AttributeCategories.ARTIFACTS_DROPPED,
1176
+ AttributeCategories.NETWORK_ACTIVITY,
1177
+ }
1178
+ ),
1179
+ "xmr": frozenset({AttributeCategories.FINANCIAL_FRAUD}),
1180
+ "yara": frozenset(
1181
+ {
1182
+ AttributeCategories.ARTIFACTS_DROPPED,
1183
+ AttributeCategories.PAYLOAD_DELIVERY,
1184
+ AttributeCategories.PAYLOAD_INSTALLATION,
1185
+ }
1186
+ ),
1187
+ "zeek": frozenset({AttributeCategories.EXTERNAL_ANALYSIS, AttributeCategories.NETWORK_ACTIVITY}),
1188
+ }
1189
+
1190
+ inverted_categories = defaultdict(list)
1191
+
1192
+ for key, value in categories.items():
1193
+ for category in value:
1194
+ inverted_categories[category.value].append(key)
1195
+
1196
+
1197
+ to_ids = {
1198
+ "aba-rtn": True,
1199
+ "anonymised": False,
1200
+ "AS": False,
1201
+ "attachment": False,
1202
+ "authentihash": True,
1203
+ "azure-application-id": True,
1204
+ "bank-account-nr": True,
1205
+ "bic": True,
1206
+ "bin": True,
1207
+ "boolean": False,
1208
+ "bro": True,
1209
+ "btc": True,
1210
+ "campaign-id": False,
1211
+ "campaign-name": False,
1212
+ "cc-number": True,
1213
+ "cdhash": True,
1214
+ "chrome-extension-id": True,
1215
+ "comment": False,
1216
+ "community-id": True,
1217
+ "cookie": False,
1218
+ "cortex": False,
1219
+ "counter": False,
1220
+ "country-of-residence": False,
1221
+ "cpe": False,
1222
+ "dash": True,
1223
+ "datetime": False,
1224
+ "date-of-birth": False,
1225
+ "dkim": False,
1226
+ "dkim-signature": False,
1227
+ "dns-soa-email": False,
1228
+ "domain": True,
1229
+ "domain|ip": True,
1230
+ "email": True,
1231
+ "email-attachment": True,
1232
+ "email-body": False,
1233
+ "email-dst": True,
1234
+ "email-dst-display-name": False,
1235
+ "email-header": False,
1236
+ "email-message-id": False,
1237
+ "email-mime-boundary": False,
1238
+ "email-reply-to": False,
1239
+ "email-src": True,
1240
+ "email-src-display-name": False,
1241
+ "email-subject": False,
1242
+ "email-thread-index": False,
1243
+ "email-x-mailer": False,
1244
+ "eppn": True,
1245
+ "favicon-mmh3": True,
1246
+ "filename": True,
1247
+ "filename|authentihash": True,
1248
+ "filename|impfuzzy": True,
1249
+ "filename|imphash": True,
1250
+ "filename|md5": True,
1251
+ "filename-pattern": True,
1252
+ "filename|pehash": True,
1253
+ "filename|sha1": True,
1254
+ "filename|sha224": True,
1255
+ "filename|sha256": True,
1256
+ "filename|sha384": True,
1257
+ "filename|sha3-224": True,
1258
+ "filename|sha3-256": True,
1259
+ "filename|sha3-384": True,
1260
+ "filename|sha3-512": True,
1261
+ "filename|sha512": True,
1262
+ "filename|sha512/224": True,
1263
+ "filename|sha512/256": True,
1264
+ "filename|ssdeep": True,
1265
+ "filename|tlsh": True,
1266
+ "filename|vhash": True,
1267
+ "first-name": False,
1268
+ "float": False,
1269
+ "frequent-flyer-number": False,
1270
+ "full-name": False,
1271
+ "gender": False,
1272
+ "gene": False,
1273
+ "github-organisation": False,
1274
+ "github-repository": False,
1275
+ "github-username": False,
1276
+ "git-commit-id": False,
1277
+ "hasshserver-md5": True,
1278
+ "hassh-md5": True,
1279
+ "hex": False,
1280
+ "hostname": True,
1281
+ "hostname|port": True,
1282
+ "http-method": False,
1283
+ "iban": True,
1284
+ "identity-card-number": False,
1285
+ "impfuzzy": True,
1286
+ "imphash": True,
1287
+ "ip-dst": True,
1288
+ "ip-dst|port": True,
1289
+ "ip-src": True,
1290
+ "ip-src|port": True,
1291
+ "issue-date-of-the-visa": False,
1292
+ "ja3-fingerprint-md5": True,
1293
+ "jabber-id": False,
1294
+ "jarm-fingerprint": True,
1295
+ "kusto-query": False,
1296
+ "last-name": False,
1297
+ "link": False,
1298
+ "mac-address": False,
1299
+ "mac-eui-64": False,
1300
+ "malware-sample": True,
1301
+ "malware-type": False,
1302
+ "md5": True,
1303
+ "middle-name": False,
1304
+ "mime-type": False,
1305
+ "mobile-application-id": True,
1306
+ "mutex": True,
1307
+ "named pipe": False,
1308
+ "nationality": False,
1309
+ "other": False,
1310
+ "passenger-name-record-locator-number": False,
1311
+ "passport-country": False,
1312
+ "passport-expiration": False,
1313
+ "passport-number": False,
1314
+ "pattern-in-file": True,
1315
+ "pattern-in-memory": True,
1316
+ "pattern-in-traffic": True,
1317
+ "payment-details": False,
1318
+ "pdb": False,
1319
+ "pehash": True,
1320
+ "pgp-private-key": False,
1321
+ "pgp-public-key": False,
1322
+ "phone-number": False,
1323
+ "place-of-birth": False,
1324
+ "place-port-of-clearance": False,
1325
+ "place-port-of-onward-foreign-destination": False,
1326
+ "place-port-of-original-embarkation": False,
1327
+ "port": False,
1328
+ "primary-residence": False,
1329
+ "process-state": False,
1330
+ "prtn": True,
1331
+ "redress-number": False,
1332
+ "regkey": True,
1333
+ "regkey|value": True,
1334
+ "sha1": True,
1335
+ "sha224": True,
1336
+ "sha256": True,
1337
+ "sha384": True,
1338
+ "sha3-224": True,
1339
+ "sha3-256": True,
1340
+ "sha3-384": True,
1341
+ "sha3-512": True,
1342
+ "sha512": True,
1343
+ "sha512/224": True,
1344
+ "sha512/256": True,
1345
+ "sigma": True,
1346
+ "size-in-bytes": False,
1347
+ "snort": True,
1348
+ "special-service-request": False,
1349
+ "ssdeep": True,
1350
+ "ssh-fingerprint": False,
1351
+ "stix2-pattern": True,
1352
+ "target-email": False,
1353
+ "target-external": False,
1354
+ "target-location": False,
1355
+ "target-machine": False,
1356
+ "target-org": False,
1357
+ "target-user": False,
1358
+ "telfhash": True,
1359
+ "text": False,
1360
+ "threat-actor": False,
1361
+ "tlsh": True,
1362
+ "travel-details": False,
1363
+ "twitter-id": False,
1364
+ "uri": True,
1365
+ "url": True,
1366
+ "user-agent": False,
1367
+ "vhash": True,
1368
+ "visa-number": False,
1369
+ "vulnerability": False,
1370
+ "weakness": False,
1371
+ "whois-creation-date": False,
1372
+ "whois-registrant-email": False,
1373
+ "whois-registrant-name": False,
1374
+ "whois-registrant-org": False,
1375
+ "whois-registrant-phone": False,
1376
+ "whois-registrar": False,
1377
+ "windows-scheduled-task": False,
1378
+ "windows-service-displayname": False,
1379
+ "windows-service-name": False,
1380
+ "x509-fingerprint-md5": True,
1381
+ "x509-fingerprint-sha1": True,
1382
+ "x509-fingerprint-sha256": True,
1383
+ "xmr": True,
1384
+ "yara": True,
1385
+ "zeek": True,
1386
+ }