Repository Analysis

matthart1983/netwatch

Real-time network diagnostics in your terminal. One command, zero config, instant visibility.

8.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of matthart1983/netwatch, a Rust project with 2,192 GitHub stars. SynthScan v2.0 examined 47,882 lines of code across 114 source files, recording 198 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 8.6 places this repository in the Low AI signal 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).

8.6
Adjusted Score
8.6
Raw Score
100%
Time Factor
2026-07-05
Last Push
2.2K
Stars
Rust
Language
47.9K
Lines of Code
114
Files
198
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 102LOW 96

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 198 distinct pattern matches across 6 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.

Decorative Section Separators97 hits · 302 pts
SeverityFileLineSnippetContext
MEDIUMdocs/ebpf-deep-dive.html730 <!-- 15 ─ #38 timeline (MARQUEE INTERACTIVE) ───────────────────────────── -->CODE
MEDIUMdocs/ebpf-deep-dive.html1294/* ── #38 timeline scrubber (slide 15) ────────────────────────────────────── */COMMENT
MEDIUMscripts/verify-tls12-decrypt.sh24# ── Resolve the capture interface ───────────────────────────────────────────COMMENT
MEDIUMscripts/verify-tls12-decrypt.sh38# ── Preflight: python must be OpenSSL-backed ────────────────────────────────COMMENT
MEDIUMscripts/verify-tls12-decrypt.sh48# ── Build the harness once ──────────────────────────────────────────────────COMMENT
MEDIUMscripts/verify-tls12-decrypt.sh58# ── Run one scenario; classify the harness output ───────────────────────────COMMENT
MEDIUMsrc/graph.rs179// ── braille pixel-dot line plot ─────────────────────────────────────────────COMMENT
MEDIUMsrc/graph.rs251// ── fade + grid helpers ─────────────────────────────────────────────────────COMMENT
MEDIUMsrc/config.rs118// ── Defaults ───────────────────────────────────────────────COMMENT
MEDIUMsrc/config.rs160// ── Persistence ────────────────────────────────────────────COMMENT
MEDIUMsrc/config.rs220// ── Helpers to map string ↔ app types ──────────────────────COMMENT
MEDIUMsrc/config.rs250// ── Tests ──────────────────────────────────────────────────COMMENT
MEDIUMsrc/theme.rs8 // ── Brand / chrome ──────────────────────────────────COMMENT
MEDIUMsrc/theme.rs15 // ── Text ────────────────────────────────────────────COMMENT
MEDIUMsrc/theme.rs21 // ── Status / semantic ───────────────────────────────COMMENT
MEDIUMsrc/theme.rs27 // ── Data ────────────────────────────────────────────COMMENT
MEDIUMsrc/theme.rs32 // ── Selection ───────────────────────────────────────COMMENT
MEDIUMsrc/theme.rs45// ── Built-in themes ────────────────────────────────────────COMMENT
MEDIUMsrc/app.rs1908// ── Key event handlers ─────────────────────────────────────────────────────COMMENT
MEDIUMsrc/app.rs3468 // ── RTT history cap tests ───────────────────────────────────────────COMMENT
MEDIUMsrc/ui/timeline.rs32// ── Event model ─────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/timeline.rs247// ── Filter chip row ─────────────────────────────────────────COMMENT
MEDIUMsrc/ui/timeline.rs316// ── Activity strip ──────────────────────────────────────────COMMENT
MEDIUMsrc/ui/timeline.rs467// ── Event log ───────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/timeline.rs590// ── helpers ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/interfaces.rs660// ── helpers ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/insights.rs33// ── Card model ──────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/insights.rs246// ── Render: summary line ────────────────────────────────────COMMENT
MEDIUMsrc/ui/insights.rs322// ── Render: card stack ──────────────────────────────────────COMMENT
MEDIUMsrc/ui/insights.rs463// ── Empty state ─────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/insights.rs520// ── Disclaimer + footer ─────────────────────────────────────COMMENT
MEDIUMsrc/ui/stats.rs98// ── Range chips row ─────────────────────────────────────────COMMENT
MEDIUMsrc/ui/stats.rs165// ── KPI tiles row ───────────────────────────────────────────COMMENT
MEDIUMsrc/ui/stats.rs320// ── Breakdowns row ──────────────────────────────────────────COMMENT
MEDIUMsrc/ui/stats.rs681// ── Throughput chart ────────────────────────────────────────COMMENT
MEDIUMsrc/ui/topology.rs30// ── Topology graph ──────────────────────────────────────────COMMENT
MEDIUMsrc/ui/topology.rs549// ── Hop detail table ────────────────────────────────────────COMMENT
MEDIUMsrc/ui/topology.rs747// ── helpers ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/processes.rs78// ── Sort chip row (reflects current sort state) ─────────────COMMENT
MEDIUMsrc/ui/processes.rs156// ── Table ───────────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/processes.rs321// ── Drill-in panel ──────────────────────────────────────────COMMENT
MEDIUMsrc/ui/processes.rs624// ── helpers ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/dashboard.rs37// ── KPI strip ───────────────────────────────────────────────COMMENT
MEDIUMsrc/ui/dashboard.rs221// ── Mid section: Active Interface + Throughput ──────────────COMMENT
MEDIUMsrc/ui/dashboard.rs565// ── Bottom section: Top Connections + Health ────────────────COMMENT
MEDIUMsrc/ui/dashboard.rs1057// ── helpers ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs4// ── Configuration defaults ─────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs25// ── Alert types ────────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs63// ── Events fed from other collectors ───────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs100// ── Anomaly detection state ────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs125// ── DNS analytics state ────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs177// ── Bandwidth alert state ──────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs186// ── Main collector ─────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs240 // ── Public API ─────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs263 // ── Memory-stats accessors (drive the `M` debug overlay) ──────────COMMENT
MEDIUMsrc/collectors/network_intel.rs315 // ── Event handlers ─────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs485 // ── Internal detection logic ───────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs724// ── Helpers ────────────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/network_intel.rs916 // ── Memory-cap stress tests ─────────────────────────────────────────COMMENT
MEDIUMsrc/collectors/health.rs543 // ── parse_loss tests ──────────────────────────────────────────────COMMENT
37 more matches not shown…
Over-Commented Block88 hits · 86 pts
SeverityFileLineSnippetContext
LOWCargo.toml61maxminddb = "0.27"COMMENT
LOWCargo.toml81# the BPF object is missing or CAP_BPF/CAP_PERFMON aren't granted.COMMENT
LOWexamples/ebpf_v6_smoke.rs1//! Live smoke for eBPF Phase 2 IPv6 attribution (`tcp_v6_connect`).COMMENT
LOWexamples/sandbox_smoke.rs1//! Smoke test for `netwatch::sandbox`.COMMENT
LOWexamples/ping_under_sandbox.rs1//! Verify native ICMP ping survives the sandbox.COMMENT
LOWexamples/tls12_decrypt_live.rs1//! Live end-to-end verification of TLS 1.2 Application-Data decryption.COMMENT
LOWexamples/ebpf_udp_v6_smoke.rs1//! Live smoke for eBPF Phase 2 **connected-UDP** IPv6 attributionCOMMENT
LOWexamples/tls_decrypt_live.rs1//! Live end-to-end verification of TLS 1.3 Application-Data decryption.COMMENT
LOWexamples/traceroute_under_sandbox.rs1//! Verify native UDP+TTL traceroute survives the sandbox.COMMENT
LOWexamples/pktap_probe.rs1// Manual validation tool for the macOS PKTAP attribution path.COMMENT
LOWscripts/verify-tls12-decrypt.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/graph.rs1//! Pluggable graph rendering for every chart in the app.COMMENT
LOWsrc/config.rs61 /// the app — hero RX/TX panels, in-row sparklines, RTT history,COMMENT
LOWsrc/config.rs81 /// secrets exported by a cooperating client (Chrome, Firefox, Node,COMMENT
LOWsrc/theme.rs301 // Apple Terminal.app's Ocean profile background — the wholeCOMMENT
LOWsrc/logging.rs1//! File-only structured logging.COMMENT
LOWsrc/logging.rs21COMMENT
LOWsrc/metrics.rs1//! Prometheus `/metrics` + `/healthz` exporter (netwatch cloud Workstream C).COMMENT
LOWsrc/state.rs21COMMENT
LOWsrc/state.rs41 /// Top Connections sparkline. Updated each connection-collector tick.COMMENT
LOWsrc/clipboard.rs1//! Cross-platform clipboard write via platform tools — `pbcopy` onCOMMENT
LOWsrc/app.rs421 /// the connection collector overlays onto lsof/ss-derived rows. NoneCOMMENT
LOWsrc/app.rs461/// State of the PKTAP attribution path for status display. macOS-only;COMMENT
LOWsrc/app.rs541 // per-connection rates. If this fails (no sudo, no interface), theCOMMENT
LOWsrc/app.rs1281 let gateway = app.config_collector.config.gateway.clone();COMMENT
LOWsrc/app.rs1721 let content_bottom = area.height.saturating_sub(3); // above footerCOMMENT
LOWsrc/collectors/health.rs101 busy.store(false, Ordering::SeqCst);COMMENT
LOWsrc/collectors/health.rs201/// [`run_ping`] so the Health widget consumes both the same way.COMMENT
LOWsrc/collectors/connections.rs41 pub handshake_rtt_us: Option<f64>,COMMENT
LOWsrc/collectors/connections.rs421COMMENT
LOWsrc/collectors/connections.rs961}COMMENT
LOWsrc/collectors/quic.rs1//! QUIC Initial packet decryption per RFC 9001 §5.2 (and RFC 9369 §3.3.1COMMENT
LOWsrc/collectors/egress.rs1//! Observe-mode egress profiling (Horizon 3, phase 0).COMMENT
LOWsrc/collectors/egress.rs41/// change — the managed ingest keys off this.COMMENT
LOWsrc/collectors/egress.rs781 #[serde(default)]COMMENT
LOWsrc/collectors/traceroute.rs81 }COMMENT
LOWsrc/collectors/insights.rs241 pub model: String,COMMENT
LOWsrc/collectors/traffic.rs181 use super::*;COMMENT
LOWsrc/collectors/packets/mod.rs261 pub total_bytes_b_to_a: u64,COMMENT
LOWsrc/collectors/packets/mod.rs281 /// ClientHello is reassembled, and for non-QUIC flows.COMMENT
LOWsrc/collectors/packets/mod.rs301 /// Count of TCP segments whose seq+len fell entirely behind theCOMMENT
LOWsrc/collectors/packets/mod.rs321 /// the wire. Used by both the TLS 1.3 and TLS 1.2 decrypt paths.COMMENT
LOWsrc/collectors/packets/mod.rs341/// already-received bytes). Wireshark's heuristic is similar; 64 KB is aCOMMENT
LOWsrc/collectors/packets/mod.rs781 {COMMENT
LOWsrc/collectors/packets/mod.rs801 /// pre-handshake records, missing keys, etc.COMMENT
LOWsrc/collectors/packets/mod.rs921 tracing::debug!(target: "netwatch::dpi::tls_decrypt", stream_index, client_to_server, "TLS KCOMMENT
LOWsrc/collectors/packets/filter.rs21 AppProto(String),COMMENT
LOWsrc/platform/macos.rs121/// Map BSD device name (e.g. `en0`, `en7`) to whether it's a Wi-Fi adapter.COMMENT
LOWsrc/platform/pktap.rs1// macOS PKTAP-based per-packet process attribution.COMMENT
LOWsrc/platform/pktap.rs381// offset size fieldCOMMENT
LOWsrc/dpi/stun.rs1//! STUN — RFC 5389 (used by WebRTC, VoIP NAT traversal).COMMENT
LOWsrc/dpi/ja4_db.rs1//! JA4 → client-name lookup database.COMMENT
LOWsrc/dpi/ja4_db.rs21//!COMMENT
LOWsrc/dpi/http3.rs1//! HTTP/3 body extraction + decompression for decrypted QUIC 1-RTTCOMMENT
LOWsrc/dpi/http3.rs341/// byte streams — request (c→s) and response (s→c) — each with its own offsetCOMMENT
LOWsrc/dpi/quic.rs1//! QUIC classifier — detects QUIC v1 Initial packets and attempts SNICOMMENT
LOWsrc/dpi/quic.rs21//! as QUIC v1 Initial but anything downstream fails (key derivation,COMMENT
LOWsrc/dpi/dns.rs1//! DNS classifier — extracts the first question's qname + qtype.COMMENT
LOWsrc/dpi/mod.rs1//! Deep packet inspection — application-layer protocol classification.COMMENT
LOWsrc/dpi/mod.rs41 /// real destination is hidden from the network. We can't distinguishCOMMENT
28 more matches not shown…
AI Slop Vocabulary5 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMscripts/verify-tls12-decrypt.sh7# harness against live traffic, across every AEAD suite we support, plus aCOMMENT
MEDIUMscripts/verify-tls12-decrypt.sh48# ── Build the harness once ──────────────────────────────────────────────────COMMENT
MEDIUMscripts/verify-tls12-decrypt.sh58# ── Run one scenario; classify the harness output ───────────────────────────COMMENT
MEDIUMsrc/collectors/incident.rs117 /// robust to `alert_history` being a bounded ring buffer: once it hitsCOMMENT
MEDIUMsrc/collectors/quic.rs292 // be robust to multi-frame layouts in the same packet.COMMENT
Excessive Try-Catch Wrapping6 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/tls12_decrypt_live.rs93 except Exception:CODE
LOWexamples/tls12_decrypt_live.rs98except Exception: passCODE
LOWexamples/tls_decrypt_live.rs83 except Exception:CODE
LOWexamples/tls_decrypt_live.rs88except Exception: passCODE
LOWscripts/demo/gen_tls12.py34 except Exception as e:CODE
LOWscripts/demo/gen_tls12.py40except Exception:CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/verify-tls12-decrypt.sh10# Usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/demo/gen_tls12.py9CODE