AI Slop Code Risk Monitor

osquery/osquery

SlopCodeMonitor badge for osquery/osquery Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

SQL powered operating system instrumentation, monitoring, and analytics.

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for osquery/osquery, a C++ project with 23,709 GitHub stars. SynthScan examined 295,276 lines of code across 1913 source files, recording 559 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 2.2 (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.

2.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
23.7K
Stars
C++
Language
295.3K
Lines of Code
1.9K
Files
559
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 8.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 10.5/100 · LOW

Which changes need focused human review? 559 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 0HIGH 13MEDIUM 16LOW 530

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 559 distinct pattern matches across 14 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.

Over-Commented Block439 hits · 439 pts
SeverityFileLineSnippetContext
LOWosquery/tables/networking/curl_certificate.cpp21#include <openssl/x509.h>COMMENT
LOWosquery/tables/networking/posix/interfaces.cpp21#include <linux/ethtool.h>COMMENT
LOWosquery/tables/yara/yara_events.cpp21#include <osquery/events/darwin/fsevents.h>COMMENT
LOWosquery/tables/yara/yara.cpp21COMMENT
LOWosquery/tables/yara/yara.cpp501 }COMMENT
LOWosquery/tables/system/hash.cpp21COMMENT
LOWosquery/tables/system/ssh_keys.cpp21#include <osquery/worker/logging/glog/glog_logger.h>COMMENT
LOWosquery/tables/system/posix/ulimit_info.cpp41#endifCOMMENT
LOWosquery/tables/system/posix/homebrew_packages.cpp181 }COMMENT
LOWosquery/tables/system/posix/augeas.cpp201 // Strategy for handling augeasCOMMENT
LOWosquery/tables/system/tests/system_tables_tests.cpp21#include <osquery/core/tables.h>COMMENT
LOWosquery/tables/system/linux/processes.cpp21#include <boost/algorithm/string/split.hpp>COMMENT
LOWosquery/tables/system/linux/secureboot.cpp21// Linux has 2 places efivars can be accessed:COMMENT
LOWosquery/tables/system/linux/md_tables.cpp201#endifCOMMENT
LOWosquery/tables/system/linux/rpm_packages.cpp21#include <unistd.h>COMMENT
LOWosquery/tables/system/linux/rpm_packages.cpp81 }COMMENT
LOWosquery/tables/system/linux/rpm_packages.cpp101// re-inits its own session; owner_pid_ sees the new pid and resets.COMMENT
LOWosquery/tables/system/linux/model_specific_register.cpp21#define MSR_FILENAME_BUFFER_SIZE 32COMMENT
LOWosquery/tables/system/linux/secureboot_certificates.cpp21#include <cstdint>COMMENT
LOWosquery/tables/system/linux/apt_sources.cpp1/**COMMENT
LOWosquery/tables/system/linux/gpu_info.cpp21#include <osquery/core/core.h>COMMENT
LOWosquery/tables/system/darwin/startup_items.mm21#include <osquery/core/tables.h>COMMENT
LOWosquery/tables/system/darwin/sysctl_utils.cpp21namespace osquery {COMMENT
LOWosquery/tables/system/darwin/smbios_tables.cpp21#include <boost/algorithm/string.hpp>COMMENT
LOWosquery/tables/system/darwin/signature.mm21#include <osquery/logger/logger.h>COMMENT
LOWosquery/tables/system/darwin/certificates.mm121COMMENT
LOWosquery/tables/system/darwin/gpu_info.mm221 info.model_id = stringFromIOKitProperty(name_matched);COMMENT
LOWosquery/tables/system/darwin/firewall.h21COMMENT
LOWosquery/tables/system/darwin/firewall.h41// - 'logging_option': Quote from https://support.apple.com/en-jo/121011: "TheCOMMENT
LOWosquery/tables/system/windows/processes.cpp21#include <iomanip>COMMENT
LOWosquery/tables/system/windows/objects.cpp21namespace osquery {COMMENT
LOWosquery/tables/system/windows/objects.cpp41// rest of osqueryCOMMENT
LOWosquery/tables/system/windows/objects.cpp61COMMENT
LOWosquery/tables/system/windows/objects.cpp141 // services session id. this means we expect the object name to be aCOMMENT
LOWosquery/tables/system/windows/windows_crashes.cpp21#include <DbgEng.h>COMMENT
LOWosquery/tables/system/windows/programs.cpp141COMMENT
LOWosquery/tables/system/windows/registry.cpp21#include <boost/algorithm/string.hpp>COMMENT
LOWosquery/tables/system/windows/windows_search.cpp21#include <sstream>COMMENT
LOWosquery/tables/system/windows/process_open_handles.cpp921 if (!FLAGS_allow_handle_threads) {COMMENT
LOWosquery/tables/applications/ai_agent_skills.cpp81// this many leading bytes are ever read: enough for any real frontmatterCOMMENT
LOWosquery/tables/applications/ai_agent_skills.cpp261 assignIfPresent(metadata, "version", skill.version);COMMENT
LOWosquery/tables/applications/jetbrains_plugins.cpp181COMMENT
LOWosquery/tables/applications/jetbrains_plugins.cpp281// completion-ranking.jar is before `gson-2.8.0.jar` or `junit-m5.jar`COMMENT
LOWosquery/tables/applications/posix/docker.cpp21COMMENT
LOWosquery/tables/applications/darwin/browser_plugins.cpp41COMMENT
LOWosquery/tables/events/linux/process_file_events.cpp641 // The rename/renameat/renameat2 syscalls all receive either fourCOMMENT
LOWosquery/tables/events/windows/ntfs_journal_events.cpp41 // when we encounter them? Does NTFS recycle FRNs? Does it matter in terms ofCOMMENT
LOWosquery/tables/utility/osquery.cpp1/**COMMENT
LOW…ental/experiments/linuxevents/libraries/CMakeLists.txt1# Copyright (c) 2014-present, The osquery authorsCOMMENT
LOWosquery/core/flags.h201 */COMMENT
LOWosquery/core/system.cpp21#include <uuid/uuid.h>COMMENT
LOWosquery/core/system.cpp41COMMENT
LOWosquery/core/init.cpp21#include <WbemIdl.h>COMMENT
LOWosquery/core/init.cpp41#include <osquery/events/events.h>COMMENT
LOWosquery/core/watcher.cpp21COMMENT
LOWosquery/core/windows/ntapi.h21#define STATUS_UNSUCCESSFUL 0xC0000001LCOMMENT
LOWosquery/core/windows/ntapi.h41#define STATUS_INTEGER_OVERFLOW 0xC0000095LCOMMENT
LOWosquery/core/windows/ntapi.h61#ifndef ObjectNameInformationCOMMENT
LOWosquery/logger/logger.cpp21#include <boost/noncopyable.hpp>COMMENT
LOWosquery/config/config.cpp21#include <osquery/config/config.h>COMMENT
379 more matches not shown…
Empty Error Handlers13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHtools/tests/test_osqueryd.py157except:CODE
HIGHtools/tests/test_osqueryd.py164except:CODE
HIGHtools/tests/test_osqueryd.py61except:CODE
HIGHtools/tests/utils.py56except Exception:CODE
HIGHtools/tests/test_base.py288except:CODE
HIGHtools/tests/test_base.py538except:CODE
HIGHtools/tests/test_base.py750except KeyboardInterrupt:CODE
HIGHtools/tests/test_base.py315except:CODE
HIGHtools/tests/test_base.py506except Exception as e:CODE
HIGHtools/tests/test_base.py309except:CODE
HIGHtools/tests/test_base.py455except Exception as e:CODE
HIGHtools/codegen/gentable.py312except:CODE
HIGHtools/codegen/amalgamate.py69except OSError:CODE
Unused Imports32 hits · 32 pts
SeverityFileLineSnippetContext
LOW…ci/scripts/cve/validate_manifest_libraries_versions.py10CODE
LOW…s/ci/scripts/cve/third_party_libraries_cves_scanner.py21CODE
LOWtools/tests/winexpect.py18CODE
LOWtools/tests/winexpect.py25CODE
LOWtools/tests/winexpect.py28CODE
LOWtools/tests/test_http_server.py26CODE
LOWtools/tests/test_extensions.py10CODE
LOWtools/tests/test_extensions.py11CODE
LOWtools/tests/test_extensions.py12CODE
LOWtools/tests/test_extensions.py13CODE
LOWtools/tests/test_extensions.py14CODE
LOWtools/tests/test_extensions.py15CODE
LOWtools/tests/test_extensions.py17CODE
LOWtools/tests/test_osqueryd.py13CODE
LOWtools/tests/test_osqueryd.py14CODE
LOWtools/tests/test_osqueryd.py16CODE
LOWtools/tests/test_additional.py10CODE
LOWtools/tests/test_additional.py11CODE
LOWtools/tests/test_additional.py12CODE
LOWtools/tests/test_base.py104CODE
LOWtools/tests/test_osqueryi.py11CODE
LOWtools/tests/test_osqueryi.py12CODE
LOWtools/tests/test_osqueryi.py14CODE
LOWtools/tests/test_example_queries.py10CODE
LOWtools/tests/test_example_queries.py12CODE
LOWtools/tests/test_example_queries.py13CODE
LOWtools/tests/test_example_queries.py14CODE
LOWtools/codegen/genapi.py19CODE
LOWtools/codegen/genapi.py20CODE
LOWtools/codegen/genwebsitejson.py29CODE
LOWtools/codegen/genwebsitejson.py32CODE
LOWtools/deployment/getfiles.py12CODE
Excessive Try-Catch Wrapping21 hits · 28 pts
SeverityFileLineSnippetContext
LOWtools/cmake/downloader.py23 except Exception as e:CODE
MEDIUM…s/ci/scripts/cve/third_party_libraries_cves_scanner.py37 print("Error: " + message, file=sys.stderr)CODE
LOW…s/ci/scripts/cve/third_party_libraries_cves_scanner.py93 except Exception as e:CODE
MEDIUM…s/ci/scripts/cve/third_party_libraries_cves_scanner.py95 print(f"Error searching CVE for library {library_name}: {e}. Retrying")CODE
LOW…s/ci/scripts/cve/third_party_libraries_cves_scanner.py412 except Exception as e:CODE
MEDIUMtools/ci/scripts/cve/osquery/manifest_api.py48 print("Error: " + message, file=sys.stderr)CODE
LOWtools/tests/winexpect.py64 except Exception as e:CODE
LOWtools/tests/utils.py56 except Exception:CODE
LOWtools/tests/utils.py80 except Exception as e:CODE
LOWtools/tests/utils.py119 except Exception as e:CODE
MEDIUMtools/tests/utils.py222 print("Error: %s" % err.decode("utf-8"))CODE
LOWtools/tests/test_base.py255 except Exception as e:CODE
LOWtools/tests/test_base.py265 except Exception as e:CODE
LOWtools/tests/test_base.py455 except Exception as e:CODE
LOWtools/tests/test_base.py506 except Exception as e:CODE
LOWtools/tests/test_base.py680 except Exception as e:CODE
LOWtools/tests/test_base.py721 except Exception as e:CODE
MEDIUMtools/tests/test_base.py245def run(self):CODE
MEDIUMtools/tests/test_base.py535def __del__(self):CODE
MEDIUMtools/tests/test_base.py716def _execute(self, query):CODE
LOWtools/codegen/genapi.py265 except Exception as e:CODE
Hyper-Verbose Identifiers20 hits · 18 pts
SeverityFileLineSnippetContext
LOWtools/tests/test_release.py84 def test_linked_system_libraries(self):CODE
LOWtools/tests/test_extensions.py28 def test_daemon_without_extensions(self):CODE
LOWtools/tests/test_extensions.py239 def test_extensions_directory_autoload(self):CODE
LOWtools/tests/test_extensions.py262 def test_extensions_autoload_watchdog(self):CODE
LOWtools/tests/test_extensions.py306 def test_external_config_update(self):CODE
LOWtools/tests/test_osqueryd.py23 def test_daemon_without_watchdog(self):CODE
LOWtools/tests/test_osqueryd.py66 def test_daemon_with_watchdog(self):CODE
LOWtools/tests/test_osqueryd.py121 def daemon_sigint_test_helper(self, pidfile_path):CODE
LOWtools/tests/test_http_server_carver.py24 def test_carve_blocks_are_acknowledged_and_reassembled(self):CODE
LOWtools/tests/test_windows_service.py284 def test_install_run_stop_uninstall_windows_service(self):STRING
LOWtools/tests/test_windows_service.py325 def test_thrash_windows_service(self):STRING
LOWtools/tests/test_osqueryi.py47 def test_config_check_success(self):CODE
LOWtools/tests/test_osqueryi.py82 def test_config_check_failure_invalid_path(self):CODE
LOWtools/tests/test_osqueryi.py95 def test_config_check_failure_valid_path(self):CODE
LOWtools/tests/test_osqueryi.py108 def test_config_check_failure_missing_plugin(self):CODE
LOWtools/tests/test_osqueryi.py123 def test_config_check_example(self):CODE
LOWtools/tests/test_example_queries.py23 def test_cross_platform_queries(self):CODE
LOWtools/tests/test_example_queries.py26 def test_platform_specific_queries(self):CODE
LOWtools/formatting/git-clang-format.py260def compute_diff_and_extract_lines(commit, files):STRING
LOWtools/formatting/git-clang-format.py351def run_clang_format_and_save_to_tree(changed_lines, binary='clang-format',STRING
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtools/analysis/profile.py82CODE
LOWtools/analysis/profile.py114CODE
LOW…s/ci/scripts/cve/third_party_libraries_cves_scanner.py40CODE
LOWtools/ci/scripts/cve/osquery/manifest_api.py51CODE
LOWtools/tests/test_release.py84CODE
LOWtools/tests/test_http_server.py211CODE
LOWtools/tests/utils.py71CODE
LOWtools/tests/test_base.py356CODE
LOWtools/codegen/gentable.py487CODE
LOWtools/codegen/gentable.py247CODE
LOWtools/codegen/templite.py70CODE
LOWtools/codegen/amalgamate.py21CODE
LOWtools/formatting/git-clang-format.py57CODE
Self-Referential Comments5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMtools/tests/test_http_server.py24# Create a simple TLS/HTTP server.COMMENT
MEDIUMtools/tests/test_base.py403 # Create a temporary config.COMMENT
MEDIUMtools/codegen/gentable.py252 # Create a list of column options from the kwargs passed to the column.COMMENT
MEDIUMtools/formatting/git-clang-format.py7# This file is distributed under the University of Illinois Open SourceCOMMENT
MEDIUMtools/formatting/git-clang-format.py50# This file is created within the .git directory.STRING
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMosquery/tables/system/windows/drivers.cpp255 // Then, leverage the Windows APIs to get whatever remainsCOMMENT
MEDIUMosquery/core/watcher.cpp78 // % of (User + System) CPU time worker can utilizeCOMMENT
LOW.github/workflows/hosted_runners.yml967 # This allows us to do fewer builds (just use the buildsCOMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMlibraries/cmake/source/boost/mpl_static_cast_fix.hpp38// ── Part 1: fix the boost::numeric enum valid ranges ─────────────────────────COMMENT
MEDIUMlibraries/cmake/source/boost/mpl_static_cast_fix.hpp73// ── Part 2: fix BOOST_MPL_AUX_STATIC_CAST ────────────────────────────────────COMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/wiki/development/building.md61### Step 1: Install macOS prerequisitesCOMMENT
LOWdocs/wiki/development/building.md73### Step 2: Download and build source on macOSCOMMENT
LOWdocs/wiki/development/building.md137### Step 1: Install Windows prerequisitesCOMMENT
LOWdocs/wiki/development/building.md161### Step 2: Download and build source on WindowsCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/tests/test_http_server.py455 # Check if client accepts gzip encodingCOMMENT
LOWtools/tests/utils.py94 # Check if it is an internal pack definitionCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/ci/scripts/cve/osquery/github_api.py64CODE
LOWtools/ci/scripts/cve/osquery/github_api.py84CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/integration/tables/hash.cpp31 path, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.")CODE
LOWtests/integration/tables/hash.cpp31 path, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.")CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWosquery/tables/networking/windows/routes.cpp154 // TODO: implement routes flagsCOMMENT