AI Slop Code Risk Monitor

tiann/KernelSU

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

A Kernel based root solution for Android

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for tiann/KernelSU, a Kotlin project with 19,901 GitHub stars. SynthScan examined 120,364 lines of code across 739 source files, recording 114 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.

1.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
19.9K
Stars
Kotlin
Language
120.4K
Lines of Code
739
Files
114
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 4.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 6.4/100 · LOW

Which changes need focused human review? 114 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 4HIGH 1MEDIUM 2LOW 107

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 114 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.

Over-Commented Block99 hits · 99 pts
SeverityFileLineSnippetContext
LOWuapi/ksu.h1#ifndef __KSU_UAPI_KSU_HCOMMENT
LOW.cargo/config.example.toml1# This file contains required configuration to correctly build ksud across platforms.COMMENT
LOW.cargo/config.example.toml21# BINDGEN_EXTRA_CLANG_ARGS_x86_64_linux_android=--sysroot=ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64/sysrooCOMMENT
LOWmanager/app/src/main/cpp/logging.h1#pragma onceCOMMENT
LOWmanager/app/src/main/cpp/logging.h21#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)COMMENT
LOWuserspace/ksud/src/boot_patch.rs421pub struct BootPatchArgs {COMMENT
LOWuserspace/ksud/src/boot_patch.rs441 pub ota: bool,COMMENT
LOWuserspace/ksud/src/boot_patch.rs461 #[cfg(not(target_os = "android"))]COMMENT
LOWuserspace/ksud/src/boot_patch.rs521 /// Do not load custom rcCOMMENT
LOWuserspace/ksud/src/boot_patch.rs961 /// Output path. If not specified, will use current directory.COMMENT
LOWuserspace/ksud/src/ksu_uapi.h1#include "uapi/ksu.h"COMMENT
LOWuserspace/ksud/src/assets.rs41struct Asset;COMMENT
LOWkernel/infra/seccomp_cache.c1#include <linux/version.h>COMMENT
LOWkernel/infra/file_wrapper.c1#include <linux/gfp.h>COMMENT
LOWkernel/infra/event_queue.c1#include <linux/ktime.h>COMMENT
LOWkernel/infra/su_mount_ns.c1#include <linux/dcache.h>COMMENT
LOWkernel/infra/event_queue.h1#ifndef KSU_EVENT_QUEUE_HCOMMENT
LOWkernel/infra/symbol_resolver.c1#include <linux/bsearch.h>COMMENT
LOWkernel/infra/symbol_resolver.c21static const char cfi_suffix[] = ".cfi_jt";COMMENT
LOWkernel/core/init.c1#include <linux/export.h>COMMENT
LOWkernel/core/init.c21#include "supercall/supercall.h"COMMENT
LOWkernel/include/klog.h1#ifndef __KSU_H_KLOGCOMMENT
LOWkernel/include/util.h1#ifndef __KSU_H_UTILCOMMENT
LOWkernel/include/util.h41 PT_REGS_PARM5(&__ksu_regs) = (unsigned long)(e); \COMMENT
LOWkernel/include/arch.h1#ifndef __KSU_H_ARCHCOMMENT
LOWkernel/include/arch.h21COMMENT
LOWkernel/include/arch.h41#define __PT_RC_REG axCOMMENT
LOWkernel/include/arch.h61#define __PT_FP_REG s0COMMENT
LOWkernel/include/arch.h81#define PT_REGS_PARM1(x) (__PT_REGS_CAST(x)->__PT_PARM1_REG)COMMENT
LOWkernel/runtime/boot_event.c1#include "feature/selinux_hide.h"COMMENT
LOWkernel/runtime/ksud_integration.c1#include "feature/selinux_hide.h"COMMENT
LOWkernel/runtime/ksud_integration.c21#include <linux/stat.h>COMMENT
LOWkernel/preinit/preinit.c1#include <linux/err.h>COMMENT
LOWkernel/preinit/runner/runner.c21#ifndef INIT_PATHCOMMENT
LOWkernel/preinit/runner/runner.c41#endifCOMMENT
LOWkernel/preinit/runner/nolibc/compiler.h1/* SPDX-License-Identifier: LGPL-2.1 OR MIT */COMMENT
LOWkernel/preinit/runner/nolibc/compiler.h21#define __nolibc_aligned(alignment) __attribute__((aligned(alignment)))COMMENT
LOWkernel/preinit/runner/nolibc/compiler.h41# define __no_stack_protector __attribute__((__optimize__("-fno-stack-protector")))COMMENT
LOWkernel/preinit/runner/nolibc/types.h21 * ones such as the O_RDONLY and related macros used by fcntl() and open()COMMENT
LOWkernel/preinit/runner/nolibc/types.h41#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)COMMENT
LOWkernel/preinit/runner/nolibc/types.h61#endifCOMMENT
LOWkernel/preinit/runner/nolibc/types.h81#ifndef PATH_MAXCOMMENT
LOWkernel/preinit/runner/nolibc/types.h101#define RB_HALT_SYSTEM LINUX_REBOOT_CMD_HALTCOMMENT
LOWkernel/preinit/runner/nolibc/stddef.h21#define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD)COMMENT
LOWkernel/preinit/runner/nolibc/stdio.h1/* SPDX-License-Identifier: LGPL-2.1 OR MIT */COMMENT
LOWkernel/preinit/runner/nolibc/nolibc.h101#include "sys/mman.h"COMMENT
LOWkernel/preinit/runner/nolibc/nolibc.h121#include "stdlib.h"COMMENT
LOWkernel/preinit/runner/nolibc/stdint.h41COMMENT
LOWkernel/preinit/runner/nolibc/stdint.h61COMMENT
LOWkernel/preinit/runner/nolibc/stdint.h81#define PTRDIFF_MAX INTPTR_MAXCOMMENT
LOWkernel/preinit/runner/nolibc/stdint.h101#define UINTMAX_MAX UINT64_MAXCOMMENT
LOWkernel/preinit/runner/nolibc/stdint.h121#ifndef LLONG_MINCOMMENT
LOWkernel/preinit/runner/nolibc/arch.h21#include "arch-arm.h"COMMENT
LOWkernel/preinit/runner/nolibc/arch.h41#error Unsupported ArchitectureCOMMENT
LOWkernel/manager/pkg_observer.c1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWkernel/manager/throne_tracker.c1#include "ksu.h"COMMENT
LOWkernel/manager/throne_tracker.c61};COMMENT
LOWkernel/manager/apk_sign.c1#include "util.h"COMMENT
LOWkernel/supercall/supercall.c1#include <linux/anon_inodes.h>COMMENT
LOWkernel/supercall/dispatch.c1#include <linux/capability.h>COMMENT
39 more matches not shown…
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL…a/me/weishu/kernelsu/ui/viewmodel/TemplateViewModel.kt85 me.weishu.kernelsu.data.model.TemplateInfo.fromJSON(JSONObject(getAppProfileTemplate(id)))CODE
CRITICAL…eishu/kernelsu/ui/screen/appprofile/AppProfileMiuix.kt357 val info = me.weishu.kernelsu.ui.viewmodel.getTemplateInfoById(selected)CODE
CRITICAL…java/me/weishu/kernelsu/ui/screen/home/HomeMaterial.kt604 latestVersionInfo = me.weishu.kernelsu.ui.util.module.LatestVersionInfo(),CODE
CRITICAL…weishu/kernelsu/ui/screen/template/TemplateMaterial.kt190 verticalArrangement = androidx.compose.foundation.layout.Arrangement.spacedBy(2.dp),CODE
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM.cargo/config.example.toml1# This file contains required configuration to correctly build ksud across platforms.COMMENT
MEDIUMscripts/setup_cargo_config.py110 "# This file is auto-generated by scripts/setup_cargo_config.py.",CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/ksubot.py94except:CODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWrepack_apk.py186def find_ksud_binaries_by_arch(ksud_build_type: str, arch_filters: List[str]) -> Dict[str, Path]:CODE
LOWrepack_apk.py219def collect_existing_ksud_arches(apk_path: Path) -> List[str]:CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWrepack_apk.py94CODE
LOWrepack_apk.py240CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWkernel/.vscode/generate_compdb.py3CODE
LOWkernel/.vscode/generate_compdb.py3CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWrepack_apk.py484 except Exception as exc: # noqa: BLE001CODE
LOWscripts/ksubot.py143 except Exception as e:STRING