Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit ed075f3

Browse files
author
Samuel Hassine
committed
[client] Implement system identity
1 parent f0558e2 commit ed075f3

10 files changed

+38
-0
lines changed

pycti/entities/opencti_identity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ def import_from_stix2(self, **kwargs):
343343
type = "Individual"
344344
elif stix_object["identity_class"] == "class":
345345
type = "Sector"
346+
elif stix_object["identity_class"] == "system":
347+
type = "System"
346348
return self.create(
347349
type=type,
348350
stix_id=stix_object["id"],

pycti/entities/opencti_note.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def __init__(self, opencti):
132132
... on Sector {
133133
name
134134
}
135+
... on System {
136+
name
137+
}
135138
... on Indicator {
136139
name
137140
}

pycti/entities/opencti_observed_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def __init__(self, opencti):
132132
... on Sector {
133133
name
134134
}
135+
... on System {
136+
name
137+
}
135138
... on Indicator {
136139
name
137140
}

pycti/entities/opencti_opinion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def __init__(self, opencti):
132132
... on Sector {
133133
name
134134
}
135+
... on System {
136+
name
137+
}
135138
... on Indicator {
136139
name
137140
}

pycti/entities/opencti_report.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def __init__(self, opencti):
136136
... on Sector {
137137
name
138138
}
139+
... on System {
140+
name
141+
}
139142
... on Indicator {
140143
name
141144
}

pycti/entities/opencti_stix_core_relationship.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def __init__(self, opencti):
130130
... on Sector {
131131
name
132132
}
133+
... on System {
134+
name
135+
}
133136
... on Indicator {
134137
name
135138
}
@@ -211,6 +214,9 @@ def __init__(self, opencti):
211214
... on Sector {
212215
name
213216
}
217+
... on System {
218+
name
219+
}
214220
... on Indicator {
215221
name
216222
}

pycti/entities/opencti_stix_domain_object.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ def __init__(self, opencti, file):
222222
x_opencti_aliases
223223
contact_information
224224
}
225+
... on System {
226+
name
227+
description
228+
x_opencti_aliases
229+
}
225230
... on Indicator {
226231
pattern_type
227232
pattern_version

pycti/entities/opencti_stix_object_or_stix_relationship.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ def __init__(self, opencti):
173173
contact_information
174174
x_opencti_aliases
175175
}
176+
... on System {
177+
name
178+
description
179+
contact_information
180+
x_opencti_aliases
181+
}
176182
... on Indicator {
177183
pattern_type
178184
pattern_version

pycti/entities/opencti_stix_sighting_relationship.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def __init__(self, opencti):
127127
}
128128
... on Sector {
129129
name
130+
}
131+
... on System {
132+
name
130133
}
131134
... on Indicator {
132135
name
@@ -209,6 +212,9 @@ def __init__(self, opencti):
209212
... on Sector {
210213
name
211214
}
215+
... on System {
216+
name
217+
}
212218
... on Indicator {
213219
name
214220
}

pycti/utils/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class IdentityTypes(Enum):
4343
SECTOR = "Sector"
4444
ORGANIZATION = "Organization"
4545
INDIVIDUAL = "Individual"
46+
SYSTEM = "System"
4647

4748
@classmethod
4849
def has_value(cls, value):

0 commit comments

Comments
 (0)