Fast Cross-Platform iOS Code Signing Tool
This report presents the forensic synthetic code analysis of zhlynn/zsign, a C++ project with 1,810 GitHub stars. SynthScan v2.0 examined 41,979 lines of code across 76 source files, recording 99 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 2.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 99 distinct pattern matches across 2 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 | src/certcheck.h | 1 | #pragma once | COMMENT |
| LOW | src/zsign.cpp | 1 | #include "common.h" | COMMENT |
| LOW | src/certcheck.cpp | 1 | #include "common.h" | COMMENT |
| LOW | src/certcheck.cpp | 21 | #include <openssl/cms.h> | COMMENT |
| LOW | src/signing.cpp | 681 | COMMENT | |
| LOW | src/common/common.h | 1 | #pragma once | COMMENT |
| LOW | src/common/common.h | 21 | COMMENT | |
| LOW | src/common/common.h | 41 | #include <memory> | COMMENT |
| LOW | src/common/mach-o.h | 21 | #define CPU_TYPE_I386 CPU_TYPE_X86 /* compatibility */ | COMMENT |
| LOW | src/common/mach-o.h | 61 | #define CPU_SUBTYPE_BIG_ENDIAN 1 | COMMENT |
| LOW | src/common/mach-o.h | 81 | #define CPU_SUBTYPE_PENTIUM_3_M CPU_SUBTYPE_INTEL(8, 1) | COMMENT |
| LOW | src/common/mach-o.h | 101 | #define CPU_SUBTYPE_X86_ALL 3 | COMMENT |
| LOW | src/common/mach-o.h | 121 | #define CPU_SUBTYPE_ARM_V7M 15 | COMMENT |
| LOW | src/common/mach-o.h | 141 | #define MH_OBJECT 0x1 /* relocatable object file */ | COMMENT |
| LOW | src/common/mach-o.h | 161 | #define MH_TWOLEVEL 0x00000080 | COMMENT |
| LOW | src/common/mach-o.h | 181 | COMMENT | |
| LOW | src/common/mach-o.h | 201 | #define LC_SUB_UMBRELLA 0x00000013 | COMMENT |
| LOW | src/common/mach-o.h | 221 | #define LC_FUNCTION_STARTS 0x00000026 | COMMENT |
| LOW | src/common/mach-o.h | 241 | in it and nothing relocated to it, that is | COMMENT |
| LOW | src/common/mach-o.h | 261 | #define S_MOD_INIT_FUNC_POINTERS 0x09 | COMMENT |
| LOW | src/common/json.cpp | 1 | #include "json.h" | COMMENT |
| LOW | src/common/archive.cpp | 1 | #include "archive.h" | COMMENT |
| LOW | src/third-party/minizip/unzip.c | 61 | COMMENT | |
| LOW | src/third-party/minizip/unzip.c | 81 | #ifdef NO_ERRNO_H | COMMENT |
| LOW | src/third-party/minizip/unzip.c | 101 | #ifndef UNZ_BUFSIZE | COMMENT |
| LOW | src/third-party/minizip/zip.c | 21 | COMMENT | |
| LOW | src/third-party/minizip/zip.c | 41 | COMMENT | |
| LOW | src/third-party/minizip/zip.c | 61 | # define ALLOC(size) (malloc(size)) | COMMENT |
| LOW | src/third-party/minizip/zip.c | 81 | #endif | COMMENT |
| LOW | src/third-party/minizip/zip.h | 41 | #define _zip12_H | COMMENT |
| LOW | src/third-party/minizip/zip.h | 61 | #define Z_BZIP2ED 12 | COMMENT |
| LOW | src/third-party/minizip/unzip.h | 41 | */ | COMMENT |
| LOW | src/third-party/minizip/unzip.h | 61 | COMMENT | |
| LOW | src/third-party/minizip/ioapi.h | 21 | #ifndef _ZLIBIOAPI64_H | COMMENT |
| LOW | src/third-party/minizip/ioapi.h | 41 | #ifndef _LARGEFILE64_SOURCE | COMMENT |
| LOW | src/third-party/minizip/ioapi.h | 61 | #define ftello64 ftello | COMMENT |
| LOW | src/third-party/minizip/ioapi.h | 81 | #include <stdint.h> | COMMENT |
| LOW | src/third-party/minizip/ioapi.h | 101 | COMMENT | |
| LOW | src/third-party/minizip/ioapi.h | 121 | #define ZLIB_FILEFUNC_SEEK_END (2) | COMMENT |
| LOW | src/third-party/minizip/iowin32.c | 21 | #define INVALID_HANDLE_VALUE (0xFFFFFFFF) | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 21 | COMMENT | |
| LOW | src/third-party/zlib/zutil.h | 41 | typedef unsigned short ush; | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 61 | #define ERR_RETURN(strm,err) \ | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 101 | # include <alloc.h> | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 121 | # define OS_CODE 4 | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 141 | # define OS_CODE 7 | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 181 | # define OS_CODE 3 /* assume Unix */ | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 201 | # define HAVE_MEMCPY | COMMENT |
| LOW | src/third-party/zlib/zutil.h | 221 | # include <stdio.h> | COMMENT |
| LOW | src/third-party/zlib/crc32.c | 81 | # else | COMMENT |
| LOW | src/third-party/zlib/crc32.c | 801 | crc0 = crc_braid_table[0][word0 & 0xff]; | COMMENT |
| LOW | src/third-party/zlib/zutil.c | 61 | #endif | COMMENT |
| LOW | src/third-party/zlib/zutil.c | 81 | #endif | COMMENT |
| LOW | src/third-party/zlib/zutil.c | 101 | # ifdef NO_snprintf | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 1 | /* gzguts.h -- zlib internal header definitions for gz* operations | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 21 | #include "zlib.h" | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 41 | #endif | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 61 | # endif | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 81 | # endif | COMMENT |
| LOW | src/third-party/zlib/gzguts.h | 101 | # endif | COMMENT |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/certcheck.cpp | 41 | // ─── helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 128 | // ─── issuer resolution ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 169 | // ─── file type detection ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 221 | // ─── cert extraction ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 290 | // ─── Leaf cert from CMS ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 322 | // ─── Mach-O cert extraction ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 352 | // ─── Read from zip (no extraction) ────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 416 | // ─── OCSP check ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 593 | // ─── display (simple text, matches zsign style) ────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 652 | // ─── main entry ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/certcheck.cpp | 746 | // ─── Post-sign binary check ───────────────────────────────────────── | COMMENT |