Skip to content

Commit c2a8771

Browse files
Merge branch 'main' into posh_esql_12
2 parents 9c1b743 + 0cd7de6 commit c2a8771

File tree

264 files changed

+9206
-3479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+9206
-3479
lines changed

CLI.md

Lines changed: 1 addition & 0 deletions

detection_rules/cli_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
DEFAULT_PREBUILT_RULES_DIRS, RuleCollection,
2323
dict_filter)
2424
from .schemas import definitions
25-
from .utils import clear_caches, rulename_to_filename
25+
from .utils import clear_caches, ensure_list_of_strings, rulename_to_filename
2626
from .config import parse_rules_config
2727

2828
RULES_CONFIG = parse_rules_config()
@@ -195,7 +195,8 @@ def rule_prompt(path=None, rule_type=None, required_only=True, save=True, verbos
195195
if name == "new_terms":
196196
# patch to allow new_term imports
197197
result = {"field": "new_terms_fields"}
198-
result["value"] = schema_prompt("new_terms_fields", value=kwargs.pop("new_terms_fields"))
198+
new_terms_fields_value = schema_prompt("new_terms_fields", value=kwargs.pop("new_terms_fields", None))
199+
result["value"] = ensure_list_of_strings(new_terms_fields_value)
199200
history_window_start_value = kwargs.pop("history_window_start", None)
200201
result["history_window_start"] = [
201202
{

detection_rules/devtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def kibana_diff(rule_id, repo, branch, threads):
416416
else:
417417
rules = rules.filter(production_filter).id_map
418418

419-
repo_hashes = {r.id: r.contents.sha256(include_version=True) for r in rules.values()}
419+
repo_hashes = {r.id: r.contents.get_hash(include_version=True) for r in rules.values()}
420420

421421
kibana_rules = {r['rule_id']: r for r in get_kibana_rules(repo=repo, branch=branch, threads=threads).values()}
422422
kibana_hashes = {r['rule_id']: dict_hash(r) for r in kibana_rules.values()}

detection_rules/eswrap.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,3 @@ def index_repo(ctx: click.Context, query, from_file, save_files):
421421
bulk_upload_docs, importable_rules_docs = ctx.invoke(generate_rules_index, query=query, save_files=save_files)
422422

423423
es_client.bulk(bulk_upload_docs)
424-
425-
426-
@es_group.group('experimental')
427-
def es_experimental():
428-
"""[Experimental] helper commands for integrating with Elasticsearch."""
429-
click.secho('\n* experimental commands are use at your own risk and may change without warning *\n')

detection_rules/etc/attack-technique-redirects.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
"T1522": "T1552.005",
131131
"T1527": "T1550.001",
132132
"T1536": "T1578.004",
133-
"T1547.011": "T1647"
133+
"T1547.011": "T1647",
134+
"T1574.002": "T1574.001"
134135
},
135-
"saved_date": "Mon Dec 9 14:04:15 2024"
136+
"saved_date": "Mon May 5 18:11:43 2025"
136137
}
-6.32 MB
Binary file not shown.
6.76 MB
Binary file not shown.
20 Bytes
Binary file not shown.
259 KB
Binary file not shown.
256 KB
Binary file not shown.

0 commit comments

Comments
 (0)