arango-cve-processor 1.4.14__tar.gz → 1.4.16__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.
- arango_cve_processor-1.4.16/.github/workflows/dependabot-automerge.yml +22 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/PKG-INFO +2 -2
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/base_manager.py +8 -2
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cpe_match.py +14 -5
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/pyproject.toml +1 -1
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/requirements.txt +5 -5
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/cli/test_main.py +4 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_base.py +13 -1
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cpematch.py +73 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_kev_cisa.py +1 -1
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_kev_vulncheck.py +39 -2
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.env.example +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.env.markdown +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.github/workflows/create-release.yml +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.github/workflows/run-tests.yml +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.gitignore +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/LICENSE +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/README.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/__init__.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/__main__.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/config.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/__init__.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_attack.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_capec.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_cwe.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_kev.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_kev_vulncheck.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/__init__.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/cpe.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/cpe_db.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/nvd.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/retriever.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/utils.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/README.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/arango_cve_processor-structure.jpg +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/arango_cve_processor.png +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cpematch.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-attack.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-capec.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-cwe.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-epss.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-kev.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/cve-vulncheck-kev.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/vulmatch.png +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/NOTES.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/README.md +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/__init__.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/attack-enterprise-objects.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/base_cves.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/base_cves_update_1.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/base_cves_update_2.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/capec-objects.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/cves.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/cwe-objects.json +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/requirements.txt +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/tests.env +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/conftest.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_attack.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_capec.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_cwe.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/tools/test_cpe.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/tools/test_nvd.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/tools/test_utils.py +0 -0
- {arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/utils.py +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Dependabot approval and auto-merge
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ["Run Tests"]
|
|
6
|
+
types: [completed]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
dependabot:
|
|
14
|
+
if: >-
|
|
15
|
+
github.event.workflow_run.conclusion == 'success' &&
|
|
16
|
+
github.event.workflow_run.event == 'pull_request' &&
|
|
17
|
+
github.event.workflow_run.pull_requests[0] != null
|
|
18
|
+
uses: muchdogesec/.github/.github/workflows/dependabot-automerge.yml@main
|
|
19
|
+
with:
|
|
20
|
+
pr-number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
|
21
|
+
head-sha: ${{ github.event.workflow_run.head_sha }}
|
|
22
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: arango_cve_processor
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.16
|
|
4
4
|
Summary: A small python script that enriches Vulnerability STIX Objects with other intel
|
|
5
5
|
Project-URL: Homepage, https://github.com/muchdogesec/arango_cve_processor
|
|
6
6
|
Project-URL: Issues, https://github.com/muchdogesec/arango_cve_processor/issues
|
|
@@ -142,7 +142,10 @@ class STIXRelationManager:
|
|
|
142
142
|
objects, self.edge_collection
|
|
143
143
|
)
|
|
144
144
|
self.arango.update_is_latest_several_chunked(
|
|
145
|
-
inserted_ids,
|
|
145
|
+
inserted_ids,
|
|
146
|
+
self.edge_collection,
|
|
147
|
+
self.edge_collection,
|
|
148
|
+
chunk_size=self.UPLOAD_CHUNK_SIZE,
|
|
146
149
|
)
|
|
147
150
|
if not self.ignore_embedded_relationships:
|
|
148
151
|
self.create_embedded_relationships(
|
|
@@ -192,7 +195,10 @@ class STIXRelationManager:
|
|
|
192
195
|
embedded_relationships, self.edge_collection
|
|
193
196
|
)
|
|
194
197
|
self.arango.update_is_latest_several_chunked(
|
|
195
|
-
inserted_ids,
|
|
198
|
+
inserted_ids,
|
|
199
|
+
self.edge_collection,
|
|
200
|
+
self.edge_collection,
|
|
201
|
+
chunk_size=self.UPLOAD_CHUNK_SIZE,
|
|
196
202
|
)
|
|
197
203
|
return embedded_relationships
|
|
198
204
|
|
|
@@ -81,13 +81,22 @@ class CpeMatchUpdateManager(STIXRelationManager, relationship_note="cpematch"):
|
|
|
81
81
|
retval = []
|
|
82
82
|
for x_cpe_item in itertools.chain(*indicator['x_cpes'].values()):
|
|
83
83
|
if match_data := self.groupings.get(x_cpe_item['matchCriteriaId']):
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
try:
|
|
85
|
+
objects = cpe.parse_objects_for_criteria(match_data)
|
|
86
|
+
grouping_object = objects[0]
|
|
87
|
+
relationships = cpe.relate_indicator(grouping_object, indicator)
|
|
88
|
+
deprecations = cpe.parse_deprecations(objects[1:])
|
|
89
|
+
except ValueError as exc:
|
|
90
|
+
logging.error(
|
|
91
|
+
"skipping unresolvable CPE match %s for %s: %s",
|
|
92
|
+
x_cpe_item["matchCriteriaId"],
|
|
93
|
+
indicator["name"],
|
|
94
|
+
exc,
|
|
95
|
+
)
|
|
96
|
+
continue
|
|
88
97
|
for r in relationships:
|
|
89
98
|
r['_from'] = indicator['_id']
|
|
90
99
|
retval.extend(objects)
|
|
91
100
|
retval.extend(relationships)
|
|
92
101
|
retval.extend(deprecations)
|
|
93
|
-
return stix2python(retval)
|
|
102
|
+
return stix2python(retval)
|
|
@@ -8,7 +8,7 @@ aiofiles==25.1.0
|
|
|
8
8
|
# via pypdl
|
|
9
9
|
aiohappyeyeballs==2.6.2
|
|
10
10
|
# via aiohttp
|
|
11
|
-
aiohttp==3.14.
|
|
11
|
+
aiohttp==3.14.4
|
|
12
12
|
# via pypdl
|
|
13
13
|
aiosignal==1.4.0
|
|
14
14
|
# via aiohttp
|
|
@@ -23,7 +23,7 @@ attrs==23.2.0
|
|
|
23
23
|
# aiohttp
|
|
24
24
|
# jsonschema
|
|
25
25
|
# referencing
|
|
26
|
-
certifi==
|
|
26
|
+
certifi==2026.10.18
|
|
27
27
|
# via requests
|
|
28
28
|
charset-normalizer==3.3.2
|
|
29
29
|
# via requests
|
|
@@ -44,7 +44,7 @@ jsonschema==4.22.0 ; python_version >= "3.8"
|
|
|
44
44
|
# stix2arango
|
|
45
45
|
jsonschema-specifications==2023.12.1
|
|
46
46
|
# via jsonschema
|
|
47
|
-
multidict==6.
|
|
47
|
+
multidict==6.9.1
|
|
48
48
|
# via
|
|
49
49
|
# aiohttp
|
|
50
50
|
# yarl
|
|
@@ -58,7 +58,7 @@ pydantic==2.13.4
|
|
|
58
58
|
# via stix2extensions
|
|
59
59
|
pydantic-core==2.46.4
|
|
60
60
|
# via pydantic
|
|
61
|
-
pyjwt==2.
|
|
61
|
+
pyjwt==2.15.0
|
|
62
62
|
# via python-arango
|
|
63
63
|
pypdl==1.5.7
|
|
64
64
|
# via arango_cve_processor (pyproject.toml)
|
|
@@ -122,7 +122,7 @@ typing-extensions==4.15.0
|
|
|
122
122
|
# typing-inspection
|
|
123
123
|
typing-inspection==0.4.2
|
|
124
124
|
# via pydantic
|
|
125
|
-
urllib3==2.
|
|
125
|
+
urllib3==2.8.0
|
|
126
126
|
# via
|
|
127
127
|
# python-arango
|
|
128
128
|
# requests
|
|
@@ -54,6 +54,10 @@ def test_run_all(acp_processor, monkeypatch):
|
|
|
54
54
|
"arango_cve_processor.__main__.import_default_objects"
|
|
55
55
|
) as mock_import_defaults,
|
|
56
56
|
patch("arango_cve_processor.__main__.create_indexes") as mock_create_indexes,
|
|
57
|
+
patch(
|
|
58
|
+
"arango_cve_processor.managers.cve_kev_vulncheck."
|
|
59
|
+
"VulnCheckKevManager.verify_auth"
|
|
60
|
+
),
|
|
57
61
|
):
|
|
58
62
|
processed_modes = []
|
|
59
63
|
for v in RELATION_MANAGERS.values():
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_base.py
RENAMED
|
@@ -86,6 +86,7 @@ def test_upload_vertex_objects(processor):
|
|
|
86
86
|
|
|
87
87
|
def test_upload_edge_objects(processor):
|
|
88
88
|
manager = STIXRelationManager(processor)
|
|
89
|
+
manager.UPLOAD_CHUNK_SIZE = 1
|
|
89
90
|
input_edges = [
|
|
90
91
|
{
|
|
91
92
|
"source_ref": "src1",
|
|
@@ -116,9 +117,20 @@ def test_upload_edge_objects(processor):
|
|
|
116
117
|
type(processor),
|
|
117
118
|
"insert_several_objects_chunked",
|
|
118
119
|
side_effect=processor.insert_several_objects_chunked,
|
|
119
|
-
) as mock_insert
|
|
120
|
+
) as mock_insert, patch.object(
|
|
121
|
+
type(processor),
|
|
122
|
+
"update_is_latest_several_chunked",
|
|
123
|
+
wraps=processor.update_is_latest_several_chunked,
|
|
124
|
+
) as mock_update_versions:
|
|
120
125
|
manager.upload_edge_data(input_edges)
|
|
121
126
|
|
|
127
|
+
mock_update_versions.assert_called_once_with(
|
|
128
|
+
["relationship-1", "relationship-2"],
|
|
129
|
+
manager.edge_collection,
|
|
130
|
+
manager.edge_collection,
|
|
131
|
+
chunk_size=1,
|
|
132
|
+
)
|
|
133
|
+
|
|
122
134
|
manager.get_edge_ids.assert_called_once_with(
|
|
123
135
|
["tgt1", "tgt2", "src2"], "nvd_cve_vertex_collection"
|
|
124
136
|
)
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cpematch.py
RENAMED
|
@@ -188,6 +188,79 @@ def test_relate_single(cpematch_manager):
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
|
|
191
|
+
def test_relate_single_skips_one_unresolvable_match(cpematch_manager, caplog):
|
|
192
|
+
indicator = {
|
|
193
|
+
"_id": "nvd_cve_vertex_collection/indicator--broken+2025-09-12T11:25:34.563706Z",
|
|
194
|
+
"created": "2025-01-02T15:15:18.650Z",
|
|
195
|
+
"external_references": [
|
|
196
|
+
{
|
|
197
|
+
"source_name": "cve",
|
|
198
|
+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-45830",
|
|
199
|
+
"external_id": "CVE-2022-45830",
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"id": "indicator--broken",
|
|
203
|
+
"modified": "2025-06-05T21:01:15.860Z",
|
|
204
|
+
"name": "CVE-2022-45830",
|
|
205
|
+
"x_cpes": {
|
|
206
|
+
"not_vulnerable": [],
|
|
207
|
+
"vulnerable": [
|
|
208
|
+
{
|
|
209
|
+
"criteria": "cpe:2.3:a:broken:broken:*:*:*:*:*:*:*:*",
|
|
210
|
+
"matchCriteriaId": "BROKEN-SWID",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"criteria": "cpe:2.3:a:good:good:*:*:*:*:*:*:*:*",
|
|
214
|
+
"matchCriteriaId": "GOOD-SWID",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
}
|
|
219
|
+
cpematch_manager.groupings = {
|
|
220
|
+
"BROKEN-SWID": {"matchCriteriaId": "BROKEN-SWID"},
|
|
221
|
+
"GOOD-SWID": {"matchCriteriaId": "GOOD-SWID"},
|
|
222
|
+
}
|
|
223
|
+
grouping = {
|
|
224
|
+
"id": "grouping--good",
|
|
225
|
+
"name": "good",
|
|
226
|
+
"external_references": [{"external_id": "GOOD-SWID"}],
|
|
227
|
+
}
|
|
228
|
+
software = {"id": "software--good"}
|
|
229
|
+
|
|
230
|
+
with (
|
|
231
|
+
patch(
|
|
232
|
+
"arango_cve_processor.managers.cpe_match.cpe.parse_objects_for_criteria",
|
|
233
|
+
side_effect=[ValueError("SWID missing from NVD"), [grouping, software]],
|
|
234
|
+
),
|
|
235
|
+
patch(
|
|
236
|
+
"arango_cve_processor.managers.cpe_match.cpe.relate_indicator",
|
|
237
|
+
return_value=[{"type": "relationship", "id": "relationship--good"}],
|
|
238
|
+
),
|
|
239
|
+
patch(
|
|
240
|
+
"arango_cve_processor.managers.cpe_match.cpe.parse_deprecations",
|
|
241
|
+
return_value=[{"type": "relationship", "id": "relationship--deprecation"}],
|
|
242
|
+
),
|
|
243
|
+
patch(
|
|
244
|
+
"arango_cve_processor.managers.cpe_match.stix2python",
|
|
245
|
+
side_effect=lambda objects: objects,
|
|
246
|
+
),
|
|
247
|
+
):
|
|
248
|
+
objects = cpematch_manager.relate_single(indicator)
|
|
249
|
+
|
|
250
|
+
assert objects == [
|
|
251
|
+
grouping,
|
|
252
|
+
software,
|
|
253
|
+
{
|
|
254
|
+
"type": "relationship",
|
|
255
|
+
"id": "relationship--good",
|
|
256
|
+
"_from": indicator["_id"],
|
|
257
|
+
},
|
|
258
|
+
{"type": "relationship", "id": "relationship--deprecation"},
|
|
259
|
+
]
|
|
260
|
+
assert "skipping unresolvable CPE match BROKEN-SWID" in caplog.text
|
|
261
|
+
assert indicator["name"] in caplog.text
|
|
262
|
+
|
|
263
|
+
|
|
191
264
|
@pytest.fixture
|
|
192
265
|
def mocked_updates():
|
|
193
266
|
c1 = {
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_kev_cisa.py
RENAMED
|
@@ -205,7 +205,7 @@ def test_relate_single(cisa_kev_manager, patched_retriever):
|
|
|
205
205
|
]
|
|
206
206
|
|
|
207
207
|
|
|
208
|
-
def test_run_all(cisa_kev_manager):
|
|
208
|
+
def test_run_all(cisa_kev_manager, patched_retriever):
|
|
209
209
|
cisa_kev_manager.process()
|
|
210
210
|
query = "FOR d IN nvd_cve_vertex_collection RETURN [d.id, d.x_opencti_cisa_kev]"
|
|
211
211
|
cves_has_kev_map = dict(cisa_kev_manager.arango.execute_raw_query(query))
|
|
@@ -1,18 +1,52 @@
|
|
|
1
|
+
from collections import ChainMap
|
|
2
|
+
from unittest.mock import Mock, patch
|
|
3
|
+
|
|
1
4
|
import pytest
|
|
2
5
|
|
|
3
6
|
from arango_cve_processor.managers.cve_kev_vulncheck import VulnCheckKevManager
|
|
4
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
VULNCHECK_KEV = {
|
|
10
|
+
"cve": ["CVE-2025-5086"],
|
|
11
|
+
"cwes": [],
|
|
12
|
+
"shortDescription": "A deserialization vulnerability could lead to remote code execution.",
|
|
13
|
+
"vulnerabilityName": "DELMIA Apriso Deserialization Vulnerability",
|
|
14
|
+
"required_action": "Apply vendor mitigations.",
|
|
15
|
+
"knownRansomwareCampaignUse": "Unknown",
|
|
16
|
+
"date_added": "2025-09-11T00:00:00Z",
|
|
17
|
+
"_timestamp": "2025-09-16T10:25:34.044567372Z",
|
|
18
|
+
"vulncheck_xdb": [],
|
|
19
|
+
"vulncheck_reported_exploitation": [],
|
|
20
|
+
}
|
|
5
21
|
|
|
6
22
|
|
|
7
23
|
@pytest.fixture
|
|
8
24
|
def vulncheck_kev_manager(acp_processor):
|
|
9
|
-
|
|
25
|
+
with patch.object(VulnCheckKevManager, "verify_auth"):
|
|
26
|
+
manager = VulnCheckKevManager(acp_processor)
|
|
10
27
|
yield manager
|
|
11
28
|
|
|
12
29
|
|
|
13
30
|
def test_get_all_kevs(vulncheck_kev_manager):
|
|
31
|
+
response = Mock()
|
|
32
|
+
response.json.return_value = {
|
|
33
|
+
"_meta": {"total_documents": 1, "last_item": 1},
|
|
34
|
+
"data": [VULNCHECK_KEV],
|
|
35
|
+
}
|
|
36
|
+
vulncheck_kev_manager.session.get = Mock(return_value=response)
|
|
37
|
+
|
|
14
38
|
kevs = ChainMap(*vulncheck_kev_manager.get_all_kevs())
|
|
39
|
+
|
|
15
40
|
assert "CVE-2025-5086" in kevs
|
|
41
|
+
vulncheck_kev_manager.session.get.assert_called_once_with(
|
|
42
|
+
"https://api.vulncheck.com/v3/index/vulncheck-kev",
|
|
43
|
+
params={
|
|
44
|
+
"limit": 1500,
|
|
45
|
+
"lastModStartDate": "1970-01-01",
|
|
46
|
+
"pubStartDate": "1970-01-01",
|
|
47
|
+
"page": 1,
|
|
48
|
+
},
|
|
49
|
+
)
|
|
16
50
|
|
|
17
51
|
|
|
18
52
|
def test_relate_single(vulncheck_kev_manager, patched_retriever):
|
|
@@ -159,6 +193,9 @@ def test_relate_single(vulncheck_kev_manager, patched_retriever):
|
|
|
159
193
|
|
|
160
194
|
|
|
161
195
|
def test_run_all(vulncheck_kev_manager):
|
|
196
|
+
vulncheck_kev_manager.get_all_kevs = Mock(
|
|
197
|
+
return_value=[{"CVE-2025-5086": VULNCHECK_KEV}]
|
|
198
|
+
)
|
|
162
199
|
vulncheck_kev_manager.process()
|
|
163
200
|
query = "FOR d IN nvd_cve_vertex_collection RETURN [d.id, d.x_opencti_cisa_kev]"
|
|
164
201
|
cves_has_kev_map = dict(vulncheck_kev_manager.arango.execute_raw_query(query))
|
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/.github/workflows/create-release.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/__init__.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_cwe.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/managers/cve_kev.py
RENAMED
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/__init__.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/cpe.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/cpe_db.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/nvd.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/retriever.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/arango_cve_processor/tools/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/docs/arango_cve_processor-structure.jpg
RENAMED
|
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
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/base_cves_update_1.json
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/files/base_cves_update_2.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_attack.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_capec.py
RENAMED
|
File without changes
|
{arango_cve_processor-1.4.14 → arango_cve_processor-1.4.16}/tests/unit/managers/test_cve_cwe.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|