Repository Analysis

leebaird/discover

Custom Bash and Python scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Kali Linux and Ubuntu.

2.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of leebaird/discover, a Shell project with 3,906 GitHub stars. SynthScan v2.0 examined 49,928 lines of code across 170 source files, recording 100 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 2.6 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).

2.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.9K
Stars
Shell
Language
49.9K
Lines of Code
170
Files
100
Pattern Hits
2026-07-14
Scan Date
0.01
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 1HIGH 1MEDIUM 8LOW 90

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 100 distinct pattern matches across 12 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.

Deep Nesting30 hits · 30 pts
SeverityFileLineSnippetContext
LOWparsers/parse-burp.py63CODE
LOWparsers/parse-burp.py83CODE
LOWparsers/social.py156CODE
LOWparsers/social.py237CODE
LOWparsers/company.py212CODE
LOWparsers/sec_people.py256CODE
LOWparsers/sec_people.py98CODE
LOWparsers/sec_common.py60CODE
LOWparsers/parse-nexpose.py65CODE
LOWparsers/parse-nipper.py75CODE
LOWparsers/parse-nessus-feed.py85CODE
LOWparsers/parse-nmap.py76CODE
LOWnotes/build.py68CODE
LOWdev/lib/sensitive-scanner/engine.py102CODE
LOWdev/lib/sensitive-scanner/engine.py302CODE
LOWdev/lib/sensitive-scanner/filescan.py189CODE
LOWdev/lib/sensitive-scanner/filescan.py239CODE
LOWdev/lib/open-redirect-scanner/engine.py161CODE
LOWdev/lib/open-redirect-scanner/engine.py193CODE
LOWdev/lib/open-redirect-scanner/engine.py206CODE
LOWdev/lib/open-redirect-scanner/engine.py241CODE
LOWdev/lib/open-redirect-scanner/engine.py662CODE
LOWrecon/active-tech.py220CODE
LOWrecon/active-tech.py411CODE
LOWrecon/active-tech.py494CODE
LOWrecon/active-tech.py582CODE
LOWrecon/active-tech.py626CODE
LOWrecon/active-tech.py906CODE
LOWrecon/software-cve.py215CODE
LOWrecon/software-cve.py579CODE
Excessive Try-Catch Wrapping18 hits · 21 pts
SeverityFileLineSnippetContext
LOWparsers/parse-burp.py30 except Exception as ex:CODE
LOWparsers/social.py162 except Exception:CODE
MEDIUMparsers/parse-nessus-feed.py63 print("Error writing CSV file. Check for permissions and/or path.\n")CODE
MEDIUMparsers/parse-nessus-feed.py76 print("Error writing remainder of the column data to file. Check for permissions and/or path.")CODE
MEDIUMparsers/parse-nessus-feed.py93 print("Error reading/parsing XML file. Its likely that the XML file is mangled in some way.")CODE
LOWdev/lib/sensitive-scanner/engine.py398 except Exception as exc:CODE
LOWdev/lib/waf-detect/wafw00f_run.py27 except Exception:CODE
LOWdev/lib/open-redirect-scanner/engine.py234 except Exception as exc:CODE
LOWdev/lib/open-redirect-scanner/engine.py258 except Exception as exc:CODE
LOWdev/lib/open-redirect-scanner/engine.py395 except Exception:CODE
LOWdev/lib/open-redirect-scanner/engine.py424 except Exception:CODE
LOWdev/lib/open-redirect-scanner/engine.py452 except Exception:CODE
LOWdev/lib/open-redirect-scanner/engine.py585 except Exception as exc:CODE
LOWdev/lib/open-redirect-scanner/engine.py680 except Exception as exc:CODE
LOWdev/lib/open-redirect-scanner/engine.py697 except Exception as exc:CODE
LOWdev/lib/open-redirect-scanner/engine.py806 except Exception:CODE
LOWrecon/import-subdomains.sh172 except Exception as exc:CODE
LOWrecon/active-tech.py820 except Exception:CODE
Redundant / Tautological Comments12 hits · 18 pts
SeverityFileLineSnippetContext
LOWold/dns-reverse.sh21# Check if class is empty or invalidCOMMENT
LOWold/dns-reverse.sh37 # Check if the host command returns a valid PTR recordCOMMENT
LOWold/compare-sites.sh111 # Check if selected versions are validCOMMENT
LOWold/rebrand.sh39# Check if index.htm existsCOMMENT
LOWold/wtf.sh96 # Check if the interface is in monitorCOMMENT
LOWold/wtf.sh130 # Check if the process is still running before trying to kill itCOMMENT
LOWold/wtf.sh137 # Check if the scan file existsCOMMENT
LOWold/dns-transfer.sh53 # Check if the DNS zone transfer is successfulCOMMENT
LOWdev/lib/container-scanner/k8s.sh18 # Check if kubectl can connect to a clusterCOMMENT
LOWdev/lib/container-scanner/docker.sh32 # Check if there are any imagesCOMMENT
LOWdev/lib/container-scanner/docker.sh389 # Check if there are any containersCOMMENT
LOWdev/lib/container-scanner/docker.sh465 # Check if container is running in privileged modeCOMMENT
Hyper-Verbose Identifiers14 hits · 14 pts
SeverityFileLineSnippetContext
LOWparsers/parse-burp.py119def parse_vulnerability_classifications(html_content):CODE
LOWparsers/company.py153def extract_contact_from_html(html: str) -> tuple[list[str], str] | None:CODE
LOWdev/lib/open-redirect-scanner/engine.py315def location_points_to_canary(location: str, canary: str, base_url: str) -> bool:CODE
LOWrecon/import-subdomains.sh497def rows_from_subdomain_objects(rows):CODE
LOWrecon/active-tech.py61def normalize_tech_separators(value):CODE
LOWrecon/active-tech.py376def strip_redundant_technology_labels(technologies, webserver):CODE
LOWrecon/active-tech.py398def strip_noise_technology_labels(technologies):CODE
LOWrecon/active-tech.py411def strip_redundant_webserver_tokens(webserver, technologies):CODE
LOWrecon/active-tech.py778def _load_software_cve_module():CODE
LOWrecon/active-tech.py786def enrich_software_rows_for_report(software_version_rows, httpx_path):CODE
LOWrecon/active-tech.py862def is_software_version_label(label):CODE
LOWrecon/software-cve.py274def _parse_nvd_vulnerabilities(payload: dict[str, Any]) -> list[dict[str, Any]]:CODE
LOWrecon/software-cve.py516def enrich_software_version_rows(CODE
LOWrecon/import-names-titles-emails.sh242def format_names_report_lines(contacts):CODE
Unused Imports12 hits · 12 pts
SeverityFileLineSnippetContext
LOWparsers/social.py4CODE
LOWparsers/company.py4CODE
LOWparsers/sec_people.py4CODE
LOWparsers/sec_common.py4CODE
LOWnotes/build.py4CODE
LOWdev/lib/sensitive-scanner/engine.py4CODE
LOWdev/lib/sensitive-scanner/filescan.py4CODE
LOWdev/lib/waf-detect/wafw00f_run.py4CODE
LOWdev/lib/web-api-scanner/msf_parse.py4CODE
LOWdev/lib/web-api-scanner/msf_parse.py9CODE
LOWdev/lib/open-redirect-scanner/engine.py6CODE
LOWrecon/software-cve.py16CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALreport/assets/javascript/jquery.min.js4return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{marginLeftCODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdiscover.sh1#!/usr/bin/env bashCOMMENT
LOWdiscover.sh21# Numerous people on freenode IRC - #bash and #sed (e36freak)COMMENT
LOWparsers/parse-nessus-feed.py1#!/usr/bin/env python3COMMENT
LOWdev/cloud-scanner.sh1#!/usr/bin/env bashCOMMENT
LOWdev/web-api-scanner.sh1#!/usr/bin/env bashCOMMENT
LOWdev/container-scanner.sh1#!/usr/bin/env bashCOMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMold/deploy/main.tf16# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMold/deploy/main.tf45# ---------------------------------------------------------------------------------------------------------------------COMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdev/api-scanner.sh535# Scan orchestrationCOMMENT
MEDIUMdev/lib/web-api-scanner/probe.sh1# Technology fingerprinting and scan orchestrationCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdev/lib/sensitive-scanner/run-tests.sh31grep -q 'your-api-key' "$OUT/hits.jsonl" && fail "denylist allows placeholder" || pass "denylist filters placeholder"CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdev/lib/container-scanner/k8s.sh500 # Create comprehensive Kubernetes security summaryCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdev/lib/sensitive-scanner/run-tests.sh32grep -q 'user@example.com' "$OUT/hits.jsonl" && fail "denylist allows example email" || pass "denylist filters example eCODE