AI Slop Code RIsk Monitor

elastic/detection-rules

15.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for elastic/detection-rules, a Python project with 2,718 GitHub stars. SynthScan examined 575,287 lines of code across 3114 source files, recording 2394 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 15.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

15.9
Adjusted Signal
15.9
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
2.7K
Stars
Python
Language
575.3K
Lines of Code
3.1K
Files
2.4K
Pattern Hits
2026-10-12
Scan Date
0.54
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 5.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 625 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 36 finding(s).

Agent Over-Engineering Ratio 53.8/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 2179 finding(s).

PR Review Velocity Impact 61.3/100 · HIGH

Which changes need focused human review? 2394 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1690MEDIUM 38LOW 666

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2394 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition1678 hits · 8390 pts
SeverityFileLineSnippetContext
HIGHtests/test_esql_parser.py0from logs-endpoint.events.process-* metadata _id, _version, _index | where kql(STRING
HIGH…form/command_and_control_wget_activity_llm_triage.toml0from logs-endpoint.events.process-* metadata _id, _version, _index | where kql(STRING
HIGH…form/command_and_control_curl_activity_llm_triage.toml0from logs-endpoint.events.process-* metadata _id, _version, _index | where kql(STRING
HIGH…ommand_and_control_curl_download_from_npm_install.toml0from logs-endpoint.events.process-* metadata _id, _version, _index | where kql(STRING
HIGH…/credential_access_entra_id_risk_detection_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ing_block/collection_microsoft_purview_dlp_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…initial_access_microsoft_air_investigation_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…vasion_microsoft_security_compliance_admin_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…cess_microsoft_purview_security_compliance_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…/collection_microsoft_purview_insider_risk_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…k/initial_access_microsoft_defender_alerts_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ess_microsoft_defender_threat_intelligence_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…nitial_access_microsoft_quarantine_hygiene_signal.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ge_escalation_endgame_process_injection_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ge_escalation_endgame_cred_manipulation_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGHrules/promotions/endgame_ransomware_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…es/promotions/endgame_adversary_behavior_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGHrules/promotions/endgame_malware_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…es/promotions/execution_endgame_exploit_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGHrules/promotions/endgame_malware_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ege_escalation_endgame_permission_theft_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…lege_escalation_endgame_permission_theft_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ege_escalation_endgame_process_injection_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…ege_escalation_endgame_cred_manipulation_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGHrules/promotions/endgame_ransomware_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…s/credential_access_endgame_cred_dumping_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…/credential_access_endgame_cred_dumping_prevented.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…les/promotions/execution_endgame_exploit_detected.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGHrules/promotions/external_alerts.toml0## setup ### additional notes for information on troubleshooting the maximum alerts warning please refer to this [guide]STRING
HIGH…k/command_and_control_certutil_network_connection.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…persistence_ml_windows_anomalous_process_creation.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…es/ml/persistence_ml_rare_process_by_host_windows.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…les/windows/defense_evasion_masquerading_werfault.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…startup_folder_file_written_by_suspicious_process.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ege_escalation_service_control_spawned_script_int.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/execution_via_compiled_html_file.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…/windows/defense_evasion_execution_lolbas_wuauclt.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ilege_escalation_unusual_parentchild_relationship.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…nd_and_control_remote_file_copy_desktopimgdownldr.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…egister_server_program_connecting_to_the_internet.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…defense_evasion_execution_msbuild_started_renamed.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/lateral_movement_remote_services.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ows/defense_evasion_suspicious_zoom_child_process.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…es/windows/persistence_system_shells_via_services.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/execution_from_unusual_path_cmdline.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/command_and_control_certreq_postdata.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…es/windows/command_and_control_common_webservices.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…teral_movement_execution_via_file_shares_sequence.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ows/defense_evasion_suspicious_short_program_name.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…se_evasion_network_connection_from_windows_binary.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…es/windows/defense_evasion_from_unusual_directory.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…s_persistence_network_logon_provider_modification.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…s/credential_access_kerberoasting_unusual_process.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ding_the_hidden_file_attribute_with_via_attribexe.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/persistence_time_provider_mod.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…elp_executable_program_connecting_to_the_internet.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…dows/defense_evasion_suspicious_certutil_commands.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…indows/discovery_privileged_localgroup_membership.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGH…ows/credential_access_lsass_memdump_handle_access.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
HIGHrules/windows/persistence_startup_folder_scripts.toml0select description, display_name, name, path, pid, service_type, start_type, status, user_account from services where noSTRING
1618 more matches not shown…
Hyper-Verbose Identifiers443 hits · 400 pts
SeverityFileLineSnippetContext
LOWdetection_rules/misc.py198def load_current_package_version() -> str:CODE
LOWdetection_rules/misc.py291def get_default_elasticsearch_client() -> Elasticsearch:CODE
LOWdetection_rules/misc.py318def get_default_kibana_client() -> Kibana:CODE
LOWdetection_rules/mixins.py42def get_dataclass_required_fields(cls: Any) -> list[str]:CODE
LOWdetection_rules/mixins.py250 def validate_field_compatibility(self, data: dict[str, Any], **_: dict[str, Any]) -> None:CODE
LOWdetection_rules/cli_utils.py33def _get_rule_prompt_required_fields(CODE
LOWdetection_rules/exception.py277def parse_exceptions_results_from_api(CODE
LOWdetection_rules/action_connector.py60 def from_action_connector_dict(CODE
LOWdetection_rules/action_connector.py126def parse_action_connector_results_from_api(CODE
LOWdetection_rules/action_connector.py141def build_action_connector_objects( # noqa: PLR0913, PLR0917CODE
LOWdetection_rules/index_mappings.py59def esql_indices_covered_by_packages(CODE
LOWdetection_rules/index_mappings.py128def collect_known_esql_index_patterns(stream_keys: set[str], indices: list[str]) -> set[str]:CODE
LOWdetection_rules/index_mappings.py147def assert_known_esql_indices(indices: list[str], stream_keys: set[str]) -> list[str]:CODE
LOWdetection_rules/index_mappings.py173def validate_offline_esql_from_indices(CODE
LOWdetection_rules/stack_emit.py114def _atlas_entries_from_mappings(context: EmitContext) -> list[dict[str, Any]]:CODE
LOWdetection_rules/stack_emit.py124def _apply_related_integrations_gte(obj: dict[str, Any], stack: Version, context: EmitContext) -> None:CODE
LOWdetection_rules/config.py410def load_current_package_version() -> str:CODE
LOWdetection_rules/esql.py46def normalize_dataset_package(package: str) -> str:CODE
LOWdetection_rules/esql.py73def get_esql_query_event_dataset_integrations(query: str, tree: Any | None = None) -> list[EventDataset]:CODE
LOWdetection_rules/esql.py134def infer_packages_from_indices(indices: list[str]) -> list[str]:CODE
LOWdetection_rules/esql.py154def collect_index_field_schemas(indices: list[str]) -> dict[str, Any]:CODE
LOWdetection_rules/esql.py172def collect_lookup_index_field_schemas(indices: list[str]) -> dict[str, dict[str, Any]]:CODE
LOWdetection_rules/esql.py219def collect_package_fields_for_indices(CODE
LOWdetection_rules/esql.py273def get_esql_query_source_groups(query: str, tree: Any | None = None) -> list[EsqlSourceGroup]:CODE
LOWdetection_rules/esql.py302def get_esql_query_source_patterns(query: str, tree: Any | None = None) -> list[tuple[str, str]]:CODE
LOWdetection_rules/esql.py322def get_esql_lookup_join_targets(query: str, tree: Any | None = None) -> list[str]:CODE
LOWdetection_rules/esql.py337def replace_esql_query_sources(query: str, replacements: dict[tuple[int, int], str]) -> str:CODE
LOWdetection_rules/rule_loader.py142def update_metadata_from_file(rule_path: Path, fields_to_update: dict[str, Any]) -> dict[str, Any]:CODE
LOWdetection_rules/docs.py731def convert_markdown_to_asciidoc(text: str) -> str:CODE
LOWdetection_rules/docs.py922 def generate_current_rule_summary(self) -> None:CODE
LOWdetection_rules/docs.py1030 def generate_downloadable_updates_summary(self) -> None:STRING
LOWdetection_rules/remote_validation.py252 def validate_machine_learning(_: Any, __: TOMLRuleContents) -> dict[str, str]:CODE
LOWdetection_rules/eswrap.py47def parse_unique_field_results(CODE
LOWdetection_rules/rule_validators.py108def deduplicate_validation_targets(targets: list[ValidationTarget]) -> list[ValidationTarget]:CODE
LOWdetection_rules/rule_validators.py190def custom_base_parse_decorator(func: Callable[..., Any]) -> Callable[..., Any]:CODE
LOWdetection_rules/rule_validators.py241 def _prepare_integration_schema(CODE
LOWdetection_rules/rule_validators.py378 def validate_query_text_with_schema(CODE
LOWdetection_rules/rule_validators.py458 def _build_synthetic_sequence_from_subquery(self, subquery: "ast.SubqueryBy") -> str:CODE
LOWdetection_rules/rule_validators.py485 def add_accumulated_integration_targets(query_text: str, packaged: list[dict[str, Any]], context: str) -> None:CODE
LOWdetection_rules/rule_validators.py720 def validate_query_text_with_schema( # noqa: PLR0913, PLR0917CODE
LOWdetection_rules/rule_validators.py783 def validate_rule_type_configurations(self, data: EQLRuleData, meta: RuleMeta) -> tuple[list[str], bool]:CODE
LOWdetection_rules/rule_validators.py814def _warm_esql_offline_caches() -> None:CODE
LOWdetection_rules/rule_validators.py823def _integration_fields_for_indices( # noqa: PLR0913CODE
LOWdetection_rules/rule_validators.py861def _lookup_join_schemas_for_stack(CODE
LOWdetection_rules/rule_validators.py893def _schema_dict_for_from_indices( # noqa: PLR0913, PLR0917CODE
LOWdetection_rules/rule_validators.py1033 def _validate_nested_queries_with_schema( # noqa: PLR0912, PLR0913, PLR0917CODE
LOWdetection_rules/rule_validators.py1236 def validate_query_text_with_schema( # noqa: PLR0911, PLR0912, PLR0913, PLR0917CODE
LOWdetection_rules/rule_validators.py1320 def _unknown_field_from_error(exc: Exception) -> str | None:CODE
LOWdetection_rules/custom_schemas.py96def update_auto_generated_schema(index: str, field: str, field_type: str | None = None) -> None:CODE
LOWdetection_rules/attack.py61def get_attack_file_path_for_version(version: str) -> Path:CODE
LOWdetection_rules/attack.py197def build_attack_lookups_for_version(version: str) -> AttackLookups:CODE
LOWdetection_rules/attack.py331def build_redirected_techniques_map(threads: int = 50) -> dict[str, Any]:CODE
LOWdetection_rules/attack.py350def refresh_redirected_techniques_map(threads: int = 50) -> None:CODE
LOWdetection_rules/attack.py521def build_identity_version_map(framework: str, source_version: str, target_version: str) -> dict[str, Any]:CODE
LOWdetection_rules/attack.py597def convert_threat_to_version( # noqa: PLR0912, PLR0913, PLR0915CODE
LOWdetection_rules/attack.py783def resolve_output_threat_version(stack: Version | str | None = None) -> tuple[str, str]:CODE
LOWdetection_rules/ml.py176 def get_all_existing_model_files(self) -> list[dict[str, Any]]:CODE
LOWdetection_rules/ml.py228 def remove_ml_scripts_pipelines(cls, es_client: Elasticsearch, ml_type: list[str]) -> dict[str, Any]:CODE
LOWdetection_rules/ml.py272def get_ml_model_manifests_by_model_id(repo_name: str = "elastic/detection-rules") -> dict[str, ReleaseManifest]:CODE
LOWdetection_rules/beats.py23def _decompress_and_save_schema(url: str, release_name: str) -> None:CODE
383 more matches not shown…
Deep Nesting90 hits · 74 pts
SeverityFileLineSnippetContext
LOWdetection_rules/misc.py363CODE
LOWdetection_rules/misc.py366CODE
LOWdetection_rules/misc.py382CODE
LOWdetection_rules/cli_utils.py47CODE
LOWdetection_rules/cli_utils.py257CODE
LOWdetection_rules/exception.py277CODE
LOWdetection_rules/exception.py309CODE
LOWdetection_rules/kbwrap.py273CODE
LOWdetection_rules/kbwrap.py556CODE
LOWdetection_rules/action_connector.py141CODE
LOWdetection_rules/config.py250CODE
LOWdetection_rules/config.py157CODE
LOWdetection_rules/docs.py63CODE
LOWdetection_rules/docs.py882CODE
LOWdetection_rules/eswrap.py47CODE
LOWdetection_rules/eswrap.py184CODE
LOWdetection_rules/eswrap.py251CODE
LOWdetection_rules/rule_validators.py108CODE
LOWdetection_rules/rule_validators.py152CODE
LOWdetection_rules/rule_validators.py465CODE
LOWdetection_rules/rule_validators.py720CODE
LOWdetection_rules/rule_validators.py992CODE
LOWdetection_rules/rule_validators.py1011CODE
LOWdetection_rules/rule_validators.py1033CODE
LOWdetection_rules/rule_validators.py1093CODE
LOWdetection_rules/rule_validators.py1352CODE
LOWdetection_rules/rule_validators.py485CODE
LOWdetection_rules/version_lock.py236CODE
LOWdetection_rules/custom_schemas.py24CODE
LOWdetection_rules/attack.py145CODE
LOWdetection_rules/attack.py597CODE
LOWdetection_rules/ml.py272CODE
LOWdetection_rules/ml.py228CODE
LOWdetection_rules/beats.py23CODE
LOWdetection_rules/beats.py104CODE
LOWdetection_rules/beats.py261CODE
LOWdetection_rules/navigator.py251CODE
LOWdetection_rules/devtools.py502CODE
LOWdetection_rules/devtools.py1121CODE
LOWdetection_rules/devtools.py1667CODE
LOWdetection_rules/devtools.py1763CODE
LOWdetection_rules/rule.py657CODE
LOWdetection_rules/rule.py711CODE
LOWdetection_rules/rule.py1065CODE
LOWdetection_rules/rule.py1589CODE
LOWdetection_rules/rule.py1630CODE
LOWdetection_rules/rule.py1730CODE
LOWdetection_rules/rule.py1777CODE
LOWdetection_rules/utils.py73CODE
LOWdetection_rules/rule_formatter.py60CODE
LOWdetection_rules/rule_formatter.py109CODE
LOWdetection_rules/rule_formatter.py221CODE
LOWdetection_rules/rule_formatter.py112CODE
LOWdetection_rules/rule_formatter.py242CODE
LOWdetection_rules/generic_loader.py139CODE
LOWdetection_rules/main.py184CODE
LOWdetection_rules/main.py509CODE
LOWdetection_rules/main.py563CODE
LOWdetection_rules/integrations.py149CODE
LOWdetection_rules/integrations.py229CODE
30 more matches not shown…
Excessive Try-Catch Wrapping35 hits · 41 pts
SeverityFileLineSnippetContext
LOWdetection_rules/cli_utils.py419 except Exception as e:CODE
LOWdetection_rules/exception.py348 except Exception as e:CODE
LOWdetection_rules/kbwrap.py414 except Exception as e:CODE
LOWdetection_rules/kbwrap.py489 except Exception as e:CODE
LOWdetection_rules/kbwrap.py509 except Exception as e:CODE
LOWdetection_rules/kbwrap.py525 except Exception as e:CODE
LOWdetection_rules/action_connector.py183 except Exception as e:CODE
LOWdetection_rules/esql.py281 except Exception: # noqa: BLE001 — incomplete fragments have no FROM groupsCODE
LOWdetection_rules/esql.py310 except Exception: # noqa: BLE001 — incomplete fragments yield no sourcesCODE
LOWdetection_rules/esql.py326 except Exception: # noqa: BLE001 — incomplete fragments yield no lookup targetsCODE
LOWdetection_rules/rule_loader.py352 except Exception:CODE
MEDIUMdetection_rules/rule_loader.py353 print(f"Error loading rule in {path}")CODE
LOWdetection_rules/rule_loader.py550 except Exception:CODE
MEDIUMdetection_rules/rule_loader.py551 print(f"Error loading rule in {path}")CODE
LOWdetection_rules/rule_loader.py735 except Exception as e: # noqa: BLE001CODE
LOWdetection_rules/remote_validation.py201 except Exception as exc:CODE
LOWdetection_rules/remote_validation.py224 except Exception as exc:CODE
LOWdetection_rules/rule_validators.py778 except Exception as exc: # noqa: BLE001CODE
LOWdetection_rules/rule_validators.py1029 except Exception: # noqa: BLE001, S112 — field merge best-effort; schema path raisesCODE
LOWdetection_rules/rule_validators.py1074 except Exception as exc: # noqa: BLE001CODE
LOWdetection_rules/rule_validators.py1089 except Exception as exc: # noqa: BLE001CODE
LOWdetection_rules/rule_validators.py1285 except Exception as exc: # noqa: BLE001CODE
MEDIUMdetection_rules/beats.py53 print(f"Error loading {name}, not a valid YAML")CODE
LOW⚡detection_rules/devtools.py1554 except Exception as e: # noqa: BLE001CODE
LOW⚡detection_rules/devtools.py1563 except Exception as e: # noqa: BLE001CODE
LOWdetection_rules/rule.py626 except Exception as e:CODE
LOWdetection_rules/rule.py637 except Exception as e:CODE
LOWdetection_rules/rule.py684 except Exception as e:CODE
LOW⚡detection_rules/generic_loader.py174 except Exception:CODE
MEDIUM⚡detection_rules/generic_loader.py175 print(f"Error loading item in {path}")CODE
LOW⚡tests/test_esql_parser.py560 except Exception as exc: # noqa: BLE001 — collect all failuresSTRING
LOWtests/test_all_rules.py1861 except Exception: # noqa: BLE001, S112CODE
LOWtests/base.py61 except Exception as e: # noqa: BLE001CODE
LOWhunting/run.py54 except Exception as e: # noqa: BLE001CODE
LOWlib/kibana/kibana/resources.py220 except Exception:CODE
Cross-Language Confusion7 hits · 38 pts
SeverityFileLineSnippetContext
HIGHdetection_rules/kbwrap.py132 action_connector_type_error = "expected value of type [string] but got [undefined]"CODE
HIGHdetection_rules/attack.py370# config (or mapped to null) are dropped, so generation is accuracy-first and never invents a mapping.COMMENT
HIGHdetection_rules/ghwrap.py125 # GitHub deletes a gist file when its PATCH value is JSON null, not an empty object.COMMENT
HIGHtests/test_python_library.py295 [any where azure.identityprotection.properties.user_principal_name != null] by azure.identityprotection.properCODE
HIGHtests/test_transform_fields.py27 """!{osquery{"label":"Osquery - Retrieve Services Running on User Accounts","query":"SELECT description, disSTRING
HIGHtests/test_transform_fields.py107 query = "SELECT description, display_name, name, path, pid, service_type, start_type, status, user_account FROM STRING
HIGHlib/kql/kql/dsl.py174 # Bare unquoted terms can parse as numbers/booleans/null, but `multi_match.query`COMMENT
Modern AI Meta-Vocabulary21 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM…nse_evasion_bedrock_guardrail_deleted_or_weakened.toml68 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html",STRING
MEDIUM…drock_knowledge_base_or_rag_data_source_poisoning.toml34### Investigating AWS Bedrock Knowledge Base or RAG Data Source TamperingCOMMENT
MEDIUM…ck_multiple_attempts_to_use_denied_models_by_user.toml53 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…ck_multiple_attempts_to_use_denied_models_by_user.toml64https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…_guardrails_multiple_violations_in_single_request.toml57 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…_guardrails_multiple_violations_in_single_request.toml68https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…_bedrock/aws_bedrock_execution_without_guardrails.toml56 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…_bedrock/aws_bedrock_execution_without_guardrails.toml67https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…_bedrock/aws_bedrock_execution_without_guardrails.toml97// Filter for invocations without guardrailsSTRING
MEDIUM…k/aws_bedrock_high_resource_consumption_detection.toml66https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…edrock_high_confidence_misconduct_blocks_detected.toml56 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…edrock_high_confidence_misconduct_blocks_detected.toml67https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…iple_sensitive_information_policy_blocks_detected.toml55 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…iple_sensitive_information_policy_blocks_detected.toml66https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…drock/execution_bedrock_high_risk_tool_invocation.toml55 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html",STRING
MEDIUM…aws_bedrock_multiple_topic_policy_blocks_detected.toml55 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…aws_bedrock_multiple_topic_policy_blocks_detected.toml66https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…ock_guardrails_multiple_violations_by_single_user.toml57 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…ock_guardrails_multiple_violations_by_single_user.toml68https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
MEDIUM…/aws_bedrock_multiple_word_policy_blocks_detected.toml55 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",STRING
MEDIUM…/aws_bedrock_multiple_word_policy_blocks_detected.toml66https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.htmlCODE
Unused Imports29 hits · 29 pts
SeverityFileLineSnippetContext
LOWdetection_rules/kbwrap.py31CODE
LOWdetection_rules/stack_emit.py25CODE
LOWdetection_rules/esql.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/__init__.py8CODE
LOWdetection_rules/atlas.py8CODE
LOWdetection_rules/schemas/__init__.py18CODE
LOWtests/test_esql_parser.py8CODE
LOWtests/test_esql_multi_value.py18CODE
LOWlib/kibana/kibana/__init__.py8CODE
LOWlib/kibana/kibana/__init__.py9CODE
LOWlib/kibana/kibana/__init__.py9CODE
LOWlib/kql/kql/__init__.py11CODE
LOWlib/kql/kql/__init__.py11CODE
LOWlib/kql/kql/parser.py18CODE
LOWlib/kql/kql/evaluator.py10CODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHdetection_rules/attack.py808except ValueError:CODE
HIGHdetection_rules/utils.py83except json.JSONDecodeError:CODE
HIGHlib/kibana/kibana/connector.py214except requests.exceptions.ConnectionError:CODE
HIGHlib/kql/kql/parser.py307except ValueError:CODE
HIGHlib/kql/kql/parser.py334except ValueError:CODE
Redundant / Tautological Comments15 hits · 24 pts
SeverityFileLineSnippetContext
LOWdetection_rules/cli_utils.py234 # Check if flag or config is set to not include tactic in the filenameCOMMENT
LOWdetection_rules/exception.py232 # Check if self.path has a .toml extensionCOMMENT
LOWdetection_rules/kbwrap.py356 # Assign counts to variablesCOMMENT
LOWdetection_rules/kbwrap.py390 # Check if flag or config is set to not include tactic in the filenameCOMMENT
LOWdetection_rules/kbwrap.py392 # Check if the flag is set to not include tactic in the filenameCOMMENT
LOWdetection_rules/action_connector.py104 # Check if self.path has a .toml extensionCOMMENT
LOWdetection_rules/config.py344 # Check if the file existsCOMMENT
LOWdetection_rules/utils.py76 # Check if the string looks like a JSON listCOMMENT
LOWdetection_rules/integrations.py155 # Check if the file is a matchCOMMENT
LOWdetection_rules/integrations.py184 # Check if the file already exists and handle accordinglyCOMMENT
LOW⚡tests/test_all_rules.py1649 # Check if note field contains ## Triage and analysisCOMMENT
LOW⚡tests/test_all_rules.py1662 # Check if `### Investigating` is present and if so, check if it is followed by the rule name.COMMENT
LOWtests/test_all_rules.py1619 # Check if the risk_score falls within the range for the severity levelCOMMENT
LOWhunting/utils.py115 # Check if the folder_name exists and if it's a list, convert it to a dictionaryCOMMENT
LOWhunting/__main__.py99 # Output results using tabulateCOMMENT
Over-Commented Block22 hits · 22 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml21 # language: systemCOMMENT
LOWdetection_rules/etc/_config.yaml21 # exception_dir: exceptionsCOMMENT
LOWdetection_rules/etc/_config.yaml41## ├── exception_1.tomlCOMMENT
LOWdetection_rules/etc/_config.yaml61# stack-schema-map.yaml file when using a custom rules directory and config.COMMENT
LOWdetection_rules/etc/_config.yaml81# going to the environment variable if both are set. Having both these options allows for configuring testing onCOMMENT
LOWdetection_rules/etc/_config.yaml101# Tactic tags are rewritten to match the emitted threat mapping.COMMENT
LOWdetection_rules/etc/__init__.py1# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under oneCOMMENT
LOWdetection_rules/etc/stack-schema-map.yaml1# Purpose: Alignment of stack with beats and ecs versionsCOMMENT
LOWdetection_rules/etc/stack-schema-map.yaml21COMMENT
LOWdetection_rules/etc/stack-schema-map.yaml41# "8.2.0":COMMENT
LOWdetection_rules/etc/stack-schema-map.yaml61# beats: "8.6.1"COMMENT
LOWdetection_rules/etc/stack-schema-map.yaml81# beats: "8.10.3"COMMENT
LOWdetection_rules/etc/stack-schema-map.yaml101# beats: "8.14.3"COMMENT
LOWdetection_rules/etc/stack-schema-map.yaml121# beats: "8.18.0"COMMENT
LOWdetection_rules/etc/example_test_config.yaml1COMMENT
LOW…n_rules/etc/attack-version-maps/attack_v18_to_v19.yaml1# MITRE ATT&CK v18 -> v19 version mapping.COMMENT
LOWtests/kuery/__init__.py1# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under oneCOMMENT
LOWtests/data/__init__.py1# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under oneCOMMENT
LOWhunting/__init__.py1# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under oneCOMMENT
LOW.github/stale.yml41closeComment: >COMMENT
LOW.github/workflows/release-line-caught-up.yml1# Gate main merges (and the merge queue) until origin/main's latest merge isCOMMENT
LOW.github/workflows/release-line-caught-up.yml21# Producer-live detection: if main's backport.yml contains the post-pending jobCOMMENT
Self-Referential Comments6 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMdetection_rules/devtools.py768 # Create a pull request (not done yet, but we need the PR number)COMMENT
MEDIUMdetection_rules/custom_rules.py139 # Create the stack-schema-map.yaml fileCOMMENT
MEDIUMhunting/definitions.py9# Define the hunting directory pathCOMMENT
MEDIUMhunting/__main__.py78 # Create an instance of the QueryIndex classCOMMENT
MEDIUMhunting/__main__.py225 # Create a QueryRunner instanceCOMMENT
MEDIUM.github/workflows/kibana-mitre-update.yml19 KIBANA_ISSUE_NUMBER: 166152 # Define the Kibana issue number as a variableCODE
Modern Structural Boilerplate14 hits · 16 pts
SeverityFileLineSnippetContext
LOWdetection_rules/custom_schemas.py96def update_auto_generated_schema(index: str, field: str, field_type: str | None = None) -> None:CODE
LOWdetection_rules/attack.py300def update_threat_map(rule_threat_map: list[dict[str, Any]]) -> None:CODE
LOW⚡detection_rules/navigator.py210 def _update_all(self, rule: TOMLRule, tactic: str, technique_id: str) -> None:CODE
LOW⚡detection_rules/navigator.py214 def _update_platforms(self, rule: TOMLRule, tactic: str, technique_id: str) -> None:CODE
LOW⚡detection_rules/navigator.py220 def _update_indexes(self, rule: TOMLRule, tactic: str, technique_id: str) -> None:CODE
LOW⚡detection_rules/navigator.py225 def _update_tags(self, rule: TOMLRule, tactic: str, technique_id: str) -> None:CODE
LOWdetection_rules/devtools.py1574def update_rule_data_schemas() -> None:CODE
LOWdetection_rules/rule.py1548 def set_version_lock(self, value: VersionLock) -> None:CODE
LOWdetection_rules/rule.py1991 def set_version_lock(self, value: VersionLock | None) -> None:CODE
LOW⚡detection_rules/utils.py168def set_all_validation_bypass(env_value: bool = False) -> None:CODE
LOW⚡detection_rules/utils.py174def set_nested_value(obj: dict[str, Any], compound_key: str, value: Any) -> None:CODE
LOWhunting/utils.py95def update_index_yml(base_path: Path) -> None:CODE
LOWhunting/markdown.py92 def update_or_add_entry(self, hunt_config: Hunt, toml_path: Path) -> None:CODE
LOWhunting/markdown.py130 def update_index_md(self) -> None:CODE
Verbosity Indicators8 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡hunting/search.py58 # Step 1: If data source is provided, filter by data source firstCOMMENT
LOW⚡hunting/search.py67 # Step 2: If MITRE filter is provided, process the filterCOMMENT
LOWhunting/search.py80 # Step 3: If keyword is provided, search for it in name, description, and notesCOMMENT
LOWhunting/search.py145 # Step 1: Check files first by their 'integration' fieldCOMMENT
LOWhunting/search.py157 # Step 2: Check the index for generic data sources (e.g., 'aws', 'linux')COMMENT
LOW⚡…uditd_sensitive_cloud_and_host_identity_file_open.toml76### Step 1: Add Auditd Manager in FleetCOMMENT
LOW⚡…uditd_sensitive_cloud_and_host_identity_file_open.toml84### Step 2: Paste audit rules into Auditd ManagerCOMMENT
LOW…uditd_sensitive_cloud_and_host_identity_file_open.toml125### Step 3: Reload and verifyCOMMENT
Structural Annotation Overuse8 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡hunting/search.py58 # Step 1: If data source is provided, filter by data source firstCOMMENT
LOW⚡hunting/search.py67 # Step 2: If MITRE filter is provided, process the filterCOMMENT
LOWhunting/search.py80 # Step 3: If keyword is provided, search for it in name, description, and notesCOMMENT
LOWhunting/search.py145 # Step 1: Check files first by their 'integration' fieldCOMMENT
LOWhunting/search.py157 # Step 2: Check the index for generic data sources (e.g., 'aws', 'linux')COMMENT
LOW⚡…uditd_sensitive_cloud_and_host_identity_file_open.toml76### Step 1: Add Auditd Manager in FleetCOMMENT
LOW⚡…uditd_sensitive_cloud_and_host_identity_file_open.toml84### Step 2: Paste audit rules into Auditd ManagerCOMMENT
LOW…uditd_sensitive_cloud_and_host_identity_file_open.toml125### Step 3: Reload and verifyCOMMENT
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
LOWdetection_rules/rule_loader.py340 # if it already loaded the rule, then we can just use it from thatCOMMENT
LOWdetection_rules/rule_loader.py537 # if it already loaded the rule, then we can just use it from thatCOMMENT
LOW⚡detection_rules/generic_loader.py166 # if it already loaded the item, then we can just use it from thatCOMMENT
MEDIUMtests/test_all_rules.py1443 # skip rules that do not leverage queries (i.e. machine learning)COMMENT
Slop Phrases5 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUM…s/aws_bedrock_sensitive_content_refusal_detection.toml14 gen_ai.completion LIKE "*I cannot provide any information about*"STRING
MEDIUM…_evasion_gcp_vertexai_repeated_assistant_refusals.toml32(assistant text such as "I cannot fulfill…", "I cannot provide…", "unable to assist…", orCODE
MEDIUM…_evasion_gcp_vertexai_repeated_assistant_refusals.toml101 response_text like "*i cannot provide*" orSTRING
MEDIUM…e_administrator_privileges_assigned_to_okta_group.toml47- Training or onboarding sessions where temporary admin access is granted to groups for demonstration purposes can causeCODE
MEDIUM…sion_azure_ai_foundry_repeated_assistant_refusals.toml110 Esql.reply_text like "*I cannot provide*" orSTRING
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdetection_rules/cli_utils.py257CODE
LOWdetection_rules/kbwrap.py273CODE
LOWtests/test_python_library.py28CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdetection_rules/etc/_config.yaml94# ---------------------------------------------------------COMMENT