|
63 | 63 | type='Email-Address', |
64 | 64 | observable_value='phishing@mail.com' |
65 | 65 | ) |
66 | | -# Indicates the incident itself |
67 | | -observable_ttp1_incident_relation = opencti_api_client.stix_relation.create( |
68 | | - fromType='Stix-Observable', |
69 | | - fromId=observable_ttp1['id'], |
70 | | - toType='Incident', |
71 | | - toId=incident['id'], |
72 | | - relationship_type='indicates', |
73 | | - description='This email address is the sender of the spearphishing in this incident.', |
74 | | - first_seen=date, |
75 | | - last_seen=date |
76 | | -) |
77 | 66 | # Indicates the relation Incident => uses => TTP |
78 | 67 | observable_ttp1_relation = opencti_api_client.stix_relation.create( |
79 | 68 | fromType='Stix-Observable', |
|
90 | 79 | ttp1['id'], |
91 | 80 | ttp1_relation['id'], |
92 | 81 | observable_ttp1['id'], |
93 | | - observable_ttp1_incident_relation['id'] |
| 82 | + observable_ttp1_relation['id'] |
94 | 83 | ]) |
95 | 84 |
|
96 | 85 | # Registry Run Keys / Startup Folder |
|
118 | 107 | type='Registry-Key', |
119 | 108 | observable_value='Disk security' |
120 | 109 | ) |
121 | | -# Indicates the incident itself |
122 | | -observable_ttp2_incident_relation = opencti_api_client.stix_relation.create( |
123 | | - fromType='Stix-Observable', |
124 | | - fromId=observable_ttp2['id'], |
125 | | - toType='Incident', |
126 | | - toId=incident['id'], |
127 | | - relationship_type='indicates', |
128 | | - description='This registry key is used for persistence of tools in this incident.', |
129 | | - first_seen=date, |
130 | | - last_seen=date |
131 | | -) |
132 | 110 | # Indicates the relation Incident => uses => TTP |
133 | 111 | observable_ttp2_relation = opencti_api_client.stix_relation.create( |
134 | 112 | fromType='Stix-Observable', |
|
145 | 123 | ttp2['id'], |
146 | 124 | ttp2_relation['id'], |
147 | 125 | observable_ttp2['id'], |
148 | | - observable_ttp2_incident_relation['id'] |
| 126 | + observable_ttp2_relation['id'] |
149 | 127 | ]) |
150 | 128 |
|
151 | 129 | # Data Encrypted |
|
0 commit comments