txt2stix 1.1.9__py3-none-any.whl → 1.1.11__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/attack_flow.py CHANGED
@@ -7,7 +7,7 @@ from txt2stix import txt2stixBundler
7
7
  from txt2stix.ai_extractor.base import BaseAIExtractor
8
8
  from txt2stix.common import UUID_NAMESPACE
9
9
  from txt2stix.retriever import STIXObjectRetriever
10
- from stix2extensions.attack_action import AttackAction, AttackFlow
10
+ from stix2extensions import AttackAction, AttackFlow
11
11
  from .utils import AttackFlowList
12
12
 
13
13
  def parse_flow(report, flow: AttackFlowList, techniques, tactics):
txt2stix/bundler.py CHANGED
@@ -133,7 +133,7 @@ class txt2stixBundler:
133
133
  "phone-number": None,
134
134
  "weakness": None,
135
135
  }
136
- EXTENSION_DEFINITION_BASE_URL = "https://raw.githubusercontent.com/muchdogesec/stix2extensions/main/extension-definitions"
136
+ EXTENSION_DEFINITION_BASE_URL = "https://raw.githubusercontent.com/muchdogesec/stix2extensions/main/automodel_generated/extension-definitions"
137
137
  ATTACK_FLOW_SMO_URL = "https://github.com/muchdogesec/stix2extensions/raw/refs/heads/main/remote-definitions/attack-flow.json"
138
138
  report = None
139
139
  identity = None
@@ -881,7 +881,7 @@ ai_mitre_cwe:
881
881
  ai_sector:
882
882
  type: ai
883
883
  dogesec_web: true
884
- name: 'Attack Pattern'
884
+ name: 'Sectors'
885
885
  description: 'Detect which sectors from a fixed sector list are referenced anywhere in the input text.'
886
886
  notes: 'lookup_sector_aliases legacy extraction also exists if you cannot use AI'
887
887
  created: 2020-01-01
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txt2stix
3
- Version: 1.1.9
3
+ Version: 1.1.11
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
@@ -24,7 +24,7 @@ Requires-Dist: python-dotenv>=1.0.1
24
24
  Requires-Dist: requests>=2.32.4
25
25
  Requires-Dist: schwifty>=2024.6.1
26
26
  Requires-Dist: stix2-validator
27
- Requires-Dist: stix2extensions
27
+ Requires-Dist: stix2extensions>=2.0.1
28
28
  Requires-Dist: tld>=0.13
29
29
  Requires-Dist: tldextract>=5.1.2
30
30
  Requires-Dist: validators>=0.28.3
@@ -211,17 +211,9 @@ If you would like to understand how txt2stix works in more detail, please refer
211
211
 
212
212
  This documentation is paticularly helpful to read for those of you wanting to add your own custom extractions.
213
213
 
214
- ## Useful supporting tools
215
-
216
- * [A Quick Start Guide to txt2stix](https://www.dogesec.com/blog/txt2stix_quickstart_guide/)
217
- * [An example of how to use txt2stix with Attack Flows](https://www.dogesec.com/blog/understading_structure_attack_flows/)
218
- * [STIX2 Python Library](https://pypi.org/project/stix2/): APIs for serializing and de-serializing STIX2 JSON content
219
- * [STIX 2 Pattern Validator](https://pypi.org/project/stix2-patterns/): a tool for checking the syntax of the Cyber Threat Intelligence (CTI) STIX Pattern expressions
220
- * [STIX Viewer](https://github.com/traut/stixview): Quickly load bundles produced from your report
221
-
222
214
  ## Support
223
215
 
224
- [Minimal support provided via the DOGESEC community](https://community.dogesec.com/).
216
+ [Minimal support provided via the dogesec community](https://community.dogesec.com/).
225
217
 
226
218
  ## License
227
219
 
@@ -1,6 +1,6 @@
1
1
  txt2stix/__init__.py,sha256=Sm_VT913IFuAZ6dJEdVz3baPwC5VYtHySVfBAOUG92w,803
2
- txt2stix/attack_flow.py,sha256=Y0zl-2YVkiVhbtUu6rsrX7ujnfdDTArSkrR_WS_fSc8,9052
3
- txt2stix/bundler.py,sha256=L5s8IvNLd6VwjnTEqU71hEAR3j_Vj4NdXlufavTLuKM,16917
2
+ txt2stix/attack_flow.py,sha256=qlzI7TdYwPOXegx0hTdvVuZ_He2yQVg9eFPOpEt3huE,9038
3
+ txt2stix/bundler.py,sha256=5E6IptaAyHXdMA7JUw8yG5J2hLZ9kqQuDsWCQAC3xlY,16937
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
@@ -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=BO8C09vCa92Qys1gWSuPkek6gTOv3LqvXTtLohSM8zs,43741
77
+ txt2stix/includes/extractions/ai/config.yaml,sha256=wvuezRfzG7tVfEIPgU1mxm4d_a4D7FW5E6ldn0Ci4G8,43734
78
78
  txt2stix/includes/extractions/lookup/config.yaml,sha256=m97Rzst-Fq3sMI7KV0mEuOqlbI1-0fU6UoicqDY1vng,12494
79
79
  txt2stix/includes/extractions/pattern/config.yaml,sha256=92buge3fYegXIN1TSjLKq4PdIbKAGvDAc4CoQpR38sA,20196
80
80
  txt2stix/includes/helpers/mimetype_filename_extension_list.csv,sha256=kgozjMyp7y87CqRcoedfDwNXSLKrDgC9r9YKDYK0EbY,27593
@@ -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.1.9.dist-info/METADATA,sha256=hCoWslm4bXSWYimxA2XCozIzXP2i07nBQCc8ujVTPo4,15360
118
- txt2stix-1.1.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
119
- txt2stix-1.1.9.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
120
- txt2stix-1.1.9.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
121
- txt2stix-1.1.9.dist-info/RECORD,,
117
+ txt2stix-1.1.11.dist-info/METADATA,sha256=WgfNqcRRCIhML4mqK0qhAxSsDh1H-74Xj9X_QbRmsG4,14739
118
+ txt2stix-1.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
119
+ txt2stix-1.1.11.dist-info/entry_points.txt,sha256=x6QPtt65hWeomw4IpJ_wQUesBl1M4WOLODbhOKyWMFg,55
120
+ txt2stix-1.1.11.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
121
+ txt2stix-1.1.11.dist-info/RECORD,,