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
4.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
15,744
Stars
C++
Language
1,397,594
Lines of Code
5082
Files
4370
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 231MEDIUM 754LOW 3383

Pattern Findings

4370 matches across 17 categories. Click a row to expand file-level details.

Decorative Section Separators585 hits · 1862 pts
SeverityFileLineSnippet
MEDIUMtools/devContainer/reinstall-cmake.sh2#-------------------------------------------------------------------------------------------------------------
MEDIUMtools/devContainer/reinstall-cmake.sh5#-------------------------------------------------------------------------------------------------------------
MEDIUMframework/wazuh/rbac/tests/test_decorators.py194# ---------------------------------------------------------------------------
MEDIUMframework/wazuh/rbac/tests/test_decorators.py196# ---------------------------------------------------------------------------
MEDIUMframework/wazuh/rbac/tests/test_decorators.py240# ---------------------------------------------------------------------------
MEDIUMframework/wazuh/rbac/tests/test_decorators.py242# ---------------------------------------------------------------------------
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py16# =============================
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py18# =============================
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py31# =============================
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py33# =============================
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py68# ============================================================
MEDIUM…ork/wazuh/core/cluster/tests/test_cluster_name_sync.py70# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py11# =============================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py13# =============================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py44# =============================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py46# =============================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py88# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py90# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py178# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py180# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py261# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py263# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py423# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py425# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py481# ============================================================
MEDIUM…re/cluster/tests/test_cluster_name_sync_integration.py483# ============================================================
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py619# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py621# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py718# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py720# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py886# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py888# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py957# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py959# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1113# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1115# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1238# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1240# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1418# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1420# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1610# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1612# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1714# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1716# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1775# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1777# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2062# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2064# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2142# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py2144# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py177# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py179# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py212# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py214# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py391# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py393# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1055# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1057# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1335# ---------------------------------------------------------------------------
MEDIUM…work/wazuh/core/indexer/tests/test_metrics_snapshot.py1337# ---------------------------------------------------------------------------
525 more matches not shown…
Hyper-Verbose Identifiers1368 hits · 1277 pts
SeverityFileLineSnippet
LOWtools/mitre/mitredb.py570def parse_json_ext_references(data_object):
LOWframework/scripts/rbac_control.py24async def restore_default_passwords(script_args):
LOWframework/scripts/tests/test_agent_upgrade.py32def test_get_script_arguments(mock_ArgumentParser):
LOWframework/scripts/tests/test_agent_upgrade.py223async def test_main_internal_error_ko(capfd):
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py256def test_get_script_arguments(argument_parser_mock):
LOWframework/scripts/tests/test_rbac_control.py41async def test_restore_default_passwords(forward_mock: AsyncMock, safe_load_mock, print_mock, user_input, db_setup):
LOWframework/scripts/tests/test_rbac_control.py66async def test_restore_default_passwords_exceptions(safe_load_mock, getpass_mock, print_mock):
LOWframework/scripts/tests/test_rbac_control.py104async def test_reset_rbac_database_exceptions(input_mock, print_mock):
LOWframework/scripts/tests/test_rbac_control.py114def test_get_script_arguments(exit_mock):
LOWframework/scripts/tests/test_agent_groups.py77async def test_show_agents_with_group(print_mock):
LOWframework/scripts/tests/test_agent_groups.py334def test_get_script_arguments(argument_parser_mock, invalid_option_mock):
LOWframework/scripts/tests/test_cluster_control.py292 def add_mutually_exclusive_group(self):
LOWframework/wazuh/security.py1192def revoke_current_user_tokens() -> WazuhResult:
LOWframework/wazuh/stats.py185def get_agents_component_stats_json(agent_list: list = None, component: str = None) -> AffectedItemsWazuhResult:
LOWframework/wazuh/agent.py122def get_agents_summary_status(agent_list: list[str] = None) -> WazuhResult:
LOWframework/wazuh/agent.py1578def check_uninstall_permission() -> WazuhResult:
LOWframework/wazuh/rbac/orm.py1816 def get_all_policies_from_role(self, role_id: int) -> Union[list, bool]:
LOWframework/wazuh/rbac/orm.py1842 def get_all_roles_from_policy(self, policy_id: int) -> Union[list, bool]:
LOWframework/wazuh/rbac/orm.py2456 def _set_permissions_and_ownership(database: str):
LOWframework/wazuh/rbac/decorators.py77def _combination_defined_rbac(needed_resources: list, user_resources: str) -> bool:
LOWframework/wazuh/rbac/decorators.py279def _get_required_permissions(actions: list = None, resources: list = None, **kwargs: dict) -> tuple:
LOWframework/wazuh/rbac/decorators.py573def _mask_all_sensitive_fields(text: str, mask_text: str = "***") -> str:
LOWframework/wazuh/rbac/tests/test_orm.py502def test_get_all_roles_from_user(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py512def test_get_all_policy_from_role(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py522def test_get_all_role_from_policy(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py532def test_remove_role_from_user(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py542def test_remove_policy_from_role(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py689def test_databasemanager_rollback(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py696def test_databasemanager_set_database_version(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py706def test_check_database_integrity(chmod_mock, chown_mock, remove_mock, safe_move_mock, fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py100def test_token_valid_after_revoke_same_second_ms(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py133def test_delete_all_expired_rules(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py262def test_delete_all_security_rules(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py453def test_add_role_policy_level(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py553def test_remove_role_from_policy(db_setup):
LOWframework/wazuh/rbac/tests/test_orm.py564def test_databasemanager___init__(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py572def test_databasemanager_connect(sessionmaker_mock, create_engine_mock, fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py587def test_databasemanager_close_sessions(sessionmaker_mock, create_engine_mock, fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py600def test_databasemanager_create_database(create_db_mock, fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py613def test_databasemanager_get_database_version(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py619def test_databasemanager_insert_default_resources(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py663def test_databasemanager_get_table(fresh_in_memory_db):
LOWframework/wazuh/rbac/tests/test_orm.py752def test_check_database_integrity_exceptions(remove_mock, close_sessions_mock, exception, fresh_in_memory_db):
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_m
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_
LOWframework/wazuh/rbac/tests/test_decorators.py198def test_has_update_permissions_no_perms(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py204def test_has_update_permissions_with_manager_update_config(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py210def test_has_update_permissions_with_cluster_update_config(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py216def test_has_update_permissions_read_only_role(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py222def test_has_update_permissions_empty_action_dict(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py228def test_has_update_permissions_non_dict_action_value(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py234def test_has_update_permissions_none_rbac(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py113def test_expose_resourcesless(db_setup, decorator_params, rbac, allowed, mode):
LOWframework/wazuh/rbac/tests/test_decorators.py158def test_mask_sensitive_config_without_permissions(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py170def test_mask_sensitive_config_with_permissions(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py181def test_mask_sensitive_config_on_affected_items_result(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py288def test_mask_sensitive_config_raw_xml_without_permissions(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py304def test_mask_sensitive_config_raw_xml_with_permissions(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py316def test_mask_sensitive_config_raw_xml_cluster_perm(db_setup):
LOWframework/wazuh/rbac/tests/test_decorators.py328def test_mask_sensitive_config_raw_xml_no_cluster_block(db_setup):
1308 more matches not shown…
Over-Commented Block790 hits · 774 pts
SeverityFileLineSnippet
LOWtools/purge_wazuh.sh1#!/usr/bin/env bash
LOWtools/testing/enrollment-simulator/src/simulator.cpp1#include "simulator.h"
LOWtools/testing/enrollment-simulator/src/simulator.h1#pragma once
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml1# Security Configuration Assessment
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml2061 rules:
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml2081 # 3.2.1 Ensure IP forwarding is disabled. (Automated) - Not implemented
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml5021 condition: all
LOWruleset/sca/amazon/cis_amazon_linux_1.yml1# Security Configuration Assessment
LOWruleset/sca/amazon/cis_amazon_linux_2.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian8.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian9.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian13.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian13.yml1981 - "not c:dpkg-query -s bluez -> r:install ok installed"
LOWruleset/sca/debian/cis_debian12.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian12.yml1981 - "not c:dpkg-query -s bluez -> r:install ok installed"
LOWruleset/sca/debian/cis_debian10.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian10.yml2321 tactic: ["TA0005"]
LOWruleset/sca/debian/cis_debian11.yml1# Security Configuration Assessment
LOWruleset/sca/debian/cis_debian11.yml1301 - "not f:/etc/gdm3/custom.conf"
LOWruleset/sca/debian/cis_debian11.yml2101 - "c:dpkg-query -W -f='${binary:Package}\\t${Status}\\t${db:Status-Status}\\n' rpcbind -> r:unknown ok not-install
LOWruleset/sca/debian/cis_debian11.yml2121 # 3.2 Network Parameters (Host Only)
LOWruleset/sca/debian/cis_debian7.yml1# Security Configuration Assessment
LOWruleset/sca/rocky/cis_rocky_linux_8.yml1# Security Configuration Assessment
LOWruleset/sca/rocky/cis_rocky_linux_8.yml2381 ###############################################
LOWruleset/sca/rocky/cis_rocky_linux_8.yml3641
LOWruleset/sca/rocky/cis_rocky_linux_8.yml5061
LOWruleset/sca/rocky/cis_rocky_linux_9.yml1# Security Configuration Assessment
LOWruleset/sca/rocky/cis_rocky_linux_9.yml2141 ###############################################
LOWruleset/sca/rocky/cis_rocky_linux_9.yml2521 subtechnique: ["T1562.002", "T1070.001"]
LOWruleset/sca/rocky/cis_rocky_linux_9.yml4481 - 'c:stat /etc/gshadow- -> r:Access:\s*\(0000/----------\)\s*Uid:\s*\(\s*\t*0/\s*\t*root\)\s*\t*Gid:\s*\(\s*\t*0/\
LOWruleset/sca/rocky/cis_rocky_linux_9.yml4581 # 6.2.15 Ensure no local interactive user has .rhosts files. (Automated) - Not Implemented
LOWruleset/sca/rocky/cis_rocky_linux_10.yml1# Security Configuration Assessment
LOWruleset/sca/rocky/cis_rocky_linux_10.yml2141 ###############################################
LOWruleset/sca/rocky/cis_rocky_linux_10.yml2521 subtechnique: ["T1562.002", "T1070.001"]
LOWruleset/sca/rocky/cis_rocky_linux_10.yml4481 - 'c:stat /etc/gshadow- -> r:Access:\s*\(0000/----------\)\s*Uid:\s*\(\s*\t*0/\s*\t*root\)\s*\t*Gid:\s*\(\s*\t*0/\
LOWruleset/sca/rocky/cis_rocky_linux_10.yml4581 # 6.2.15 Ensure no local interactive user has .rhosts files. (Automated) - Not Implemented
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml1# Security Configuration Assessment
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml2061 # 3.1.3 Ensure TIPC is disabled. (Automated) - Not Implemented
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml4821 tactic: ["TA0009", "TA0010"]
LOWruleset/sca/ol/9/cis_oracle_linux_9.yml4921 # 6.2.12 Ensure local interactive user home directories are mode 750 or more restrictive. (Automated) - Not Implemente
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml1# Security Configuration Assessment
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml2061 # 3.1.3 Ensure TIPC is disabled. (Automated) - Not Implemented
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml4821 tactic: ["TA0009", "TA0010"]
LOWruleset/sca/ol/10/cis_oracle_linux_10.yml4921 # 6.2.12 Ensure local interactive user home directories are mode 750 or more restrictive. (Automated) - Not Implemente
LOWruleset/sca/centos/9/cis_centos9_linux.yml1# Security Configuration Assessment
LOWruleset/sca/centos/9/cis_centos9_linux.yml2401
LOWruleset/sca/centos/9/cis_centos9_linux.yml5461 # 6.2.11 Ensure users' home directories permissions are 750 or more restrictive. (Automated) - Not Implemented
LOWruleset/sca/centos/7/cis_centos7_linux.yml1# Security Configuration Assessment
LOWruleset/sca/centos/7/cis_centos7_linux.yml2001 # 3 Network Configuration and Firewalls
LOWruleset/sca/centos/7/cis_centos7_linux.yml5281 tactic: ["TA0005"]
LOWruleset/sca/centos/6/cis_centos6_linux.yml1# Security Configuration Assessment
LOWruleset/sca/centos/10/cis_centos10_linux.yml1# Security Configuration Assessment
LOWruleset/sca/centos/10/cis_centos10_linux.yml2401
LOWruleset/sca/centos/10/cis_centos10_linux.yml5461 # 6.2.11 Ensure users' home directories permissions are 750 or more restrictive. (Automated) - Not Implemented
LOWruleset/sca/centos/8/cis_centos8_linux.yml1# Security Configuration Assessment
LOWruleset/sca/centos/8/cis_centos8_linux.yml2401
LOWruleset/sca/centos/8/cis_centos8_linux.yml5461 # 6.2.11 Ensure users' home directories permissions are 750 or more restrictive. (Automated) - Not Implemented
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml1# Security Configuration Assessment
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml2021 - "c:rpm -q ftp -> r:^package ftp is not installed"
LOWruleset/sca/rhel/9/cis_rhel9_linux.yml2041 # 3.3.1 Ensure source routed packets are not accepted (Automated) - Not implemented
730 more matches not shown…
Cross-File Repetition150 hits · 750 pts
SeverityFileLineSnippet
HIGHframework/scripts/agent_groups.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.
HIGHframework/scripts/agent_upgrade.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.
HIGHframework/scripts/wazuh_manager_clusterd.py0get script arguments. returns ------- argparse.namespace arguments passed to the script.
HIGHframework/wazuh/core/cluster/worker.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/worker.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- args positional arguments for parent constructor class. kwargs keyword argument
HIGHframework/wazuh/core/cluster/worker.py0check whether the synchronization process was correct and free its lock. parameters ---------- future : asyncio.future o
HIGHframework/wazuh/core/cluster/worker.py0check whether the synchronization process was correct and free its lock. parameters ---------- future : asyncio.future o
HIGHframework/wazuh/core/cluster/master.py0check whether the synchronization process was correct and free its lock. parameters ---------- future : asyncio.future o
HIGHframework/wazuh/core/cluster/master.py0check whether the synchronization process was correct and free its lock. parameters ---------- future : asyncio.future o
HIGHframework/wazuh/core/cluster/master.py0check whether the synchronization process was correct and free its lock. parameters ---------- future : asyncio.future o
HIGHframework/wazuh/core/cluster/local_server.py0get basic information about the node. returns ------- dict basic node information.
HIGHframework/wazuh/core/cluster/common.py0get basic information about the node. returns ------- dict basic node information.
HIGHframework/wazuh/core/cluster/master.py0get basic information about the node. returns ------- dict basic node information.
HIGHframework/wazuh/core/cluster/common.py0define set_up_coro method. it is implemented differently for master, workers and synchronization types. raises ------- n
HIGHframework/wazuh/core/cluster/common.py0define set_up_coro method. it is implemented differently for master, workers and synchronization types. raises ------- n
HIGHframework/wazuh/core/cluster/common.py0define set_up_coro method. it is implemented differently for master, workers and synchronization types. raises ------- n
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- kwargs arguments for the parent class constructor.
HIGHframework/wazuh/core/cluster/master.py0class constructor. parameters ---------- kwargs arguments for the parent class constructor.
HIGHframework/wazuh/core/cluster/local_client.py0class constructor. parameters ---------- kwargs arguments for the parent class constructor.
HIGHframework/wazuh/core/cluster/tests/test_master.py0check if the data chunks are being properly forward to the wazuh-db socket.
HIGHframework/wazuh/core/cluster/tests/test_master.py0check if the data chunks are being properly forward to the wazuh-db socket.
HIGHframework/wazuh/core/cluster/tests/test_common.py0check if the data chunks are being properly forward to the wazuh-db socket.
HIGHframework/wazuh/core/cluster/tests/test_common.py0test if this function is properly removing the finished tasks from the queue.
HIGHframework/wazuh/core/cluster/tests/test_common.py0test if this function is properly removing the finished tasks from the queue.
HIGHframework/wazuh/core/cluster/tests/test_common.py0test if this function is properly removing the finished tasks from the queue.
HIGHtests/integration/conftest.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGHtests/integration/test_syscollector/conftest.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…ation/test_syscollector/test_configuration/__init__.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGHtests/integration/test_remoted/conftest.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…ed/test_agent_communication/test_request_agent_info.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…munication/test_multi_agent_protocols_communication.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…agent_communication/test_agents_switching_protocols.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…remoted/test_agent_communication/test_agent_version.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…_communication/test_invalid_protocols_communication.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…st_agent_communication/test_protocols_communication.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…ed/test_agent_communication/test_multi_agent_status.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…/test_agent_communication/test_agent_pending_status.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…/test_agent_communication/test_shared_configuration.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…remoted/test_configurations/test_queue_size_too_big.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…ed/test_configurations/test_invalid_connection_port.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…est_remoted/test_configurations/test_valid_local_ip.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…ed/test_configurations/test_rids_valid_closing_time.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…t_remoted/test_configurations/test_valid_queue_size.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…remoted/test_configurations/test_invalid_connection.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…t_remoted/test_configurations/test_valid_connection.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…est_configurations/test_invalid_connection_protocol.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…t_remoted/test_configurations/test_invalid_local_ip.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…/test_configurations/test_rids_invalid_closing_time.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGHtests/integration/test_remoted/test_rids/test_rids.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGHtests/integration/test_remoted/test_rids/test_config.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…oted/test_active_response/test_active_response_send.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…egration/test_remoted/test_manager/test_manager_ack.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…integration/test_remoted/test_multi_groups/conftest.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…moted/test_multi_groups/test_merged_mg_file_content.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGH…emoted/test_socket_communication/test_ping_pong_msg.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
HIGHtests/integration/test_sca/conftest.py0copyright (c) 2015-2024, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redi
90 more matches not shown…
Excessive Try-Catch Wrapping406 hits · 492 pts
SeverityFileLineSnippet
LOWtools/agent-upgrade/wpkpack.py100 except Exception as error:
MEDIUMtools/debug/csv-stat.py66 print(f'Error: File {args.file} not found.')
LOWtools/debug/csv-stat.py68 except Exception as e:
MEDIUMtools/debug/csv-stat.py69 print(f'Error: {e}')
LOWframework/scripts/agent_groups.py20except Exception as e:
MEDIUMframework/scripts/agent_groups.py21 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))
MEDIUMframework/scripts/agent_groups.py382 print("Error {0}: {1}".format(e.code, e.message))
LOWframework/scripts/agent_groups.py385 except Exception as e:
LOWframework/scripts/agent_upgrade.py25except Exception as e:
MEDIUMframework/scripts/agent_upgrade.py26 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))
MEDIUMframework/scripts/agent_upgrade.py227 print(f"Error {wazuh_err.code}: {wazuh_err.message}")
MEDIUMframework/scripts/agent_upgrade.py231 print(f"Error {getattr(e, 'ext', {}).get('code', e.status)}: {str(e.detail)}")
LOWframework/scripts/agent_upgrade.py234 except Exception as unexpected_err:
MEDIUMframework/scripts/agent_upgrade.py197def main():
LOWframework/scripts/cluster_control.py292 except Exception as e:
LOWframework/scripts/rbac_control.py14except Exception as e:
MEDIUMframework/scripts/rbac_control.py15 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))
MEDIUMframework/scripts/rbac_control.py102 print(f"Error {e.code}: {e.message}")
LOWframework/scripts/rbac_control.py103 except Exception as e:
LOWframework/scripts/wazuh_manager_clusterd.py208 except Exception as e:
LOWframework/scripts/wazuh_manager_clusterd.py214 except Exception as e:
LOWframework/scripts/wazuh_manager_clusterd.py249 except Exception as e:
LOWframework/scripts/wazuh_manager_clusterd.py271 except Exception:
LOWframework/wazuh/__init__.py31except Exception:
LOWframework/wazuh/__init__.py81 except Exception:
LOWframework/wazuh/agent.py861 except Exception as e:
LOWframework/wazuh/agent.py914 except Exception as e:
LOWframework/wazuh/rbac/orm.py2521 except Exception as e:
LOWframework/wazuh/rbac/decorators.py474 except Exception:
LOWframework/wazuh/rbac/decorators.py703 except Exception:
LOWframework/wazuh/core/configuration.py849 except Exception as e:
LOWframework/wazuh/core/configuration.py857 except Exception as e:
LOWframework/wazuh/core/configuration.py861 except Exception as e:
LOWframework/wazuh/core/configuration.py426 except Exception as e:
LOWframework/wazuh/core/configuration.py475 except Exception as e:
LOWframework/wazuh/core/configuration.py521 except Exception as e:
LOWframework/wazuh/core/configuration.py600 except Exception as e:
LOWframework/wazuh/core/configuration.py825 except Exception as e:
LOWframework/wazuh/core/configuration.py980 except Exception as unhandled_exc:
LOWframework/wazuh/core/configuration.py1008 except Exception as unhandled_exc:
LOWframework/wazuh/core/configuration.py1037 except Exception as unhandled_exc:
LOWframework/wazuh/core/configuration.py1089 except Exception as e:
LOWframework/wazuh/core/wdb.py433 except Exception as e:
MEDIUMframework/wazuh/core/wdb.py342def send_request_to_wdb(query_lower, step, off, response):
LOWframework/wazuh/core/wazuh_socket.py38 except Exception as e:
LOWframework/wazuh/core/wazuh_socket.py53 except Exception as e:
LOWframework/wazuh/core/wazuh_socket.py61 except Exception as e:
LOWframework/wazuh/core/wazuh_socket.py123 except Exception as e:
MEDIUMframework/wazuh/core/wazuh_socket.py29def _connect(self):
MEDIUMframework/wazuh/core/wazuh_socket.py56def receive(self, header_format="<I", header_size=4):
LOWframework/wazuh/core/utils.py866 except Exception as e:
LOWframework/wazuh/core/utils.py1804 except Exception as e:
LOWframework/wazuh/core/pyDaemonModule.py128 except Exception as exc:
LOWframework/wazuh/core/stats.py50 except Exception:
LOWframework/wazuh/core/agent.py842 except Exception as e:
LOWframework/wazuh/core/agent.py910 except Exception:
LOWframework/wazuh/core/agent.py915 except Exception:
LOWframework/wazuh/core/agent.py934 except Exception as e:
LOWframework/wazuh/core/agent.py1138 except Exception as e:
LOWframework/wazuh/core/wazuh_queue.py53 except Exception:
346 more matches not shown…
Deep Nesting333 hits · 307 pts
SeverityFileLineSnippet
LOWtools/mitre/mitredb.py509
LOWtools/mitre/mitredb.py585
LOWtools/mitre/mitredb.py613
LOWtools/debug/wdb-query.py94
LOWframework/scripts/agent_groups.py336
LOWframework/scripts/agent_upgrade.py159
LOWframework/scripts/cluster_control.py253
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py39
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py95
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py165
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py287
LOWframework/wazuh/security.py26
LOWframework/wazuh/security.py258
LOWframework/wazuh/security.py361
LOWframework/wazuh/security.py427
LOWframework/wazuh/security.py533
LOWframework/wazuh/security.py603
LOWframework/wazuh/security.py744
LOWframework/wazuh/security.py781
LOWframework/wazuh/security.py848
LOWframework/wazuh/security.py908
LOWframework/wazuh/security.py959
LOWframework/wazuh/security.py1009
LOWframework/wazuh/security.py1063
LOWframework/wazuh/security.py1139
LOWframework/wazuh/security.py1270
LOWframework/wazuh/stats.py19
LOWframework/wazuh/agent.py122
LOWframework/wazuh/agent.py205
LOWframework/wazuh/agent.py585
LOWframework/wazuh/agent.py698
LOWframework/wazuh/agent.py922
LOWframework/wazuh/agent.py1222
LOWframework/wazuh/agent.py1341
LOWframework/wazuh/rbac/orm.py1153
LOWframework/wazuh/rbac/orm.py1331
LOWframework/wazuh/rbac/orm.py1438
LOWframework/wazuh/rbac/orm.py1525
LOWframework/wazuh/rbac/orm.py1577
LOWframework/wazuh/rbac/orm.py1722
LOWframework/wazuh/rbac/orm.py1863
LOWframework/wazuh/rbac/orm.py2065
LOWframework/wazuh/rbac/orm.py2162
LOWframework/wazuh/rbac/orm.py2204
LOWframework/wazuh/rbac/preprocessor.py19
LOWframework/wazuh/rbac/auth_context.py37
LOWframework/wazuh/rbac/auth_context.py108
LOWframework/wazuh/rbac/auth_context.py220
LOWframework/wazuh/rbac/auth_context.py273
LOWframework/wazuh/rbac/auth_context.py315
LOWframework/wazuh/rbac/decorators.py23
LOWframework/wazuh/rbac/decorators.py77
LOWframework/wazuh/rbac/decorators.py223
LOWframework/wazuh/rbac/decorators.py279
LOWframework/wazuh/rbac/decorators.py425
LOWframework/wazuh/rbac/decorators.py629
LOWframework/wazuh/rbac/decorators.py447
LOWframework/wazuh/rbac/decorators.py449
LOWframework/wazuh/rbac/tests/test_orm.py28
LOWframework/wazuh/rbac/tests/test_orm.py336
273 more matches not shown…
Unused Imports279 hits · 273 pts
SeverityFileLineSnippet
LOWframework/wazuh/__init__.py10
LOWframework/wazuh/__init__.py10
LOWframework/wazuh/core/wdb.py12
LOWframework/wazuh/core/results.py5
LOWframework/wazuh/core/utils.py21
LOWframework/wazuh/core/utils.py29
LOWframework/wazuh/core/agent.py24
LOWframework/wazuh/core/cluster/local_server.py10
LOWframework/wazuh/core/cluster/local_server.py14
LOWframework/wazuh/core/cluster/tests/test_local_client.py15
LOWframework/wazuh/core/cluster/tests/test_local_server.py24
LOWframework/wazuh/core/cluster/tests/test_server.py18
LOWframework/wazuh/core/tests/test_stats.py7
LOWframework/wazuh/core/tests/test_task.py11
LOWframework/wazuh/core/tests/test_mitre.py14
LOWframework/wazuh/core/tests/test_agent.py16
LOWframework/wazuh/core/tests/test_pyDaemonModule.py8
LOWframework/wazuh/core/tests/test_manager.py14
LOWframework/wazuh/core/indexer/disconnected_agents.py1
LOW…rk/wazuh/core/indexer/tests/test_credential_manager.py7
LOWframework/wazuh/tests/test_task.py7
LOWframework/wazuh/tests/test_manager.py23
LOWtests/integration/test_syscollector/conftest.py20
LOWtests/integration/test_syscollector/conftest.py22
LOWtests/integration/test_syscollector/conftest.py22
LOWtests/integration/test_syscollector/conftest.py22
LOWtests/integration/test_syscollector/conftest.py22
LOW…/test_configuration/test_syscollector_configuration.py45
LOW…agent_communication/test_agents_switching_protocols.py11
LOW…st_agent_communication/test_protocols_communication.py12
LOW…st_agent_communication/test_protocols_communication.py16
LOW…st_agent_communication/test_protocols_communication.py19
LOW…remoted/test_configurations/test_queue_size_too_big.py10
LOW…ed/test_configurations/test_invalid_connection_port.py10
LOW…est_remoted/test_configurations/test_valid_local_ip.py18
LOW…ed/test_configurations/test_rids_valid_closing_time.py10
LOW…ed/test_configurations/test_rids_valid_closing_time.py12
LOW…ed/test_configurations/test_rids_valid_closing_time.py19
LOW…ed/test_configurations/test_rids_valid_closing_time.py22
LOW…ed/test_configurations/test_rids_valid_closing_time.py23
LOW…t_remoted/test_configurations/test_valid_queue_size.py10
LOW…t_remoted/test_configurations/test_valid_queue_size.py12
LOW…t_remoted/test_configurations/test_valid_queue_size.py19
LOW…remoted/test_configurations/test_invalid_connection.py10
LOW…t_remoted/test_configurations/test_valid_connection.py10
LOW…est_configurations/test_invalid_connection_protocol.py10
LOW…t_remoted/test_configurations/test_invalid_local_ip.py10
LOW…t_remoted/test_configurations/test_invalid_local_ip.py20
LOW…/test_configurations/test_rids_invalid_closing_time.py10
LOW…/test_configurations/test_rids_invalid_closing_time.py20
LOW…/test_configurations/test_rids_invalid_closing_time.py22
LOW…/test_configurations/test_rids_invalid_closing_time.py23
LOWtests/integration/test_remoted/test_rids/test_rids.py13
LOWtests/integration/test_remoted/test_rids/test_config.py15
LOW…emoted/test_socket_communication/test_ping_pong_msg.py16
LOW…ation/test_sca/test_basic/test_validate_remediation.py41
LOW…/integration/test_sca/test_basic/test_mitre_payload.py53
LOW…egration/test_sca/test_basic/test_compliance_format.py40
LOW…egration/test_sca/test_basic/test_compliance_format.py42
LOW…egration/test_sca/test_basic/test_compliance_format.py49
219 more matches not shown…
Redundant / Tautological Comments183 hits · 270 pts
SeverityFileLineSnippet
LOWtools/get_git_refs.sh148 # Check if HEAD points to a branch
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
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml69 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set mo
LOWruleset/sca/debian/cis_debian10.yml35 remediation: "Run the following script to disable the cramfs module: If the module is available in the running kerne
LOWruleset/sca/debian/cis_debian10.yml66 remediation: "Run the following script to disable the squashfs module: If the module is available in the running ker
LOWruleset/sca/debian/cis_debian10.yml92 remediation: "Run the following script to disable the udf module: If the module is available in the running kernel:
LOWruleset/sca/debian/cis_debian10.yml789 remediation: "Run the following script to disable the cramfs module: If the module is available in the running kerne
LOWruleset/sca/debian/cis_debian10.yml1289 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { l
LOWruleset/sca/debian/cis_debian10.yml1385 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env ba
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
LOWruleset/sca/rocky/cis_rocky_linux_9.yml65 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set mo
LOWruleset/sca/rocky/cis_rocky_linux_9.yml789 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set m
LOWruleset/sca/rocky/cis_rocky_linux_9.yml1401 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { l
LOWruleset/sca/rocky/cis_rocky_linux_9.yml2110 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # C
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
LOWruleset/sca/rocky/cis_rocky_linux_10.yml65 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set mo
LOWruleset/sca/rocky/cis_rocky_linux_10.yml789 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set m
LOWruleset/sca/rocky/cis_rocky_linux_10.yml1401 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { l
LOWruleset/sca/rocky/cis_rocky_linux_10.yml2110 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # C
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
LOWruleset/sca/almalinux/cis_alma_linux_10.yml67 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set mo
LOWruleset/sca/almalinux/cis_alma_linux_10.yml791 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set m
LOWruleset/sca/almalinux/cis_alma_linux_10.yml1450 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { l
LOWruleset/sca/almalinux/cis_alma_linux_10.yml1549 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env ba
LOWruleset/sca/almalinux/cis_alma_linux_10.yml2235 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # C
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
LOWruleset/sca/almalinux/cis_alma_linux_9.yml67 remediation: "Run the following script to disable the udf filesystem: #!/usr/bin/env bash { l_mname=\"udf\" # set mo
LOWruleset/sca/almalinux/cis_alma_linux_9.yml791 remediation: "Run the following script to disable usb-storage: #!/usr/bin/env bash { l_mname=\"usb-storage\" # set m
LOWruleset/sca/almalinux/cis_alma_linux_9.yml1450 remediation: "Run the following script to verify that the banner message is enabled and set: #!/usr/bin/env bash { l
LOWruleset/sca/almalinux/cis_alma_linux_9.yml1549 remediation: "Run the following script to disable automatic mounting of media for all GNOME users: #!/usr/bin/env ba
LOWruleset/sca/almalinux/cis_alma_linux_9.yml2235 remediation: "Run the following script to disable tipc: #!/usr/bin/env bash { l_mname=\"tipc\" # set module name # C
LOWframework/scripts/tests/test_cluster_control.py310 # Check if cluster is disabled and first condition
LOWframework/wazuh/agent.py942 # Check if group exists
LOWframework/wazuh/agent.py997 # Check if the group exists
LOWframework/wazuh/agent.py1054 # Check if agent and group exist
LOWframework/wazuh/agent.py1094 # Check if agent exists
LOWframework/wazuh/agent.py1152 # Check if group exists
LOWframework/wazuh/manager.py385 # Check if the configuration is valid
LOWframework/wazuh/rbac/orm.py2478 # Check if an upgrade is required
LOWframework/wazuh/core/configuration.py317 # Check if we have read the same filters before (we will need to merge them)
LOWframework/wazuh/core/configuration.py894 # Check if the group exists
LOWframework/wazuh/core/configuration.py955 # Check if the component is correct
LOWframework/wazuh/core/results.py407 # Check if error is already added
LOWframework/wazuh/core/utils.py237 # Check if every element in sort['fields'] is in allowed_sort_fields
LOWframework/wazuh/core/utils.py1796 # Check if configuration changes are allowed
LOWframework/wazuh/core/agent.py794 # Check if agent is active
LOWframework/wazuh/core/agent.py1145 # Check if the group already belongs to the agent
LOWframework/wazuh/core/agent.py1267 # Check if agent exists and the group exists
LOWframework/wazuh/core/agent.py1347 # Check if agent version is compatible with this feature
LOWframework/wazuh/core/manager.py176 # Check if configuration file exists
LOWframework/wazuh/core/cluster/common.py472 # Check if a new message was received.
LOWframework/wazuh/core/cluster/master.py512 # Check if an integrity_check has already been performed
LOWframework/wazuh/core/cluster/cluster.py200 # Check if recursive flag is set or root is actually the initial lookup directory.
LOWframework/wazuh/tests/test_agent.py830 # Check if the number of affected items matches the number of times `add_group_to_agent` was called
LOWtests/integration/test_logcollector/conftest.py103 # Write the file status
LOW…tegration/test_authd/test_api_registration/conftest.py27 # Check if specific values were set or set the defaults
LOW…est_wazuh_db/test_groups/test_sync_agent_groups_get.py100 # Check if it requires any special configuration
LOW…est_wazuh_db/test_groups/test_sync_agent_groups_get.py105 # Check if it requires the global hash.
LOW…st_ambiguous_confs/test_whodata_works_over_realtime.py167 # Write the file
LOW…_redirection/test_windows_system_folder_redirection.py149 # Write the file
123 more matches not shown…
Docstring Block Structure53 hits · 265 pts
SeverityFileLineSnippet
HIGH…ntegration/test_agentd/test_state/test_agentd_state.py162Request remoted_server the status of the agent Args: parameters: - expected_status: typ
HIGHsrc/build.py18 Process the command line arguments and executes the corresponding argument's utility. Args: - None
HIGHsrc/ci/build_tools.py32 Execute the command 'make clean' in the operating system. Args: - None Returns: - None
HIGHsrc/ci/build_tools.py61 Delete the contents of the external folder. Args: - None Returns: - None Raises:
HIGHsrc/ci/build_tools.py89 Delete a specific folder inside some module. Args: - moduleName(str): Main folder name. - addi
HIGHsrc/ci/build_tools.py132 Execute the command 'make clean-internals' in the operating system. Args: - None Returns:
HIGHsrc/ci/build_tools.py161 Execute the command 'make clean-windows' in the operating system. Args: - None Returns: -
HIGHsrc/ci/build_tools.py190 Clean the files generated in some module when it is built. Args: - moduleName(str): Library name to be
HIGHsrc/ci/build_tools.py222 Configure cmake command with specific configuration based on the parameters passed to the function. Args:
HIGHsrc/ci/build_tools.py278 Get a map with configured folders to be deleted. Args: - None Returns: - DELETE_FOLDER_DI
HIGHsrc/ci/build_tools.py294 Use make command in order to download dependencies and after that build them. Args: - targetName(s
HIGHsrc/ci/build_tools.py333 Build a library. Args: - moduleName(str): Library to be built. Returns: - None Raise
HIGHsrc/ci/build_tools.py367 Build project with flags. Args: - targetName(str): Build type to be built <
HIGHsrc/ci/utils.py49 Get current path. Args: - None Returns: - path(str): Current path. Raises: -
HIGHsrc/ci/utils.py65 Delete logs generates for a module. Args: - moduleName(str): Library to be cleaned. Returns:
HIGHsrc/ci/utils.py105 Find a file in some path. Args: - name(str): File to find. - path(str): Base path to find a fi
HIGHsrc/ci/utils.py130 Find a folder in some path. Args: - name(str): Folder to find. - path(str): Base path to find
HIGHsrc/ci/utils.py156 Return folders to be analyzed with AStyle coding style analysis tool. Args: - moduleName(str): Library
HIGHsrc/ci/utils.py193 Get directory path for a module. Args: - moduleName(str): Library to get the path of. Returns:
HIGHsrc/ci/utils.py212 Get directory path build for a module. Args: moduleName(str): Library to get the path of. Returns
HIGHsrc/ci/utils.py231 Get valid module list. Args: - None Returns: - MODULE_LIST(array): A list with valid modu
HIGHsrc/ci/utils.py247 Get valid module list. Args: - None Returns: - MODULE_LIST_STR(str): A list with valid mo
HIGHsrc/ci/utils.py263 Display a red message with the errors. Args: - msg(str): Message to show. Returns: - None
HIGHsrc/ci/utils.py279 Display a formatted green message. Args: - msg(str): Message to show. - module(str): Library u
HIGHsrc/ci/utils.py300 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mes
HIGHsrc/ci/utils.py318 Display a yellow message with some information. Args: - msg(str): Message to show. Returns:
HIGHsrc/ci/utils.py334 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mes
HIGHsrc/ci/utils.py352 Read a JSON path and convert to map. Args: - jsonFilePath(str): JSON path. Returns: - jso
HIGHsrc/ci/utils.py376 Get root path. Args: - None Returns: - path(str): Root path. Raises: - None
HIGHsrc/ci/utils.py392 Get possible build targets. Args: - None Returns: - TARGET_LIST(array): Target list
HIGHsrc/ci/run_check.py21 Check the coverage for a library being analyzed. Args: - output(str): Message to be shown in the stdou
HIGHsrc/ci/run_check.py64 Execute Address Sanitizer dynamic analysis tool using the test tool defined for a library. Args: -
HIGHsrc/ci/run_check.py110 Execute AStyle coding style analysis for the library code failing when one or more files need to be modified.
HIGHsrc/ci/run_check.py162 Execute AStyle coding style analysis tool for the library code formatting all needed files. Args:
HIGHsrc/ci/run_check.py195 Execute code coverage for a library unit tests. Args: - moduleName: Library to be analyzed using gcov
HIGHsrc/ci/run_check.py313 Execute cppcheck static analysis in the library code. Args: - moduleName: Library to be analyzed using
HIGHsrc/ci/run_check.py419 Execute scan-build for a defined target. Args: - targetName: Target to be analyzed using scan-build an
HIGHsrc/ci/run_check.py473 Execute test tool for a module with a configuration passed by parameters. Args: - moduleName(str): Lib
HIGHsrc/ci/run_check.py522 Execute test tool for a module with a configuration passed by parameters for Windows OS. Args: - m
HIGHsrc/ci/run_check.py663 Execute library tests using CTest with labels. Args: - moduleName: Library representing the tests to b
HIGHsrc/ci/run_check.py730 Results are taken in JSON format after running the test tool and validated using pytest. Args: - m
HIGHsrc/ci/run_check.py771 Execute all tests with valgrind tool in order to check memory leaks in the library code. Args: - m
HIGHsrc/ci/tests/syscheckd/test_check_module.py20 Find smokeTests inside the root path and return the complete path. Args: - moduleName(str): Library to
HIGHsrc/ci/tests/syscheckd/test_check_module.py40 Configure and format logging message. Args: - getModuleName(fixture): Return current module. Retu
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: - s
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.
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. A
HIGHsrc/ci/tests/syscheckd/test_check_module.py149 Read file transaction input files and return an array with these information in JSON format. Args:
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:
HIGHsrc/ci/tests/syscheckd/test_check_module.py203 Read registry value transaction input files and return an array with these information in JSON format. Arg
HIGHsrc/ci/tests/syscheckd/test_check_module.py229 Read registry value transaction input files and return an array with these information in JSON format. Arg
HIGHsrc/ci/tests/syscheckd/test_check_module.py261 Check result of action executed. Args: - result(map): A map with parsed result JSON. - configL
HIGHsrc/ci/tests/syscheckd/test_check_module.py283 Check result of transaction executed compared than input information. Args: - result(map): A map with
Self-Referential Comments61 hits · 190 pts
SeverityFileLineSnippet
MEDIUMtools/mitre/mitredb.py758 # Create a database connection
MEDIUMruleset/sca/debian/cis_debian10.yml118 remediation: "For specific configuration requirements of the /tmp mount for your environment, modify /etc/fstab or t
MEDIUMruleset/sca/sles/16/cis_sles16_linux.yml119 remediation: "Create or update an entry for /tmp in either /etc/fstab OR in a systemd tmp.mount file: If /etc/fstab
MEDIUMruleset/sca/sles/15/cis_sles15_linux.yml119 remediation: "Create or update an entry for /tmp in either /etc/fstab OR in a systemd tmp.mount file: If /etc/fstab
MEDIUMruleset/sca/ubuntu/cis_ubuntu20-04.yml43 remediation: "For specific configuration requirements of the /tmp mount for your environment, modify /etc/fstab or t
MEDIUMframework/wazuh/manager.py388 # Create a backup of the current configuration before attempting to replace it
MEDIUMframework/wazuh/rbac/orm.py1603 # Create a role-policy relationship if both exist
MEDIUMframework/wazuh/rbac/orm.py1765 # Create a role-policy relationship if both exist
MEDIUMframework/wazuh/rbac/orm.py1946 # Create a rule-role relationship if both exist
MEDIUMframework/wazuh/rbac/orm.py2108 # Create the relationships
MEDIUMframework/wazuh/core/cluster/master.py325 # Create an event to wait for the response.
MEDIUMframework/wazuh/core/cluster/master.py848 # Create a child process to run the task.
MEDIUMtests/integration/conftest.py614 # Create the SocketControllers
MEDIUM…ntegration/test_wazuh_db/test_backup/test_db_backup.py142 # Create the database backups and assert they have been created correctly
MEDIUM…asic_usage/test_orphan_promote_after_config_removal.py192 # Create the realtime-tracked file. inotify queues an "added" event;
MEDIUM…es/test_invalid_characters/test_non_utf8_characters.py168 # Create the file with the invalid byte sequence as part of the file name
MEDIUM…m/test_files/test_report_changes/test_large_changes.py188 # Create the file and and capture the event.
MEDIUM…es/test_report_changes/test_report_changes_and_diff.py180 # Create the file and and capture the event.
MEDIUM…_files/test_report_changes/test_report_deleted_diff.py170 # Create the file and and capture the event.
MEDIUMpackages/macos/package_files/preinstall.sh172# Creating the group
MEDIUMpackages/macos/package_files/preinstall.sh187# Creating the user
MEDIUMpackages/externals/external_sources.sh3# This file is sourced by packages/externals/build_external.sh inside the package
MEDIUMapi/test/integration/conftest.py327 """This function is responsible for setting up the Docker environment necessary for every test.
MEDIUMwodles/gcloud/tests/test_subscriber.py124 # Create a large list of fake messages
MEDIUMwodles/azure/tests/db/test_orm.py60 # Create the tables
MEDIUMwodles/aws/subscribers/s3_log_handler.py147 # Define the regex pattern for invalid CSV header characters
MEDIUMsrc/init/darwin-addusers.sh72# Creating the groups.
MEDIUMsrc/init/darwin-addusers.sh82# Creating the users.
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 pers
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 pers
MEDIUM…ty_scanner/testtool/versionMatcher/version_verifier.sh103 # Define the callback function based on the Linux distribution
MEDIUM…uh_modules/inventory_sync/qa/wazuh_agent_controller.py325 # Create the event structure with identifier and binary data
MEDIUM…s/inventory_sync/qa/test_inventory_sync_integration.py393 # Create the payload in the format expected by inventory_sync
MEDIUMsrc/engine/tools/devContainer/e2e/init.sh170 # Create the output directory if it doesn't exist (This never happens on devContainer context)
MEDIUM…s/engine-suite/src/engine_private/cmds/ns/import_ns.py28 # Create the api request
MEDIUM…ools/engine-suite/src/engine_private/cmds/cm/delete.py16 # Create the api request
MEDIUM…/tools/engine-suite/src/engine_private/cmds/cm/list.py15 # Create the api request
MEDIUM…gine-suite/src/engine_private/cmds/cm/policy_upsert.py29 # Create the api request
MEDIUM…gine-suite/src/engine_private/cmds/cm/policy_delete.py15 # Create the api request
MEDIUM…e/tools/engine-suite/src/engine_private/cmds/cm/get.py16 # Create the api request
MEDIUM…ools/engine-suite/src/engine_private/cmds/cm/upsert.py30 # Create the api request
MEDIUM…ine-suite/src/engine_public/cmds/cm/policy_validate.py26 # Create the api request
MEDIUM…tools/engine-suite/src/engine_public/cmds/cm/upsert.py30 # Create the api request
MEDIUM…ls/engine-suite/src/engine_test/cmds/session_reload.py21 # Create the request
MEDIUM…tools/engine-suite/src/engine_test/cmds/session_get.py20 # Create the request
MEDIUM…ngine-suite/src/engine_test/cmds/session_delete_all.py19 # Create the request
MEDIUM…ngine-suite/src/engine_test/cmds/session_delete_all.py32 # Create the list of sessions to delete
MEDIUM…ls/engine-suite/src/engine_test/cmds/session_delete.py21 # Create the request
MEDIUM…ools/engine-suite/src/engine_test/cmds/session_list.py19 # Create the request
MEDIUM…tools/engine-suite/src/engine_test/cmds/session_add.py22 # Create the request
MEDIUM…tools/engine-suite/src/engine_test/conf/integration.py110 # Create a new instance with the extracted values
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/update.py21 # Create the request
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/delete.py18 # Create the request
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/ingest.py18 # Create the request
MEDIUM…gine/tools/engine-suite/src/engine_router/cmds/list.py18 # Create the request
MEDIUM…ngine/tools/engine-suite/src/engine_router/cmds/add.py21 # Create the request
MEDIUM…ne/tools/engine-suite/src/engine_router/cmds/reload.py20 # Create the request
MEDIUM…ngine/tools/engine-suite/src/engine_router/cmds/get.py19 # Create the request
MEDIUM…ngine/test/integration_tests/tester/steps/api_steps.py247 # Create the session pointing to namespaceId == policy_name
MEDIUM…ngine/test/integration_tests/router/steps/api_steps.py239 # Create the route pointing to namespaceId == policy_name
1 more matches not shown…
Cross-Language Confusion28 hits · 166 pts
SeverityFileLineSnippet
HIGHframework/wazuh/core/wdb.py258 if v == "(null)":
HIGHframework/wazuh/core/wdb.py283 if '"(null)"' in string:
HIGHframework/wazuh/core/wdb.py284 # To prevent empty dictionaries, clean data if there was any `"(null)"` within the string
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 sent
HIGHframework/wazuh/core/wazuh_queue.py110 - (msg_to_agent) [] ANN (null) restart-wazuh0 arg1 arg2 arg3
HIGHframework/wazuh/core/wazuh_queue.py113 - (msg_to_agent) [] ANN (null) !test.sh arg1 arg2 arg3
HIGHframework/wazuh/core/wazuh_queue.py149 str_agent_id = '(null)'
HIGHframework/wazuh/core/cluster/common.py1143 # Regex to find any character different to '\x00' (null) inside a string.
HIGHframework/wazuh/core/cluster/common.py545 self.push(msg)
HIGHframework/wazuh/core/cluster/common.py874 self.push(msg)
HIGHframework/wazuh/core/cluster/common.py1134 Expected length of bytearray. If any bytearray has this length and its content is null, it will be deleted.
HIGHframework/wazuh/core/cluster/tests/test_common.py485 handler.push(b"message")
HIGHframework/wazuh/core/tests/test_wdb.py162 Tests '(null)' values are removed from the resulting dictionary
HIGHframework/wazuh/core/tests/test_wdb.py165 nulls_string = b' [{"a": "a", "b": "(null)", "c": [1, 2, 3], "d": {"e": "(null)"}}]'
HIGHframework/wazuh/core/tests/test_wdb.py273 '[{"key1": "value1"}, {"invalid": "(null)"}]',
HIGHframework/wazuh/core/indexer/max_version_components.py158 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py159 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py161 if (ctx._source.wazuh.agent.groups != null && ctx._source.wazuh.agent.groups == params.groups) {
HIGHframework/wazuh/core/indexer/max_version_components.py168 if (ctx._source.state == null) { ctx._source.state = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py274 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py275 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py276 if (ctx._source.wazuh.cluster == null) { ctx._source.wazuh.cluster = [:]; }
HIGHframework/wazuh/core/indexer/max_version_components.py283 if (ctx._source.state == null) { ctx._source.state = [:]; }
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py298 if (chartId && data[name]) {
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py299 data[name].x.push(now);
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py300 data[name].y.push(metric.value);
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py314 sd.x.push(now);
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py315 sd.y.push(metric.value);
Verbosity Indicators50 hits · 94 pts
SeverityFileLineSnippet
LOW…asic_usage/test_orphan_promote_after_config_removal.py188 # Step 1: agent is up via daemons_handler. The baseline scan has
LOW…asic_usage/test_orphan_promote_after_config_removal.py201 # Step 2: stop the agent, drop the realtime <directories> rule from
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5430 // Step 1: Clear all DataContext
LOW…dules/sync_protocol/tests/test_agent_sync_protocol.cpp5436 // Step 2: Fetch pending DataValue items (onlyDataValues=true)
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp284 // Step 1: Persist DataValue items
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp293 // Step 2: Persist DataContext items
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp302 // Step 3: Verify we have both types
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp306 // Step 4: Clear all DataContext
LOW…sync_protocol/tests/test_sync_protocol_integration.cpp309 // Step 5: Fetch only DataValues
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp292 // Step 1: Send Start message with mode ModuleCheck
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp302 // Step 2: Send ChecksumModule message
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp312 // Step 3: Send End message and wait for EndAck
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp367 // Step 1: Send Start message and wait for StartAck
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp370 // Step 2: Send End message and wait for EndAck (no Data messages)
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp429 // Step 1: Send Start message with the indices and size
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp432 // Step 2: Send DataClean message for each index
LOW…ared_modules/sync_protocol/src/agent_sync_protocol.cpp435 // Step 3: Send End message and wait for EndAck
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1421 // Step 1: Get version from each module
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1474 // Step 2: Calculate new version
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1482 // Step 3: Set new version on all modules
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1532 // Step 1: Pause all coordination modules
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1544 // Step 2: Get versions, calculate new version, and set it on all modules
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1553 // Step 3: Trigger flush while still paused.
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1563 // Step 4: Resume all modules immediately. The pause window is now minimized to:
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1570 // Step 5: Wait for flush completion before handing the new version to the manager.
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1583 // Step 6: Build indices list based on enabled modules and synchronize.
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2566 // Step 0: Clear any existing DataContext from previous scans
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2570 // Step 1: Fetch pending DataValue items from syscollector_vd_sync.db
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2578 // Step 2: Build exclusion sets - IDs of items already submitted as DataValue
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2587 // Step 3: Determine what DataContext tables are needed based on platform rules
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp2605 // Step 4: Fetch and submit DataContext for each required table
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp3424 // Step 1: Generate stateful DELETE events for each excess record
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp3456 // Step 2: Reset sync flag to 0 for these records
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4708 // Step 1: Delete all rows in a transaction
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4737 // Step 2: Re-insert rows with new sync value in a transaction to force commit
LOWsrc/logcollector/src/logcollector.c1533 /* Because Windows cache's files, we need to check if the file
LOWsrc/engine/test/acceptance_test/acceptance_test.sh434 # Step 1: Stop manager
LOWsrc/engine/test/acceptance_test/acceptance_test.sh437 # Step 2: Start analysisd
LOWsrc/engine/test/acceptance_test/acceptance_test.sh440 # Step 3: Wait for engine ready
LOWsrc/engine/test/acceptance_test/acceptance_test.sh443 # Step 4: Start resource monitor
LOWsrc/engine/test/acceptance_test/acceptance_test.sh446 # Step 5: Grace period before benchmark
LOWsrc/engine/test/acceptance_test/acceptance_test.sh466 # Step 7: Grace period after benchmark
LOWsrc/engine/test/acceptance_test/acceptance_test.sh470 # Step 8: Stop monitor & analysisd
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp439 // Step 1: Import into temp namespace (validates structure).
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp449 // Step 2: If has integrations, post a tester entry to validate
LOWsrc/engine/source/api/cmcrud/src/handlers.cpp470 // Step 3: Decide what to do with the persistent test session.
LOWsrc/engine/source/iockvdb/src/manager.cpp424 // Step 1: Atomically transfer instance from source to target
LOWsrc/engine/source/iockvdb/src/manager.cpp428 // Step 2: Enqueue old target instance for safe deletion
LOWsrc/engine/source/router/src/router.cpp169 // Step 1: Create new environment WITHOUT any lock
LOWsrc/engine/source/router/src/router.cpp181 // Step 2: Atomically swap the environment
AI Slop Vocabulary34 hits · 64 pts
SeverityFileLineSnippet
MEDIUMruleset/sca/windows/cis_win2019.yml2058 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure location
MEDIUMruleset/sca/windows/cis_win2019.yml4868 # 18.6.11.4 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (Auto
MEDIUMruleset/sca/windows/cis_win2019.yml4901 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HK
MEDIUMruleset/sca/windows/cis_win2019.yml8380 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDrive
MEDIUMruleset/sca/windows/cis_win2019.yml9511 description: "This policy setting specifies whether computers in your environment will receive security updates from
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml2141 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure location
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml4721 # 18.6.11.3 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (Auto
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml4783 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HK
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml7204 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDrive
MEDIUMruleset/sca/windows/cis_win2012_non_r2.yml8172 description: 'This policy setting specifies whether computers in your environment will receive security updates from
MEDIUMruleset/sca/windows/cis_win2012r2.yml1985 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure location
MEDIUMruleset/sca/windows/cis_win2012r2.yml4503 # 18.6.11.3 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (Auto
MEDIUMruleset/sca/windows/cis_win2012r2.yml4536 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HK
MEDIUMruleset/sca/windows/cis_win2012r2.yml7060 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDrive
MEDIUMruleset/sca/windows/cis_win2012r2.yml8110 description: 'This policy setting specifies whether computers in your environment will receive security updates from
MEDIUMruleset/sca/windows/cis_win2016.yml1871 # 2.3.17.5 (L1) Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure location
MEDIUMruleset/sca/windows/cis_win2016.yml4750 # 18.6.11.4 (L1) Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled'. (Auto
MEDIUMruleset/sca/windows/cis_win2016.yml4809 remediation: "To establish the recommended configuration, set the following Registry value to 0xff (255) (DWORD): HK
MEDIUMruleset/sca/windows/cis_win2016.yml8112 impact: "Users can't access OneDrive from the OneDrive app and file picker. Windows Store apps can't access OneDrive
MEDIUMruleset/sca/windows/cis_win2016.yml9242 description: 'This policy setting specifies whether computers in your environment will receive security updates from
MEDIUMframework/wazuh/core/mitre.py878 """This function loads the MITRE data in order to speed up the use of the Framework function.
MEDIUMframework/wazuh/core/cluster/tests/test_worker.py196 """Mock method in order to obtain a particular output."""
MEDIUMframework/wazuh/core/cluster/tests/test_worker.py232 """Mock method in order to obtain a particular output."""
MEDIUMframework/wazuh/tests/data/schema_mitre_test.sql259INSERT INTO mitigation VALUES('course-of-action--aeff5887-8f9e-48d5-a523-9b395e2ce80a','Credential Dumping Mitigation',r
MEDIUMframework/wazuh/tests/data/schema_mitre_test.sql518INSERT INTO use VALUES('relationship--dc10e96f-1d3c-4ab9-8df6-acdc8238ec6c','intrusion-set--bef4c620-0787-42a8-a96d-b7eb
MEDIUMwodles/aws/tests/test_guardduty.py136 """Test 'send_event' method makes the necessary calls in order to send the event to Analysisd."""
MEDIUMwodles/aws/tests/test_vpcflow.py173 """Test 'iter_regions_and_accounts' method makes the necessary calls in order to process the bucket's files.
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."""
MEDIUMwodles/aws/tests/test_aws_bucket.py631 """Test 'send_event' method makes the necessary calls in order to send an event to Analysisd."""
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."""
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."""
MEDIUMwodles/aws/tests/test_cloudwatchlogs.py81 """Test 'get_alerts' method makes the expected calls in order to fetch the events and send them to Analysisd.
MEDIUMwodles/aws/tests/test_cloudwatchlogs.py125 """Test 'remove_aws_log_stream' method makes the necessary calls in order to remove the specified log stream
MEDIUMsrc/engine/test/acceptance_test/acceptance_test.sh3# acceptance_test.sh – Engine benchmark harness
Fake / Example Data35 hits · 30 pts
SeverityFileLineSnippet
LOW…odules/schema_validator/tests/schemaValidator_test.cpp79 {"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp85 {"address", {{"street", "123 Main St"}, {"city", "New York"}}}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp97 nlohmann::json message = {{"name", "John Doe"}, {"age", "not a number"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp110 nlohmann::json message = {{"name", "John Doe"}, {"age", "30"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp123 nlohmann::json message = {{"name", "John Doe"}, {"age", 30.5}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp137 {"name", "John Doe"}, {"age", 30}, {"extra_field", "not allowed"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp152 {"name", "John Doe"}, {"age", 30}, {"extra_field", nullptr}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp166 {"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp168 {"address", {{"street", "123 Main St"}, {"city", "New York"}, {"extra", nullptr}}}
LOW…odules/schema_validator/tests/schemaValidator_test.cpp183 {"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp185 {"address", {{"street", "123 Main St"}, {"city", "New York"}, {"extra", "not allowed"}}}
LOW…odules/schema_validator/tests/schemaValidator_test.cpp199 nlohmann::json message = {{"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp201 {"address", {{"street", "123 Main St"}, {"city", "New York"}}}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp214 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", 1735468800000}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp227 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", 1735468800}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp240 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", "2025-12-29T10:00:00.000Z"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp253 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", "123"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp266 nlohmann::json message = {{"name", "John Doe"}, {"age", 30}, {"created_at", true}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp298 {"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp313 std::string messageStr = R"({"name": "John Doe", "age": 30, "email": "john@example.com"})";
LOW…odules/schema_validator/tests/schemaValidator_test.cpp325 std::string messageStr = R"({"name": "John Doe", "age": 30,})";
LOW…odules/schema_validator/tests/schemaValidator_test.cpp365 nlohmann::json message = {{"name", nlohmann::json::array({"John Doe", "Jane Doe"})}, {"age", 30}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp365 nlohmann::json message = {{"name", nlohmann::json::array({"John Doe", "Jane Doe"})}, {"age", 30}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp391 nlohmann::json message = {{"name", "John Doe"}, {"age", nlohmann::json::array({30, 31, 32})}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp405 {"name", "John Doe"},
LOW…odules/schema_validator/tests/schemaValidator_test.cpp456 nlohmann::json message = {{"name", "John Doe"}, {"age", nlohmann::json::array({30, "invalid"})}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp470 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "true"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp483 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "false"}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp496 nlohmann::json message = {{"name", "John Doe"}, {"is_active", 1}};
LOW…odules/schema_validator/tests/schemaValidator_test.cpp509 nlohmann::json message = {{"name", "John Doe"}, {"is_active", "yes"}};
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp80 "street": "123 Main St",
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp101 street: "123 Main St"
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp146 "street": "123 Main St",
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp183 "street": "123 Main St",
LOWsrc/engine/source/yml/test/src/unit/yml_test.cpp213 "street": "123 Main St",
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALwodles/azure/azure_services/storage.py15from azure.core.exceptions import AzureError, ClientAuthenticationError, HttpResponseError, ResourceExistsError, \
CRITICALwodles/azure/tests/azure_services/test_storage.py18from azure.core.exceptions import AzureError, ClientAuthenticationError, HttpResponseError, ResourceModifiedError
Overly Generic Function Names9 hits · 12 pts
SeverityFileLineSnippet
LOW…wazuh/core/cluster/hap_helper/tests/test_hap_helper.py57 def helper(self, proxy_mock: mock.MagicMock, dapi_mock: mock.MagicMock):
LOWframework/wazuh/core/tests/test_decorators.py9 def test_function():
LOWframework/wazuh/core/tests/test_decorators.py21 def test_function(a, b, c=0):
LOWframework/wazuh/core/tests/test_decorators.py32 async def test_function():
LOWframework/wazuh/core/tests/test_decorators.py46 async def test_function(a, b):
LOWframework/wazuh/core/tests/test_decorators.py58 def test_function():
LOWframework/wazuh/core/tests/test_decorators.py68 def test_function():
LOWwodles/gcloud/integration.py79 def process_data(self):
LOWwodles/gcloud/buckets/bucket.py233 def process_data(self):
Example Usage Blocks4 hits · 7 pts
SeverityFileLineSnippet
LOWtools/purge_wazuh.sh5# Usage:
LOWsrc/engine/tools/devContainer/scripts/pr-clang.sh8# Usage:
LOW…gine/tools/devContainer/scripts/toggle_event_dumper.sh4# Usage:
LOWsrc/engine/internal_packages/debs/SPECS/build_venv.sh10# Usage: