An opensource OpenWrt variant for mainland China users.
This report presents the forensic synthetic code analysis of immortalwrt/immortalwrt, a C project with 11,216 GitHub stars. SynthScan v2.0 examined 387,366 lines of code across 1174 source files, recording 1668 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 3.8 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).
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.
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.
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.
The scanner identified 1668 distinct pattern matches across 10 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/mklibs/include/elf.h | 121 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 141 | #define ELFOSABI_NETBSD 2 /* NetBSD. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 161 | #define ET_EXEC 2 /* Executable file */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 181 | #define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 201 | #define EM_H8_300 46 /* Hitachi H8/300 */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 221 | #define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 241 | #define EM_V850 87 /* NEC v850 */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 301 | (Solaris). */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 321 | #define SHT_REL 9 /* Relocation entries, no addends */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 341 | #define SHT_HIOS 0x6fffffff /* End OS-specific type */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 421 | #define SYMINFO_NUM 2 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 441 | #define STB_LOOS 10 /* Start of OS-specific */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 561 | #define PT_SHLIB 5 /* Reserved */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 581 | #define PF_R (1 << 2) /* Segment is readable */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 641 | #define DT_RELASZ 8 /* Total size of Rela relocs */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 661 | #define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 681 | #define DT_CHECKSUM 0x6ffffdf8 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 701 | #define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 721 | #define DT_VERDEF 0x6ffffffc /* Address of version definition | COMMENT |
| LOW | tools/mklibs/include/elf.h | 741 | #define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 921 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1041 | #define ELF32_M_SYM(info) ((info) >> 8) | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1061 | #define R_68K_PC32 4 /* PC relative 32 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1081 | #define R_68K_NUM 23 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1101 | block offset */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1121 | #define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1141 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1161 | #define R_SPARC_16 2 /* Direct 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1181 | #define R_SPARC_RELATIVE 22 /* Adjust by program base */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1201 | #define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1221 | #define R_SPARC_TLS_LDM_HI22 60 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1261 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1281 | /* The following are non-official names and should not be used. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1301 | #define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1321 | #define SHT_MIPS_OPTSYM 0x70000017 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1341 | /* Legal values for sh_flags field of Elf32_Shdr. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1401 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1421 | #define OEX_PRECISEFP OEX_FPDBUG | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1461 | #define R_MIPS_HI16 5 /* High 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1481 | #define R_MIPS_DELETE 27 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1501 | /* Special program header types. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1521 | #define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1541 | #define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1561 | /* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1621 | #define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1661 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1681 | #define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1701 | #define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1721 | #define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1741 | #define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1761 | #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6) | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1801 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1821 | #define R_ALPHA_SREL64 11 /* PC relative 64 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1861 | #define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1881 | #define R_PPC_GOT16_LO 15 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1901 | #define R_PPC_SECTOFF_HI 35 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1921 | #define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1941 | #define R_PPC_EMB_NADDR16_LO 103 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1961 | #define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1981 | #define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */ | COMMENT |
| 1559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/slugimage.pl | 202 | # Create an empty jffs2 block. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 620 | # Define the skip region for the initial Sercomm header. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 629 | # Define the skip region for the inline Sercomm header. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 1130 | # Create an empty partition of the requested size. | COMMENT |
| MEDIUM | scripts/mkits-qsdk-ipq-image.sh | 31 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/symlink-tree.sh | 2 | # Create a new openwrt tree with symlinks pointing at the current tree | COMMENT |
| MEDIUM | scripts/dl_cleanup.py | 283 | # Create a directory listing and parse the file names. | COMMENT |
| MEDIUM | scripts/dl_cleanup.py | 299 | # Create a map of programs | COMMENT |
| MEDIUM | scripts/mkits-zyxel-fit.sh | 19 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/mkits-zyxel-fit-filogic.sh | 19 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 592 | #Create a search pattern for all these functions to speed up a loop below | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 613 | #Create a search pattern for all these strings to speed up a loop below | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 648 | #Create a search pattern for all these strings to speed up a loop below | COMMENT |
| MEDIUM | scripts/mkits.sh | 199 | # Create a default, fully populated DTS file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | target/linux/gemini/base-files/lib/upgrade/platform.sh | 77 | # Check if we have the new partition scheme, else do it the old | COMMENT |
| LOW | scripts/brcmImage.pl | 78 | local $/; # Set input to "slurp" mode. | CODE |
| LOW | scripts/checkpatch.pl | 2613 | # Check if the commit log has what seems like a diff which can confuse patch | COMMENT |
| LOW | scripts/checkpatch.pl | 2659 | # Check if MAINTAINERS is being updated. If so, there's probably no need to | COMMENT |
| LOW | scripts/checkpatch.pl | 2764 | # Check if the commit log is in a possible stack dump | COMMENT |
| LOW | scripts/checkpatch.pl | 2888 | # Check if it's the start of a commit log | COMMENT |
| LOW | scripts/checkpatch.pl | 2898 | # Check if there is UTF-8 in a commit log when a mail header has explicitly | COMMENT |
| LOW | scripts/checkpatch.pl | 3761 | # Check if either of these lines are modified, else | COMMENT |
| LOW | package/base-files/files/lib/upgrade/nand.sh | 478 | # Check if passed file is a valid one for NAND sysupgrade. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …get/linux/pistachio/base-files/lib/upgrade/platform.sh | 19 | # fact we don't even want to reboot as part of seamless | COMMENT |
| LOW | …get/linux/pistachio/base-files/lib/upgrade/platform.sh | 21 | # the next reboot to boot from that partition. Could just call | COMMENT |
| LOW | target/linux/bcm4908/base-files/lib/upgrade/platform.sh | 84 | # JFFS2) so just use bcm4908img instead of bash hacks. | COMMENT |
| LOW | target/linux/econet/image/tclinux-trx.sh | 141 | # creating their TRX header, so we just use that. | COMMENT |
| LOW | scripts/xxdi.pl | 46 | # to '_', or, if this is stdin, just use "stdin" as the name. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/belkin-header.py | 24 | CODE | |
| LOW | scripts/belkin-header.py | 26 | CODE | |
| LOW | scripts/belkin-header.py | 27 | CODE | |
| LOW | scripts/dl_cleanup.py | 10 | CODE | |
| LOW | scripts/cameo-imghdr.py | 10 | CODE | |
| LOW | scripts/cameo-imghdr.py | 11 | CODE | |
| LOW | scripts/flashing/jungo-image.py | 30 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/dl_cleanup.py | 222 | CODE | |
| LOW | scripts/dl_github_archive.py | 133 | CODE | |
| LOW | scripts/dl_github_archive.py | 253 | CODE | |
| LOW | scripts/make-sbom.py | 37 | CODE | |
| LOW | scripts/make-sbom.py | 90 | CODE | |
| LOW | scripts/flashing/jungo-image.py | 94 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/dl_github_archive.py | 279 | except Exception: | CODE |
| LOW | scripts/dl_github_archive.py | 366 | except Exception as e: | CODE |
| LOW | scripts/dl_github_archive.py | 428 | except Exception as ex: | CODE |
| MEDIUM | scripts/flashing/jungo-image.py | 73 | print("Error: No linux support for A0 stepping!") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/size_compare.sh | 17 | ### Usage: | COMMENT |
| LOW | package/base-files/files/lib/upgrade/tar.sh | 3 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | package/base-files/files/lib/upgrade/nand.sh | 316 | # WARNING: This fails if tar contains more than one 'sysupgrade-*' directory. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/dl_github_archive.py | 370 | def _init_commit_ts_remote_get(self, url, attrpath): | CODE |