Repository Analysis

wazuh/wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.

4.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of wazuh/wazuh, a C++ project with 16,108 GitHub stars. SynthScan v2.0 examined 1,688,094 lines of code across 5316 source files, recording 5031 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 4.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
16.1K
Stars
C++
Language
1.7M
Lines of Code
5.3K
Files
5.0K
Pattern Hits
2026-07-14
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 262MEDIUM 932LOW 3835

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5031 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators769 hits · 2546 pts
SeverityFileLineSnippetContext
MEDIUMtools/devContainer/reinstall-cmake.sh2#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/reinstall-cmake.sh5#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMframework/wazuh/rbac/tests/test_decorators.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMframework/wazuh/rbac/tests/test_decorators.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMframework/wazuh/rbac/tests/test_decorators.py310# ---------------------------------------------------------------------------COMMENT
MEDIUMframework/wazuh/rbac/tests/test_decorators.py312# ---------------------------------------------------------------------------COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py16# =============================COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py18# =============================COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py31# =============================COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py33# =============================COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py68# ============================================================COMMENT
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py70# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py11# =============================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py13# =============================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py44# =============================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py46# =============================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py88# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py90# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py178# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py180# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py261# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py263# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py423# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py425# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py481# ============================================================COMMENT
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py483# ============================================================COMMENT
MEDIUMframework/wazuh/core/tests/test_engine_http.py195# ── ModulesdHTTPClient ─────────────────────────────────────────────────────────COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py628# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py630# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py727# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py729# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py895# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py897# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py966# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py968# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1122# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1124# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1247# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1249# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1427# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1429# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1619# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1621# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1723# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1725# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1784# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1786# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2080# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2082# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2160# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2162# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py177# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py179# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py212# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py214# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py400# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py402# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1064# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1066# ---------------------------------------------------------------------------COMMENT
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1344# ---------------------------------------------------------------------------COMMENT
709 more matches not shown…
Hyper-Verbose Identifiers1554 hits · 1448 pts
SeverityFileLineSnippetContext
LOWtools/mitre/mitredb.py570def parse_json_ext_references(data_object):CODE
LOWframework/scripts/rbac_control.py24async def restore_default_passwords(script_args):CODE
LOWframework/scripts/tests/test_agent_upgrade.py32def test_get_script_arguments(mock_ArgumentParser):CODE
LOWframework/scripts/tests/test_agent_upgrade.py223async def test_main_internal_error_ko(capfd):CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py256def test_get_script_arguments(argument_parser_mock):CODE
LOWframework/scripts/tests/test_rbac_control.py41async def test_restore_default_passwords(forward_mock: AsyncMock, safe_load_mock, print_mock, user_input, db_setup):CODE
LOWframework/scripts/tests/test_rbac_control.py66async def test_restore_default_passwords_exceptions(safe_load_mock, getpass_mock, print_mock):CODE
LOWframework/scripts/tests/test_rbac_control.py104async def test_reset_rbac_database_exceptions(input_mock, print_mock):CODE
LOWframework/scripts/tests/test_rbac_control.py114def test_get_script_arguments(exit_mock):CODE
LOWframework/scripts/tests/test_agent_groups.py77async def test_show_agents_with_group(print_mock):CODE
LOWframework/scripts/tests/test_agent_groups.py334def test_get_script_arguments(argument_parser_mock, invalid_option_mock):CODE
LOWframework/scripts/tests/test_cluster_control.py292 def add_mutually_exclusive_group(self):CODE
LOWframework/wazuh/security.py1192def revoke_current_user_tokens() -> WazuhResult:CODE
LOWframework/wazuh/stats.py185def get_agents_component_stats_json(agent_list: list = None, component: str = None) -> AffectedItemsWazuhResult:CODE
LOWframework/wazuh/agent.py122def get_agents_summary_status(agent_list: list[str] = None) -> WazuhResult:CODE
LOWframework/wazuh/agent.py1578def check_uninstall_permission() -> WazuhResult:CODE
LOWframework/wazuh/rbac/orm.py1816 def get_all_policies_from_role(self, role_id: int) -> Union[list, bool]:CODE
LOWframework/wazuh/rbac/orm.py1842 def get_all_roles_from_policy(self, policy_id: int) -> Union[list, bool]:CODE
LOWframework/wazuh/rbac/orm.py2456 def _set_permissions_and_ownership(database: str):CODE
LOWframework/wazuh/rbac/decorators.py77def _combination_defined_rbac(needed_resources: list, user_resources: str) -> bool:CODE
LOWframework/wazuh/rbac/decorators.py279def _get_required_permissions(actions: list = None, resources: list = None, **kwargs: dict) -> tuple:CODE
LOWframework/wazuh/rbac/decorators.py573def _mask_all_sensitive_fields(text: str, mask_text: str = "***") -> str:CODE
LOWframework/wazuh/rbac/tests/test_orm.py502def test_get_all_roles_from_user(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py512def test_get_all_policy_from_role(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py522def test_get_all_role_from_policy(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py532def test_remove_role_from_user(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py542def test_remove_policy_from_role(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py689def test_databasemanager_rollback(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py696def test_databasemanager_set_database_version(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py706def test_check_database_integrity(chmod_mock, chown_mock, remove_mock, safe_move_mock, fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py100def test_token_valid_after_revoke_same_second_ms(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py133def test_delete_all_expired_rules(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py262def test_delete_all_security_rules(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py453def test_add_role_policy_level(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py553def test_remove_role_from_policy(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_orm.py564def test_databasemanager___init__(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py572def test_databasemanager_connect(sessionmaker_mock, create_engine_mock, fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py587def test_databasemanager_close_sessions(sessionmaker_mock, create_engine_mock, fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py600def test_databasemanager_create_database(create_db_mock, fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py613def test_databasemanager_get_database_version(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py619def test_databasemanager_insert_default_resources(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py663def test_databasemanager_get_table(fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py752def test_check_database_integrity_exceptions(remove_mock, close_sessions_mock, exception, fresh_in_memory_db):CODE
LOWframework/wazuh/rbac/tests/test_orm.py827def test_check_database_integrity_missing_default_policy(chmod_mock, chown_mock, remove_mock, safe_move_mock, fresh_in_mCODE
LOWframework/wazuh/rbac/tests/test_orm.py870def test_check_database_integrity_modified_default_policy(chmod_mock, chown_mock, remove_mock, safe_move_mock, fresh_in_CODE
LOWframework/wazuh/rbac/tests/test_decorators.py198def test_has_update_permissions_no_perms(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py204def test_has_update_permissions_with_manager_update_config(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py210def test_has_update_permissions_with_cluster_update_config(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py216def test_has_update_permissions_read_only_role(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py222def test_has_update_permissions_empty_action_dict(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py228def test_has_update_permissions_non_dict_action_value(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py234def test_has_update_permissions_none_rbac(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py240def test_has_update_permissions_deny_manager_update_config(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py246def test_has_update_permissions_deny_cluster_update_config(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py252def test_has_update_permissions_mixed_deny_allow_allows(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py113def test_expose_resourcesless(db_setup, decorator_params, rbac, allowed, mode):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py158def test_mask_sensitive_config_without_permissions(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py170def test_mask_sensitive_config_with_permissions(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py181def test_mask_sensitive_config_on_affected_items_result(db_setup):CODE
LOWframework/wazuh/rbac/tests/test_decorators.py264def test_has_update_permissions_all_deny(db_setup):CODE
1494 more matches not shown…
Cross-File Repetition177 hits · 885 pts
SeverityFileLineSnippetContext
HIGHframework/scripts/agent_groups.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.STRING
HIGHframework/scripts/agent_upgrade.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.STRING
HIGHframework/scripts/wazuh_manager_clusterd.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.STRING
HIGHframework/wazuh/core/cluster/local_server.py0get basic information about the node. returns ------- dict basic node information.STRING
HIGHframework/wazuh/core/cluster/common.py0get basic information about the node. returns ------- dict basic node information.STRING
HIGHframework/wazuh/core/cluster/master.py0get basic information about the node. returns ------- dict basic node information.STRING
HIGHframework/wazuh/core/cluster/hap_helper/wazuh.py0returns the configured logger. parameters ---------- tag : str tag to use in log filter. returns ------- logging.logger STRING
HIGHframework/wazuh/core/cluster/hap_helper/proxy.py0returns the configured logger. parameters ---------- tag : str tag to use in log filter. returns ------- logging.logger STRING
HIGHframework/wazuh/core/cluster/hap_helper/hap_helper.py0returns the configured logger. parameters ---------- tag : str tag to use in log filter. returns ------- logging.logger STRING
HIGHtests/integration/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_syscollector/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ation/test_syscollector/test_configuration/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_remoted/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ed/test_agent_communication/test_request_agent_info.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…munication/test_multi_agent_protocols_communication.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…agent_communication/test_agents_switching_protocols.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…remoted/test_agent_communication/test_agent_version.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…_communication/test_invalid_protocols_communication.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…st_agent_communication/test_protocols_communication.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ed/test_agent_communication/test_multi_agent_status.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/test_agent_communication/test_agent_pending_status.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/test_agent_communication/test_shared_configuration.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…remoted/test_configurations/test_queue_size_too_big.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ed/test_configurations/test_invalid_connection_port.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…est_remoted/test_configurations/test_valid_local_ip.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ed/test_configurations/test_rids_valid_closing_time.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…t_remoted/test_configurations/test_valid_queue_size.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…remoted/test_configurations/test_invalid_connection.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…t_remoted/test_configurations/test_valid_connection.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…est_configurations/test_invalid_connection_protocol.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…t_remoted/test_configurations/test_invalid_local_ip.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/test_configurations/test_rids_invalid_closing_time.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_remoted/test_rids/test_rids.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_remoted/test_rids/test_config.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…oted/test_active_response/test_active_response_send.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…egration/test_remoted/test_manager/test_manager_ack.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…integration/test_remoted/test_multi_groups/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…moted/test_multi_groups/test_merged_mg_file_content.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…emoted/test_socket_communication/test_ping_pong_msg.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_sca/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_sca/test_basic/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_sca/test_basic/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_logcollector/utils.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ation/test_logcollector/test_configuration/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…ts/integration/test_logcollector/test_read/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…tegration/test_authd/test_api_registration/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…tegration/test_authd/test_api_registration/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…s/integration/test_authd/test_use_password/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…s/integration/test_authd/test_use_password/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/test_ssl/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/test_ssl/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/test_cluster/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/integration/test_authd/test_use_source_ip/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/integration/test_authd/test_use_source_ip/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…egration/test_authd/test_remote_enrollment/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/test_common/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_authd/test_common/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…/integration/test_authd/test_force_options/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGHtests/integration/test_wazuh_db/conftest.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
117 more matches not shown…
Over-Commented Block814 hits · 794 pts
SeverityFileLineSnippetContext
LOWtools/purge_wazuh.sh1#!/usr/bin/env bashCOMMENT
LOWtools/testing/enrollment-simulator/src/simulator.cpp1#include "simulator.h"COMMENT
LOWtools/testing/enrollment-simulator/src/simulator.h1#pragma onceCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml3481 - "Hide Artifacts"COMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml3501 # 3.2 Network Parameters (Host Only).COMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml5961COMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml8681 condition: allCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_1.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2.yml7881 # 6.2.13 Ensure users' home directories permissions are 750 or more restrictive. (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/debian/cis_debian8.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian9.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian13.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian13.yml9881 # 7.2.4 Ensure shadow group is empty. (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/debian/cis_debian12.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian12.yml9881 # 7.2.4 Ensure shadow group is empty. (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/debian/cis_debian10.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian10.yml3921 - "Masquerading"COMMENT
LOWruleset/sca/debian/cis_debian11.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/debian/cis_debian11.yml2321COMMENT
LOWruleset/sca/debian/cis_debian11.yml3541 ############################################################COMMENT
LOWruleset/sca/debian/cis_debian11.yml3561 # 3.3.6 Ensure bogus ICMP responses are ignored (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/debian/cis_debian11.yml9621COMMENT
LOWruleset/sca/debian/cis_debian7.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_8.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_8.yml3901COMMENT
LOWruleset/sca/rocky/cis_rocky_linux_8.yml5421 - "Clear Windows Event Logs"COMMENT
LOWruleset/sca/rocky/cis_rocky_linux_9.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_9.yml3481 - "not c:lsmod -> r:tipc"COMMENT
LOWruleset/sca/rocky/cis_rocky_linux_9.yml4181 - c:auditctl -l -> r:-w /etc/sudoers\.d -p wa -k scope|-w /etc/sudoers\.d -p wa key=scopeCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_9.yml5241 rules:COMMENT
LOWruleset/sca/rocky/cis_rocky_linux_10.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_10.yml3481 - "not c:lsmod -> r:tipc"COMMENT
LOWruleset/sca/rocky/cis_rocky_linux_10.yml4181 - c:auditctl -l -> r:-w /etc/sudoers\.d -p wa -k scope|-w /etc/sudoers\.d -p wa key=scopeCOMMENT
LOWruleset/sca/rocky/cis_rocky_linux_10.yml5241 rules:COMMENT
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml3381 ###############################################COMMENT
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml3401 # 3.3.4 Ensure suspicious packets are logged. (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml3381 ###############################################COMMENT
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml3401 # 3.3.4 Ensure suspicious packets are logged. (Automated) - Not ImplementedCOMMENT
LOWruleset/sca/centos/9/cis_centos9_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/centos/9/cis_centos9_linux.yml3981 - "Masquerading"COMMENT
LOWruleset/sca/centos/9/cis_centos9_linux.yml9641 condition: allCOMMENT
LOWruleset/sca/centos/7/cis_centos7_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/centos/6/cis_centos6_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/centos/10/cis_centos10_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/centos/10/cis_centos10_linux.yml3981 - "Masquerading"COMMENT
LOWruleset/sca/centos/10/cis_centos10_linux.yml9641 condition: allCOMMENT
LOWruleset/sca/centos/8/cis_centos8_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/centos/8/cis_centos8_linux.yml3981 - "Masquerading"COMMENT
LOWruleset/sca/centos/8/cis_centos8_linux.yml9641 condition: allCOMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml1# Security Configuration AssessmentCOMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml3321 condition: allCOMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml3341 # 3.3 Network Parameters (Host and Router)COMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml3981 - c:auditctl -l -> r:-w /etc/sudoers -p wa -k scope|-w /etc/sudoers -p wa key=scopeCOMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml7301 condition: allCOMMENT
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml7461 # 6.2.12 Ensure local interactive users home directories are mode 750 or more restrictive - Not implemented, requires COMMENT
LOWruleset/sca/rhel/7/cis_rhel7_linux.yml1# Security Configuration Assessment.COMMENT
754 more matches not shown…
Excessive Try-Catch Wrapping425 hits · 512 pts
SeverityFileLineSnippetContext
LOWtools/agent-upgrade/wpkpack.py100 except Exception as error:CODE
MEDIUMtools/debug/csv-stat.py66 print(f'Error: File {args.file} not found.')CODE
LOWtools/debug/csv-stat.py68 except Exception as e:CODE
MEDIUMtools/debug/csv-stat.py69 print(f'Error: {e}')CODE
LOWframework/scripts/agent_groups.py20except Exception as e:CODE
MEDIUMframework/scripts/agent_groups.py21 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))CODE
MEDIUMframework/scripts/agent_groups.py382 print("Error {0}: {1}".format(e.code, e.message))STRING
LOWframework/scripts/agent_groups.py385 except Exception as e:STRING
LOWframework/scripts/agent_upgrade.py25except Exception as e:CODE
MEDIUMframework/scripts/agent_upgrade.py26 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))CODE
MEDIUMframework/scripts/agent_upgrade.py227 print(f"Error {wazuh_err.code}: {wazuh_err.message}")CODE
MEDIUMframework/scripts/agent_upgrade.py231 print(f"Error {getattr(e, 'ext', {}).get('code', e.status)}: {str(e.detail)}")CODE
LOWframework/scripts/agent_upgrade.py234 except Exception as unexpected_err:CODE
MEDIUMframework/scripts/agent_upgrade.py197def main():CODE
LOWframework/scripts/cluster_control.py292 except Exception as e:STRING
LOWframework/scripts/rbac_control.py14except Exception as e:CODE
MEDIUMframework/scripts/rbac_control.py15 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))CODE
MEDIUMframework/scripts/rbac_control.py102 print(f"Error {e.code}: {e.message}")CODE
LOWframework/scripts/rbac_control.py103 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py208 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py214 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py249 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py271 except Exception:CODE
LOWframework/wazuh/__init__.py31except Exception:CODE
LOWframework/wazuh/__init__.py81 except Exception:CODE
LOWframework/wazuh/agent.py861 except Exception as e:CODE
LOWframework/wazuh/agent.py914 except Exception as e:CODE
LOWframework/wazuh/rbac/orm.py2521 except Exception as e:CODE
LOWframework/wazuh/rbac/decorators.py474 except Exception:CODE
LOWframework/wazuh/rbac/decorators.py703 except Exception:CODE
LOWframework/wazuh/core/configuration.py849 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py857 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py861 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py426 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py475 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py521 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py600 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py825 except Exception as e:CODE
LOWframework/wazuh/core/configuration.py980 except Exception as unhandled_exc:CODE
LOWframework/wazuh/core/configuration.py1008 except Exception as unhandled_exc:CODE
LOWframework/wazuh/core/configuration.py1037 except Exception as unhandled_exc:CODE
LOWframework/wazuh/core/configuration.py1089 except Exception as e:CODE
LOWframework/wazuh/core/wdb.py433 except Exception as e:CODE
MEDIUMframework/wazuh/core/wdb.py342def send_request_to_wdb(query_lower, step, off, response):CODE
LOWframework/wazuh/core/wazuh_socket.py38 except Exception as e:CODE
LOWframework/wazuh/core/wazuh_socket.py53 except Exception as e:CODE
LOWframework/wazuh/core/wazuh_socket.py61 except Exception as e:CODE
LOWframework/wazuh/core/wazuh_socket.py123 except Exception as e:CODE
MEDIUMframework/wazuh/core/wazuh_socket.py29def _connect(self):CODE
MEDIUMframework/wazuh/core/wazuh_socket.py56def receive(self, header_format="<I", header_size=4):CODE
LOWframework/wazuh/core/utils.py866 except Exception as e:CODE
LOWframework/wazuh/core/utils.py1804 except Exception as e:CODE
LOWframework/wazuh/core/pyDaemonModule.py128 except Exception as exc:CODE
LOWframework/wazuh/core/stats.py50 except Exception:CODE
LOWframework/wazuh/core/agent.py842 except Exception as e:CODE
LOWframework/wazuh/core/agent.py910 except Exception:CODE
LOWframework/wazuh/core/agent.py915 except Exception:CODE
LOWframework/wazuh/core/agent.py934 except Exception as e:CODE
LOWframework/wazuh/core/agent.py1138 except Exception as e:CODE
LOWframework/wazuh/core/wazuh_queue.py53 except Exception:CODE
365 more matches not shown…
Deep Nesting342 hits · 311 pts
SeverityFileLineSnippetContext
LOWtools/mitre/mitredb.py509CODE
LOWtools/mitre/mitredb.py585CODE
LOWtools/mitre/mitredb.py613CODE
LOWtools/debug/wdb-query.py94CODE
LOWframework/scripts/agent_groups.py336CODE
LOWframework/scripts/agent_upgrade.py159CODE
LOWframework/scripts/cluster_control.py253CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py39CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py95CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py165CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py287CODE
LOWframework/wazuh/security.py26CODE
LOWframework/wazuh/security.py258CODE
LOWframework/wazuh/security.py361CODE
LOWframework/wazuh/security.py427CODE
LOWframework/wazuh/security.py533CODE
LOWframework/wazuh/security.py603CODE
LOWframework/wazuh/security.py744CODE
LOWframework/wazuh/security.py781CODE
LOWframework/wazuh/security.py848CODE
LOWframework/wazuh/security.py908CODE
LOWframework/wazuh/security.py959CODE
LOWframework/wazuh/security.py1009CODE
LOWframework/wazuh/security.py1063CODE
LOWframework/wazuh/security.py1139CODE
LOWframework/wazuh/security.py1270CODE
LOWframework/wazuh/stats.py19CODE
LOWframework/wazuh/agent.py122CODE
LOWframework/wazuh/agent.py205CODE
LOWframework/wazuh/agent.py585CODE
LOWframework/wazuh/agent.py698CODE
LOWframework/wazuh/agent.py922CODE
LOWframework/wazuh/agent.py1222CODE
LOWframework/wazuh/agent.py1341CODE
LOWframework/wazuh/rbac/orm.py1153CODE
LOWframework/wazuh/rbac/orm.py1331CODE
LOWframework/wazuh/rbac/orm.py1438CODE
LOWframework/wazuh/rbac/orm.py1525CODE
LOWframework/wazuh/rbac/orm.py1577CODE
LOWframework/wazuh/rbac/orm.py1722CODE
LOWframework/wazuh/rbac/orm.py1863CODE
LOWframework/wazuh/rbac/orm.py2065CODE
LOWframework/wazuh/rbac/orm.py2162CODE
LOWframework/wazuh/rbac/orm.py2204CODE
LOWframework/wazuh/rbac/preprocessor.py19CODE
LOWframework/wazuh/rbac/auth_context.py37CODE
LOWframework/wazuh/rbac/auth_context.py108CODE
LOWframework/wazuh/rbac/auth_context.py220CODE
LOWframework/wazuh/rbac/auth_context.py273CODE
LOWframework/wazuh/rbac/auth_context.py315CODE
LOWframework/wazuh/rbac/decorators.py23CODE
LOWframework/wazuh/rbac/decorators.py77CODE
LOWframework/wazuh/rbac/decorators.py223CODE
LOWframework/wazuh/rbac/decorators.py279CODE
LOWframework/wazuh/rbac/decorators.py425CODE
LOWframework/wazuh/rbac/decorators.py629CODE
LOWframework/wazuh/rbac/decorators.py447CODE
LOWframework/wazuh/rbac/decorators.py449CODE
LOWframework/wazuh/rbac/tests/test_orm.py28CODE
LOWframework/wazuh/rbac/tests/test_orm.py336CODE
282 more matches not shown…
Unused Imports282 hits · 274 pts
SeverityFileLineSnippetContext
LOWframework/wazuh/__init__.py10CODE
LOWframework/wazuh/__init__.py10CODE
LOWframework/wazuh/core/wdb.py12CODE
LOWframework/wazuh/core/results.py5CODE
LOWframework/wazuh/core/utils.py21CODE
LOWframework/wazuh/core/utils.py29CODE
LOWframework/wazuh/core/agent.py24CODE
LOWframework/wazuh/core/cluster/local_server.py10CODE
LOWframework/wazuh/core/cluster/local_server.py14CODE
LOWframework/wazuh/core/cluster/tests/test_local_client.py15CODE
LOWframework/wazuh/core/cluster/tests/test_local_server.py24CODE
LOWframework/wazuh/core/cluster/tests/test_server.py18CODE
LOWframework/wazuh/core/tests/test_stats.py7CODE
LOWframework/wazuh/core/tests/test_task.py11CODE
LOWframework/wazuh/core/tests/test_mitre.py14CODE
LOWframework/wazuh/core/tests/test_agent.py16CODE
LOWframework/wazuh/core/tests/test_pyDaemonModule.py8CODE
LOWframework/wazuh/core/tests/test_manager.py14CODE
LOWframework/wazuh/core/indexer/disconnected_agents.py1CODE
LOW…rk/wazuh/core/indexer/tests/test_credential_manager.py7CODE
LOWframework/wazuh/tests/test_task.py7CODE
LOWframework/wazuh/tests/test_manager.py23CODE
LOWtests/integration/test_syscollector/conftest.py20CODE
LOWtests/integration/test_syscollector/conftest.py22CODE
LOWtests/integration/test_syscollector/conftest.py22CODE
LOWtests/integration/test_syscollector/conftest.py22CODE
LOWtests/integration/test_syscollector/conftest.py22CODE
LOW…/test_configuration/test_syscollector_configuration.py45CODE
LOW…agent_communication/test_agents_switching_protocols.py11CODE
LOW…remoted/test_configurations/test_queue_size_too_big.py10CODE
LOW…ed/test_configurations/test_invalid_connection_port.py10CODE
LOW…est_remoted/test_configurations/test_valid_local_ip.py21CODE
LOW…ed/test_configurations/test_rids_valid_closing_time.py10CODE
LOW…ed/test_configurations/test_rids_valid_closing_time.py12CODE
LOW…ed/test_configurations/test_rids_valid_closing_time.py19CODE
LOW…ed/test_configurations/test_rids_valid_closing_time.py22CODE
LOW…ed/test_configurations/test_rids_valid_closing_time.py23CODE
LOW…t_remoted/test_configurations/test_valid_queue_size.py10CODE
LOW…t_remoted/test_configurations/test_valid_queue_size.py12CODE
LOW…t_remoted/test_configurations/test_valid_queue_size.py19CODE
LOW…t_remoted/test_configurations/test_valid_connection.py10CODE
LOW…est_configurations/test_invalid_connection_protocol.py10CODE
LOW…t_remoted/test_configurations/test_invalid_local_ip.py10CODE
LOW…t_remoted/test_configurations/test_invalid_local_ip.py20CODE
LOW…/test_configurations/test_rids_invalid_closing_time.py10CODE
LOW…/test_configurations/test_rids_invalid_closing_time.py20CODE
LOW…/test_configurations/test_rids_invalid_closing_time.py22CODE
LOW…/test_configurations/test_rids_invalid_closing_time.py23CODE
LOWtests/integration/test_remoted/test_rids/test_rids.py13CODE
LOWtests/integration/test_remoted/test_rids/test_config.py15CODE
LOW…emoted/test_socket_communication/test_ping_pong_msg.py16CODE
LOW…ation/test_sca/test_basic/test_validate_remediation.py41CODE
LOW…/integration/test_sca/test_basic/test_mitre_payload.py53CODE
LOW…egration/test_sca/test_basic/test_compliance_format.py40CODE
LOW…egration/test_sca/test_basic/test_compliance_format.py42CODE
LOW…egration/test_sca/test_basic/test_compliance_format.py49CODE
LOWtests/integration/test_enrollment/conftest.py7CODE
LOWtests/integration/test_enrollment/conftest.py8CODE
LOWtests/integration/test_logcollector/utils.py6CODE
LOW…r/test_configuration/test_basic_configuration_label.py74CODE
222 more matches not shown…
Redundant / Tautological Comments183 hits · 270 pts
SeverityFileLineSnippetContext
LOWtools/get_git_refs.sh148 # Check if HEAD points to a branchCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml42 remediation: "Run the following script to disable squashfs: #!/usr/bin/env bash { l_mname=\"squashfs\" # set module CODE
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml79 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set moCODE
LOWruleset/sca/debian/cis_debian10.yml35 remediation: "Run the following script to disable the cramfs module: If the module is available in the running kerneCODE
LOWruleset/sca/debian/cis_debian10.yml76 remediation: "Run the following script to disable the squashfs module: If the module is available in the running kerCODE
LOWruleset/sca/debian/cis_debian10.yml112 remediation: "Run the following script to disable the udf module: If the module is available in the running kernel: CODE
LOWruleset/sca/debian/cis_debian10.yml1443 remediation: "Run the following script to disable the cramfs module: If the module is available in the running kerneCODE
LOWruleset/sca/debian/cis_debian10.yml2339 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { lCODE
LOWruleset/sca/debian/cis_debian10.yml2485 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env baCODE
LOWruleset/sca/rocky/cis_rocky_linux_9.yml38 remediation: "Run the following script to disable squashfs: #!/usr/bin/env bash { l_mname=\"squashfs\" # set module CODE
LOWruleset/sca/rocky/cis_rocky_linux_9.yml75 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set moCODE
LOWruleset/sca/rocky/cis_rocky_linux_9.yml1391 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set mCODE
LOWruleset/sca/rocky/cis_rocky_linux_9.yml2407 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { lCODE
LOWruleset/sca/rocky/cis_rocky_linux_9.yml3432 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # CCODE
LOWruleset/sca/rocky/cis_rocky_linux_10.yml38 remediation: "Run the following script to disable squashfs: #!/usr/bin/env bash { l_mname=\"squashfs\" # set module CODE
LOWruleset/sca/rocky/cis_rocky_linux_10.yml75 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set moCODE
LOWruleset/sca/rocky/cis_rocky_linux_10.yml1391 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set mCODE
LOWruleset/sca/rocky/cis_rocky_linux_10.yml2407 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { lCODE
LOWruleset/sca/rocky/cis_rocky_linux_10.yml3432 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # CCODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml39 remediation: "Run the following script to disable squashfs: #!/usr/bin/env bash { l_mname=\"squashfs\" # set module CODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml77 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set moCODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml1393 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set mCODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml2502 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { lCODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml2651 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env baCODE
LOWruleset/sca/almalinux/cis_alma_linux_10.yml3665 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # CCODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml39 remediation: "Run the following script to disable squashfs: #!/usr/bin/env bash { l_mname=\"squashfs\" # set module CODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml77 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set moCODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml1393 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set mCODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml2502 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { lCODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml2651 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env baCODE
LOWruleset/sca/almalinux/cis_alma_linux_9.yml3665 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # CCODE
LOWframework/scripts/tests/test_cluster_control.py310 # Check if cluster is disabled and first conditionCOMMENT
LOWframework/wazuh/agent.py942 # Check if group existsCOMMENT
LOWframework/wazuh/agent.py997 # Check if the group existsCOMMENT
LOWframework/wazuh/agent.py1054 # Check if agent and group existCOMMENT
LOWframework/wazuh/agent.py1094 # Check if agent existsCOMMENT
LOWframework/wazuh/agent.py1152 # Check if group existsCOMMENT
LOWframework/wazuh/manager.py482 # Check if the configuration is validCOMMENT
LOWframework/wazuh/rbac/orm.py2478 # Check if an upgrade is requiredCOMMENT
LOWframework/wazuh/core/configuration.py317 # Check if we have read the same filters before (we will need to merge them)COMMENT
LOWframework/wazuh/core/configuration.py894 # Check if the group existsCOMMENT
LOWframework/wazuh/core/configuration.py955 # Check if the component is correctCOMMENT
LOWframework/wazuh/core/results.py407 # Check if error is already addedCOMMENT
LOWframework/wazuh/core/utils.py237 # Check if every element in sort['fields'] is in allowed_sort_fieldsCOMMENT
LOWframework/wazuh/core/utils.py1796 # Check if configuration changes are allowedCOMMENT
LOWframework/wazuh/core/agent.py794 # Check if agent is activeCOMMENT
LOWframework/wazuh/core/agent.py1145 # Check if the group already belongs to the agentCOMMENT
LOWframework/wazuh/core/agent.py1267 # Check if agent exists and the group existsCOMMENT
LOWframework/wazuh/core/agent.py1347 # Check if agent version is compatible with this featureCOMMENT
LOWframework/wazuh/core/manager.py176 # Check if configuration file existsCOMMENT
LOWframework/wazuh/core/cluster/common.py502 # Check if a new message was received.COMMENT
LOWframework/wazuh/core/cluster/master.py512 # Check if an integrity_check has already been performedCOMMENT
LOWframework/wazuh/core/cluster/cluster.py200 # Check if recursive flag is set or root is actually the initial lookup directory.COMMENT
LOWframework/wazuh/tests/test_agent.py830 # Check if the number of affected items matches the number of times `add_group_to_agent` was calledCOMMENT
LOWtests/integration/test_logcollector/conftest.py103 # Write the file statusCOMMENT
LOW…tegration/test_authd/test_api_registration/conftest.py44 # Check if specific values were set or set the defaultsCOMMENT
LOW…est_wazuh_db/test_groups/test_sync_agent_groups_get.py100 # Check if it requires any special configurationCOMMENT
LOW…est_wazuh_db/test_groups/test_sync_agent_groups_get.py105 # Check if it requires the global hash.COMMENT
LOW…st_ambiguous_confs/test_whodata_works_over_realtime.py167 # Write the fileCOMMENT
LOW…_redirection/test_windows_system_folder_redirection.py149 # Write the fileCOMMENT
123 more matches not shown…
Docstring Block Structure53 hits · 265 pts
SeverityFileLineSnippetContext
HIGH…ntegration/test_agentd/test_state/test_agentd_state.py162Request remoted_server the status of the agent Args: parameters: - expected_status: typSTRING
HIGHsrc/build.py18 Process the command line arguments and executes the corresponding argument's utility. Args: - NoneSTRING
HIGHsrc/ci/build_tools.py33 Execute the command 'make clean' in the operating system. Args: - None Returns: - None STRING
HIGHsrc/ci/build_tools.py62 Delete the contents of the external folder. Args: - None Returns: - None Raises: STRING
HIGHsrc/ci/build_tools.py90 Delete a specific folder inside some module. Args: - moduleName(str): Main folder name. - addiSTRING
HIGHsrc/ci/build_tools.py133 Execute the command 'make clean-internals' in the operating system. Args: - None Returns: STRING
HIGHsrc/ci/build_tools.py162 Execute the command 'make clean-windows' in the operating system. Args: - None Returns: -STRING
HIGHsrc/ci/build_tools.py191 Clean the files generated in some module when it is built. Args: - moduleName(str): Library name to beSTRING
HIGHsrc/ci/build_tools.py223 Configure cmake command with specific configuration based on the parameters passed to the function. Args: STRING
HIGHsrc/ci/build_tools.py279 Get a map with configured folders to be deleted. Args: - None Returns: - DELETE_FOLDER_DISTRING
HIGHsrc/ci/build_tools.py295 Use make command in order to download dependencies and after that build them. Args: - targetName(sSTRING
HIGHsrc/ci/build_tools.py334 Build a library. Args: - moduleName(str): Library to be built. Returns: - None RaiseSTRING
HIGHsrc/ci/build_tools.py368 Build project with flags. Args: - targetName(str): Build type to be built <STRING
HIGHsrc/ci/utils.py50 Get current path. Args: - None Returns: - path(str): Current path. Raises: -STRING
HIGHsrc/ci/utils.py66 Delete logs generates for a module. Args: - moduleName(str): Library to be cleaned. Returns: STRING
HIGHsrc/ci/utils.py106 Find a file in some path. Args: - name(str): File to find. - path(str): Base path to find a fiSTRING
HIGHsrc/ci/utils.py131 Find a folder in some path. Args: - name(str): Folder to find. - path(str): Base path to find STRING
HIGHsrc/ci/utils.py157 Return folders to be analyzed with AStyle coding style analysis tool. Args: - moduleName(str): LibrarySTRING
HIGHsrc/ci/utils.py194 Get directory path for a module. Args: - moduleName(str): Library to get the path of. Returns: STRING
HIGHsrc/ci/utils.py213 Get directory path build for a module. Args: moduleName(str): Library to get the path of. ReturnsSTRING
HIGHsrc/ci/utils.py232 Get valid module list. Args: - None Returns: - MODULE_LIST(array): A list with valid moduSTRING
HIGHsrc/ci/utils.py248 Get valid module list. Args: - None Returns: - MODULE_LIST_STR(str): A list with valid moSTRING
HIGHsrc/ci/utils.py264 Display a red message with the errors. Args: - msg(str): Message to show. Returns: - NoneSTRING
HIGHsrc/ci/utils.py280 Display a formatted green message. Args: - msg(str): Message to show. - module(str): Library uSTRING
HIGHsrc/ci/utils.py301 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mesSTRING
HIGHsrc/ci/utils.py319 Display a yellow message with some information. Args: - msg(str): Message to show. Returns: STRING
HIGHsrc/ci/utils.py335 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mesSTRING
HIGHsrc/ci/utils.py353 Read a JSON path and convert to map. Args: - jsonFilePath(str): JSON path. Returns: - jsoSTRING
HIGHsrc/ci/utils.py377 Get root path. Args: - None Returns: - path(str): Root path. Raises: - None STRING
HIGHsrc/ci/utils.py393 Get possible build targets. Args: - None Returns: - TARGET_LIST(array): Target list STRING
HIGHsrc/ci/run_check.py21 Check the coverage for a library being analyzed. Args: - output(str): Message to be shown in the stdouSTRING
HIGHsrc/ci/run_check.py64 Execute Address Sanitizer dynamic analysis tool using the test tool defined for a library. Args: -STRING
HIGHsrc/ci/run_check.py110 Execute AStyle coding style analysis for the library code failing when one or more files need to be modified. STRING
HIGHsrc/ci/run_check.py162 Execute AStyle coding style analysis tool for the library code formatting all needed files. Args: STRING
HIGHsrc/ci/run_check.py195 Execute code coverage for a library unit tests. Args: - moduleName: Library to be analyzed using gcov STRING
HIGHsrc/ci/run_check.py313 Execute cppcheck static analysis in the library code. Args: - moduleName: Library to be analyzed usingSTRING
HIGHsrc/ci/run_check.py419 Execute scan-build for a defined target. Args: - targetName: Target to be analyzed using scan-build anSTRING
HIGHsrc/ci/run_check.py473 Execute test tool for a module with a configuration passed by parameters. Args: - moduleName(str): LibSTRING
HIGHsrc/ci/run_check.py522 Execute test tool for a module with a configuration passed by parameters for Windows OS. Args: - mSTRING
HIGHsrc/ci/run_check.py663 Execute library tests using CTest with labels. Args: - moduleName: Library representing the tests to bSTRING
HIGHsrc/ci/run_check.py730 Results are taken in JSON format after running the test tool and validated using pytest. Args: - mSTRING
HIGHsrc/ci/run_check.py771 Execute all tests with valgrind tool in order to check memory leaks in the library code. Args: - mSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py20 Find smokeTests inside the root path and return the complete path. Args: - moduleName(str): Library toSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py40 Configure and format logging message. Args: - getModuleName(fixture): Return current module. RetuSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py75 Search inside test tool output folder so it returns the root path and the child folders. Args: - sSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py97 From directory name and their paths it creates a map in order to have all information in only structure. STRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py122 From directory name and their paths it creates a map in order to have all information in only structure. ASTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py149 Read file transaction input files and return an array with these information in JSON format. Args: STRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py176 Read registry key transaction input files and return an array with these information in JSON format. Args:STRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py203 Read registry value transaction input files and return an array with these information in JSON format. ArgSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py229 Read registry value transaction input files and return an array with these information in JSON format. ArgSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py261 Check result of action executed. Args: - result(map): A map with parsed result JSON. - configLSTRING
HIGHsrc/ci/tests/syscheckd/test_check_module.py283 Check result of transaction executed compared than input information. Args: - result(map): A map with STRING
Self-Referential Comments61 hits · 190 pts
SeverityFileLineSnippetContext
MEDIUMtools/mitre/mitredb.py758 # Create a database connectionCOMMENT
MEDIUMruleset/sca/debian/cis_debian10.yml148 remediation: "For specific configuration requirements of the /tmp mount for your environment, modify /etc/fstab or tCODE
MEDIUMruleset/sca/sles/16/cis_sles16_linux.yml149 remediation: "Create or update an entry for /tmp in either /etc/fstab OR in a systemd tmp.mount file: If /etc/fstab CODE
MEDIUMruleset/sca/sles/15/cis_sles15_linux.yml149 remediation: "Create or update an entry for /tmp in either /etc/fstab OR in a systemd tmp.mount file: If /etc/fstab CODE
MEDIUMruleset/sca/ubuntu/cis_ubuntu20-04.yml43 remediation: "For specific configuration requirements of the /tmp mount for your environment, modify /etc/fstab or tCODE
MEDIUMframework/wazuh/manager.py485 # Create a backup of the current configuration before attempting to replace itCOMMENT
MEDIUMframework/wazuh/rbac/orm.py1603 # Create a role-policy relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py1765 # Create a role-policy relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py1946 # Create a rule-role relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py2108 # Create the relationshipsCOMMENT
MEDIUMframework/wazuh/core/cluster/master.py325 # Create an event to wait for the response.COMMENT
MEDIUMframework/wazuh/core/cluster/master.py848 # Create a child process to run the task.COMMENT
MEDIUMtests/integration/conftest.py693 # Create the SocketControllersCOMMENT
MEDIUM…ntegration/test_wazuh_db/test_backup/test_db_backup.py159 # Create the database backups and assert they have been created correctlyCOMMENT
MEDIUM…asic_usage/test_orphan_promote_after_config_removal.py192 # Create the realtime-tracked file. inotify queues an "added" event;COMMENT
MEDIUM…es/test_invalid_characters/test_non_utf8_characters.py168 # Create the file with the invalid byte sequence as part of the file nameCOMMENT
MEDIUM…m/test_files/test_report_changes/test_large_changes.py188 # Create the file and and capture the event.COMMENT
MEDIUM…es/test_report_changes/test_report_changes_and_diff.py180 # Create the file and and capture the event.COMMENT
MEDIUM…_files/test_report_changes/test_report_deleted_diff.py170 # Create the file and and capture the event.COMMENT
MEDIUMpackages/macos/package_files/preinstall.sh172# Creating the groupCOMMENT
MEDIUMpackages/macos/package_files/preinstall.sh187# Creating the userCOMMENT
MEDIUMpackages/externals/external_sources.sh3# This file is sourced by packages/externals/build_external.sh inside the packageCOMMENT
MEDIUMapi/test/integration/conftest.py327 """This function is responsible for setting up the Docker environment necessary for every test.STRING
MEDIUMwodles/gcloud/tests/test_subscriber.py124 # Create a large list of fake messagesCOMMENT
MEDIUMwodles/azure/tests/db/test_orm.py60 # Create the tablesCOMMENT
MEDIUMwodles/aws/subscribers/s3_log_handler.py147 # Define the regex pattern for invalid CSV header charactersCOMMENT
MEDIUMsrc/init/darwin-addusers.sh72# Creating the groups.COMMENT
MEDIUMsrc/init/darwin-addusers.sh82# Creating the users.COMMENT
MEDIUM…ared_modules/indexer_connector/qa/test_efficacy_log.py485 # Create the index and try to insert a document with old mapping, this should fail and the element queue in the persCOMMENT
MEDIUM…ared_modules/indexer_connector/qa/test_efficacy_log.py589 # Create the index and try to insert a document with old mapping, this should fail and the element queue in the persCOMMENT
MEDIUM…ty_scanner/testtool/versionMatcher/version_verifier.sh103 # Define the callback function based on the Linux distributionCOMMENT
MEDIUM…uh_modules/inventory_sync/qa/wazuh_agent_controller.py325 # Create the event structure with identifier and binary dataCOMMENT
MEDIUM…s/inventory_sync/qa/test_inventory_sync_integration.py393 # Create the payload in the format expected by inventory_syncCOMMENT
MEDIUMsrc/engine/tools/devContainer/e2e/init.sh170 # Create the output directory if it doesn't exist (This never happens on devContainer context)COMMENT
MEDIUM…s/engine-suite/src/engine_private/cmds/ns/import_ns.py28 # Create the api requestCOMMENT
MEDIUM…ools/engine-suite/src/engine_private/cmds/cm/delete.py16 # Create the api requestCOMMENT
MEDIUM…/tools/engine-suite/src/engine_private/cmds/cm/list.py15 # Create the api requestCOMMENT
MEDIUM…gine-suite/src/engine_private/cmds/cm/policy_upsert.py29 # Create the api requestCOMMENT
MEDIUM…gine-suite/src/engine_private/cmds/cm/policy_delete.py15 # Create the api requestCOMMENT
MEDIUM…e/tools/engine-suite/src/engine_private/cmds/cm/get.py16 # Create the api requestCOMMENT
MEDIUM…ools/engine-suite/src/engine_private/cmds/cm/upsert.py30 # Create the api requestCOMMENT
MEDIUM…ine-suite/src/engine_public/cmds/cm/policy_validate.py26 # Create the api requestCOMMENT
MEDIUM…tools/engine-suite/src/engine_public/cmds/cm/upsert.py30 # Create the api requestCOMMENT
MEDIUM…ls/engine-suite/src/engine_test/cmds/session_reload.py21 # Create the requestCOMMENT
MEDIUM…tools/engine-suite/src/engine_test/cmds/session_get.py20 # Create the requestCOMMENT
MEDIUM…ngine-suite/src/engine_test/cmds/session_delete_all.py19 # Create the requestCOMMENT
MEDIUM…ngine-suite/src/engine_test/cmds/session_delete_all.py32 # Create the list of sessions to deleteCOMMENT
MEDIUM…ls/engine-suite/src/engine_test/cmds/session_delete.py21 # Create the requestCOMMENT
MEDIUM…ools/engine-suite/src/engine_test/cmds/session_list.py19 # Create the requestCOMMENT
MEDIUM…tools/engine-suite/src/engine_test/cmds/session_add.py22 # Create the requestCOMMENT
MEDIUM…tools/engine-suite/src/engine_test/conf/integration.py110 # Create a new instance with the extracted valuesCOMMENT
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/update.py21 # Create the requestCOMMENT
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/delete.py18 # Create the requestCOMMENT
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/ingest.py18 # Create the requestCOMMENT
MEDIUM…gine/tools/engine-suite/src/engine_router/cmds/list.py18 # Create the requestCOMMENT
MEDIUM…ngine/tools/engine-suite/src/engine_router/cmds/add.py21 # Create the requestCOMMENT
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/reload.py20 # Create the requestCOMMENT
MEDIUM…ngine/tools/engine-suite/src/engine_router/cmds/get.py19 # Create the requestCOMMENT
MEDIUM…ngine/test/integration_tests/tester/steps/api_steps.py247 # Create the session pointing to namespaceId == policy_nameCOMMENT
MEDIUM…ngine/test/integration_tests/router/steps/api_steps.py239 # Create the route pointing to namespaceId == policy_nameCOMMENT
1 more matches not shown…
Cross-Language Confusion29 hits · 171 pts
SeverityFileLineSnippetContext
HIGHframework/wazuh/core/wdb.py258 if v == "(null)":CODE
HIGHframework/wazuh/core/wdb.py283 if '"(null)"' in string:CODE
HIGHframework/wazuh/core/wdb.py284 # To prevent empty dictionaries, clean data if there was any `"(null)"` within the stringCOMMENT
HIGHframework/wazuh/core/wazuh_queue.py21 String indicating the agent_id if the message will be sent to a specific agent, or '(null)' if it will be sentSTRING
HIGHframework/wazuh/core/wazuh_queue.py110 - (msg_to_agent) [] ANN (null) restart-wazuh0 arg1 arg2 arg3STRING
HIGHframework/wazuh/core/wazuh_queue.py113 - (msg_to_agent) [] ANN (null) !test.sh arg1 arg2 arg3STRING
HIGHframework/wazuh/core/wazuh_queue.py149 str_agent_id = '(null)'CODE
HIGHframework/wazuh/core/cluster/common.py1179 # Regex to find any character different to '\x00' (null) inside a string.COMMENT
HIGHframework/wazuh/core/cluster/common.py581 self.push(msg)CODE
HIGHframework/wazuh/core/cluster/common.py910 self.push(msg)CODE
HIGHframework/wazuh/core/cluster/common.py1170 Expected length of bytearray. If any bytearray has this length and its content is null, it will be deleted.STRING
HIGHframework/wazuh/core/cluster/tests/test_common.py549 handler.push(b"message")CODE
HIGHframework/wazuh/core/tests/test_wdb.py162 Tests '(null)' values are removed from the resulting dictionarySTRING
HIGHframework/wazuh/core/tests/test_wdb.py165 nulls_string = b' [{"a": "a", "b": "(null)", "c": [1, 2, 3], "d": {"e": "(null)"}}]'CODE
HIGHframework/wazuh/core/tests/test_wdb.py273 '[{"key1": "value1"}, {"invalid": "(null)"}]',CODE
HIGHframework/wazuh/core/indexer/max_version_components.py158 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py159 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py161 if (ctx._source.wazuh.agent.groups != null && ctx._source.wazuh.agent.groups == params.groups) {CODE
HIGHframework/wazuh/core/indexer/max_version_components.py168 if (ctx._source.state == null) { ctx._source.state = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py274 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py275 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py276 if (ctx._source.wazuh.cluster == null) { ctx._source.wazuh.cluster = [:]; }CODE
HIGHframework/wazuh/core/indexer/max_version_components.py283 if (ctx._source.state == null) { ctx._source.state = [:]; }CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py298 if (chartId && data[name]) {CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py299 data[name].x.push(now);CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py300 data[name].y.push(metric.value);CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py314 sd.x.push(now);CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py315 sd.y.push(metric.value);CODE
HIGHsrc/engine/tools/devContainer/scripts/monitor.py242 "'pkill -9 -f %s && service wazuh-manager restart' before re-running.",CODE
Structural Annotation Overuse94 hits · 166 pts
SeverityFileLineSnippetContext
LOW…asic_usage/test_orphan_promote_after_config_removal.py188 # Step 1: agent is up via daemons_handler. The baseline scan hasCOMMENT
LOW…asic_usage/test_orphan_promote_after_config_removal.py201 # Step 2: stop the agent, drop the realtime <directories> rule fromCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md257### Step 1: Export from 4.xCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md274### Step 2: Restore on 5.xCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md293### Step 3: Configure the group on one agent onlyCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md320### Step 4: Enroll the agentsCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md330### Step 5: VerifyCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md362### Step 6: Assign the remaining agent manuallyCOMMENT
LOWdocs/guide/migration/remote-agent-upgrade.md252### Step 1: Upgrade to v4.14.xCOMMENT
LOWdocs/guide/migration/remote-agent-upgrade.md279### Step 2: Upgrade to v5.0.0COMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md159### Step 1: Inventory your 4.x rulesCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md177### Step 2: Map rule identificationCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md187### Step 3: Map severity levelsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md211### Step 4: Rewrite detection logicCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md448### Step 5: Assign rules to an integrationCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md496### Step 6: Migrate metadataCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md518### Step 7: Migrate MITRE ATT&CK mappingsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md558### Step 8: Migrate compliance mappingsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md607### Step 9: Migrate tags and groupsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md628### Step 10: Handle rules that cannot be directly migratedCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md715### Step 11: Deploy and testCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md20### Step 1: Include HeadersCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md28### Step 2: Initialize During Module StartupCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md52### Step 3: Create Helper Function for ValidationCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md101### Step 4: Validate Before Sending DataCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md130### Step 5: Implement Batch DeletionCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md204### Step 1: Include HeadersCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md212### Step 2: Initialize During Module StartupCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md232### Step 3: Validate Before Sending DataCOMMENT
LOW…ef/modules/utils/schema-validator/integration-guide.md270### Step 4: Implement Batch DeletionCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md16### Step 1: Include Required HeadersCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md33### Step 2: Initialize the ProtocolCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md94### Step 3: Persist Module DataCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md243### Step 4: Process Manager ResponsesCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md277### Step 5: Trigger SynchronizationCOMMENT
LOWdocs/ref/modules/fim/architecture.md506#### Step 1: Database Entry Count CheckCOMMENT
LOWdocs/ref/modules/fim/architecture.md534#### Step 2: Data Clean NotificationCOMMENT
LOWdocs/ref/modules/fim/architecture.md562#### Step 3: Database CleanupCOMMENT
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5487 // Step 1: Clear all DataContextCOMMENT
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5493 // Step 2: Fetch pending DataValue items (onlyDataValues=true)COMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp284 // Step 1: Persist DataValue itemsCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp293 // Step 2: Persist DataContext itemsCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp302 // Step 3: Verify we have both typesCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp306 // Step 4: Clear all DataContextCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp309 // Step 5: Fetch only DataValuesCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp292 // Step 1: Send Start message with mode ModuleCheckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp302 // Step 2: Send ChecksumModule messageCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp312 // Step 3: Send End message and wait for EndAckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp367 // Step 1: Send Start message and wait for StartAckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp370 // Step 2: Send End message and wait for EndAck (no Data messages)COMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp429 // Step 1: Send Start message with the indices and sizeCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp432 // Step 2: Send DataClean message for each indexCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp435 // Step 3: Send End message and wait for EndAckCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1566 // Step 1: Get version from each moduleCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1619 // Step 2: Calculate new versionCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1627 // Step 3: Set new version on all modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1677 // Step 1: Pause all coordination modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1698 // Step 2: Get versions, calculate new version, and set it on all modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1707 // Step 3: Trigger flush while still paused.COMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1717 // Step 4: Resume all modules immediately. The pause window is now minimized to:COMMENT
34 more matches not shown…
Verbosity Indicators52 hits · 104 pts
SeverityFileLineSnippetContext
LOW…asic_usage/test_orphan_promote_after_config_removal.py188 # Step 1: agent is up via daemons_handler. The baseline scan hasCOMMENT
LOW…asic_usage/test_orphan_promote_after_config_removal.py201 # Step 2: stop the agent, drop the realtime <directories> rule fromCOMMENT
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5487 // Step 1: Clear all DataContextCOMMENT
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5493 // Step 2: Fetch pending DataValue items (onlyDataValues=true)COMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp284 // Step 1: Persist DataValue itemsCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp293 // Step 2: Persist DataContext itemsCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp302 // Step 3: Verify we have both typesCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp306 // Step 4: Clear all DataContextCOMMENT
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp309 // Step 5: Fetch only DataValuesCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp292 // Step 1: Send Start message with mode ModuleCheckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp302 // Step 2: Send ChecksumModule messageCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp312 // Step 3: Send End message and wait for EndAckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp367 // Step 1: Send Start message and wait for StartAckCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp370 // Step 2: Send End message and wait for EndAck (no Data messages)COMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp429 // Step 1: Send Start message with the indices and sizeCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp432 // Step 2: Send DataClean message for each indexCOMMENT
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp435 // Step 3: Send End message and wait for EndAckCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1566 // Step 1: Get version from each moduleCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1619 // Step 2: Calculate new versionCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1627 // Step 3: Set new version on all modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1677 // Step 1: Pause all coordination modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1698 // Step 2: Get versions, calculate new version, and set it on all modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1707 // Step 3: Trigger flush while still paused.COMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1717 // Step 4: Resume all modules immediately. The pause window is now minimized to:COMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1724 // Step 5: Wait for flush completion before handing the new version to the manager.COMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1737 // Step 6: Build indices list based on enabled modules and synchronize.COMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2566 // Step 0: Clear any existing DataContext from previous scansCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2570 // Step 1: Fetch pending DataValue items from syscollector_vd_sync.dbCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2578 // Step 2: Build exclusion sets - IDs of items already submitted as DataValueCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2587 // Step 3: Determine what DataContext tables are needed based on platform rulesCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2605 // Step 4: Fetch and submit DataContext for each required tableCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp3424 // Step 1: Generate stateful DELETE events for each excess recordCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp3456 // Step 2: Reset sync flag to 0 for these recordsCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4710 // Step 1: Delete all rows in a transactionCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4739 // Step 2: Re-insert rows with new sync value in a transaction to force commitCOMMENT
LOW…tory_sync/benchmark/scripts/orchestrate_real_agents.sh373 # Step 1: stop + wipe (serial — fast and idempotent).COMMENT
LOW…tory_sync/benchmark/scripts/orchestrate_real_agents.sh396 # Step 2: parallel start so all VMs kick off their first-sync ~simultaneously.COMMENT
LOWsrc/logcollector/src/logcollector.c1533 /* Because Windows cache's files, we need to check if the fileCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh434 # Step 1: Stop managerCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh437 # Step 2: Start analysisdCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh440 # Step 3: Wait for engine readyCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh443 # Step 4: Start resource monitorCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh446 # Step 5: Grace period before benchmarkCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh466 # Step 7: Grace period after benchmarkCOMMENT
LOWsrc/engine/test/acceptance_test/acceptance_test.sh470 # Step 8: Stop monitor & analysisdCOMMENT
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp439 // Step 1: Import into temp namespace (validates structure).COMMENT
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp449 // Step 2: If has integrations, post a tester entry to validateCOMMENT
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp470 // Step 3: Decide what to do with the persistent test session.COMMENT
LOWsrc/engine/source/iockvdb/src/manager.cpp426 // Step 1: Atomically transfer instance from source to targetCOMMENT
LOWsrc/engine/source/iockvdb/src/manager.cpp430 // Step 2: Enqueue old target instance for safe deletionCOMMENT
LOWsrc/engine/source/router/src/router.cpp169 // Step 1: Create new environment WITHOUT any lockCOMMENT
LOWsrc/engine/source/router/src/router.cpp181 // Step 2: Atomically swap the environmentCOMMENT
AI Structural Patterns74 hits · 72 pts
SeverityFileLineSnippetContext
LOWframework/scripts/tests/test_agent_groups.py376CODE
LOWframework/wazuh/security.py70CODE
LOWframework/wazuh/security.py300CODE
LOWframework/wazuh/security.py472CODE
LOWframework/wazuh/security.py651CODE
LOWframework/wazuh/mitre.py32CODE
LOWframework/wazuh/mitre.py79CODE
LOWframework/wazuh/mitre.py124CODE
LOWframework/wazuh/mitre.py171CODE
LOWframework/wazuh/mitre.py218CODE
LOWframework/wazuh/mitre.py265CODE
LOWframework/wazuh/agent.py441CODE
LOWframework/wazuh/agent.py502CODE
LOWframework/wazuh/agent.py698CODE
LOWframework/wazuh/agent.py779CODE
LOWframework/wazuh/agent.py1222CODE
LOWframework/wazuh/manager.py143CODE
LOWframework/wazuh/core/task.py15CODE
LOWframework/wazuh/core/results.py330CODE
LOWframework/wazuh/core/results.py347CODE
LOWframework/wazuh/core/utils.py71CODE
LOWframework/wazuh/core/mitre.py41CODE
LOWframework/wazuh/core/mitre.py184CODE
LOWframework/wazuh/core/mitre.py239CODE
LOWframework/wazuh/core/mitre.py294CODE
LOWframework/wazuh/core/mitre.py350CODE
LOWframework/wazuh/core/mitre.py436CODE
LOWframework/wazuh/core/mitre.py493CODE
LOWframework/wazuh/core/mitre.py576CODE
LOWframework/wazuh/core/mitre.py685CODE
LOWframework/wazuh/core/mitre.py784CODE
LOWframework/wazuh/core/agent.py1480CODE
LOWframework/wazuh/core/agent.py1628CODE
LOWframework/wazuh/core/agent.py67CODE
LOWframework/wazuh/core/agent.py352CODE
LOWframework/wazuh/core/agent.py1099CODE
LOWframework/wazuh/core/agent.py1038CODE
LOWframework/wazuh/core/cluster/server.py429CODE
LOWframework/wazuh/core/cluster/control.py15CODE
LOWframework/wazuh/core/cluster/dapi/dapi.py51CODE
LOWapi/api/middlewares.py325CODE
LOWapi/api/controllers/task_controller.py19CODE
LOWapi/api/controllers/cluster_controller.py56CODE
LOWapi/api/controllers/cluster_controller.py379CODE
LOWapi/api/controllers/agent_controller.py28CODE
LOWapi/api/controllers/agent_controller.py102CODE
LOWapi/api/controllers/agent_controller.py553CODE
LOWapi/api/controllers/agent_controller.py636CODE
LOWapi/api/controllers/agent_controller.py709CODE
LOWapi/api/controllers/agent_controller.py988CODE
LOWapi/api/controllers/agent_controller.py1052CODE
LOWapi/api/controllers/agent_controller.py1230CODE
LOWapi/api/controllers/agent_controller.py1571CODE
LOWapi/api/controllers/agent_controller.py1620CODE
LOWapi/api/controllers/agent_controller.py1670CODE
LOWapi/api/controllers/security_controller.py193CODE
LOWapi/api/controllers/security_controller.py387CODE
LOWapi/api/controllers/security_controller.py545CODE
LOWapi/api/controllers/security_controller.py703CODE
LOWapi/api/controllers/mitre_controller.py47CODE
14 more matches not shown…
AI Slop Vocabulary26 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml3499 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure locationCOMMENT
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml8057 # 18.6.11.3 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (AutoCOMMENT
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml8143 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HKCODE
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml12050 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDriveCODE
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml13746 description: 'This policy setting specifies whether computers in your environment will receive security updates fromCODE
MEDIUMruleset/sca/windows/cis_win2012r2.yml3223 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure locationCOMMENT
MEDIUMruleset/sca/windows/cis_win2012r2.yml7675 # 18.6.11.3 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (AutoCOMMENT
MEDIUMruleset/sca/windows/cis_win2012r2.yml7720 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HKCODE
MEDIUMruleset/sca/windows/cis_win2012r2.yml11824 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDriveCODE
MEDIUMruleset/sca/windows/cis_win2012r2.yml13670 description: 'This policy setting specifies whether computers in your environment will receive security updates fromCODE
MEDIUMframework/wazuh/core/mitre.py878 """This function loads the MITRE data in order to speed up the use of the Framework function.STRING
MEDIUMframework/wazuh/core/cluster/tests/test_worker.py196 """Mock method in order to obtain a particular output."""STRING
MEDIUMframework/wazuh/core/cluster/tests/test_worker.py232 """Mock method in order to obtain a particular output."""STRING
MEDIUMframework/wazuh/tests/data/schema_mitre_test.sql259INSERT INTO mitigation VALUES('course-of-action--aeff5887-8f9e-48d5-a523-9b395e2ce80a','Credential Dumping Mitigation',rCODE
MEDIUMframework/wazuh/tests/data/schema_mitre_test.sql518INSERT INTO use VALUES('relationship--dc10e96f-1d3c-4ab9-8df6-acdc8238ec6c','intrusion-set--bef4c620-0787-42a8-a96d-b7ebCODE
MEDIUM.github/workflows/5_testintegration_inventory-sync.yml142 # harness registers without a password, so keep use_password off regardlessCOMMENT
MEDIUMwodles/aws/tests/test_guardduty.py155 """Test 'send_event' method makes the necessary calls in order to send the event to Analysisd."""STRING
MEDIUMwodles/aws/tests/test_vpcflow.py173 """Test 'iter_regions_and_accounts' method makes the necessary calls in order to process the bucket's files.STRING
MEDIUMwodles/aws/tests/test_aws_bucket.py609 """Test 'iter_regions_and_accounts' method makes the necessary calls in order to process the bucket's files."""STRING
MEDIUMwodles/aws/tests/test_aws_bucket.py631 """Test 'send_event' method makes the necessary calls in order to send an event to Analysisd."""STRING
MEDIUMwodles/aws/tests/test_aws_bucket.py791 """Test 'check_bucket' method makes the necessary method calls in order to verify that the bucket is not empty."""STRING
MEDIUMwodles/aws/tests/test_aws_bucket.py1131 """Test 'iter_regions_and_accounts' method makes the necessary calls in order to process the bucket's files."""STRING
MEDIUMwodles/aws/tests/test_cloudwatchlogs.py82 """Test 'get_alerts' method makes the expected calls in order to fetch the events and send them to Analysisd.STRING
MEDIUMwodles/aws/tests/test_cloudwatchlogs.py126 """Test 'remove_aws_log_stream' method makes the necessary calls in order to remove the specified log streamSTRING
LOW…tory_sync/benchmark/scripts/orchestrate_real_agents.sh165# If ssh-config is given, we just pass the host name; ssh will resolve User,COMMENT
MEDIUMsrc/engine/test/acceptance_test/acceptance_test.sh3# acceptance_test.sh – Engine benchmark harnessCOMMENT
Fake / Example Data46 hits · 42 pts
SeverityFileLineSnippetContext
LOWframework/wazuh/core/tests/test_configuration.py473 configuration.write_ossec_conf(new_conf="placeholder")CODE
LOWwodles/gcloud/tests/test_subscriber.py138 pubsub.subscriber.pull.side_effect = google_exceptions.DeadlineExceeded("placeholder")CODE
LOWwodles/gcloud/tests/test_bucket.py331 mock_client.get_bucket.side_effect = google_exception("placeholder")CODE
LOWwodles/aws/tests/test_aws_bucket.py1420 result = instance.load_information_from_file('fake_key')CODE
LOWwodles/aws/tests/test_aws_bucket.py1440 instance.load_information_from_file('fake_key')CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp102 {"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp108 {"address", {{"street", "123 Main St"}, {"city", "New York"}}}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp121 nlohmann::json message = {{"name", "John Doe"}, {"age", "not a number"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp134 nlohmann::json message = {{"name", "John Doe"}, {"age", "30"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp147 nlohmann::json message = {{"name", "John Doe"}, {"age", 30.5}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp162 {"name", "John Doe"}, {"age", 30}, {"extra_field", "not allowed"}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp179 {"name", "John Doe"}, {"age", 30}, {"extra_field", nullptr}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp195 {"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp197 {"address", {{"street", "123 Main St"}, {"city", "New York"}, {"extra", nullptr}}}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp213 {"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp215 {"address", {{"street", "123 Main St"}, {"city", "New York"}, {"extra", "not allowed"}}}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp229 nlohmann::json message = {{"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp231 {"address", {{"street", "123 Main St"}, {"city", "New York"}}}CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp245 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", 1735468800000}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp258 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", 1735468800}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp271 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", "2025-12-29T10:00:00.000Z"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp284 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", "123"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp297 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", true}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp331 {"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp346 std::string messageStr = R"({"name": "John Doe", "age": 30, "email": "john@example.com"})";CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp358 std::string messageStr = R"({"name": "John Doe", "age": 30,})";CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp398 nlohmann::json message = {{"name", nlohmann::json::array({"John Doe", "Jane Doe"})}, {"age", 30}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp398 nlohmann::json message = {{"name", nlohmann::json::array({"John Doe", "Jane Doe"})}, {"age", 30}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp424 nlohmann::json message = {{"name", "John Doe"}, {"age", nlohmann::json::array({30, 31, 32})}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp439 {"name", "John Doe"},CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp490 nlohmann::json message = {{"name", "John Doe"}, {"age", nlohmann::json::array({30, "invalid"})}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp504 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "true"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp517 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "false"}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp530 nlohmann::json message = {{"name", "John Doe"}, {"is_active", 1}};CODE
LOW…odules/schema_validator/tests/schemaValidator_test.cpp543 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "yes"}};CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c212 node->key = "dummy_key";CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c526 const char *dummy_key = "1";CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c532 __real_OSHash_Add_ex(syscheck.realtime->dirtb, dummy_key, (void *) path);CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c540 expect_string(__wrap_OSHash_Get_ex, key, dummy_key);CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c829 expect_string(__wrap_OSHash_Delete_ex, key, "dummy_key");CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c922 expect_string(__wrap_OSHash_Delete_ex, key, "dummy_key");CODE
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp80 "street": "123 Main St",CODE
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp101 street: "123 Main St"CODE
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp146 "street": "123 Main St",CODE
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp183 "street": "123 Main St",CODE
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp213 "street": "123 Main St",CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALwodles/azure/azure_services/storage.py15from azure.core.exceptions import AzureError, ClientAuthenticationError, HttpResponseError, ResourceExistsError, \CODE
CRITICALwodles/azure/tests/azure_services/test_storage.py18from azure.core.exceptions import AzureError, ClientAuthenticationError, HttpResponseError, ResourceModifiedErrorCODE
Example Usage Blocks10 hits · 17 pts
SeverityFileLineSnippetContext
LOWtools/purge_wazuh.sh5# Usage:COMMENT
LOW…zuh_modules/inventory_sync/benchmark/cleanup_agents.sh9# Usage:COMMENT
LOW…h_modules/inventory_sync/benchmark/run_monitor_only.sh21# Usage:COMMENT
LOW…azuh_modules/inventory_sync/benchmark/run_benchmark.sh10# Usage:COMMENT
LOW…tory_sync/benchmark/scripts/orchestrate_real_agents.sh31# Usage:COMMENT
LOW…sync/benchmark/scripts/syscollector_inventory_count.sh14# Usage:COMMENT
LOWsrc/engine/tools/devContainer/scripts/pr-clang.sh8# Usage:COMMENT
LOW…/tools/devContainer/scripts/clean-unused-containers.sh15# Usage:COMMENT
LOW…gine/tools/devContainer/scripts/toggle_event_dumper.sh4# Usage:COMMENT
LOWsrc/engine/internal_packages/debs/SPECS/build_venv.sh10# Usage:COMMENT
Modern Structural Boilerplate17 hits · 16 pts
SeverityFileLineSnippetContext
LOWframework/wazuh/core/wdb_http.py191 async def set_agents_sync(self, agents_sync: dict) -> None:CODE
LOWtests/integration/conftest.py181def set_wazuh_configuration(request: pytest.FixtureRequest, test_configuration: dict) -> None:CODE
LOWtests/integration/test_api/test_rbac/conftest.py12def set_security_resources(wait_for_api_start, test_metadata: dict) -> None:CODE
LOWtests/integration/test_aws/conftest.py534def set_test_sqs_queue(metadata: dict, sqs_manager, s3_client) -> None:CODE
LOWtests/integration/test_aws/configurator.py76 def _set_session_id(self) -> None:CODE
LOWwodles/gcloud/tests/test_exceptions.py16logger = logging.getLogger(__name__)CODE
LOWwodles/gcloud/tests/test_access_logs.py18logger = logging.getLogger(__name__)CODE
LOWwodles/azure/tests/test_db_utils.py18logger = logging.getLogger(__name__)CODE
LOWwodles/azure/tests/test_azure_logs.py21logger = logging.getLogger(__name__)CODE
LOWwodles/tests/test_utils.py14logger = logging.getLogger(__name__)CODE
LOWwodles/tests/test_aws_tools.py15logger = logging.getLogger(__name__)CODE
LOWwodles/tests/test_docker_listener.py16logger = logging.getLogger(__name__)CODE
LOWwodles/aws/buckets_s3/__init__.py15__all__ = [CODE
LOWwodles/aws/subscribers/__init__.py10__all__ = [CODE
LOWwodles/aws/services/__init__.py9__all__ = [CODE
LOW…e/tools/engine-schema/src/engine_schema/cmds/_types.py26def update_types_file(mappings_wrapper: Dict[str, Any], output_path: Union[Path, str]) -> None:CODE
LOW…e/test/engine-test-utils/src/engine_handler/handler.py49 def _set_env(self) -> None:CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/guide/migration/integratord-notifications.md193 <api_key>YOUR_API_KEY</api_key>CODE
HIGHdocs/guide/migration/integratord-notifications.md202 <api_key>YOUR_API_KEY</api_key>CODE
HIGHdocs/guide/migration/virustotal-migration.md19 <api_key>YOUR_API_KEY</api_key>CODE
Overly Generic Function Names9 hits · 12 pts
SeverityFileLineSnippetContext
LOW…wazuh/core/cluster/hap_helper/tests/test_hap_helper.py57 def helper(self, proxy_mock: mock.MagicMock, dapi_mock: mock.MagicMock):CODE
LOWframework/wazuh/core/tests/test_decorators.py9 def test_function():CODE
LOWframework/wazuh/core/tests/test_decorators.py21 def test_function(a, b, c=0):CODE
LOWframework/wazuh/core/tests/test_decorators.py32 async def test_function():CODE
LOWframework/wazuh/core/tests/test_decorators.py46 async def test_function(a, b):CODE
LOWframework/wazuh/core/tests/test_decorators.py58 def test_function():CODE
LOWframework/wazuh/core/tests/test_decorators.py68 def test_function():CODE
LOWwodles/gcloud/integration.py79 def process_data(self):CODE
LOWwodles/gcloud/buckets/bucket.py233 def process_data(self):CODE
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOWsrc/shared_modules/utils/socketWrapper.hpp460 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp465 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp609 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp614 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp768 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp773 // TODO: Handle errorCOMMENT
LOWsrc/engine/source/base/include/base/utils/ipUtils.hpp32// TODO: implementCOMMENT
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMsrc/engine/test/acceptance_test/README.md10├── acceptance_test.sh # Main orchestration scriptCODE
MEDIUMsrc/engine/source/README.md162## Startup & dependency injection (`main.cpp`)COMMENT