txt2stix 1.2.3__py3-none-any.whl → 1.2.5__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/bundler.py +3 -0
- txt2stix/txt2stix.py +2 -0
- {txt2stix-1.2.3.dist-info → txt2stix-1.2.5.dist-info}/METADATA +1 -1
- {txt2stix-1.2.3.dist-info → txt2stix-1.2.5.dist-info}/RECORD +7 -7
- {txt2stix-1.2.3.dist-info → txt2stix-1.2.5.dist-info}/WHEEL +0 -0
- {txt2stix-1.2.3.dist-info → txt2stix-1.2.5.dist-info}/entry_points.txt +0 -0
- {txt2stix-1.2.3.dist-info → txt2stix-1.2.5.dist-info}/licenses/LICENSE +0 -0
txt2stix/bundler.py
CHANGED
|
@@ -307,6 +307,9 @@ class txt2stixBundler:
|
|
|
307
307
|
extracted_value = extracted_dict["value"]
|
|
308
308
|
extracted_id = extracted_dict["id"]
|
|
309
309
|
|
|
310
|
+
if extracted_value is None or extracted_value == "":
|
|
311
|
+
raise MinorException(f"extracted value is empty")
|
|
312
|
+
|
|
310
313
|
indicator = self.new_indicator(extractor, stix_mapping, extracted_value)
|
|
311
314
|
# set id so it doesn''t need to be created in build_observables
|
|
312
315
|
if extracted_dict.get("indexes"):
|
txt2stix/txt2stix.py
CHANGED
|
@@ -556,6 +556,8 @@ def processing_phase(
|
|
|
556
556
|
ai_content_check_provider=None,
|
|
557
557
|
):
|
|
558
558
|
"""Process extracted `data` into the given `bundler` without invoking LLMs."""
|
|
559
|
+
for d in itertools.chain([], *(data.extractions or {}).values()):
|
|
560
|
+
d.pop("error", None)
|
|
559
561
|
try:
|
|
560
562
|
if data.content_check:
|
|
561
563
|
cc = data.content_check
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: txt2stix
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
txt2stix/__init__.py,sha256=kHCnJtzi37ivXx2STT5zT7-cUL16i86o7ywtSd3iXd4,769
|
|
2
2
|
txt2stix/attack_flow.py,sha256=VAsgNKZvPa-llUsGvbv0tYNc2Kif5pNeMoxH88-6CWc,9060
|
|
3
|
-
txt2stix/bundler.py,sha256=
|
|
3
|
+
txt2stix/bundler.py,sha256=_eyXQCOnNT65yG2zU3xSB1Xu2W2Mz0p6f9orWXAQ6oM,16872
|
|
4
4
|
txt2stix/common.py,sha256=ISnGNKqJPE1EcfhL-x_4G18mcwt1urmorkW-ru9kV-0,585
|
|
5
5
|
txt2stix/credential_checker.py,sha256=eWDP-jY3-jm8zI0JMoUcyoQZ_JqPNfCIr_HAO8nVYz0,3044
|
|
6
6
|
txt2stix/extractions.py,sha256=_tlsqYHhfAoV-PJzxRHysrX47uxCsMlSg7PQWxww1u0,2171
|
|
@@ -8,7 +8,7 @@ txt2stix/indicator.py,sha256=WTj5YIcq37XrjVregfGXvIm2mDuI20gc6IT1-0WcOn8,30629
|
|
|
8
8
|
txt2stix/lookups.py,sha256=h42YVtYUkWZm6ZPv2h5hHDHDzDs3yBqrT_T7pj2MDZI,2301
|
|
9
9
|
txt2stix/retriever.py,sha256=CwcCVER1sAPHeMojcIgdWMEJ5596tyYDf5HAJXiBdOM,7021
|
|
10
10
|
txt2stix/stix.py,sha256=9nXD9a2dCY4uaatl-mlIA1k3srwQBhGW-tUSho3iYe0,30
|
|
11
|
-
txt2stix/txt2stix.py,sha256=
|
|
11
|
+
txt2stix/txt2stix.py,sha256=lor2Xau3Jq_VXhzD6j2nLbGonG1jbgQefVcQf67TRqM,23640
|
|
12
12
|
txt2stix/utils.py,sha256=Le0VYx8n8UNpcjqwpx7Avb06qIS9_hId8yP8_PquBUs,3333
|
|
13
13
|
txt2stix/ai_extractor/__init__.py,sha256=5Tf6Co9THzytBdFEVhD-7vvT05TT3nSpltnAV1sfdoM,349
|
|
14
14
|
txt2stix/ai_extractor/anthropic.py,sha256=B5Z3nm2-w5KBhLcVJGkhNF0dn4lUo-fW_DnbOeJKA5Q,481
|
|
@@ -114,8 +114,8 @@ txt2stix/includes/lookups/threat_actor.txt,sha256=QfDO9maQuqKBgW_Sdd7VGv1SHZ9Ra-
|
|
|
114
114
|
txt2stix/includes/lookups/tld.txt,sha256=-MEgJea2NMG_KDsnc4BVvI8eRk5Dm93L-t8SGYx5wMo,8598
|
|
115
115
|
txt2stix/includes/lookups/tool.txt,sha256=HGKG6JpUE26w6ezzSxOjBkp15UpSaB7N-mZ_NU_3G7A,6
|
|
116
116
|
txt2stix/includes/tests/test_cases.yaml,sha256=vErA3c5fySeWvJ5yJ8dCTEo3ufRATASAjaF4gj4Az1M,22424
|
|
117
|
-
txt2stix-1.2.
|
|
118
|
-
txt2stix-1.2.
|
|
119
|
-
txt2stix-1.2.
|
|
120
|
-
txt2stix-1.2.
|
|
121
|
-
txt2stix-1.2.
|
|
117
|
+
txt2stix-1.2.5.dist-info/METADATA,sha256=sgEWJWwc5l7qWAg_Oqktnsw9dk4wxbPJAB758ZP2djU,15031
|
|
118
|
+
txt2stix-1.2.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
119
|
+
txt2stix-1.2.5.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
|
|
120
|
+
txt2stix-1.2.5.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
|
|
121
|
+
txt2stix-1.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|