txt2stix 1.2.1__py3-none-any.whl → 1.2.3__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/txt2stix.py CHANGED
@@ -461,17 +461,21 @@ def run_txt2stix(
461
461
  # First, perform extraction-phase (LLM and extractor calls). This does not
462
462
  # modify the provided bundler so the results can be saved and replayed.
463
463
  # skip extraction phase if txt2stix_data is passed
464
- txt2stix_data = txt2stix_data or extraction_phase(
465
- preprocessed_text,
466
- extractors_map,
467
- ai_content_check_provider=ai_content_check_provider,
468
- input_token_limit=input_token_limit,
469
- ai_settings_extractions=ai_settings_extractions,
470
- ai_settings_relationships=ai_settings_relationships,
471
- relationship_mode=relationship_mode,
472
- ignore_extraction_boundary=ignore_extraction_boundary,
473
- ai_extract_if_no_incidence=ai_extract_if_no_incidence,
474
- )
464
+ if not txt2stix_data:
465
+ logging.info("=== Extraction Phase ===")
466
+ txt2stix_data = extraction_phase(
467
+ preprocessed_text,
468
+ extractors_map,
469
+ ai_content_check_provider=ai_content_check_provider,
470
+ input_token_limit=input_token_limit,
471
+ ai_settings_extractions=ai_settings_extractions,
472
+ ai_settings_relationships=ai_settings_relationships,
473
+ relationship_mode=relationship_mode,
474
+ ignore_extraction_boundary=ignore_extraction_boundary,
475
+ ai_extract_if_no_incidence=ai_extract_if_no_incidence,
476
+ )
477
+ else:
478
+ logging.info("=== Skipping Extraction Phase (replaying saved data) ===")
475
479
 
476
480
  # Then, process the extracted data into the bundler (no LLM calls).
477
481
  processing_phase(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txt2stix
3
- Version: 1.2.1
3
+ Version: 1.2.3
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=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=eUL0pynQXruJRDvqs-LQ-dspDITx5tFDnTPEgCRQApk,23348
11
+ txt2stix/txt2stix.py,sha256=SIufADnIfptZmA-HyQoRsWP7MKiYLFWPyKpltQGjej4,23541
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.1.dist-info/METADATA,sha256=VVAo2wu_82WMorGzQ9GunxNn1jksDMyL3zarumW8L_M,15031
118
- txt2stix-1.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
119
- txt2stix-1.2.1.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
120
- txt2stix-1.2.1.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
121
- txt2stix-1.2.1.dist-info/RECORD,,
117
+ txt2stix-1.2.3.dist-info/METADATA,sha256=5-bNjjTW0FyjjQcT9u7TBfPUyBJU5RLDlS9i5kCsTh0,15031
118
+ txt2stix-1.2.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
119
+ txt2stix-1.2.3.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
120
+ txt2stix-1.2.3.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
121
+ txt2stix-1.2.3.dist-info/RECORD,,