AI Slop Code RIsk Monitor

wazuh/wazuh

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

5.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for wazuh/wazuh, a C++ project with 17,197 GitHub stars. SynthScan examined 1,872,912 lines of code across 6160 source files, recording 6859 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 5.9 (Moderate pattern signal); it is not an authorship estimate.

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

5.9
Adjusted Signal
5.9
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
17.2K
Stars
C++
Language
1.9M
Lines of Code
6.2K
Files
6.9K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 12.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.8/100 · LOW

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

Agent Over-Engineering Ratio 18.1/100 · LOW

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

PR Review Velocity Impact 26.1/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 7HIGH 433MEDIUM 1117LOW 5302

Directory Score Breakdown

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

Pattern Findings

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

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

Decorative Section Separators926 hits · 3030 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/manager_benchmark/cleanup_agents.sh3# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/cleanup_agents.sh15# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/run_matrix.sh3# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/run_matrix.sh30# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py357# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py448# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/result_summary.py450# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/run_benchmark.sh3# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/run_benchmark.sh56# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/scrape_metrics.sh3# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/scrape_metrics.sh27# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/indexer_control.sh2# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/indexer_control.sh18# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/prepare_manager.sh3# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/prepare_manager.sh63# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/prepare_manager.sh292# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/manager_benchmark/prepare_manager.sh294# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py94# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py96# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py125# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py127# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py169# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py171# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py220# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py222# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py465# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/manager_benchmark/tests/test_result_summary.py473# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/reinstall-cmake.sh2#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/reinstall-cmake.sh5#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/.devcontainer/fix-dind.sh24# ── 1. Redirect iptables tooling to the nftables-backed binaries ──────────────COMMENT
MEDIUMtools/devContainer/.devcontainer/fix-dind.sh28# ── 2. Configure dockerd to use the nftables firewall backend ─────────────────COMMENT
MEDIUMtools/devContainer/.devcontainer/fix-dind.sh52# ── 3. Restart dockerd from a clean state ────────────────────────────────────COMMENT
MEDIUMtools/devContainer/.devcontainer/fix-dind.sh75# ── 4. Wait until the daemon is ready ────────────────────────────────────────COMMENT
MEDIUMtools/devContainer/.devcontainer/reinstall-cmake.sh2#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/.devcontainer/reinstall-cmake.sh5#-------------------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/pr-clang.sh4# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/pr-clang.sh11# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh82# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh84# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh120# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh122# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh141# ------------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/pr-clang.sh143# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py94# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py96# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py104# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py106# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py113# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tools/devContainer/scripts/monitor.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py315# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py427# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/devContainer/scripts/monitor.py433# ---------------------------------------------------------------------------COMMENT
866 more matches not shown…
Hyper-Verbose Identifiers2393 hits · 2172 pts
SeverityFileLineSnippetContext
LOW⚡tools/manager_benchmark/tests/test_result_summary.py49def test_delta_attributes_work_to_this_run(samples_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py57def test_peak_is_kept_for_gauges_that_come_back_down(samples_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py63def test_histograms_get_no_delta(samples_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py72def test_failed_scrape_is_counted_but_not_aggregated(samples_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py81def test_every_source_in_the_file_is_aggregated(samples_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py89def test_missing_samples_file_is_not_an_error(tmp_path):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py104def test_all_process_csvs_are_aggregated(tmp_path):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py120def test_missing_monitor_dir_is_not_an_error(tmp_path):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py128def test_verdict_is_condensed_not_copied():CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py137def test_scenario_without_assertions_did_not_pass_by_default():CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py143def test_inputs_are_named_relative_to_the_run_directory(tmp_path):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py162def test_inputs_skip_what_the_run_does_not_have(tmp_path):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py203def test_summary_and_charts_agree_on_the_same_file(two_runs_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py213def test_summary_names_the_run_it_aggregated(two_runs_file):CODE
LOW⚡tools/manager_benchmark/tests/test_result_summary.py474def test_a_file_with_no_run_marker_says_it_is_not_a_samples_file(tmp_path, caplog):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py189def test_reused_label_reports_the_last_run_not_the_sum(two_runs_file):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py243def test_a_level_gets_no_delta(typed_file):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py256def test_a_counter_gets_its_delta(typed_file):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py263def test_text_keeps_its_value(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py283def test_large_counters_stay_exact(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py303def test_a_counter_reset_is_counted_not_negated(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py318def test_an_undeclared_series_is_a_level_however_it_moves(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py337def test_remoted_metrics_are_classified_from_the_declared_table(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py360def test_declared_type_beats_what_the_readings_happen_to_do(typed_file):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py367def test_a_metric_registered_mid_run_is_classified_by_its_type(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py393def test_a_disabled_histogram_is_left_out_of_the_summary(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py413def test_remoted_classifies_from_the_table_even_without_a_manifest(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py430def test_the_file_wins_over_the_static_table(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py443def test_the_projection_and_the_summary_agree_across_a_gap(tmp_path):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py489def test_a_run_that_scraped_nothing_is_told_apart_from_an_unreadable_file(tmp_path, caplog):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py502def test_readings_without_a_marker_warn_that_they_cannot_be_scoped(tmp_path, caplog):CODE
LOWtools/manager_benchmark/tests/test_result_summary.py517def test_a_readable_run_warns_about_nothing(samples_file, caplog):CODE
LOWtools/mitre/mitredb.py570def parse_json_ext_references(data_object):CODE
LOWtools/devContainer/scripts/monitor.py924def extract_manager_log_events(output_dir: str,CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py168def plot_multiline_timeseries(CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py1288def _plot_with_total_and_extra_components(CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py1378def _plot_grouped_disk_growth(CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py1606def _plot_agent_cache_overview(CODE
LOW⚡tools/devContainer/scripts/bench_samples.py578def _invsync_shard_aggregates(metrics: dict) -> dict[str, Any]:CODE
LOW…devContainer/scripts/tests/test_monitor_integration.py16def test_monitor_finishes_inflight_scrape_before_closing(tmp_path, monkeypatch, fail_query):CODE
LOW⚡…devContainer/scripts/tests/test_monitor_integration.py95def test_charts_load_both_monitor_layouts(tmp_path, charts, subdir):CODE
LOW⚡…devContainer/scripts/tests/test_monitor_integration.py102def test_charts_prefer_orchestrated_samples(tmp_path, charts):CODE
LOW⚡…devContainer/scripts/tests/test_monitor_integration.py108def test_charts_with_no_samples(tmp_path, charts):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py101def test_loop_writes_the_samples_file(tmp_path, metrics_socket):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py119def test_the_projection_of_what_was_collected_has_the_aliased_columns(tmp_path, metrics_socket):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py135def test_meta_line_is_written_once(tmp_path, metrics_socket):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py148def test_absent_socket_degrades_to_failed_scrapes(tmp_path):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py162def test_concurrent_sources_do_not_interleave_lines(tmp_path, metrics_socket):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py230def test_http_error_is_a_failed_scrape(tmp_path, bad_endpoint, status, body, why):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_collect.py249def test_a_body_that_is_not_a_json_object_is_a_failed_scrape(tmp_path, bad_endpoint):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_collect.py259def test_failed_scrapes_never_write_a_meta_line(tmp_path, bad_endpoint):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_collect.py270def test_standalone_entry_point_honours_the_same_contract(tmp_path, metrics_socket):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py287def test_standalone_entry_point_records_an_unreachable_endpoint(tmp_path):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py323def test_a_metric_registered_mid_run_gets_a_manifest(tmp_path):CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py345def test_an_unchanged_manifest_is_not_rewritten(tmp_path, metrics_socket):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_samples.py106def test_metrics_array_extraction_keeps_unaliased_metrics(invsync_dump):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_samples.py142def test_analysisd_extraction_flattens_spaces(analysisd_dump):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_samples.py150def test_remoted_extraction_flattens_nested_document(remoted_dump):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_samples.py160def test_a_metric_never_observed_has_no_column(invsync_dump, tmp_path):CODE
LOW⚡tools/devContainer/scripts/tests/test_bench_samples.py202def test_sample_line_omits_empty_histograms():CODE
2333 more matches not shown…
Over-Commented Block1365 hits · 1338 pts
SeverityFileLineSnippetContext
LOWinstall.sh281 # postinst: seed rbac.db with generated Server API passwords, store the indexer credential inCOMMENT
LOWtools/purge_wazuh.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/cleanup_agents.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/run_matrix.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/run_matrix.sh21# each, to compare the two first-contact paths on one machine.COMMENT
LOWtools/manager_benchmark/run_matrix.sh81 "fim_agent agent scenarios/real_fim_first_sync_ubuntu.json"COMMENT
LOWtools/manager_benchmark/run_benchmark.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/run_benchmark.sh21# must pass it explicitly. There is no node knob: a session declares no cluster node.COMMENT
LOWtools/manager_benchmark/run_benchmark.sh41# bootstrap and any `enroll_https` step (scenarios/enroll_https.json) present, as mintedCOMMENT
LOWtools/manager_benchmark/scrape_metrics.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/indexer_control.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/prepare_manager.sh1#!/usr/bin/env bashCOMMENT
LOWtools/manager_benchmark/prepare_manager.sh21#COMMENT
LOWtools/manager_benchmark/prepare_manager.sh41# and removing etc/authd.pass -- which the legacy bootstrap needs, since theCOMMENT
LOW…r_benchmark/tool_simulator/internal/metrics/metrics.go21 // durable vd_scan task and the scan runs afterward (docu/14-scan-vd.md). ScanOtherCOMMENT
LOW…r_benchmark/tool_simulator/internal/metrics/metrics.go241}COMMENT
LOW…nager_benchmark/tool_simulator/internal/wire/prefix.go1package wireCOMMENT
LOW…nager_benchmark/tool_simulator/internal/wire/enroll.go21 // issues none.COMMENT
LOW…ger_benchmark/tool_simulator/internal/runner/runner.go21 "github.com/wazuh/wazuh/tools/manager_benchmark/tool_simulator/internal/wire"COMMENT
LOW…ger_benchmark/tool_simulator/internal/runner/runner.go61 SenderVer stringCOMMENT
LOW…er_benchmark/tool_simulator/internal/runner/session.go21//COMMENT
LOW…nager_benchmark/tool_simulator/internal/runner/scan.go1package runnerCOMMENT
LOW…ager_benchmark/tool_simulator/internal/runner/agent.go21 client *wire.ClientCOMMENT
LOW…ger_benchmark/tool_simulator/internal/scanvd/scanvd.go1// Package scanvd sends the on-demand Vulnerability Detection re-scan request anCOMMENT
LOW…_benchmark/tool_simulator/internal/source/documents.go21COMMENT
LOW…ark/tool_simulator/internal/enrollhttps/enrollhttps.go1// Package enrollhttps enrolls a brand-new agent over POST /enroll with anCOMMENT
LOW…ark/tool_simulator/internal/enrollhttps/enrollhttps.go61COMMENT
LOW…er_benchmark/tool_simulator/internal/scenario/types.go221// Assertion is one expectation on a final counter: operator -> value, withCOMMENT
LOW…r_benchmark/tool_simulator/internal/cacerts/cacerts.go1// Package cacerts fetches the CA that signs the manager's HTTPS listenerCOMMENT
LOW…r_benchmark/tool_simulator/internal/cacerts/cacerts.go41// ErrProtocol signals a run-invalidating answer: a 200 whose body is not a PEMCOMMENT
LOW…ager_benchmark/tool_simulator/internal/engine/batch.go1// Package engine frames log events into the H/E batch remoted forwards to theCOMMENT
LOWtools/testing/enrollment-simulator/src/simulator.cpp1#include "simulator.h"COMMENT
LOWtools/testing/enrollment-simulator/src/simulator.h1#pragma onceCOMMENT
LOWtools/devContainer/.devcontainer/fix-dind.sh1#!/usr/bin/env shCOMMENT
LOWtools/devContainer/scripts/clean-unused-containers.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/scripts/monitor.py81# remoted's C++ module publishes its own metrics on a manager-local admin socket, served byCOMMENT
LOWtools/devContainer/scripts/monitor.py821# Everything the retired inventory_sync module used to log ("InventorySync queueCOMMENT
LOWtools/devContainer/scripts/setup_monitor.sh1#!/bin/bashCOMMENT
LOWtools/devContainer/scripts/setup_monitor.sh21# INSTALL_CHARTS=1 bash setup_monitor.shCOMMENT
LOWtools/devContainer/scripts/toggle_event_dumper.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.sh1#!/bin/bashCOMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.sh21#COMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.sh41# 7. getHelp(): -c/--config, -o/--output, -f/--force and the remoted leaf documented.COMMENT
LOWtools/devContainer/scripts/bench_samples.py81#COMMENT
LOWtools/devContainer/scripts/bench_samples.py141#COMMENT
LOWtools/devContainer/scripts/bench_samples.py981 return {metric: d["type"] for metric, d in read_descriptors(path, src, run).items()COMMENT
LOWtools/devContainer/scripts/bench_samples.py1201 return pd.DataFrame(data)COMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.yml1# Certificate inventory of the devcontainer, read by scripts/wazuh-certs-tool.shCOMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.yml21COMMENT
LOWtools/devContainer/e2e/wazuh_copy_certs.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/e2e/wazuh_copy_certs.sh21# already point at these paths (the block is printed for review).COMMENT
LOWtools/devContainer/e2e/wazuh_install_manager.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/e2e/wazuh_install_manager.sh21# 5. certificates: the e2e PKI replaces whatever the install's credential resolver issued (it issuesCOMMENT
LOWtools/devContainer/e2e/init.sh421 local repo=$1COMMENT
LOWtools/devContainer/e2e/wazuh_credentials.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/e2e/wazuh_verify_manager.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/e2e/cluster/init.sh1#!/usr/bin/env bashCOMMENT
LOWtools/devContainer/e2e/cluster/docker-compose.yml1# Multi-node cluster overlay for the e2e environment. The master is the managerCOMMENT
LOWtools/devContainer/e2e/cluster/node/entrypoint.sh21# not migrated; pass INDEXER_USER/INDEXER_PASSWORD explicitly when the indexer needs them.COMMENT
LOWtools/devContainer/e2e/wazuh-indexer/entrypoint.sh1#!/bin/bashCOMMENT
1305 more matches not shown…
Cross-File Repetition206 hits · 1030 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
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…st_configurations/test_invalid_https_ca_certificate.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
HIGH…ons/test_https_cert_missing/test_https_cert_missing.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
HIGH…test_configurations/test_https_cert/test_https_cert.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…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_manager_control/__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
HIGH…ntegration/test_authd/test_drop_privileges/__init__.py0copyright (c) 2015, wazuh inc. created by wazuh, inc. <info@wazuh.com>. this program is free software; you can redistribSTRING
146 more matches not shown…
Empty Error Handlers128 hits · 640 pts
SeverityFileLineSnippetContext
HIGHtools/devContainer/scripts/monitor.py135except OSError:CODE
HIGHtools/devContainer/scripts/bench_samples.py716except OSError:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py928except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1331except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1724except OSError:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py884except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1407except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py891except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1292except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1300except Exception:CODE
HIGHtools/devContainer/e2e/dashboard/capture.py410except OSError:CODE
HIGHtools/devContainer/e2e/dashboard/test_capture_dom.py226except Exception:CODE
HIGHtools/migration/wazuh-migrate-identity.py230except OSError:CODE
HIGHtools/debug/queue-mitm.py33except FileNotFoundError:CODE
HIGHframework/scripts/cluster_control.py284except KeyboardInterrupt:CODE
HIGHframework/scripts/rbac_control.py69except OSError:CODE
HIGHframework/wazuh/security.py1496except KeyError:CODE
HIGHframework/wazuh/agent.py1344except ValueError:CODE
HIGHframework/wazuh/rbac/orm.py2353except OperationalError:CODE
HIGHframework/wazuh/rbac/orm.py989except (TypeError, AttributeError):CODE
HIGHframework/wazuh/rbac/orm.py1258except (TypeError, AttributeError):CODE
HIGHframework/wazuh/rbac/orm.py1415except (TypeError, AttributeError):CODE
HIGHframework/wazuh/rbac/orm.py1627except (TypeError, AttributeError):CODE
HIGHframework/wazuh/rbac/tests/test_decorators.py78except AttributeError:CODE
HIGHframework/wazuh/rbac/tests/utils.py49except OperationalError:CODE
HIGHframework/wazuh/core/configuration.py1022except IOError:CODE
HIGHframework/wazuh/core/wdb.py416except IndexError:CODE
HIGHframework/wazuh/core/results.py505except TypeError:CODE
HIGHframework/wazuh/core/security.py145except FileNotFoundError:CODE
HIGHframework/wazuh/core/common.py44except ValueError:CODE
HIGHframework/wazuh/core/utils.py1888except PermissionError:CODE
HIGHframework/wazuh/core/utils.py947except (ValueError, TypeError):CODE
HIGHframework/wazuh/core/utils.py1424except ValueError:CODE
HIGHframework/wazuh/core/pyDaemonModule.py105except OSError:CODE
HIGHframework/wazuh/core/pyDaemonModule.py134except OSError:CODE
HIGHframework/wazuh/core/engine_http.py171except ValueError:CODE
HIGHframework/wazuh/core/cluster/common.py393except RuntimeError:CODE
HIGHframework/wazuh/core/cluster/common.py1691except (IndexError, KeyError):CODE
HIGHframework/wazuh/core/cluster/cluster.py267except (KeyError, AttributeError, TypeError):CODE
HIGHframework/wazuh/core/cluster/cluster.py170except KeyError:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py944except Exception:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py980except Exception:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py1012except Exception:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py875except asyncio.exceptions.TimeoutError:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py889except asyncio.exceptions.TimeoutError:CODE
HIGHframework/wazuh/core/cluster/tests/test_worker.py899except asyncio.exceptions.TimeoutError:CODE
HIGHframework/wazuh/core/cluster/tests/test_server.py662except IndexError:CODE
HIGHframework/wazuh/core/cluster/tests/test_server.py688except IndexError:CODE
HIGHframework/wazuh/core/cluster/tests/test_server.py626except IndexError:CODE
HIGHframework/wazuh/core/cluster/tests/test_server.py636except IndexError:CODE
HIGHframework/wazuh/core/cluster/tests/test_client.py437except Exception:CODE
HIGHframework/wazuh/core/cluster/tests/test_client.py447except Exception:CODE
HIGHframework/wazuh/core/cluster/tests/test_client.py473except Exception:CODE
HIGH…ore/indexer/tests/test_metrics_snapshot_integration.py55except Exception:CODE
HIGH…uh/core/indexer/tests/test_disconnected_agents_sync.py662except asyncio.CancelledError:CODE
HIGHframework/wazuh/tests/test_security.py98except OperationalError:CODE
HIGHtests/integration/conftest.py1038except OSError:CODE
HIGHtests/integration/conftest.py859except (KeyError, PermissionError):CODE
HIGHtests/integration/conftest.py620except FileNotFoundError:CODE
HIGHtests/integration/conftest.py626except FileNotFoundError:CODE
68 more matches not shown…
Excessive Try-Catch Wrapping436 hits · 517 pts
SeverityFileLineSnippetContext
LOWtools/agent-upgrade/wpkpack.py100 except Exception as error:CODE
LOWtools/devContainer/scripts/monitor.py365 except Exception:CODE
LOWtools/devContainer/scripts/bench_collect.py329 except Exception as exc:CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py650 except Exception as exc:CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py659 except Exception as exc:CODE
LOWtools/devContainer/e2e/agents/verify_agents.sh223except Exception: print(0)' "$OUT/api-agents.json" "${NAMES[@]}")CODE
MEDIUMtools/devContainer/e2e/dashboard/capture.py540def run(self, n, name, func):CODE
MEDIUMtools/devContainer/e2e/dashboard/capture.py878def _track(self, response):CODE
LOW⚡tools/devContainer/e2e/dashboard/capture.py1407 except Exception:CODE
LOW⚡tools/devContainer/e2e/dashboard/capture.py1414 except Exception as exc:CODE
LOW⚡tools/devContainer/e2e/dashboard/capture.py1422 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py286 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py460 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py543 except Exception as exc: # a check never aborts the run, and never leaks a credentialCODE
LOWtools/devContainer/e2e/dashboard/capture.py619 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py687 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py707 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py715 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py884 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py891 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py924 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py928 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1116 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1292 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1300 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1331 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1381 except Exception:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1620 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1896 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py1904 except Exception as exc: # every view then fails naming the file, never a tracebackCODE
LOWtools/devContainer/e2e/dashboard/capture.py2000 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/capture.py2015 except Exception as exc:CODE
LOWtools/devContainer/e2e/dashboard/test_capture_dom.py47except Exception as exc: # pragma: no cover - depends on the interpreter, not on the codeCODE
LOWtools/devContainer/e2e/dashboard/test_capture_dom.py226 except Exception:CODE
MEDIUM⚡tools/debug/csv-stat.py66 print(f'Error: File {args.file} not found.')CODE
LOW⚡tools/debug/csv-stat.py68 except Exception as e:CODE
MEDIUM⚡tools/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.py404 print("Error {0}: {1}".format(e.code, e.message))STRING
LOWframework/scripts/agent_groups.py407 except Exception as e:STRING
LOWframework/scripts/agent_upgrade.py36except Exception as e:CODE
MEDIUMframework/scripts/agent_upgrade.py37 print("Error importing 'Wazuh' package.\n\n{0}\n".format(e))CODE
MEDIUMframework/scripts/agent_upgrade.py112 print("Error: custom WPK files are delivered from '{0}'. Move the file there and pass "CODE
MEDIUMframework/scripts/agent_upgrade.py117 print("Error: WPK file not found: '{0}'. Place the file in '{1}' before launching the "CODE
MEDIUM⚡framework/scripts/agent_upgrade.py178 print(f"Error {wazuh_err.code}: {wazuh_err.message}")CODE
MEDIUM⚡framework/scripts/agent_upgrade.py182 print(f"Error {getattr(e, 'ext', {}).get('code', e.status)}: {str(e.detail)}")CODE
LOW⚡framework/scripts/agent_upgrade.py185 except Exception as unexpected_err:CODE
MEDIUMframework/scripts/agent_upgrade.py148def main():CODE
LOWframework/scripts/cluster_control.py286 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
LOWframework/scripts/rbac_control.py284 except Exception:CODE
MEDIUMframework/scripts/rbac_control.py376 print(f"Error {e.code}: {e.message}")CODE
LOWframework/scripts/rbac_control.py378 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py206 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py212 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py247 except Exception as e:CODE
LOWframework/scripts/wazuh_manager_clusterd.py269 except Exception:CODE
LOWframework/wazuh/__init__.py31except Exception:CODE
376 more matches not shown…
Deep Nesting368 hits · 329 pts
SeverityFileLineSnippetContext
LOWtools/manager_benchmark/result_summary.py161CODE
LOWtools/mitre/mitredb.py509CODE
LOWtools/mitre/mitredb.py585CODE
LOWtools/mitre/mitredb.py613CODE
LOWtools/devContainer/scripts/monitor.py201CODE
LOWtools/devContainer/scripts/monitor.py342CODE
LOWtools/devContainer/scripts/monitor.py924CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py606CODE
LOWtools/devContainer/scripts/bench_samples.py842CODE
LOWtools/devContainer/scripts/bench_samples.py1070CODE
LOWtools/devContainer/scripts/bench_samples.py1168CODE
LOWtools/devContainer/e2e/dashboard/capture.py399CODE
LOWtools/devContainer/e2e/dashboard/capture.py1161CODE
LOWtools/devContainer/e2e/dashboard/capture.py1250CODE
LOWtools/devContainer/e2e/dashboard/capture.py1340CODE
LOWtools/devContainer/e2e/dashboard/capture.py1602CODE
LOWtools/devContainer/e2e/dashboard/capture.py1707CODE
LOWtools/devContainer/e2e/dashboard/capture.py1977CODE
LOWtools/migration/test_wazuh_migrate_identity.py424CODE
LOWtools/migration/wazuh-migrate-identity.py185CODE
LOWtools/migration/wazuh-migrate-identity.py280CODE
LOWtools/migration/wazuh-migrate-identity.py310CODE
LOWtools/debug/wdb-query.py94CODE
LOWframework/scripts/agent_groups.py358CODE
LOWframework/scripts/agent_upgrade.py148CODE
LOWframework/scripts/cluster_control.py247CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py38CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py154CODE
LOWframework/scripts/tests/test_wazuh_manager_clusterd.py276CODE
LOWframework/wazuh/vulnerability_scan.py17CODE
LOWframework/wazuh/security.py84CODE
LOWframework/wazuh/security.py430CODE
LOWframework/wazuh/security.py533CODE
LOWframework/wazuh/security.py599CODE
LOWframework/wazuh/security.py705CODE
LOWframework/wazuh/security.py775CODE
LOWframework/wazuh/security.py916CODE
LOWframework/wazuh/security.py953CODE
LOWframework/wazuh/security.py1020CODE
LOWframework/wazuh/security.py1080CODE
LOWframework/wazuh/security.py1131CODE
LOWframework/wazuh/security.py1181CODE
LOWframework/wazuh/security.py1235CODE
LOWframework/wazuh/security.py1311CODE
LOWframework/wazuh/security.py1458CODE
LOWframework/wazuh/stats.py16CODE
LOWframework/wazuh/agent.py220CODE
LOWframework/wazuh/agent.py372CODE
LOWframework/wazuh/agent.py671CODE
LOWframework/wazuh/agent.py932CODE
LOWframework/wazuh/agent.py1164CODE
LOWframework/wazuh/agent.py1467CODE
LOWframework/wazuh/manager.py246CODE
LOWframework/wazuh/rbac/orm.py1293CODE
LOWframework/wazuh/rbac/orm.py1471CODE
LOWframework/wazuh/rbac/orm.py1578CODE
LOWframework/wazuh/rbac/orm.py1665CODE
LOWframework/wazuh/rbac/orm.py1717CODE
LOWframework/wazuh/rbac/orm.py1862CODE
LOWframework/wazuh/rbac/orm.py2003CODE
308 more matches not shown…
Unused Imports302 hits · 290 pts
SeverityFileLineSnippetContext
LOWtools/manager_benchmark/make_report_tables.py14CODE
LOWtools/manager_benchmark/make_report_tables.py14CODE
LOWtools/manager_benchmark/result_summary.py26CODE
LOWtools/devContainer/scripts/monitor.py23CODE
LOWtools/devContainer/scripts/monitor.py28CODE
LOWtools/devContainer/scripts/monitor.py29CODE
LOWtools/devContainer/scripts/monitor.py34CODE
LOWtools/devContainer/scripts/monitor.py35CODE
LOWtools/devContainer/scripts/bench_collect.py30CODE
LOW…ols/devContainer/scripts/monitor_graphics_generator.py2CODE
LOWtools/devContainer/scripts/bench_samples.py59CODE
LOWtools/devContainer/scripts/tests/test_bench_collect.py18CODE
LOWtools/migration/test_wazuh_migrate_identity.py24CODE
LOWframework/scripts/agent_upgrade.py13CODE
LOWframework/scripts/wazuh_manager_clusterd.py9CODE
LOWframework/wazuh/__init__.py10CODE
LOWframework/wazuh/__init__.py10CODE
LOWframework/wazuh/agent.py10CODE
LOWframework/wazuh/rbac/auth_context.py8CODE
LOWframework/wazuh/core/wdb.py13CODE
LOWframework/wazuh/core/results.py5CODE
LOWframework/wazuh/core/agent_tasks.py14CODE
LOWframework/wazuh/core/utils.py22CODE
LOWframework/wazuh/core/utils.py27CODE
LOWframework/wazuh/core/agent.py18CODE
LOWframework/wazuh/core/agent.py25CODE
LOWframework/wazuh/core/manager.py7CODE
LOWframework/wazuh/core/cluster/local_server.py10CODE
LOWframework/wazuh/core/cluster/local_server.py14CODE
LOWframework/wazuh/core/cluster/cluster.py19CODE
LOWframework/wazuh/core/cluster/cluster.py19CODE
LOWframework/wazuh/core/cluster/cluster.py19CODE
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/cluster/tests/test_cluster.py14CODE
LOWframework/wazuh/core/tests/test_mitre.py14CODE
LOWframework/wazuh/core/tests/test_agent.py21CODE
LOWframework/wazuh/core/tests/test_configuration.py11CODE
LOWframework/wazuh/core/tests/test_pyDaemonModule.py11CODE
LOWframework/wazuh/core/tests/test_manager.py14CODE
LOWframework/wazuh/core/indexer/disconnected_agents.py1CODE
LOWframework/wazuh/core/indexer/tests/test_indexer.py5CODE
LOW…rk/wazuh/core/indexer/tests/test_credential_manager.py7CODE
LOWframework/wazuh/tests/test_agent.py17CODE
LOWframework/wazuh/tests/test_manager.py23CODE
LOWframework/wazuh/tests/test_vulnerability_scan.py25CODE
LOWtests/integration/test_syscollector/conftest.py21CODE
LOWtests/integration/test_syscollector/conftest.py23CODE
LOWtests/integration/test_syscollector/conftest.py23CODE
LOWtests/integration/test_syscollector/conftest.py23CODE
LOWtests/integration/test_syscollector/conftest.py23CODE
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
242 more matches not shown…
Docstring Block Structure52 hits · 260 pts
SeverityFileLineSnippetContext
HIGHsrc/build.py18 Process the command line arguments and executes the corresponding argument's utility. Args: - NoneSTRING
HIGHsrc/ci/build_tools.py34 Execute the command 'make clean' in the operating system. Args: - None Returns: - None STRING
HIGHsrc/ci/build_tools.py63 Delete the contents of the external folder. Args: - None Returns: - None Raises: STRING
HIGHsrc/ci/build_tools.py91 Delete a specific folder inside some module. Args: - moduleName(str): Main folder name. - addiSTRING
HIGHsrc/ci/build_tools.py134 Execute the command 'make clean-internals' in the operating system. Args: - None Returns: STRING
HIGHsrc/ci/build_tools.py163 Execute the command 'make clean-windows' in the operating system. Args: - None Returns: -STRING
HIGHsrc/ci/build_tools.py192 Clean the files generated in some module when it is built. Args: - moduleName(str): Library name to beSTRING
HIGHsrc/ci/build_tools.py224 Configure cmake command with specific configuration based on the parameters passed to the function. Args: STRING
HIGHsrc/ci/build_tools.py280 Get a map with configured folders to be deleted. Args: - None Returns: - DELETE_FOLDER_DISTRING
HIGHsrc/ci/build_tools.py296 Use make command in order to download dependencies and after that build them. Args: - targetName(sSTRING
HIGHsrc/ci/build_tools.py335 Build a library. Args: - moduleName(str): Library to be built. Returns: - None RaiseSTRING
HIGHsrc/ci/build_tools.py369 Build project with flags. Args: - targetName(str): Build type to be built <STRING
HIGHsrc/ci/utils.py51 Get current path. Args: - None Returns: - path(str): Current path. Raises: -STRING
HIGHsrc/ci/utils.py67 Delete logs generates for a module. Args: - moduleName(str): Library to be cleaned. Returns: STRING
HIGHsrc/ci/utils.py107 Find a file in some path. Args: - name(str): File to find. - path(str): Base path to find a fiSTRING
HIGHsrc/ci/utils.py132 Find a folder in some path. Args: - name(str): Folder to find. - path(str): Base path to find STRING
HIGHsrc/ci/utils.py158 Return folders to be analyzed with AStyle coding style analysis tool. Args: - moduleName(str): LibrarySTRING
HIGHsrc/ci/utils.py195 Get directory path for a module. Args: - moduleName(str): Library to get the path of. Returns: STRING
HIGHsrc/ci/utils.py214 Get directory path build for a module. Args: moduleName(str): Library to get the path of. ReturnsSTRING
HIGHsrc/ci/utils.py233 Get valid module list. Args: - None Returns: - MODULE_LIST(array): A list with valid moduSTRING
HIGHsrc/ci/utils.py249 Get valid module list. Args: - None Returns: - MODULE_LIST_STR(str): A list with valid moSTRING
HIGHsrc/ci/utils.py265 Display a red message with the errors. Args: - msg(str): Message to show. Returns: - NoneSTRING
HIGHsrc/ci/utils.py281 Display a formatted green message. Args: - msg(str): Message to show. - module(str): Library uSTRING
HIGHsrc/ci/utils.py302 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mesSTRING
HIGHsrc/ci/utils.py320 Display a yellow message with some information. Args: - msg(str): Message to show. Returns: STRING
HIGHsrc/ci/utils.py336 Display a message formatted from the HEADER_DIR map. Args: - moduleName(str): Library using in the mesSTRING
HIGHsrc/ci/utils.py354 Read a JSON path and convert to map. Args: - jsonFilePath(str): JSON path. Returns: - jsoSTRING
HIGHsrc/ci/utils.py378 Get root path. Args: - None Returns: - path(str): Root path. Raises: - None STRING
HIGHsrc/ci/utils.py394 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
Cross-Language Confusion44 hits · 258 pts
SeverityFileLineSnippetContext
HIGHtools/devContainer/scripts/monitor.py260 "'pkill -9 -f %s && service wazuh-manager restart' before re-running.",CODE
HIGHtools/devContainer/e2e/dashboard/capture.py941 let text = el.innerText || el.textContent || '';CODE
HIGHtools/devContainer/e2e/dashboard/capture.py943 const hidden = sr.innerText || sr.textContent || '';CODE
HIGHtools/devContainer/e2e/dashboard/capture.py957 if (node.closest && node.closest('.euiScreenReaderOnly')) { return false; }CODE
HIGHtools/devContainer/e2e/dashboard/capture.py981 if (el.matches(spec.selector) && found.indexOf(el) === -1) { found.push(el); }CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1007 if (field === undefined) { return; }CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1008 cells.push([field, Math.round(rect.top), Math.round(rect.bottom), visible(cell),CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1029 headers.push({field: subject.slice(0, cut), index: position});CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1047 rows.push({columns: columns, cells: geometry, top: Math.round(rect.top),CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1064 headers.push(field);CODE
HIGHtools/devContainer/e2e/dashboard/capture.py1080 rows.push({columns: columns, cells: geometry, top: Math.round(rect.top),CODE
HIGHtools/devContainer/e2e/dashboard/test_capture_logic.py4 cd tools/devContainer/e2e/dashboard && python3 -m unittest -v test_capture_logicSTRING
HIGHframework/wazuh/core/wdb.py269 if v == "(null)":CODE
HIGHframework/wazuh/core/wdb.py294 if '"(null)"' in string:CODE
HIGHframework/wazuh/core/wdb.py295 # To prevent empty dictionaries, clean data if there was any `"(null)"` within the stringCOMMENT
HIGHframework/wazuh/core/cluster/common.py1183 # 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.py914 self.push(msg)CODE
HIGHframework/wazuh/core/cluster/common.py1174 Expected length of bytearray. If any bytearray has this length and its content is null, it will be deleted.STRING
HIGH⚡framework/wazuh/core/cluster/tests/test_common.py549 handler.push(b"message")CODE
HIGH⚡framework/wazuh/core/tests/test_utils.py2193 candidate (the nested field is itself null) should be dropped before comparing."""STRING
HIGH⚡framework/wazuh/core/tests/test_wdb.py162 Tests '(null)' values are removed from the resulting dictionarySTRING
HIGH⚡framework/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.py292 '[{"key1": "value1"}, {"invalid": "(null)"}]',CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py148 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py149 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py151 if (ctx._source.wazuh.agent.groups != null && ctx._source.wazuh.agent.groups == params.groups) {CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py158 if (ctx._source.state == null) { ctx._source.state = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py246 if (ctx._source.wazuh == null) { ctx._source.wazuh = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py247 if (ctx._source.wazuh.agent == null) { ctx._source.wazuh.agent = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py248 if (ctx._source.wazuh.cluster == null) { ctx._source.wazuh.cluster = [:]; }CODE
HIGH⚡framework/wazuh/core/indexer/states_components.py255 if (ctx._source.state == null) { ctx._source.state = [:]; }CODE
HIGH⚡api/api/controllers/test/test_agent_controller.py1080 ('id=001', 'group=null;(id=001)'),CODE
HIGH⚡api/api/controllers/test/test_agent_controller.py1081 ('id=001;name=agent', 'group=null;(id=001;name=agent)'),CODE
HIGH⚡api/api/controllers/test/test_agent_controller.py1083 ('id=001,id=002', 'group=null;(id=001,id=002)'),CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py114 if (meta && meta.category) return meta.category;CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py131 if (meta && meta.unit && UNIT_AXIS[meta.unit]) return UNIT_AXIS[meta.unit];CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py219 charts[chartId] = { type: metricType, prevValue: null };CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py227 if (c.prevValue === null) { c.prevValue = rawValue; return; }CODE
HIGH⚡…e/tools/engine-metrics/src/engine_metrics/templates.py248 const ts = new Date(data.timestamp || undefined);CODE
HIGH⚡…e/tools/engine-metrics/src/engine_metrics/templates.py248 const ts = new Date(data.timestamp || undefined);CODE
HIGH⚡…e/tools/engine-metrics/src/engine_metrics/templates.py251 if (data.name && infoEl.dataset.set !== '1') {CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py266 pushPoint(chartId, ts, m.value || 0);CODE
HIGH…e/tools/engine-metrics/src/engine_metrics/templates.py277 pushPoint(chartId, ts, m.value || 0);CODE
Redundant / Tautological Comments159 hits · 234 pts
SeverityFileLineSnippetContext
LOWtools/get_git_refs.sh160 # Check if HEAD points to a branchCOMMENT
LOW⚡tools/devContainer/download_devContainer.sh144 # Check if docker is installedCOMMENT
LOW⚡tools/devContainer/download_devContainer.sh150 # Check if docker is runningCOMMENT
LOW⚡tools/devContainer/download_devContainer.sh156 # Check if the user is in the docker group (Docker Desktop on macOS has no such group).COMMENT
LOW⚡tools/devContainer/download_devContainer.sh162 # Check if git is installedCOMMENT
LOWtools/devContainer/download_devContainer.sh210# Print the value of the first "image" line of a devcontainer.json (empty if there is none)COMMENT
LOWtools/devContainer/download_devContainer.sh671# Check if destination folder already existsCOMMENT
LOWtools/devContainer/scripts/wazuh-certs-tool.sh67 # Check if path is emptyCOMMENT
LOWtools/devContainer/scripts/mount_wazuh_proc.sh3# Check if WAZUH_HOME is setCOMMENT
LOWtools/devContainer/e2e/wazuh-indexer/entrypoint.sh131# Check if server is up 'service wazuh-indexer status' (evaluated inside theCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml47 # Check if the module exists on the systemCOMMENT
LOWruleset/sca/amazon/cis_amazon_linux_2023.yml111 # Check if the module exists on the systemCOMMENT
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.py304 # Check if cluster is disabled and first conditionCOMMENT
LOWframework/wazuh/agent.py1184 # Check if group existsCOMMENT
LOWframework/wazuh/agent.py1239 # Check if the group existsCOMMENT
LOWframework/wazuh/agent.py1296 # Check if agent and group existCOMMENT
LOWframework/wazuh/agent.py1336 # Check if agent existsCOMMENT
LOWframework/wazuh/agent.py1394 # Check if group existsCOMMENT
LOWframework/wazuh/rbac/orm.py2642 # Check if an upgrade is requiredCOMMENT
LOWframework/wazuh/core/configuration.py314 # Check if we have read the same filters before (we will need to merge them)COMMENT
LOWframework/wazuh/core/configuration.py887 # Check if the group existsCOMMENT
LOWframework/wazuh/core/configuration.py943 # Check if the component is correctCOMMENT
LOWframework/wazuh/core/results.py417 # Check if error is already addedCOMMENT
LOWframework/wazuh/core/utils.py262 # Check if every element in sort['fields'] is in allowed_sort_fieldsCOMMENT
LOWframework/wazuh/core/agent.py1177 # Check if the group already belongs to the agentCOMMENT
LOWframework/wazuh/core/agent.py1299 # Check if agent exists and the group existsCOMMENT
LOWframework/wazuh/core/cluster/common.py502 # Check if a new message was received.COMMENT
LOWframework/wazuh/core/cluster/master.py511 # Check if an integrity_check has already been performedCOMMENT
LOWframework/wazuh/core/cluster/cluster.py153 # Check if recursive flag is set or root is actually the initial lookup directory.COMMENT
LOWframework/wazuh/tests/test_agent.py998 # Check if the number of affected items matches the number of times `add_group_to_agent` was calledCOMMENT
LOWtests/integration/test_logcollector/conftest.py153 # Write the file statusCOMMENT
LOW…tegration/test_authd/test_api_registration/conftest.py44 # Check if specific values were set or set the defaultsCOMMENT
99 more matches not shown…
Structural Annotation Overuse119 hits · 203 pts
SeverityFileLineSnippetContext
LOW⚡…asic_usage/test_orphan_promote_after_config_removal.py222 # Step 1: agent is up via daemons_handler. The baseline scan hasCOMMENT
LOW…asic_usage/test_orphan_promote_after_config_removal.py248 # Step 2: stop the agent, drop the realtime <directories> rule fromCOMMENT
LOW⚡…ation/test_agentd/test_ca_rotation/test_ca_rotation.py534 # Step 1: publish the new CA alongside the one in force.COMMENT
LOW⚡…ation/test_agentd/test_ca_rotation/test_ca_rotation.py540 # Step 2: reissue the manager's certificate under the new CA. Assigning after start() takesCOMMENT
LOW…ation/test_agentd/test_ca_rotation/test_ca_rotation.py551 # Step 3: retire the old CA. The agent is verifying against the new certificate by now, soCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md281### Step 1: Export from 4.xCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md298### Step 2: Restore on 5.xCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md317### Step 3: Configure the group on one agent onlyCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md344### Step 4: Enroll the agentsCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md354### Step 5: VerifyCOMMENT
LOWdocs/guide/migration/agent-groups-migration.md386### Step 6: Assign the remaining agent manuallyCOMMENT
LOWdocs/guide/migration/remote-agent-upgrade.md463### Step 1: Upgrade to v4.14.xCOMMENT
LOWdocs/guide/migration/remote-agent-upgrade.md484### Step 2: Upgrade to v5.0.0COMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md164### Step 1: Inventory your 4.x rulesCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md182### Step 2: Map rule identificationCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md192### Step 3: Map severity levelsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md216### Step 4: Rewrite detection logicCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md457### Step 5: Assign rules to an integrationCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md508### Step 6: Migrate metadataCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md531### Step 7: Migrate MITRE ATT&CK mappingsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md575### Step 8: Migrate compliance mappingsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md624### Step 9: Migrate tags and groupsCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md645### Step 10: Handle rules that cannot be directly migratedCOMMENT
LOWdocs/guide/migration/rules-4x-to-5x.md733### Step 11: Deploy and testCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md60## Step 1: The operator mints a tokenCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md88## Step 2: What a token actually isCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md187## Step 3: The agent derives a key and signs a bearerCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md247## Step 4: remoted classifies the requestCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md296## Step 5: remoted bridges to authdCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md310## Step 6: Worker or masterCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md331## Step 7: authd reserves the token useCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md352## Step 8: The keystore decision, with and without a keyCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md424## Step 9: The credential is written down before it is handed outCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md439## Step 10: The agent gets its answerCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md455## Step 11: The writer settles itCOMMENT
LOWdocs/ref/modules/authd/enrollment-lifecycle.md529## Step 12: The agent becomes usableCOMMENT
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.md303### Step 4: Delete Invalid Entries After the TransactionCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md17### Step 1: Include Required HeadersCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md34### Step 2: Initialize the ProtocolCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md84### Step 3: Persist Module DataCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md235### Step 4: Process Manager ResponsesCOMMENT
LOW…s/ref/modules/utils/sync-protocol/integration-guide.md261### 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.md564#### Step 3: Database CleanupCOMMENT
LOWsrc/remoted/remoted_module/src/auth/authMiddleware.cpp219 // Step 1: protocol version. An empty value here must mean "absent or duplicated" -- theCOMMENT
LOW⚡src/remoted/remoted_module/src/auth/authMiddleware.cpp245 // Step 2: the bounded, pre-signature peek. Nothing here is trusted: `kid` only names theCOMMENT
LOW⚡src/remoted/remoted_module/src/auth/authMiddleware.cpp254 // Step 3: one lookup resolves the key AND evaluates the client.keys ip column against theCOMMENT
LOWsrc/remoted/remoted_module/src/auth/authMiddleware.cpp291 // Step 4: the token against that key. The key moves into a wiped buffer for the duration ofCOMMENT
LOW…oted_module/src/enrollment/enrollmentAuthenticator.cpp88 // Step 2: which credential is this? A well-framed bearer whose header carries a `kid` isCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1019 // Step 1: lock_restart (execd, plain-text protocol)COMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1034 // Step 2: openCOMMENT
59 more matches not shown…
Self-Referential Comments62 hits · 194 pts
SeverityFileLineSnippetContext
MEDIUMtools/mitre/mitredb.py758 # Create a database connectionCOMMENT
MEDIUMtools/devContainer/e2e/init.sh447 # Create the output directory if it doesn't exist (This never happens on devContainer context)COMMENT
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.py676 # Create a backup of the current configuration before attempting to replace itCOMMENT
MEDIUMframework/wazuh/rbac/orm.py1743 # Create a role-policy relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py1905 # Create a role-policy relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py2086 # Create a rule-role relationship if both existCOMMENT
MEDIUMframework/wazuh/rbac/orm.py2262 # Create the relationshipsCOMMENT
MEDIUMframework/wazuh/rbac/orm.py2636 # Create the tables added since the database was created. `create_all` skips the onesCOMMENT
MEDIUMframework/wazuh/core/cluster/master.py324 # Create an event to wait for the response.COMMENT
MEDIUMframework/wazuh/core/cluster/master.py847 # Create a child process to run the task.COMMENT
MEDIUMtests/integration/conftest.py746 # 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.py226 # Create the realtime-tracked file. inotify queues an "added" event; withCOMMENT
MEDIUM…m/test_files/test_basic_usage/test_delete_directory.py175 # This module is entirely skipif'd on Windows (see pytestmark above), so the Windows branchCOMMENT
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.py363 """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
MEDIUMsrc/init/credentials/wazuh-manager-certificates.sh5# This file is a sourceable POSIX /bin/sh library. It depends on the public andCOMMENT
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…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
2 more matches not shown…
Verbosity Indicators65 hits · 123 pts
SeverityFileLineSnippetContext
LOW⚡…asic_usage/test_orphan_promote_after_config_removal.py222 # Step 1: agent is up via daemons_handler. The baseline scan hasCOMMENT
LOW…asic_usage/test_orphan_promote_after_config_removal.py248 # Step 2: stop the agent, drop the realtime <directories> rule fromCOMMENT
LOW⚡…ation/test_agentd/test_ca_rotation/test_ca_rotation.py534 # Step 1: publish the new CA alongside the one in force.COMMENT
LOW⚡…ation/test_agentd/test_ca_rotation/test_ca_rotation.py540 # Step 2: reissue the manager's certificate under the new CA. Assigning after start() takesCOMMENT
LOW…ation/test_agentd/test_ca_rotation/test_ca_rotation.py551 # Step 3: retire the old CA. The agent is verifying against the new certificate by now, soCOMMENT
LOWsrc/remoted/remoted_module/src/auth/authMiddleware.cpp219 // Step 1: protocol version. An empty value here must mean "absent or duplicated" -- theCOMMENT
LOW⚡src/remoted/remoted_module/src/auth/authMiddleware.cpp245 // Step 2: the bounded, pre-signature peek. Nothing here is trusted: `kid` only names theCOMMENT
LOW⚡src/remoted/remoted_module/src/auth/authMiddleware.cpp254 // Step 3: one lookup resolves the key AND evaluates the client.keys ip column against theCOMMENT
LOWsrc/remoted/remoted_module/src/auth/authMiddleware.cpp291 // Step 4: the token against that key. The key moves into a wiped buffer for the duration ofCOMMENT
LOW…oted_module/src/enrollment/enrollmentAuthenticator.cpp88 // Step 2: which credential is this? A well-framed bearer whose header carries a `kid` isCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1019 // Step 1: lock_restart (execd, plain-text protocol)COMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1034 // Step 2: openCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1073 // Step 3: write, chunked at a fixed 32KB (LEGACY_TASK_WPK_CHUNK_SIZE) -- a wire-protocolCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1129 // Step 4: closeCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1146 // Step 5: sha1 -- compare the agent-reported hash against the expected oneCOMMENT
LOWsrc/remoted/src/legacy_task_delivery.c1195 // Step 6: upgradeCOMMENT
LOW⚡…dules/sync_protocol/tests/test_agent_sync_protocol.cpp3715 // Step 1: Clear all DataContextCOMMENT
LOW⚡…dules/sync_protocol/tests/test_agent_sync_protocol.cpp3721 // Step 2: Fetch pending DataValue items (onlyDataValues=true)COMMENT
LOW⚡…sync_protocol/tests/test_sync_protocol_integration.cpp255 // Step 1: Persist DataValue itemsCOMMENT
LOW⚡…sync_protocol/tests/test_sync_protocol_integration.cpp264 // Step 2: Persist DataContext itemsCOMMENT
LOW⚡…sync_protocol/tests/test_sync_protocol_integration.cpp273 // Step 3: Verify we have both typesCOMMENT
LOW⚡…sync_protocol/tests/test_sync_protocol_integration.cpp277 // Step 4: Clear all DataContextCOMMENT
LOW⚡…sync_protocol/tests/test_sync_protocol_integration.cpp280 // Step 5: Fetch only DataValuesCOMMENT
LOW…red_modules/manager_certs/src/commands/atomicWrite.cpp281 // Step 3: the temporary, beside the destination, in the same directory descriptor.COMMENT
LOW…red_modules/manager_certs/src/commands/atomicWrite.cpp321 // Step 4: the bytes finishWrite() already serialised and hashed. Short writes and EINTR areCOMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp349 // Step 5: the contents on the medium before anything else is decided.COMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp356 // Step 6: the destination's own owner and mode, read from its descriptor under the lock --COMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp372 // Step 7: again, because the owner and mode set above are metadata a crash could lose.COMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp379 // Step 8: is the destination still the file we read under the lock? A writer that did notCOMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp388 // Step 9: a checked close -- a deferred write error surfaces here and nowhere else.COMMENT
LOW⚡…red_modules/manager_certs/src/commands/atomicWrite.cpp397 // Step 10: the publication itself, one step for every reader.COMMENT
LOW…red_modules/manager_certs/src/commands/atomicWrite.cpp408 // Step 11: the rename is visible now; surviving a power loss needs the directory flushed.COMMENT
LOW⚡…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1903 // Step 2: Calculate new versionCOMMENT
LOW⚡…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1911 // Step 3: Set new version on all modulesCOMMENT
LOW⚡…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1986 // Step 2: Get versions, calculate new version, and set it on all modulesCOMMENT
LOW⚡…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1995 // Step 3: Trigger flush while still paused.COMMENT
LOW⚡…les/agent_info/agent_info_impl/src/agent_info_impl.cpp2005 // 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.cpp2012 // 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.cpp1846 // Step 1: Get version from each moduleCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp1965 // Step 1: Pause all coordination modulesCOMMENT
LOW…les/agent_info/agent_info_impl/src/agent_info_impl.cpp2035 // Step 6: Build indices list based on enabled modules and synchronize.COMMENT
LOW⚡src/wazuh_modules/syscollector/src/syscollectorImp.cpp3207 // Step 0: Clear any existing DataContext from previous scansCOMMENT
LOW⚡src/wazuh_modules/syscollector/src/syscollectorImp.cpp3211 // Step 1: Fetch pending DataValue items from syscollector_vd_sync.dbCOMMENT
LOW⚡src/wazuh_modules/syscollector/src/syscollectorImp.cpp3219 // Step 2: Build exclusion sets - IDs of items already submitted as DataValueCOMMENT
LOW⚡src/wazuh_modules/syscollector/src/syscollectorImp.cpp3228 // Step 3: Determine what DataContext tables are needed based on platform rulesCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp3246 // Step 4: Fetch and submit DataContext for each required tableCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4185 // Step 1: Generate stateful DELETE events for each excess recordCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp4217 // Step 2: Reset sync flag to 0 for these recordsCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp5842 // Step 1: Delete all rows in a transactionCOMMENT
LOWsrc/wazuh_modules/syscollector/src/syscollectorImp.cpp5871 // Step 2: Re-insert rows with new sync value in a transaction to force commitCOMMENT
LOWsrc/logcollector/src/logcollector.c1606 /* Because Windows cache's files, we need to check if the fileCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh434 # Step 1: Stop managerCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh437 # Step 2: Start analysisdCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh440 # Step 3: Wait for engine readyCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh443 # Step 4: Start resource monitorCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh446 # Step 5: Grace period before benchmarkCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh466 # Step 7: Grace period after benchmarkCOMMENT
LOW⚡src/engine/test/acceptance_test/acceptance_test.sh470 # Step 8: Stop monitor & analysisdCOMMENT
LOW⚡src/engine/source/api/cmcrud/src/handlers.cpp440 // Step 1: Import into temp namespace (validates structure).COMMENT
LOW⚡src/engine/source/api/cmcrud/src/handlers.cpp450 // Step 2: If has integrations, post a tester entry to validateCOMMENT
5 more matches not shown…
AI Slop Vocabulary45 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUMtools/manager_benchmark/prepare_manager.sh29# steady state, while the harness deliberately asks faster than that toCOMMENT
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_ubuntu.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_ubuntu.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_ubuntu.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…_benchmark/sample_payloads/dumps/sca_full_windows.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…_benchmark/sample_payloads/dumps/sca_full_windows.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…_benchmark/sample_payloads/dumps/sca_full_windows.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…_benchmark/sample_payloads/dumps/sca_full_windows.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…_benchmark/sample_payloads/dumps/sca_full_windows.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_centos.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_centos.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
MEDIUM⚡…r_benchmark/sample_payloads/dumps/sca_full_centos.json1{"metadata":{"module":"sca","mode":"ModuleFull","option":"Sync","indices":["wazuh-states-sca"]},"items":[{"seq":0,"operaCODE
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.py201 """Mock method in order to obtain a particular output."""STRING
MEDIUMframework/wazuh/core/cluster/tests/test_worker.py237 """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_testunit_managercerts.yml190 # cannot elevate. What that action added on this path is kept verbatim: `ASAN_OPTIONS=COMMENT
MEDIUM.github/workflows/5_testintegration_taskmanager.yml49 # The QA harness boots the real module through this: the same shared object modulesd loads,COMMENT
MEDIUM.github/workflows/5_testunit_taskmanager.yml73 # starting the worker pool -- which is not a unit test, it is the qa harness, and the qaCOMMENT
MEDIUM.github/workflows/5_testunit_taskmanager.yml74 # harness already does exactly that (see qa/, including kill -9 recovery and the gracefulCOMMENT
MEDIUM…/workflows/5_testintegration_inventory-sync-server.yml48 # The QA harness: --serve boots the real server (and would boot the realCOMMENT
MEDIUMapi/test/integration/mapping/selection_rules.yaml163 # The environment and the harnessCOMMENT
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
MEDIUM…ed/remoted_module/test/unit/statelessEndpoint_test.cpp187 // full pipeline, but validatePayloadIdentity() must still be robust to it on its own contract.COMMENT
MEDIUM…c/wazuh_modules/task_manager/qa/helpers/task_client.py155 pass # the harness captures the module's log, not this stub'sCODE
MEDIUMsrc/client-agent/https_client/demo/mock_manager.py14# Not production code; a demo harness only.COMMENT
MEDIUMsrc/engine/test/acceptance_test/acceptance_test.sh3# acceptance_test.sh – Engine benchmark harnessCOMMENT
AI Structural Patterns79 hits · 75 pts
SeverityFileLineSnippetContext
LOWtools/devContainer/e2e/dashboard/capture_logic.py543CODE
LOWframework/scripts/tests/test_agent_groups.py404CODE
LOWframework/wazuh/security.py128CODE
LOWframework/wazuh/security.py472CODE
LOWframework/wazuh/security.py644CODE
LOWframework/wazuh/security.py823CODE
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.py523CODE
LOWframework/wazuh/agent.py584CODE
LOWframework/wazuh/agent.py783CODE
LOWframework/wazuh/agent.py827CODE
LOWframework/wazuh/agent.py932CODE
LOWframework/wazuh/agent.py1013CODE
LOWframework/wazuh/agent.py1467CODE
LOWframework/wazuh/manager.py293CODE
LOWframework/wazuh/core/results.py330CODE
LOWframework/wazuh/core/results.py347CODE
LOWframework/wazuh/core/utils.py96CODE
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.py1395CODE
LOWframework/wazuh/core/agent.py1545CODE
LOWframework/wazuh/core/agent.py1609CODE
LOWframework/wazuh/core/agent.py82CODE
LOWframework/wazuh/core/agent.py380CODE
LOWframework/wazuh/core/agent.py1131CODE
LOWframework/wazuh/core/agent.py1070CODE
LOWframework/wazuh/core/cluster/server.py466CODE
LOWframework/wazuh/core/cluster/control.py15CODE
LOWframework/wazuh/core/cluster/dapi/dapi.py48CODE
LOWapi/api/middlewares.py765CODE
LOWapi/api/models/enrollment_token_model.py14CODE
LOWapi/api/controllers/cluster_controller.py59CODE
LOWapi/api/controllers/cluster_controller.py426CODE
LOWapi/api/controllers/agent_controller.py28CODE
LOWapi/api/controllers/agent_controller.py99CODE
LOWapi/api/controllers/agent_controller.py474CODE
LOWapi/api/controllers/agent_controller.py558CODE
LOWapi/api/controllers/agent_controller.py778CODE
LOWapi/api/controllers/agent_controller.py842CODE
LOWapi/api/controllers/agent_controller.py1020CODE
LOWapi/api/controllers/agent_controller.py1365CODE
LOWapi/api/controllers/agent_controller.py1484CODE
LOWapi/api/controllers/agent_controller.py1533CODE
LOWapi/api/controllers/agent_controller.py1583CODE
LOWapi/api/controllers/security_controller.py206CODE
LOWapi/api/controllers/security_controller.py403CODE
19 more matches not shown…
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICAL…ger_benchmark/tool_simulator/internal/runner/runner.go403 ki := r.scn.Defaults.Control.KeepaliveInterval.D()CODE
CRITICAL…ager_benchmark/tool_simulator/internal/runner/agent.go125 interval := a.r.scn.Defaults.Control.KeepaliveInterval.D()CODE
CRITICAL…ager_benchmark/tool_simulator/internal/runner/agent.go210 repeatUntil := a.r.scn.Pacing.RepeatUntil.D()CODE
CRITICALframework/wazuh/core/cluster/tests/test_cluster.py97 wazuh.core.cluster.utils.read_config.cache_clear() # never reuse a section cached by another testCODE
CRITICALapi/api/test/test_wazuh_manager_apid.py502 apid.uvicorn.Server.return_value.run.assert_called_once_with(sockets=bound)CODE
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
Fake / Example Data51 hits · 48 pts
SeverityFileLineSnippetContext
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⚡src/remoted/remoted_module/tools/send_agent_json.py234 fake_id, fake_key = "999999", "00" * 32 # an id that (almost certainly) isn't enrolledCODE
LOW⚡src/remoted/remoted_module/tools/send_agent_json.py235 return _json_auth_headers(fake_id, fake_key), bodyCODE
LOW⚡src/remoted/remoted_module/tools/send_stateless.py173 fake_id, fake_key = "999999", "00" * 32 # an id that (almost certainly) isn't enrolledCODE
LOW⚡src/remoted/remoted_module/tools/send_stateless.py174 headers = auth_headers(fake_id, 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
LOW⚡src/unit_tests/syscheckd/test_run_realtime.c548 const char *dummy_key = "1";CODE
LOW⚡src/unit_tests/syscheckd/test_run_realtime.c554 __real_OSHash_Add_ex(syscheck.realtime->dirtb, dummy_key, (void *) path);CODE
LOW⚡src/unit_tests/syscheckd/test_run_realtime.c562 expect_string(__wrap_OSHash_Get_ex, key, dummy_key);CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c851 expect_string(__wrap_OSHash_Delete_ex, key, "dummy_key");CODE
LOWsrc/unit_tests/syscheckd/test_run_realtime.c944 expect_string(__wrap_OSHash_Delete_ex, key, "dummy_key");CODE
LOW…/src/extended_sources/users/tests/test_users_linux.cpp566 auto nameless = makePwd("placeholder", 4242);CODE
LOW…/src/extended_sources/users/tests/test_users_linux.cpp604 auto nameless = makePwd("placeholder", 4242);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
Modern Structural Boilerplate18 hits · 17 pts
SeverityFileLineSnippetContext
LOWframework/wazuh/core/agent_tasks.py21__all__ = [CODE
LOWframework/wazuh/core/wdb_http.py208 async def set_agents_sync(self, agents_sync: dict) -> None:CODE
LOWtests/integration/conftest.py205def 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.py1001def set_test_sqs_queue(metadata: dict, sqs_manager, s3_client, create_test_bucket) -> None:CODE
LOWtests/integration/test_aws/configurator.py76 def _set_session_id(self) -> None:CODE
LOW⚡wodles/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
LOW⚡wodles/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
Example Usage Blocks10 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/purge_wazuh.sh5# Usage:COMMENT
LOW⚡tools/manager_benchmark/cleanup_agents.sh11# Usage:COMMENT
LOWtools/manager_benchmark/run_matrix.sh10# Usage:COMMENT
LOWtools/manager_benchmark/run_benchmark.sh15# Usage:COMMENT
LOWtools/manager_benchmark/scrape_metrics.sh23# Usage:COMMENT
LOWtools/manager_benchmark/prepare_manager.sh59# Usage:COMMENT
LOW⚡tools/devContainer/scripts/pr-clang.sh8# Usage:COMMENT
LOWtools/devContainer/scripts/clean-unused-containers.sh15# Usage:COMMENT
LOWtools/devContainer/scripts/toggle_event_dumper.sh4# Usage:COMMENT
LOWsrc/engine/internal_packages/debs/SPECS/build_venv.sh10# Usage:COMMENT
Modern AI Meta-Vocabulary6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMdocs/ref/modules/utils/metrics/integration-guide.md9## Wire by dependency injectionCOMMENT
MEDIUM.github/workflows/5_testunit_contentmanager.yml73 # module's orchestration layer (contentModule, contentModuleFacade, actionOrchestrator,COMMENT
MEDIUMsrc/remoted/remoted_module/README.md1811└── deferredForwarder.hpp/.cpp# limiter + client + per-endpoint post-processing pool orchestrationCODE
MEDIUMsrc/init/tests/test_resolve_credentials.sh18# below are about the orchestration on top.COMMENT
MEDIUMsrc/engine/test/acceptance_test/README.md10├── acceptance_test.sh # Main orchestration scriptCODE
MEDIUMsrc/engine/source/README.md162## Startup & dependency injection (`main.cpp`)COMMENT
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 Names8 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡framework/wazuh/core/tests/test_decorators.py9 def test_function():CODE
LOW⚡framework/wazuh/core/tests/test_decorators.py21 def test_function(a, b, c=0):CODE
LOW⚡framework/wazuh/core/tests/test_decorators.py32 async def test_function():CODE
LOW⚡framework/wazuh/core/tests/test_decorators.py46 async def test_function(a, b):CODE
LOW⚡framework/wazuh/core/tests/test_decorators.py58 def test_function():CODE
LOW⚡framework/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.hpp467 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp472 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp616 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp621 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp775 // TODO: Handle errorCOMMENT
LOWsrc/shared_modules/utils/socketWrapper.hpp780 // TODO: Handle errorCOMMENT
LOWsrc/engine/source/base/include/base/utils/ipUtils.hpp32// TODO: implementCOMMENT