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 12,930 GitHub stars. SynthScan v2.0 examined 1,666,699 lines of code across 2475 source files, recording 16028 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 6.3 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 16028 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 | #include "mongoose_config.h" // keep this include | COMMENT |
| LOW | mongoose.h | 101 | #include <string.h> | COMMENT |
| LOW | mongoose.h | 121 | #include <stdlib.h> | COMMENT |
| LOW | mongoose.h | 141 | #include <stdarg.h> | COMMENT |
| LOW | mongoose.h | 161 | #define MG_ENABLE_DIRLIST 0 | COMMENT |
| LOW | mongoose.h | 181 | #endif | COMMENT |
| LOW | mongoose.h | 201 | // STM32H7 names the peripheral IWDG1; all others use IWDG. | COMMENT |
| LOW | mongoose.h | 221 | #endif | COMMENT |
| LOW | mongoose.h | 241 | COMMENT | |
| LOW | mongoose.h | 261 | // use HAL-defined execute-in-ram section | COMMENT |
| LOW | mongoose.h | 301 | #include <fcntl.h> | COMMENT |
| LOW | mongoose.h | 321 | #define MG_ENABLE_POSIX_FS 1 | COMMENT |
| LOW | mongoose.h | 341 | #include <stddef.h> | COMMENT |
| LOW | mongoose.h | 361 | #include <stdarg.h> | COMMENT |
| LOW | mongoose.h | 381 | #if PICO_RP2040 | COMMENT |
| LOW | mongoose.h | 421 | #include <rtthread.h> | COMMENT |
| LOW | mongoose.h | 441 | COMMENT | |
| LOW | mongoose.h | 461 | #elif MG_ARCH == MG_ARCH_CMSIS_RTOS2 | COMMENT |
| LOW | mongoose.h | 481 | (!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP) | COMMENT |
| LOW | mongoose.h | 501 | COMMENT | |
| LOW | mongoose.h | 521 | // 1. Add nxd_bsd.h and nxd_bsd.c to the repo: | COMMENT |
| LOW | mongoose.h | 541 | #include <stdio.h> | COMMENT |
| LOW | mongoose.h | 561 | #if !defined(MG_ENABLE_EPOLL) && defined(__linux__) | COMMENT |
| LOW | mongoose.h | 581 | #include <stdbool.h> | COMMENT |
| LOW | mongoose.h | 601 | #include <unistd.h> | COMMENT |
| LOW | mongoose.h | 621 | COMMENT | |
| LOW | mongoose.h | 641 | #if defined(_MSC_VER) && _MSC_VER < 1700 | COMMENT |
| LOW | mongoose.h | 661 | #endif | COMMENT |
| LOW | mongoose.h | 701 | COMMENT | |
| LOW | mongoose.h | 721 | #define IP_ADD_MEMBERSHIP 12 | COMMENT |
| LOW | mongoose.h | 741 | #pragma comment(lib, "ws2_32.lib") | COMMENT |
| LOW | mongoose.h | 781 | #define rmdir(a) _rmdir(a) | COMMENT |
| LOW | mongoose.h | 801 | #define MG_IO_SIZE 16384 | COMMENT |
| LOW | mongoose.h | 821 | #include <stdint.h> | COMMENT |
| LOW | mongoose.h | 881 | COMMENT | |
| LOW | mongoose.h | 901 | COMMENT | |
| LOW | mongoose.h | 961 | #if LWIP_SOCKET != 1 | COMMENT |
| LOW | mongoose.h | 981 | #define MG_SOCK_RESET(errcode) \ | COMMENT |
| LOW | mongoose.h | 1001 | #ifndef MG_ENABLE_CUSTOM_LOG | COMMENT |
| LOW | mongoose.h | 1021 | #ifndef MG_ENABLE_LWIP | COMMENT |
| LOW | mongoose.h | 1041 | #ifndef MG_ENABLE_EPOLL | COMMENT |
| LOW | mongoose.h | 1061 | #ifndef MG_IPV6_V6ONLY | COMMENT |
| LOW | mongoose.h | 1081 | #endif | COMMENT |
| LOW | mongoose.h | 1101 | #endif | COMMENT |
| LOW | mongoose.h | 1121 | #endif | COMMENT |
| LOW | mongoose.h | 1161 | #define MG_ENABLE_PROFILE 0 | COMMENT |
| LOW | mongoose.h | 1181 | COMMENT | |
| LOW | mongoose.h | 1201 | #define MG_SET_MAC_ADDRESS(mac) | COMMENT |
| LOW | mongoose.h | 1221 | COMMENT | |
| LOW | mongoose.h | 1321 | // -1 if str1 < str2, 1 if str1 > str2. Length is used as a tiebreaker | COMMENT |
| LOW | mongoose.h | 1341 | // tutorials/websocket/websocket-server | COMMENT |
| LOW | mongoose.h | 1361 | // struct mg_str entry, key, val; | COMMENT |
| LOW | mongoose.h | 1381 | // Lock-free, single-producer / single-consumer (SPSC) message queue. | COMMENT |
| LOW | mongoose.h | 1441 | // Returns the total number of characters printed. Supported specifiers: | COMMENT |
| LOW | mongoose.h | 1461 | // - mg_print_base64 - prints a buffer as a base64-encoded string | COMMENT |
| LOW | mongoose.h | 1481 | // char buf[100]; | COMMENT |
| LOW | mongoose.h | 1501 | // mg_snprintf(buf, sizeof(buf), "{%m:%d}", MG_ESC("status"), 1); | COMMENT |
| 15878 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | test/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/websocket-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/json-rpc-over-websocket/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/websocket/websocket-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …rt1060-evk-xpresso-baremetal-builtin/source/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …rdm-rw612-xpresso-freertos-lwip-wifi/source/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …nxp/frdm-rw612-xpresso-freertos-lwip/source/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …-rw612-xpresso-freertos-builtin-wifi/source/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/core/memory/o1heap/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/core/timers/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded-12m/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/core/embedded-filesystem/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/captive-dns-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/sntp-time-sync/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/ssdp-search/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/udp/mdns-sd-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …torials/wch/ch32v307-make-baremetal-builtin/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/mongoose/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/esp32/mongoose/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/rtsp-video-stream/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/socks5-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/tcp/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/tcp/modbus-dashboard/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/redirect-to-https/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-multiple-posts/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/huge-response/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/singleton-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-streaming-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/uart-bridge/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/uart-bridge/esp32/main/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …ials/http/http-server/arduino/teensy41-http/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …torials/http/http-server/arduino/w5500-http/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …torials/http/http-server/arduino/esp32-http/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/video-stream/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-reverse-proxy/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/link-checker/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …-client/esp8266/http-client-server/src/main/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-proxy-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/http-restful-server/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-single-post/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/wifi-router-dashboard/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-transfer/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/device-dashboard/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/device-dashboard/esp32/main/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | …http/device-dashboard/microchip/same54-xpro/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/http/file-upload-html-form/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/smtp/smtp-client/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-plain/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-push-ws/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-push-rest/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-rest/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-preact/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/webui-login/mongoose.h | 1470 | // Usage example: | COMMENT |
| LOW | tutorials/webui/live-log/mongoose.h | 1470 | // Usage example: | COMMENT |
| 16 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 | 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 |