AI Slop Code Risk Monitor

Kong/kong

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

🦍 The API and AI Gateway

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Kong/kong, a Lua project with 44,333 GitHub stars. SynthScan examined 356,266 lines of code across 1579 source files, recording 109 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.7 (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.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-19
Last Push
44.3K
Stars
Lua
Language
356.3K
Lines of Code
1.6K
Files
109
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 0.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.6/100 · LOW

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

Agent Over-Engineering Ratio 1.5/100 · LOW

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

PR Review Velocity Impact 3.3/100 · LOW

Which changes need focused human review? 109 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 10MEDIUM 39LOW 60

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 109 distinct pattern matches across 8 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.

Decorative Section Separators36 hits · 106 pts
SeverityFileLineSnippetContext
MEDIUMkong/templates/kong_yml.lua2# ------------------------------------------------------------------------------COMMENT
MEDIUMkong/templates/kong_yml.lua5# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh27#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh37#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh45#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh55#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh65#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh75#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh160#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh168#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh174#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh402#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh409#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh416#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/release-lib.sh423#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh95#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh119#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh140#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh197#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh210#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh255#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh314#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh344#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh367#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh376#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh390#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh458#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh489#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh497#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh530#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh550#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh569#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh577#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh610#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh628#-------------------------------------------------------------------------------COMMENT
MEDIUMscripts/release-lib.sh648#-------------------------------------------------------------------------------COMMENT
Cross-Language Confusion10 hits · 70 pts
SeverityFileLineSnippetContext
HIGH⚡scripts/explain_manifest/suites.py36 expect("/etc/kong/kong.logrotate", "logrotate config should have 0644 permissions").file_mode.equals("0644")CODE
HIGH⚡scripts/explain_manifest/suites.py42 .rpath.equals("/usr/local/openresty/luajit/lib:/usr/local/kong/lib:/usr/local/openresty/lualib")CODE
HIGH⚡scripts/explain_manifest/suites.py45 .has_dwarf_info.equals(True) \CODE
HIGH⚡scripts/explain_manifest/suites.py46 .has_ngx_http_request_t_DW.equals(True)CODE
HIGHscripts/explain_manifest/suites.py135 .arch.equals("AARCH64")CODE
HIGHscripts/explain_manifest/suites.py138 .arch.equals("AARCH64")CODE
HIGH⚡scripts/explain_manifest/suites.py157 .uid.equals(kong_uid) \CODE
HIGH⚡scripts/explain_manifest/suites.py158 .gid.equals(0)CODE
HIGH⚡scripts/explain_manifest/suites.py168 .uid.equals(kong_uid) \CODE
HIGH⚡scripts/explain_manifest/suites.py169 .gid.equals(kong_gid)CODE
Fake / Example Data44 hits · 44 pts
SeverityFileLineSnippetContext
LOWspec/03-plugins/29-acme/06-hybrid_mode_spec.lua21 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua3local dummy_id = "ZR02iVO6PFywzFLj6igWHd6fnK2R07C-97dkQKC7vJo"CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua31 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua43 key = dummy_id .. "#http-01",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua78 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua103 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua113 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua150 key = dummy_id .. "#http-01",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua169 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua195 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua207 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua217 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua252 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua264 key = dummy_id .. "#http-01",CODE
LOWspec/03-plugins/29-acme/03-access_spec.lua299 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua301 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua358 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua410 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua436 local dummy_id = "ZR02iVO6PFywzFLj6igWHd6fnK2R07C-97dkQKC7vJo"CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua447 assert(red:set(dummy_id .. "#http-01", "default"))CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua448 assert(red:set(namespace .. dummy_id .. "#http-01", namespace))CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua467 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua500 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua519 account_email = "test@test.com",CODE
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua546 path = "/.well-known/acme-challenge/" .. dummy_id,CODE
LOWspec/03-plugins/29-acme/07-shorthand_fields_spec.lua70 account_email = "test@test.com",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua10 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua20 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua31 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua43 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua54 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua65 name = "John Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua77 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua89 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua101 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua112 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua124 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua136 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua148 name = "Jane Doe",CODE
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua160 name = "Jane Doe",CODE
LOWkong/plugins/acme/client.lua307 local err = st:add(lock_key, "placeholder", LOCK_TIMEOUT)CODE
LOWkong/pdk/request.lua819 -- body.name -- "John Doe"CODE
LOWkong/pdk/service/request.lua642 -- name = "John Doe",CODE
LOWkong/pdk/service/request.lua648 -- -- { "name": "John Doe", "age": 42, "numbers":[1, 2, 3] }CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWspec/helpers/http_mock/template.lua1return [[COMMENT
LOWkong/templates/kong_yml.lua1return [[COMMENT
LOWkong/templates/kong_yml.lua41# tags:COMMENT
LOWkong/templates/kong_yml.lua61# - username: example-userCOMMENT
LOWkong/templates/kong_yml.lua81# consumer: example-userCOMMENT
LOW.devcontainer/devcontainer.json21 // Set *default* container specific settings.json values on container create.COMMENT
LOWscripts/build-wasm-test-filters.sh1#!/bin/bashCOMMENT
LOWscripts/upgrade-tests/test-upgrade-path.sh1#!/bin/bashCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/explain_manifest/expect.py207CODE
LOWscripts/explain_manifest/expect.py208CODE
LOWscripts/explain_manifest/main.py63CODE
LOWscripts/explain_manifest/main.py108CODE
LOWscripts/explain_manifest/explain.py113CODE
LOWscripts/explain_manifest/explain.py193CODE
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md8By providing functionality for proxying, routing, load balancing, health checking, authentication (and [more](#features)CODE
MEDIUMREADME.md8By providing functionality for proxying, routing, load balancing, health checking, authentication (and [more](#features)CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/buildifier.yml43 # This is to leverage this workaround:COMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/explain_manifest/expect.py14CODE
LOWscripts/explain_manifest/main.py5CODE