Embedded web server, with TCP/IP network stack, MQTT and Websocket
This report presents the forensic synthetic code analysis of cesanta/mongoose, a C project with 13,011 GitHub stars. SynthScan v2.0 examined 1,711,755 lines of code across 2487 source files, recording 17229 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal 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 17229 distinct pattern matches across 8 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 | mongoose.h | 1 | // Copyright (c) 2004-2013 Sergey Lyubka | COMMENT |
| LOW | mongoose.h | 21 | #define MONGOOSE_H | COMMENT |
| LOW | mongoose.h | 41 | #define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX) | COMMENT |
| LOW | mongoose.h | 61 | #if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM) | COMMENT |
| LOW | mongoose.h | 101 | #include <stdlib.h> | COMMENT |
| LOW | mongoose.h | 121 | #include <stdio.h> | COMMENT |
| LOW | mongoose.h | 141 | #endif | COMMENT |
| LOW | mongoose.h | 161 | #ifndef MG_ENABLE_DIRLIST | COMMENT |
| LOW | mongoose.h | 181 | #error Select a driver in mongoose_config.h | COMMENT |
| LOW | mongoose.h | 201 | // hangs for 10 s, the IWDG fires and the device rolls back. | COMMENT |
| LOW | mongoose.h | 221 | } while (0) | COMMENT |
| LOW | mongoose.h | 241 | #endif | COMMENT |
| LOW | mongoose.h | 261 | COMMENT | |
| LOW | mongoose.h | 301 | #include <errno.h> | COMMENT |
| LOW | mongoose.h | 321 | #include <soc/soc.h> | COMMENT |
| LOW | mongoose.h | 381 | (void) esp_ota_mark_app_invalid_rollback_and_reboot(); \ | COMMENT |
| LOW | mongoose.h | 401 | #include <string.h> | COMMENT |
| LOW | mongoose.h | 421 | #include <stdarg.h> | COMMENT |
| LOW | mongoose.h | 461 | #elif defined(CPU_MIMXRT1176DVMAA_cm7) || defined(CPU_MIMXRT1176DVMAA_cm4) || \ | COMMENT |
| LOW | mongoose.h | 501 | #endif | COMMENT |
| LOW | mongoose.h | 521 | #define MG_SET_MAC_ADDRESS(mac) (void) (mac) | COMMENT |
| LOW | mongoose.h | 581 | RTWDOG_CS_CMD32EN_MASK; \ | COMMENT |
| LOW | mongoose.h | 641 | COMMENT | |
| LOW | mongoose.h | 661 | #include <pico/unique_id.h> | COMMENT |
| LOW | mongoose.h | 701 | BOOT_TYPE_NORMAL | 0x100, 1, 0, 0); \ | COMMENT |
| LOW | mongoose.h | 721 | #include <stdlib.h> | COMMENT |
| LOW | mongoose.h | 741 | #include <stdint.h> | COMMENT |
| LOW | mongoose.h | 781 | #if MG_ARCH == MG_ARCH_THREADX | COMMENT |
| LOW | mongoose.h | 801 | #endif | COMMENT |
| LOW | mongoose.h | 821 | #endif | COMMENT |
| LOW | mongoose.h | 841 | COMMENT | |
| LOW | mongoose.h | 861 | #include <errno.h> | COMMENT |
| LOW | mongoose.h | 881 | #include <poll.h> | COMMENT |
| LOW | mongoose.h | 901 | #ifndef MG_ENABLE_POSIX_FS | COMMENT |
| LOW | mongoose.h | 921 | #else | COMMENT |
| LOW | mongoose.h | 941 | #ifndef WIN32_LEAN_AND_MEAN | COMMENT |
| LOW | mongoose.h | 961 | #include <stdarg.h> | COMMENT |
| LOW | mongoose.h | 981 | typedef int int32_t; | COMMENT |
| LOW | mongoose.h | 1001 | #if defined(_MSC_VER) && _MSC_VER <= 1200 | COMMENT |
| LOW | mongoose.h | 1021 | #define strdup(x) _strdup(x) | COMMENT |
| LOW | mongoose.h | 1041 | #define MG_PATH_MAX FILENAME_MAX | COMMENT |
| LOW | mongoose.h | 1061 | WSAGetLastError() == WSAEWOULDBLOCK)) | COMMENT |
| LOW | mongoose.h | 1081 | COMMENT | |
| LOW | mongoose.h | 1101 | // #include <zephyr/posix/dirent.h> | COMMENT |
| LOW | mongoose.h | 1121 | #endif | COMMENT |
| LOW | mongoose.h | 1161 | #if defined(MG_ENABLE_FREERTOS_TCP) && MG_ENABLE_FREERTOS_TCP | COMMENT |
| LOW | mongoose.h | 1201 | #define sin_addr sin_address.ulIP_IPv4 | COMMENT |
| LOW | mongoose.h | 1241 | #if !LWIP_TIMEVAL_PRIVATE | COMMENT |
| LOW | mongoose.h | 1281 | #endif | COMMENT |
| LOW | mongoose.h | 1301 | #define MG_ENABLE_TCPIP 0 // Mongoose built-in network stack | COMMENT |
| LOW | mongoose.h | 1321 | #define MG_ENABLE_RL 0 // ARM MDK network stack | COMMENT |
| LOW | mongoose.h | 1341 | #define MG_ENABLE_LFS 0 | COMMENT |
| LOW | mongoose.h | 1361 | // mentioned in arch_win32.h | COMMENT |
| LOW | mongoose.h | 1381 | COMMENT | |
| LOW | mongoose.h | 1401 | COMMENT | |
| LOW | mongoose.h | 1421 | COMMENT | |
| LOW | mongoose.h | 1441 | do { \ | COMMENT |
| LOW | mongoose.h | 1461 | #endif | COMMENT |
| LOW | mongoose.h | 1481 | #ifndef MG_TCPIP_PREFIX_LEN | COMMENT |
| LOW | mongoose.h | 1501 | #endif | COMMENT |
| 17076 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | test/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/websocket-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/json-rpc-over-websocket/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/websocket-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …rt1060-evk-xpresso-baremetal-builtin/source/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …rdm-rw612-xpresso-freertos-lwip-wifi/source/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …nxp/frdm-rw612-xpresso-freertos-lwip/source/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …-rw612-xpresso-freertos-builtin-wifi/source/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/core/memory/o1heap/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/core/timers/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded-12m/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/core/embedded-filesystem/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/captive-dns-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/sntp-time-sync/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-sd-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/ssdp-search/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-sd-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …torials/wch/ch32v307-make-baremetal-builtin/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/mongoose/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/esp32/mongoose/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/rtsp-video-stream/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/socks5-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/tcp/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/modbus-dashboard/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/redirect-to-https/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-multiple-posts/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/huge-response/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/singleton-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-streaming-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/uart-bridge/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/uart-bridge/esp32/main/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …ials/http/http-server/arduino/teensy41-http/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …torials/http/http-server/arduino/w5500-http/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …torials/http/http-server/arduino/esp32-http/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/video-stream/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-reverse-proxy/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/link-checker/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …-client/esp8266/http-client-server/src/main/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-proxy-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-restful-server/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-single-post/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/wifi-router-dashboard/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-transfer/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/jwt-auth/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/device-dashboard/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/device-dashboard/esp32/main/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | …http/device-dashboard/microchip/same54-xpro/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-html-form/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/smtp/smtp-client/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-plain/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-push-ws/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-push-rest/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-rest/mongoose.h | 1761 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-preact/mongoose.h | 1761 | // Usage example: | COMMENT |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …12-xpresso-freertos-lwip-wifi/wifi/incl/port/osa/osa.h | 157 | * -# Create a reader writer lock | COMMENT |
| MEDIUM | …m-rw612-xpresso-freertos-lwip/wifi/incl/port/osa/osa.h | 157 | * -# Create a reader writer lock | COMMENT |
| MEDIUM | …-xpresso-freertos-lwip/lwip/codespell_changed_files.sh | 6 | # This file is subject to the terms and conditions of the GNU Lesser | COMMENT |
| MEDIUM | …dm-rw612-xpresso-freertos-lwip/lwip/codespell_check.sh | 5 | # This file is subject to the terms and conditions of the GNU Lesser | COMMENT |
| MEDIUM | …xpresso-freertos-builtin-wifi/wifi/incl/port/osa/osa.h | 157 | * -# Create a reader writer lock | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 237 | ├── ... # IDE-specific project scaffolding | CODE |
| MEDIUM | resources/I-CUBE-Mongoose/README.md | 172 | ## AI agentic development | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rw612-xpresso-freertos-lwip-wifi/lwip/src/core/netif.c | 281 | * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after | COMMENT |
| LOW | …frdm-rw612-xpresso-freertos-lwip/lwip/src/core/netif.c | 281 | * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …sso-freertos-lwip-wifi/lwip/src/include/lwip/sockets.h | 215 | #define SO_DONTROUTE 0x0010 /* Unimplemented: just use interface addresses */ | COMMENT |
| LOW | …-xpresso-freertos-lwip/lwip/src/include/lwip/sockets.h | 215 | #define SO_DONTROUTE 0x0010 /* Unimplemented: just use interface addresses */ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rtos-lwip-wifi/component/imu_adapter/fsl_adapter_imu.h | 89 | typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len); | CODE |
| LOW | …-freertos-lwip/component/imu_adapter/fsl_adapter_imu.h | 88 | typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len); | CODE |
| LOW | …s-builtin-wifi/component/imu_adapter/fsl_adapter_imu.h | 89 | typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-rw612-xpresso-freertos-lwip/lwip/src/apps/mdns/mdns.c | 614 | * comparison. So if we get passed the class and type comparison we need to check if the | COMMENT |