txt2detection 1.0.0__tar.gz → 1.0.2__tar.gz
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 txt2detection might be problematic. Click here for more details.
- {txt2detection-1.0.0 → txt2detection-1.0.2}/.github/workflows/run-tests.yml +14 -9
- {txt2detection-1.0.0 → txt2detection-1.0.2}/PKG-INFO +1 -1
- {txt2detection-1.0.0 → txt2detection-1.0.2}/pyproject.toml +1 -1
- {txt2detection-1.0.0 → txt2detection-1.0.2}/requirements.txt +1 -1
- {txt2detection-1.0.0 → txt2detection-1.0.2}/.env.example +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/.env.markdown +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/.github/workflows/create-release.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/.gitignore +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/LICENSE +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/README.md +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/config/detection_languages.yaml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/docs/README.md +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/docs/txt2detection.png +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/CVE-2024-56520.txt +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/EC2-exfil.txt +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/observables.txt +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-custom-tags.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-existing-related.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-master.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-author.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-date.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-description.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-level.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-license.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-status.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-tags.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-no-title.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-observables.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/files/sigma-rule-one-date.yml +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/manual-tests/README.md +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/__init__.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/requirements.txt +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_bundler.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_main.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_main_run_txt2detction.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_models.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_observables.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/tests/src/test_utils.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/__init__.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/__main__.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/__init__.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/anthropic.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/base.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/deepseek.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/gemini.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/openai.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/openrouter.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/prompts.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/ai_extractor/utils.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/bundler.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/models.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/observables.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection/utils.py +0 -0
- {txt2detection-1.0.0 → txt2detection-1.0.2}/txt2detection.py +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
name: Run Tests
|
|
2
2
|
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
|
|
3
6
|
on:
|
|
4
7
|
push:
|
|
5
8
|
branches:
|
|
6
9
|
- main
|
|
7
10
|
pull_request:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
types:
|
|
12
|
+
- opened
|
|
13
|
+
- synchronize
|
|
11
14
|
|
|
12
15
|
jobs:
|
|
13
|
-
|
|
16
|
+
test-pipeline:
|
|
14
17
|
runs-on: ubuntu-latest
|
|
15
18
|
environment: test_pipeline
|
|
16
19
|
|
|
@@ -25,29 +28,31 @@ jobs:
|
|
|
25
28
|
with:
|
|
26
29
|
python-version: "3.11"
|
|
27
30
|
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
- name: Setup environment
|
|
32
|
+
id: setup_environment
|
|
30
33
|
run: |
|
|
31
34
|
echo > .env
|
|
32
35
|
echo "INPUT_TOKEN_LIMIT=1000" >> .env
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
|
|
37
|
+
- name: Run Tests
|
|
38
|
+
id: run_tests
|
|
35
39
|
run: |
|
|
36
40
|
set -a;
|
|
37
41
|
source .env;
|
|
38
42
|
set +a;
|
|
39
43
|
pip install -r tests/src/requirements.txt
|
|
40
44
|
pip install -e .[llms]
|
|
41
|
-
|
|
42
45
|
pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
|
|
43
46
|
|
|
44
47
|
- name: Upload coverage reports to Codecov
|
|
48
|
+
id: upload_unit_test_coverage
|
|
45
49
|
if: ${{ !cancelled() }}
|
|
46
50
|
uses: codecov/codecov-action@v5
|
|
47
51
|
with:
|
|
48
52
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
49
53
|
|
|
50
54
|
- name: Upload test results to Codecov
|
|
55
|
+
id: upload_unit_test_results
|
|
51
56
|
if: ${{ !cancelled() }}
|
|
52
57
|
uses: codecov/test-results-action@v1
|
|
53
58
|
with:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: txt2detection
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: A command line tool that takes a txt file containing threat intelligence and turns it into a detection rule.
|
|
5
5
|
Project-URL: Homepage, https://github.com/muchdogesec/txt2detection
|
|
6
6
|
Project-URL: Issues, https://github.com/muchdogesec/txt2detection/issues
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|