txt2stix 1.0.12__py3-none-any.whl → 1.0.14__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.
- txt2stix/includes/extractions/ai/config.yaml +6 -6
- txt2stix/txt2stix.py +1 -1
- {txt2stix-1.0.12.dist-info → txt2stix-1.0.14.dist-info}/METADATA +1 -1
- {txt2stix-1.0.12.dist-info → txt2stix-1.0.14.dist-info}/RECORD +7 -7
- {txt2stix-1.0.12.dist-info → txt2stix-1.0.14.dist-info}/WHEEL +0 -0
- {txt2stix-1.0.12.dist-info → txt2stix-1.0.14.dist-info}/entry_points.txt +0 -0
- {txt2stix-1.0.12.dist-info → txt2stix-1.0.14.dist-info}/licenses/LICENSE +0 -0
|
@@ -28,7 +28,7 @@ ai_ipv4_address_cidr:
|
|
|
28
28
|
modified: 2020-01-01
|
|
29
29
|
created_by: DOGESEC
|
|
30
30
|
version: 1.0.0
|
|
31
|
-
prompt_base: 'Extract all IPv4 addresses with a CIDR from the text.'
|
|
31
|
+
prompt_base: 'Extract all IPv4 addresses with a CIDR from the text. CIDR part must be >=0 <=32.'
|
|
32
32
|
prompt_helper: 'Do not include any IPs that do not have a CIDR.'
|
|
33
33
|
prompt_conversion: ''
|
|
34
34
|
test_cases: ipv4_address_cidr
|
|
@@ -44,8 +44,8 @@ ai_ipv4_address_port:
|
|
|
44
44
|
modified: 2020-01-01
|
|
45
45
|
created_by: DOGESEC
|
|
46
46
|
version: 1.0.0
|
|
47
|
-
prompt_base: 'Extract all IPv4 addresses with a port from the text.'
|
|
48
|
-
prompt_helper: 'Do not include any IPv4s that do not contain a port number'
|
|
47
|
+
prompt_base: 'Extract all IPv4 addresses with a port from the text. Port number part must be >=0 <=65535.'
|
|
48
|
+
prompt_helper: 'Do not include any IPv4s that do not contain a port number.'
|
|
49
49
|
prompt_conversion: ''
|
|
50
50
|
test_cases: ipv4_address_port
|
|
51
51
|
stix_mapping: ipv4-addr-port
|
|
@@ -72,13 +72,13 @@ ai_ipv6_address_cidr:
|
|
|
72
72
|
type: ai
|
|
73
73
|
dogesec_web: true
|
|
74
74
|
name: 'IPv6 Address with CIDR'
|
|
75
|
-
description: 'Extracts IPv6 addresses with CIDRs'
|
|
75
|
+
description: 'Extracts IPv6 addresses with CIDRs.'
|
|
76
76
|
notes: 'pattern_ipv6_address_cidr legacy extraction also exists if you cannot use AI'
|
|
77
77
|
created: 2020-01-01
|
|
78
78
|
modified: 2020-01-01
|
|
79
79
|
created_by: DOGESEC
|
|
80
80
|
version: 1.0.0
|
|
81
|
-
prompt_base: 'Extract all IPv6 addresses with a CIDR from the text.'
|
|
81
|
+
prompt_base: 'Extract all IPv6 addresses with a CIDR from the text. CIDR part must be >=0 <=128.'
|
|
82
82
|
prompt_helper: 'Do not include any IPv6s that do not contain a CIDR'
|
|
83
83
|
prompt_conversion: ''
|
|
84
84
|
test_cases: generic_ipv6_address_cidr
|
|
@@ -94,7 +94,7 @@ ai_ipv6_address_port:
|
|
|
94
94
|
modified: 2020-01-01
|
|
95
95
|
created_by: DOGESEC
|
|
96
96
|
version: 1.0.0
|
|
97
|
-
prompt_base: 'Extract all IPv6 addresses with a CIDR from the text.'
|
|
97
|
+
prompt_base: 'Extract all IPv6 addresses with a CIDR from the text. Port number part must be >=0 <=65535.'
|
|
98
98
|
prompt_helper: 'Do not include any IPv6s that do not contain a port number'
|
|
99
99
|
prompt_conversion: ''
|
|
100
100
|
test_cases: generic_ipv6_address_port
|
txt2stix/txt2stix.py
CHANGED
|
@@ -394,7 +394,7 @@ def run_txt2stix(bundler: txt2stixBundler, preprocessed_text: str, extractors_ma
|
|
|
394
394
|
logging.info("=== ai-check-content output ====")
|
|
395
395
|
logging.info(retval.content_check.model_dump_json())
|
|
396
396
|
for classification in retval.content_check.incident_classification:
|
|
397
|
-
bundler.report.labels.append(f'
|
|
397
|
+
bundler.report.labels.append(f'classification.{classification}'.lower())
|
|
398
398
|
bundler.add_summary(retval.content_check.summary, model.extractor_name)
|
|
399
399
|
|
|
400
400
|
if should_extract or ai_extract_if_no_incidence:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: txt2stix
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.14
|
|
4
4
|
Summary: txt2stix is a Python script that is designed to identify and extract IoCs and TTPs from text files, identify the relationships between them, convert them to STIX 2.1 objects, and output as a STIX 2.1 bundle.
|
|
5
5
|
Project-URL: Homepage, https://github.com/muchdogesec/txt2stix
|
|
6
6
|
Project-URL: Issues, https://github.com/muchdogesec/txt2stix/issues
|
|
@@ -8,7 +8,7 @@ txt2stix/indicator.py,sha256=c6S0xx0K8JM-PT_Qd1PlN_ZlDXdnEwiRS8529iUp3yg,30774
|
|
|
8
8
|
txt2stix/lookups.py,sha256=h42YVtYUkWZm6ZPv2h5hHDHDzDs3yBqrT_T7pj2MDZI,2301
|
|
9
9
|
txt2stix/retriever.py,sha256=biRSRwYsZoSvR758y4OFONjfrEMcxgj1PLHFLFydoSU,5729
|
|
10
10
|
txt2stix/stix.py,sha256=9nXD9a2dCY4uaatl-mlIA1k3srwQBhGW-tUSho3iYe0,30
|
|
11
|
-
txt2stix/txt2stix.py,sha256=
|
|
11
|
+
txt2stix/txt2stix.py,sha256=4iVvzlLbUeDIKUPPHGUWZufsy-LIMPk6ejrw8kSI1o8,18595
|
|
12
12
|
txt2stix/utils.py,sha256=n6mh4t9ZRJ7iT4Jvp9ai_dfCXjgXNcRtF_zXO7nkpnk,3304
|
|
13
13
|
txt2stix/ai_extractor/__init__.py,sha256=5Tf6Co9THzytBdFEVhD-7vvT05TT3nSpltnAV1sfdoM,349
|
|
14
14
|
txt2stix/ai_extractor/anthropic.py,sha256=mdz-8CB-BSCEqnK5l35DRZURVPUf508ef2b48XMxmuk,441
|
|
@@ -74,7 +74,7 @@ txt2stix/pattern/extractors/url/url_extractor.py,sha256=-SH1WvxbViaRZ1on8lRlzNAc
|
|
|
74
74
|
txt2stix/pattern/extractors/url/url_file_extractor.py,sha256=_VDu_BX3Ys9SKhZlscZPp9xSOKCxNKKvJ2gbe7Nvuv0,881
|
|
75
75
|
txt2stix/pattern/extractors/url/url_path_extractor.py,sha256=FNKcMZRnJpcZZF44T8DHsDWzhBqPq5a23h7T7l2osac,2459
|
|
76
76
|
txt2stix/includes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
|
-
txt2stix/includes/extractions/ai/config.yaml,sha256=
|
|
77
|
+
txt2stix/includes/extractions/ai/config.yaml,sha256=8tFAA4cCrXHbf2ewJNo5yTrLUB7qhM0jOu2XsA1hUYs,41540
|
|
78
78
|
txt2stix/includes/extractions/lookup/config.yaml,sha256=lZoJ-vHig30TpfiwNEl4fiT-AwdOlhm7h0pE8b_G6jg,12059
|
|
79
79
|
txt2stix/includes/extractions/pattern/config.yaml,sha256=BTfFc69hTR1TMMuu86UVg0K6aFQAxAF55R8l2-PBeOM,20154
|
|
80
80
|
txt2stix/includes/helpers/mimetype_filename_extension_list.csv,sha256=kgozjMyp7y87CqRcoedfDwNXSLKrDgC9r9YKDYK0EbY,27593
|
|
@@ -113,8 +113,8 @@ txt2stix/includes/lookups/threat_actor.txt,sha256=QfDO9maQuqKBgW_Sdd7VGv1SHZ9Ra-
|
|
|
113
113
|
txt2stix/includes/lookups/tld.txt,sha256=-MEgJea2NMG_KDsnc4BVvI8eRk5Dm93L-t8SGYx5wMo,8598
|
|
114
114
|
txt2stix/includes/lookups/tool.txt,sha256=HGKG6JpUE26w6ezzSxOjBkp15UpSaB7N-mZ_NU_3G7A,6
|
|
115
115
|
txt2stix/includes/tests/test_cases.yaml,sha256=QD1FdIunpPkOpsn6wJRqs2vil_hv8OSVaqUp4a96aZg,22247
|
|
116
|
-
txt2stix-1.0.
|
|
117
|
-
txt2stix-1.0.
|
|
118
|
-
txt2stix-1.0.
|
|
119
|
-
txt2stix-1.0.
|
|
120
|
-
txt2stix-1.0.
|
|
116
|
+
txt2stix-1.0.14.dist-info/METADATA,sha256=96_yn_kk4Is0dRb2YTm3MU4wR1lfUty6gpgk1i0uxN4,15483
|
|
117
|
+
txt2stix-1.0.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
118
|
+
txt2stix-1.0.14.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
|
|
119
|
+
txt2stix-1.0.14.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
|
|
120
|
+
txt2stix-1.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|