OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
This report summarizes scanner evidence for ossec/ossec-hids, a C project with 5,070 GitHub stars. SynthScan examined 254,298 lines of code across 1177 source files, recording 668 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 3.3 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 610 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 56 finding(s).
Which changes need focused human review? 668 finding(s).
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.
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.
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.
The scanner identified 668 distinct pattern matches across 9 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | install.sh | 801 | # else | COMMENT |
| LOW | contrib/active-list.pl | 1 | #!/usr/bin/perl | COMMENT |
| LOW | contrib/ossec2mysql.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | contrib/ossec2mysql.pl | 21 | # | COMMENT |
| LOW | contrib/ossec2mysql.pl | 41 | # database=ossecbase | COMMENT |
| LOW | contrib/ossec2mysql.pl | 61 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | COMMENT |
| LOW | contrib/ossec-batch-manager.pl | 1 | #!/usr/bin/perl | COMMENT |
| LOW | contrib/ossec-batch-manager.pl | 21 | # the 'agent ID' wanting to be removed. Changed the | COMMENT |
| LOW | contrib/ossec-batch-manager.pl | 41 | # - changed the extract operation to store options | COMMENT |
| LOW | contrib/ossec2mysqld.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | contrib/ossec2mysqld.pl | 21 | # as a simple script (ossec2mysql.pl). | COMMENT |
| LOW | contrib/ossec2mysqld.pl | 41 | # dbhost=localhost | COMMENT |
| LOW | contrib/ossec2mysqld.pl | 61 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | COMMENT |
| LOW | contrib/ossectop.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | contrib/ossectop.pl | 21 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | COMMENT |
| LOW | contrib/debian-packages/generate_ossec.sh | 1 | #!/bin/bash | COMMENT |
| LOW | active-response/firewall-drop.sh | 1 | #!/bin/sh | COMMENT |
| LOW | active-response/nftables-drop.sh | 1 | #!/bin/sh | COMMENT |
| LOW | active-response/cloudflare-ban.sh | 1 | #!/bin/sh | COMMENT |
| LOW | src/init/darwin-addusers.pl | 1 | #!/usr/bin/env perl | COMMENT |
| LOW | src/os_maild/sendmail.c | 21 | #define VALIDBANNER "220" | COMMENT |
| LOW | src/os_maild/sendcustomemail.c | 21 | /* Default values used to connect */ | COMMENT |
| LOW | src/os_maild/maild.h | 21 | #define DEFAULT_TIMEOUT 18 /* socket read timeout - 18 (*5)*/ | COMMENT |
| LOW | src/os_maild/curlmail.c | 21 | #include <curl/curl.h> | COMMENT |
| LOW | src/os_maild/tests/maild_shutdown_gate_test.c | 1 | /* Copyright (C) 2026 Atomicorp, Inc. | COMMENT |
| LOW | src/os_crypto/sha256/sha256.c | 1 | #include <stdlib.h> | COMMENT |
| LOW | src/os_crypto/sha1/md32_common.h | 141 | #endif | COMMENT |
| LOW | src/os_crypto/sha1/md32_common.h | 161 | #endif | COMMENT |
| LOW | src/os_crypto/sha1/md32_common.h | 181 | /* | COMMENT |
| LOW | src/os_crypto/sha1/md32_common.h | 261 | /* | COMMENT |
| LOW | src/os_crypto/sha1/md32_common.h | 341 | #ifndef HOST_l2c | COMMENT |
| LOW | src/os_crypto/sha1/sha_locl.h | 61 | COMMENT | |
| LOW | src/os_crypto/sha1/sha_locl.h | 101 | COMMENT | |
| LOW | src/os_crypto/sha1/sha_locl.h | 121 | # ifdef SHA1_ASM | COMMENT |
| LOW | src/addagent/manage_agents.h | 81 | #define ADD_CONFIRM "Confirm adding it?(y/n): " | COMMENT |
| LOW | src/addagent/manage_agents.h | 141 | /* WIN32 errors */ | COMMENT |
| LOW | src/os_xml/os_xml_internal.h | 21 | #define XML_VARIABLE_MAXSIZE 256 | COMMENT |
| LOW | src/config/syscheck-config.h | 21 | #define CHECK_OWNER 0000010 | COMMENT |
| LOW | src/config/csyslogd-config.h | 41 | COMMENT | |
| LOW | src/analysisd/analysisd.c | 21 | #include "os_execd/execd.h" | COMMENT |
| LOW | src/analysisd/analysisd.c | 41 | COMMENT | |
| LOW | src/analysisd/analysisd_stages.c | 21 | #include "eventinfo.h" | COMMENT |
| LOW | src/analysisd/pipeline.c | 21 | * does have the __atomic_* builtins used below. | COMMENT |
| LOW | src/analysisd/testrule.c | 21 | #include "active-response.h" | COMMENT |
| LOW | src/analysisd/eventinfo.h | 141 | } EventList; | COMMENT |
| LOW | src/analysisd/rules.h | 21 | #include "lists.h" | COMMENT |
| LOW | src/analysisd/rules.h | 41 | #define DO_MAILALERT 0x002 | COMMENT |
| LOW | src/analysisd/rules.h | 261 | COMMENT | |
| LOW | src/syscheckd/create_db.c | 1 | /* Copyright (C) 2009 Trend Micro Inc. | COMMENT |
| LOW | src/tests/regressions/issue_prev_matched_race.c | 21 | * Run: | COMMENT |
| LOW | src/tests/regressions/README.md | 1 | # Analysisd / pipeline regression tests | COMMENT |
| LOW | src/tests/regressions/README.md | 21 | # - issue_1079_last_events_uaf frequency last_events ownership | COMMENT |
| LOW | src/tests/regressions/README.md | 41 | # - issue_win_execd_cmd_injection WinExecd AR args safe for cmd.exe | COMMENT |
| LOW | src/tests/regressions/README.md | 61 | # Also invoked from `make regression` (own Makefiles): | COMMENT |
| LOW | src/tests/regressions/README.md | 81 | # raw_input_queue_*, fts_queue_*, and *_delta fields in ossec-analysisd.state. | COMMENT |
| LOW | src/os_net/os_net.h | 21 | #ifndef AI_V4MAPPED | COMMENT |
| LOW | src/shared/file_op.c | 21 | #include <aclapi.h> | COMMENT |
| LOW | src/shared/file_op.c | 41 | #ifndef PRODUCT_BUSINESS_N | COMMENT |
| LOW | src/shared/file_op.c | 61 | COMMENT | |
| 533 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/active-list.pl | 19 | # ----------------------- | COMMENT |
| MEDIUM | contrib/active-list.pl | 21 | # ----------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 6 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 10 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 14 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 16 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 68 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 70 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 77 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 79 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysql.pl | 81 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysql.pl | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysql.pl | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysql.pl | 113 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysql.pl | 115 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 6 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 11 | ## --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 13 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 15 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 17 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 78 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossec2mysqld.pl | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysqld.pl | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysqld.pl | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysqld.pl | 114 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossec2mysqld.pl | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 6 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 11 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 13 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 38 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 40 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | contrib/ossectop.pl | 42 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossectop.pl | 59 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | contrib/ossectop.pl | 61 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/CMakeLists.txt | 88 | #============================================================================ | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/CMakeLists.txt | 90 | #============================================================================ | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/CMakeLists.txt | 197 | #============================================================================ | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/CMakeLists.txt | 199 | #============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ernal/zlib-1.3.1/contrib/dotzlib/DotZLib/GZipStream.cs | 263 | /// <remarks>In this implementation, this method does nothing. This is because excessive | COMMENT |
| HIGH | …ernal/zlib-1.3.1/contrib/dotzlib/DotZLib/GZipStream.cs | 273 | /// <remarks>In this implementation this property is not supported</remarks> | COMMENT |
| HIGH | …ernal/zlib-1.3.1/contrib/dotzlib/DotZLib/GZipStream.cs | 290 | /// <remarks>In this implementation this property is not supported</remarks> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/init/osx105-addusers.sh | 63 | # Creating the groups. | COMMENT |
| MEDIUM | src/init/osx105-addusers.sh | 73 | # Creating the users. | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/os400/make.sh | 164 | # Create the OS/400 library if it does not exist. | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/os400/make.sh | 172 | # Create the DOCS source file if it does not exist. | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/os400/make.sh | 194 | # Create the OS/400 source program file for the C header files. | COMMENT |
| MEDIUM | src/external/zlib-1.3.1/os400/make.sh | 205 | # Create the IFS directory for the C header files. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/debian-packages/generate_ossec.sh | 72 | # Check if element is in an array | COMMENT |
| LOW | active-response/firewalls/ipfw.sh | 51 | # Check if our table is set | COMMENT |
| LOW | src/os_dbd/dbmake.sh | 11 | # Check if mysql_config is installed to use it | COMMENT |
| LOW | src/os_dbd/dbmake.sh | 48 | # Check if pg_config is installed to use it | COMMENT |
| LOW | src/external/zlib-1.3.1/os400/make.sh | 66 | # Set LINK to "YES" if the module has been compiled. | COMMENT |
| LOW | src/agentlessd/scripts/register_host.sh | 59 | # Check if the password was supplied | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/ossec_rules_list.py | 48 | print ("Error: OSSEC rules directory does not appear to exist") | CODE |
| LOW | src/init/ossec-local.sh | 357 | except Exception: | CODE |
| LOW | src/init/ossec-server.sh | 372 | except Exception: | CODE |
| LOW | src/init/ossec-client.sh | 279 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/tests/regressions/README.md | 78 | # - Migration checklist: inventory multi-agent frequency rules → convert to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/os_maild/tests/mail_utils_test.c | 62 | assert(mail_safe_envelope_value("user@example.com", dst, sizeof(dst)) == 0); | CODE |
| LOW | src/os_maild/tests/mail_utils_test.c | 63 | assert(strcmp(dst, "user@example.com") == 0); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/os_dbd/upgrade-agent-1363-mysql.sql | 9 | # Usage: | COMMENT |