You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: [tests] Better tests for Campaign objects conversion
- Updated samples and tests for STIX 2.x Campaign
objects import to cover all supported fields
- Added tests for custom Galaxy Clusters imported
from STIX 2.x Campaign objects conversion back
to STIX 2.x
Copy file name to clipboardExpand all lines: tests/test_events.py
+33
Original file line number
Diff line number
Diff line change
@@ -985,6 +985,25 @@
985
985
"uuid": "2d018cbb-4236-53c8-aeba-0aa1b51e636e"
986
986
}
987
987
988
+
_TEST_CUSTOM_CAMPAIGN_GALAXY= {
989
+
"GalaxyCluster": [
990
+
{
991
+
"meta": {
992
+
"synonyms": [
993
+
"Doppelganger"
994
+
],
995
+
"last_seen": "2020-10-25T16:22:00Z",
996
+
"objective": "manipulation"
997
+
},
998
+
"uuid": "0dd0896b-8834-5025-a4d4-c0f4bbf7d403",
999
+
"value": "RRN",
1000
+
"description": "Active since 2008, this campaign mostly targets the financial services industry, though we have also seen activity in the telecom, government, and defense sectors."
1001
+
}
1002
+
],
1003
+
"description": "A Campaign is a grouping of adversarial behaviors that describes a set of malicious activities or attacks (sometimes called waves) that occur over a period of time against a specific set of targets. Campaigns usually have well defined objectives and may be part of an Intrusion Set.",
Copy file name to clipboardExpand all lines: tests/test_external_stix20_bundles.py
+1
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,7 @@
171
171
"aliases": [
172
172
"Doppelganger"
173
173
],
174
+
"objective": "manipulation",
174
175
"description": "Active since 2008, this campaign mostly targets the financial services industry, though we have also seen activity in the telecom, government, and defense sectors.",
Copy file name to clipboardExpand all lines: tests/test_external_stix21_bundles.py
+1
Original file line number
Diff line number
Diff line change
@@ -324,6 +324,7 @@
324
324
"aliases": [
325
325
"Doppelganger"
326
326
],
327
+
"objective": "manipulation",
327
328
"description": "Active since 2008, this campaign mostly targets the financial services industry, though we have also seen activity in the telecom, government, and defense sectors.",
0 commit comments