coturn TURN server project
This report summarizes scanner evidence for coturn/coturn, a C project with 14,532 GitHub stars. SynthScan examined 88,518 lines of code across 305 source files, recording 184 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 176 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 184 finding(s).
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.
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.
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.
The scanner identified 184 distinct pattern matches across 10 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | ## | COMMENT |
| LOW | CMakeLists.txt | 21 | # | COMMENT |
| LOW | CLAUDE.md | 61 | ```bash | COMMENT |
| LOW | CLAUDE.md | 81 | # DTLS) on the small port range opened by | COMMENT |
| LOW | CLAUDE.md | 101 | # UDP/TCP (+TLS/DTLS on Linux), asserting | COMMENT |
| LOW | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 21 | #/ | COMMENT |
| LOW | tests/test_sqlite_dbd.c | 21 | */ | COMMENT |
| LOW | examples/run_tests_mobility_resume_flood.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_stateless_nonce.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_dtls_default.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_alpn.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_expiry.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_dscp.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_rfc5780.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests.sh | 41 | # default test run so every CI cycle exercises the recvmmsg drain path. | COMMENT |
| LOW | examples/run_tests.sh | 81 | # raced in and hit "Connection refused". | COMMENT |
| LOW | examples/run_tests.sh | 161 | # function lets us run each protocol once with the legacy single-threaded | COMMENT |
| LOW | examples/run_tests.sh | 201 | # session via pick_listener_base / pick_sender_id, and drive the | COMMENT |
| LOW | examples/run_tests_stateless_binding.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_ipv6_relay.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_ratelimit_401.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_mobile.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_mobility_quota.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/run_tests_conf.sh | 41 | echo "allow-loopback-peers" >> $BINDIR/turnserver.conf | COMMENT |
| LOW | examples/run_tests_oauth.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/loadtest/401_response_flood.c | 21 | COMMENT | |
| LOW | examples/scripts/stateless_binding_probe.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | examples/scripts/mobility_resume_flood.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | examples/scripts/stateless_nonce_forged_mi.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | examples/scripts/mobility_quota_flood.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | examples/scripts/loadbalance/slave_relay_2.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/loadbalance/tcp_c2c_tcp_relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/loadbalance/slave_relay_1.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/loadbalance/master_relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/loadbalance/udp_c2c.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …scripts/longtermsecuredb/secure_relay_with_db_mongo.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …pts/longtermsecuredb/secure_relay_with_db_mysql_ssl.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …/scripts/longtermsecuredb/secure_relay_with_db_psql.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …scripts/longtermsecuredb/secure_relay_with_db_redis.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …scripts/longtermsecuredb/secure_relay_with_db_mysql.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …cripts/longtermsecuredb/secure_relay_with_db_sqlite.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/basic/relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/basic/tcp_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/basic/tcp_client_c2c_tcp_relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/basic/udp_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/basic/udp_c2c_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …s/scripts/restapi/secure_relay_secret_with_db_redis.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …es/scripts/restapi/secure_relay_secret_with_db_psql.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …s/scripts/restapi/secure_relay_secret_with_db_mysql.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …mples/scripts/restapi/secure_udp_client_with_secret.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …s/scripts/restapi/secure_relay_secret_with_db_mongo.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/restapi/secure_relay_secret.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …/scripts/restapi/secure_relay_secret_with_db_sqlite.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/mobile/mobile_relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/mobile/mobile_dtls_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/mobile/mobile_udp_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …ples/scripts/mobile/mobile_tls_client_c2c_tcp_relay.sh | 1 | #!/bin/sh | COMMENT |
| LOW | examples/scripts/mobile/mobile_tcp_client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | …mples/scripts/longtermsecure/secure_tls_client_cert.sh | 1 | #!/bin/sh | COMMENT |
| 101 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 35 | # =========== | COMMENT |
| MEDIUM | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 48 | # ========================== | COMMENT |
| MEDIUM | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 58 | # ==================== | COMMENT |
| MEDIUM | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 77 | # ================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/apps/relay/mainrelay.c | 286 | // TODO: implement it!!! | COMMENT |
| LOW | src/apps/relay/mainrelay.c | 2263 | // TODO: implement it!!! | COMMENT |
| LOW | src/apps/relay/mainrelay.c | 3329 | // TODO: implement it!!! | COMMENT |
| LOW | src/apps/relay/mainrelay.c | 3854 | // TODO: implement deamon!!! use windows server | COMMENT |
| LOW | src/apps/relay/mainrelay.c | 3935 | // TODO: implement it!!! add windows server | COMMENT |
| LOW | src/apps/relay/ns_ioalib_engine_impl.c | 2603 | // TODO: implement it!!! | COMMENT |
| LOW | src/apps/relay/turn_admin_server.c | 711 | // TODO: implement it!!! | COMMENT |
| LOW | src/apps/relay/turn_admin_server.c | 2161 | // TODO: implement it!!! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/run_tests_ratelimit_401.sh | 16 | # negative: same harness but --unauthorized-ratelimit-rps=100000. Same | COMMENT |
| MEDIUM | examples/run_tests_mobile.sh | 19 | # loopback harness and would make this suite flaky. UDP and TCP drive the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/scripts/stateless_binding_probe.py | 201 | except socket.timeout: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 86 | # Check if the input looks like an IPv4 address. | COMMENT |
| LOW | …cker/coturn/rootfs/usr/local/bin/detect-external-ip.sh | 99 | # Check if the input looks like an IPv6 address. | COMMENT |
| LOW | examples/run_tests_prom.sh | 355 | # Print the value of one allocation series, or nothing if it is absent. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/scripts/restapi/shared_secret_maintainer.pl | 69 | # Alternatively, you can use this link for compute-on-demand: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_http_server.c | 26 | str_buffer_append_html_escaped(sb, "alice-123@example.org"); | CODE |
| LOW | tests/test_http_server.c | 28 | TEST_ASSERT_EQUAL_STRING("alice-123@example.org", str_buffer_get_str(sb)); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/run_tests_oauth.py | 199 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/run_tests_oauth.py | 106 | CODE |