[FR] [DAC] Add existing mitre threat information on import (#4948)
This commit is contained in:
committed by
GitHub
parent
0e78ce360b
commit
f2fac1bc48
@@ -189,8 +189,8 @@ def rule_prompt( # noqa: PLR0912, PLR0913, PLR0915
|
||||
|
||||
# build this from technique ID
|
||||
if name == "threat":
|
||||
threat_map: list[dict[str, Any]] = []
|
||||
if not skip_errors:
|
||||
threat_map: list[dict[str, Any]] = kwargs.get("threat", [])
|
||||
if not skip_errors and not required_only:
|
||||
while click.confirm("add mitre tactic?"):
|
||||
tactic = schema_prompt("mitre tactic name", type="string", enum=tactics, is_required=True)
|
||||
technique_ids = ( # type: ignore[reportUnknownVariableType]
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "detection_rules"
|
||||
version = "1.3.14"
|
||||
version = "1.3.15"
|
||||
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
Reference in New Issue
Block a user