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 presents the forensic synthetic code analysis of ossec/ossec-hids, a C project with 5,044 GitHub stars. SynthScan v2.0 examined 239,187 lines of code across 1115 source files, recording 660 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 660 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | install.sh | 761 | AddWhite | 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 | #define SLOG_EMERG 0 /* system is unusable */ | 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 | * - Dual input demux (1 recv + N route workers) exceeds nested's single demux. | COMMENT |
| LOW | src/analysisd/pipeline.c | 41 | #include "state.h" | COMMENT |
| LOW | src/analysisd/eventinfo.h | 121 | int memoryused; | COMMENT |
| LOW | src/analysisd/eventinfo.h | 141 | #define OSSEC_ALERT 12 /* OSSEC alerts */ | 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 | #define HOSTINFO_MODULE 15 | 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 | # - Migration checklist: inventory multi-agent frequency rules → convert to | COMMENT |
| LOW | src/tests/regressions/README.md | 61 | # Wave 4 product planes (SCA/syscollector/winevt/dbsync/upgrade): deferred until | 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 | |
| LOW | src/shared/file_op.c | 81 | #endif | COMMENT |
| LOW | src/shared/file_op.c | 101 | #define PRODUCT_ENTERPRISE_SERVER_C "Enterprise Edition (full) " | COMMENT |
| 529 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 | 50 | # 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 | src/tests/regressions/README.md | 41 | # - Migration checklist: inventory multi-agent frequency rules → convert to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/ossec_rules_list.py | 48 | print ("Error: OSSEC rules directory does not appear to exist") | CODE |
| 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 |