pymisp 2.5.3__py3-none-any.whl → 2.5.7__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.
Potentially problematic release.
This version of pymisp might be problematic. Click here for more details.
- CHANGELOG.txt +5380 -0
- examples/__init__.py +0 -0
- examples/add_attributes_from_csv.py +74 -0
- examples/add_email_object.py +29 -0
- examples/add_fail2ban_object.py +86 -0
- examples/add_feed.py +25 -0
- examples/add_file_object.py +47 -0
- examples/add_filetype_object_from_csv.py +53 -0
- examples/add_generic_object.py +26 -0
- examples/add_github_user.py +65 -0
- examples/add_gitlab_user.py +56 -0
- examples/add_named_attribute.py +25 -0
- examples/add_organisations.py +57 -0
- examples/add_ssh_authorized_keys.py +29 -0
- examples/add_user.py +22 -0
- examples/add_vehicle_object.py +22 -0
- examples/addtag2.py +45 -0
- examples/asciidoc_generator.py +114 -0
- examples/cache_all.py +10 -0
- examples/copyTagsFromAttributesToEvent.py +68 -0
- examples/copy_list.py +93 -0
- examples/create_events.py +26 -0
- examples/cytomic_orion.py +549 -0
- examples/del.py +22 -0
- examples/delete_user.py +16 -0
- examples/edit_organisation.py +20 -0
- examples/edit_user.py +20 -0
- examples/falsepositive_disabletoids.py +136 -0
- examples/fetch_events_feed.py +15 -0
- examples/fetch_warninglist_hits.py +38 -0
- examples/freetext.py +22 -0
- examples/generate_file_objects.py +78 -0
- examples/generate_meta_feed.py +15 -0
- examples/get.py +37 -0
- examples/get_csv.py +37 -0
- examples/get_network_activity.py +187 -0
- examples/last.py +48 -0
- examples/load_csv.py +94 -0
- examples/lookup.py +28 -0
- examples/misp2cef.py +71 -0
- examples/misp2clamav.py +52 -0
- examples/openioc_to_misp.py +27 -0
- examples/proofpoint_tap.py +203 -0
- examples/proofpoint_vap.py +65 -0
- examples/search.py +48 -0
- examples/search_attributes_yara.py +40 -0
- examples/search_sighting.py +42 -0
- examples/server_sync_check_conn.py +32 -0
- examples/sharing_groups.py +15 -0
- examples/show_sightings.py +168 -0
- examples/stats_report.py +405 -0
- examples/sync_sighting.py +171 -0
- examples/tags.py +25 -0
- examples/test_sign.py +19 -0
- examples/trustar_misp.py +59 -0
- examples/up.py +21 -0
- examples/upload.py +60 -0
- examples/users_list.py +15 -0
- examples/vmray_automation.py +281 -0
- examples/vt_to_misp.py +182 -0
- examples/warninglists.py +22 -0
- examples/yara.py +38 -0
- examples/yara_dump.py +98 -0
- pymisp/api.py +33 -5
- pymisp/data/misp-objects/objects/android-app/definition.json +8 -2
- pymisp/data/misp-objects/objects/instagram-account/definition.json +66 -0
- pymisp/data/misp-objects/objects/lnk/definition.json +13 -1
- pymisp/data/misp-objects/objects/rmm/definition.json +88 -0
- pymisp/data/misp-objects/objects/spambee-report/definition.json +54 -0
- pymisp/data/misp-objects/objects/target-system/definition.json +2 -2
- pymisp/data/misp-objects/objects/vulnerability/definition.json +5 -4
- pymisp/data/misp-objects/relationships/definition.json +17 -1
- pymisp/data/misp-objects/schema_objects.json +1 -1
- pymisp/mispevent.py +95 -23
- {pymisp-2.5.3.dist-info → pymisp-2.5.7.dist-info}/METADATA +23 -28
- {pymisp-2.5.3.dist-info → pymisp-2.5.7.dist-info}/RECORD +144 -30
- {pymisp-2.5.3.dist-info → pymisp-2.5.7.dist-info}/WHEEL +1 -1
- tests/57c4445b-c548-4654-af0b-4be3950d210f.json +1 -0
- tests/__init__.py +0 -0
- tests/csv_testfiles/invalid_fieldnames.csv +11 -0
- tests/csv_testfiles/valid_fieldnames.csv +4 -0
- tests/email_testfiles/mail_1.eml.zip +0 -0
- tests/email_testfiles/mail_1.msg +0 -0
- tests/email_testfiles/mail_1_bom.eml +858 -0
- tests/email_testfiles/mail_1_headers_only.eml +28 -0
- tests/email_testfiles/mail_2.eml +32 -0
- tests/email_testfiles/mail_3.eml +170 -0
- tests/email_testfiles/mail_3.msg +0 -0
- tests/email_testfiles/mail_4.msg +0 -0
- tests/email_testfiles/mail_5.msg +0 -0
- tests/email_testfiles/mail_multiple_to.eml +15 -0
- tests/email_testfiles/source +1 -0
- tests/git-vuln-finder-quagga.json +1493 -0
- tests/misp_event.json +76 -0
- tests/mispevent_testfiles/attribute.json +21 -0
- tests/mispevent_testfiles/attribute_del.json +23 -0
- tests/mispevent_testfiles/def_param.json +53 -0
- tests/mispevent_testfiles/event.json +8 -0
- tests/mispevent_testfiles/event_obj_attr_tag.json +57 -0
- tests/mispevent_testfiles/event_obj_def_param.json +62 -0
- tests/mispevent_testfiles/event_obj_tag.json +29 -0
- tests/mispevent_testfiles/event_tags.json +18 -0
- tests/mispevent_testfiles/existing_event.json +4599 -0
- tests/mispevent_testfiles/existing_event_edited.json +4601 -0
- tests/mispevent_testfiles/galaxy.json +25 -0
- tests/mispevent_testfiles/malware.json +19 -0
- tests/mispevent_testfiles/malware_exist.json +163 -0
- tests/mispevent_testfiles/misp_custom_obj.json +38 -0
- tests/mispevent_testfiles/overwrite_file/definition.json +457 -0
- tests/mispevent_testfiles/proposals.json +35 -0
- tests/mispevent_testfiles/shadow.json +148 -0
- tests/mispevent_testfiles/sighting.json +5 -0
- tests/mispevent_testfiles/simple.json +2 -0
- tests/mispevent_testfiles/test_object_template/definition.json +29 -0
- tests/new_misp_event.json +34 -0
- tests/reportlab_testfiles/HTML_event.json +1 -0
- tests/reportlab_testfiles/galaxy_1.json +1250 -0
- tests/reportlab_testfiles/image_event.json +2490 -0
- tests/reportlab_testfiles/japanese_test.json +156 -0
- tests/reportlab_testfiles/japanese_test_heavy.json +318 -0
- tests/reportlab_testfiles/long_event.json +3730 -0
- tests/reportlab_testfiles/mainly_objects_1.json +1092 -0
- tests/reportlab_testfiles/mainly_objects_2.json +977 -0
- tests/reportlab_testfiles/sighting_1.json +305 -0
- tests/reportlab_testfiles/sighting_2.json +221 -0
- tests/reportlab_testfiles/to_delete1.json +804 -0
- tests/reportlab_testfiles/to_delete2.json +1 -0
- tests/reportlab_testfiles/to_delete3.json +1 -0
- tests/reportlab_testfiles/very_long_event.json +1006 -0
- tests/reportlab_testoutputs/to_delete1.json.pdf +391 -0
- tests/reportlab_testoutputs/to_delete2.json.pdf +506 -0
- tests/reportlab_testoutputs/to_delete3.json.pdf +277 -0
- tests/search_index_result.json +69 -0
- tests/sharing_groups.json +98 -0
- tests/stix1.xml-utf8 +110 -0
- tests/stix2.json +1 -0
- tests/test_analyst_data.py +123 -0
- tests/test_emailobject.py +157 -0
- tests/test_fileobject.py +20 -0
- tests/test_mispevent.py +473 -0
- tests/test_reportlab.py +431 -0
- tests/testlive_comprehensive.py +3734 -0
- tests/testlive_sync.py +474 -0
- pymisp/data/misp-objects/.git +0 -1
- pymisp/data/misp-objects/.gitchangelog.rc +0 -289
- pymisp/data/misp-objects/.github/workflows/codeql.yml +0 -41
- pymisp/data/misp-objects/.github/workflows/nosetests.yml +0 -39
- pymisp/data/misp-objects/.travis.yml +0 -16
- pymisp/data/misp-objects/LICENSE-software-only.md +0 -661
- pymisp/data/misp-objects/LICENSE.md +0 -36
- pymisp/data/misp-objects/README.md +0 -566
- pymisp/data/misp-objects/docs/time-related-objects.ods +0 -0
- pymisp/data/misp-objects/docs/time-related-objects.pdf +0 -0
- pymisp/data/misp-objects/jq_all_the_things.sh +0 -29
- pymisp/data/misp-objects/tools/adoc_objects.py +0 -145
- pymisp/data/misp-objects/tools/alfred_links_to_relarelationships.py +0 -48
- pymisp/data/misp-objects/tools/list_of_objects.py +0 -50
- pymisp/data/misp-objects/tools/updated.sh +0 -6
- pymisp/data/misp-objects/tools/validate_opposites.sh +0 -17
- pymisp/data/misp-objects/unique_uuid.py +0 -16
- pymisp/data/misp-objects/validate_all.sh +0 -38
- {pymisp-2.5.3.dist-info → pymisp-2.5.7.dist-info}/LICENSE +0 -0
tests/misp_event.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Attribute": [
|
|
3
|
+
{
|
|
4
|
+
"ShadowAttribute": [],
|
|
5
|
+
"category": "Payload delivery",
|
|
6
|
+
"comment": "",
|
|
7
|
+
"deleted": false,
|
|
8
|
+
"distribution": "5",
|
|
9
|
+
"event_id": "2",
|
|
10
|
+
"id": "7",
|
|
11
|
+
"sharing_group_id": "0",
|
|
12
|
+
"timestamp": "1465681304",
|
|
13
|
+
"to_ids": false,
|
|
14
|
+
"type": "url",
|
|
15
|
+
"uuid": "575c8598-f1f0-4c16-a94a-0612c0a83866",
|
|
16
|
+
"value": "http://fake.website.com/malware/is/here"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"ShadowAttribute": [],
|
|
20
|
+
"category": "Payload type",
|
|
21
|
+
"comment": "",
|
|
22
|
+
"deleted": false,
|
|
23
|
+
"distribution": "5",
|
|
24
|
+
"event_id": "2",
|
|
25
|
+
"id": "6",
|
|
26
|
+
"sharing_group_id": "0",
|
|
27
|
+
"timestamp": "1465681801",
|
|
28
|
+
"to_ids": false,
|
|
29
|
+
"type": "text",
|
|
30
|
+
"uuid": "575c8549-9010-4555-8b37-057ac0a83866",
|
|
31
|
+
"value": "Locky"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"Org": {
|
|
35
|
+
"id": "1",
|
|
36
|
+
"name": "ORGNAME",
|
|
37
|
+
"uuid": "57586e9a-4a64-4f79-9009-4dc1c0a83866"
|
|
38
|
+
},
|
|
39
|
+
"Orgc": {
|
|
40
|
+
"id": "1",
|
|
41
|
+
"name": "ORGNAME",
|
|
42
|
+
"uuid": "57586e9a-4a64-4f79-9009-4dc1c0a83866"
|
|
43
|
+
},
|
|
44
|
+
"RelatedEvent": [],
|
|
45
|
+
"ShadowAttribute": [],
|
|
46
|
+
"Tag": [
|
|
47
|
+
{
|
|
48
|
+
"colour": "#005a5a",
|
|
49
|
+
"exportable": true,
|
|
50
|
+
"id": "6",
|
|
51
|
+
"name": "ecsirt:malicious-code=\"ransomware\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"colour": "#142bf7",
|
|
55
|
+
"exportable": true,
|
|
56
|
+
"id": "1",
|
|
57
|
+
"name": "for_intelmq_processing"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"analysis": "0",
|
|
61
|
+
"attribute_count": "2",
|
|
62
|
+
"date": "2016-06-09",
|
|
63
|
+
"distribution": "0",
|
|
64
|
+
"id": "2",
|
|
65
|
+
"info": "A Random Event",
|
|
66
|
+
"locked": false,
|
|
67
|
+
"org_id": "1",
|
|
68
|
+
"orgc_id": "1",
|
|
69
|
+
"proposal_email_lock": false,
|
|
70
|
+
"publish_timestamp": "0",
|
|
71
|
+
"published": false,
|
|
72
|
+
"sharing_group_id": "0",
|
|
73
|
+
"threat_level_id": "1",
|
|
74
|
+
"timestamp": "1465681801",
|
|
75
|
+
"uuid": "5758ebf5-c898-48e6-9fe9-5665c0a83866"
|
|
76
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Attribute": [
|
|
3
|
+
{
|
|
4
|
+
"Tag": [
|
|
5
|
+
{
|
|
6
|
+
"name": "osint"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"category": "Payload delivery",
|
|
10
|
+
"disable_correlation": false,
|
|
11
|
+
"to_ids": true,
|
|
12
|
+
"type": "filename",
|
|
13
|
+
"value": "bar.exe"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"analysis": "1",
|
|
17
|
+
"date": "2017-12-31",
|
|
18
|
+
"distribution": "1",
|
|
19
|
+
"info": "This is a test",
|
|
20
|
+
"threat_level_id": "1"
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Attribute": [
|
|
3
|
+
{
|
|
4
|
+
"Tag": [
|
|
5
|
+
{
|
|
6
|
+
"name": "osint"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"category": "Payload delivery",
|
|
10
|
+
"deleted": true,
|
|
11
|
+
"disable_correlation": false,
|
|
12
|
+
"id": "42",
|
|
13
|
+
"to_ids": true,
|
|
14
|
+
"type": "filename",
|
|
15
|
+
"value": "bar.exe"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"analysis": "1",
|
|
19
|
+
"date": "2017-12-31",
|
|
20
|
+
"distribution": "1",
|
|
21
|
+
"info": "This is a test",
|
|
22
|
+
"threat_level_id": "1"
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Object": [
|
|
3
|
+
{
|
|
4
|
+
"Attribute": [
|
|
5
|
+
{
|
|
6
|
+
"category": "Attribution",
|
|
7
|
+
"disable_correlation": false,
|
|
8
|
+
"object_relation": "registrar",
|
|
9
|
+
"to_ids": false,
|
|
10
|
+
"type": "whois-registrar",
|
|
11
|
+
"value": "registar.example.com"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"category": "Network activity",
|
|
15
|
+
"disable_correlation": false,
|
|
16
|
+
"object_relation": "domain",
|
|
17
|
+
"to_ids": true,
|
|
18
|
+
"type": "domain",
|
|
19
|
+
"value": "domain.example.com"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"category": "Network activity",
|
|
23
|
+
"disable_correlation": true,
|
|
24
|
+
"object_relation": "nameserver",
|
|
25
|
+
"to_ids": false,
|
|
26
|
+
"type": "hostname",
|
|
27
|
+
"value": "ns1.example.com"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"category": "External analysis",
|
|
31
|
+
"disable_correlation": false,
|
|
32
|
+
"object_relation": "nameserver",
|
|
33
|
+
"to_ids": true,
|
|
34
|
+
"type": "hostname",
|
|
35
|
+
"value": "ns2.example.com"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"description": "Whois records information for a domain name or an IP address.",
|
|
39
|
+
"distribution": "5",
|
|
40
|
+
"meta-category": "network",
|
|
41
|
+
"name": "whois",
|
|
42
|
+
"sharing_group_id": "0",
|
|
43
|
+
"template_uuid": "429faea1-34ff-47af-8a00-7c62d3be5a6a",
|
|
44
|
+
"template_version": "10",
|
|
45
|
+
"uuid": "a"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"analysis": "1",
|
|
49
|
+
"date": "2017-12-31",
|
|
50
|
+
"distribution": "1",
|
|
51
|
+
"info": "This is a test",
|
|
52
|
+
"threat_level_id": "1"
|
|
53
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Object": [
|
|
3
|
+
{
|
|
4
|
+
"Attribute": [
|
|
5
|
+
{
|
|
6
|
+
"Tag": [
|
|
7
|
+
{
|
|
8
|
+
"name": "blah"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"category": "Payload delivery",
|
|
12
|
+
"disable_correlation": true,
|
|
13
|
+
"object_relation": "filename",
|
|
14
|
+
"to_ids": true,
|
|
15
|
+
"type": "filename",
|
|
16
|
+
"value": "bar"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"ObjectReference": [
|
|
20
|
+
{
|
|
21
|
+
"comment": "foo",
|
|
22
|
+
"object_uuid": "a",
|
|
23
|
+
"referenced_uuid": "b",
|
|
24
|
+
"relationship_type": "baz"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "File object describing a file with meta-information",
|
|
28
|
+
"distribution": "5",
|
|
29
|
+
"meta-category": "file",
|
|
30
|
+
"name": "file",
|
|
31
|
+
"sharing_group_id": "0",
|
|
32
|
+
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
|
33
|
+
"template_version": "25",
|
|
34
|
+
"uuid": "a"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"Attribute": [
|
|
38
|
+
{
|
|
39
|
+
"category": "Network activity",
|
|
40
|
+
"disable_correlation": false,
|
|
41
|
+
"object_relation": "url",
|
|
42
|
+
"to_ids": true,
|
|
43
|
+
"type": "url",
|
|
44
|
+
"value": "https://www.circl.lu"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"description": "url object describes an url along with its normalized field (like extracted using faup parsing library) and its metadata.",
|
|
48
|
+
"distribution": "5",
|
|
49
|
+
"meta-category": "network",
|
|
50
|
+
"name": "url",
|
|
51
|
+
"sharing_group_id": "0",
|
|
52
|
+
"template_uuid": "60efb77b-40b5-4c46-871b-ed1ed999fce5",
|
|
53
|
+
"template_version": "10",
|
|
54
|
+
"uuid": "b"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Object": [
|
|
3
|
+
{
|
|
4
|
+
"Attribute": [
|
|
5
|
+
{
|
|
6
|
+
"Tag": [
|
|
7
|
+
{
|
|
8
|
+
"name": "blah"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"category": "Payload delivery",
|
|
12
|
+
"disable_correlation": true,
|
|
13
|
+
"object_relation": "filename",
|
|
14
|
+
"to_ids": true,
|
|
15
|
+
"type": "filename",
|
|
16
|
+
"value": "bar"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"category": "Artifacts dropped",
|
|
20
|
+
"disable_correlation": false,
|
|
21
|
+
"object_relation": "pattern-in-file",
|
|
22
|
+
"to_ids": true,
|
|
23
|
+
"type": "pattern-in-file",
|
|
24
|
+
"value": "baz"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "File object describing a file with meta-information",
|
|
28
|
+
"distribution": "5",
|
|
29
|
+
"meta-category": "file",
|
|
30
|
+
"name": "file",
|
|
31
|
+
"sharing_group_id": "0",
|
|
32
|
+
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
|
33
|
+
"template_version": "25",
|
|
34
|
+
"uuid": "a"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"Attribute": [
|
|
38
|
+
{
|
|
39
|
+
"Tag": [
|
|
40
|
+
{
|
|
41
|
+
"name": "blah"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"category": "Payload delivery",
|
|
45
|
+
"disable_correlation": true,
|
|
46
|
+
"object_relation": "filename",
|
|
47
|
+
"to_ids": true,
|
|
48
|
+
"type": "filename",
|
|
49
|
+
"value": "baz"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"description": "File object describing a file with meta-information",
|
|
53
|
+
"distribution": "5",
|
|
54
|
+
"meta-category": "file",
|
|
55
|
+
"name": "file",
|
|
56
|
+
"sharing_group_id": "0",
|
|
57
|
+
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
|
58
|
+
"template_version": "25",
|
|
59
|
+
"uuid": "b"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Object": [
|
|
3
|
+
{
|
|
4
|
+
"Attribute": [
|
|
5
|
+
{
|
|
6
|
+
"category": "Payload delivery",
|
|
7
|
+
"disable_correlation": false,
|
|
8
|
+
"object_relation": "filename",
|
|
9
|
+
"to_ids": true,
|
|
10
|
+
"type": "filename",
|
|
11
|
+
"value": "bar"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"Tag": [
|
|
15
|
+
{
|
|
16
|
+
"name": "osint"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"description": "File object describing a file with meta-information",
|
|
20
|
+
"distribution": 5,
|
|
21
|
+
"meta-category": "file",
|
|
22
|
+
"name": "file",
|
|
23
|
+
"sharing_group_id": 0,
|
|
24
|
+
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
|
25
|
+
"template_version": 9,
|
|
26
|
+
"uuid": "a"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|