Repository Analysis

aws/s2n-tls

An implementation of the TLS/SSL protocols

2.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of aws/s2n-tls, a C project with 4,740 GitHub stars. SynthScan v2.0 examined 322,602 lines of code across 1719 source files, recording 872 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 2.9 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).

2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.7K
Stars
C
Language
322.6K
Lines of Code
1.7K
Files
872
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 8MEDIUM 11LOW 853

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 872 distinct pattern matches across 14 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.

Over-Commented Block797 hits · 797 pts
SeverityFileLineSnippetContext
LOWcodebuild/bin/install_apache2.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_ctverif.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/utils.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_awslc.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_openssl_3_0.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/jobs.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/test_libcrypto_interning.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_z3_yices.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_default_dependencies.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_openssl_1_0_2_fips.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_prlimit.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_install_test_dependencies.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/fuzz_corpus_download.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_open_fds_test.py1# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWcodebuild/bin/s2n_set_build_preset.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/clang_format_changed_files.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_al_dependencies.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_sslyze.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_ubuntu_dependencies.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_codebuild_al.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_clang.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/grep_simple_mistakes.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/coverage_report.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/test_dynamic_load.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_openssl_1_1_1.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/fuzz_coverage_report.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/test_install_shared_and_static.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/run_sidetrail.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_python.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_codebuild.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_sidetrail.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/run_kwstyle.sh1#! /bin/bashCOMMENT
LOWcodebuild/bin/install_libressl.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_override_paths.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/run_cppcheck.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/header_mistake_scanner.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_shellcheck.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_openssl_1_0_2.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/test_exec_leak.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_cppcheck.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_boringssl.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/cpp_style_comment_linter.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_s2n_head.sh1#!/usr/bin/env bashCOMMENT
LOWcodebuild/bin/install_sidetrail_dependencies.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_setup_env.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/s2n_apache2.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_saw.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/start_codebuild.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/install_gnutls37.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/build_aws_crt_cpp.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/fuzz_corpus_upload.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/run_ctverif.sh1#!/bin/bashCOMMENT
LOWcodebuild/bin/format.sh1#!/bin/bashCOMMENT
LOWcodebuild/spec/buildspec_musl.yml1---COMMENT
LOWcodebuild/spec/buildspec_fuzz_scheduled.yml1---COMMENT
LOWcodebuild/spec/buildspec_sidetrail.yml1---COMMENT
LOWcodebuild/spec/buildspec_s2n_tls_bench.yml1---COMMENT
LOWcodebuild/spec/buildspec_ubuntu.yml1---COMMENT
LOWcodebuild/spec/buildspec_fuzz.yml1---COMMENT
LOWcodebuild/spec/buildspec_ubuntu_integrationv2.yml1---COMMENT
737 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/integrationv2/test_key_update.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
HIGHtests/integrationv2/test_version_negotiation.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
HIGHtests/integrationv2/test_early_data.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
HIGHtests/integrationv2/test_record_padding.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
HIGHtests/integrationv2/test_external_psk.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
HIGHtests/integrationv2/test_hello_retry_requests.py0sometimes the hello retry test parameters in combination with the s2n libcrypto results in no test cases existing. in thSTRING
Hyper-Verbose Identifiers26 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/integrationv2/test_renegotiate_apache.py45def test_apache_endpoints_fail_with_no_reneg(managed_process, protocol, endpoint): # noqa: F811CODE
LOWtests/integrationv2/test_renegotiate_apache.py81def test_change_cipher_suite_endpoint(managed_process, curve, protocol): # noqa: F811CODE
LOWtests/integrationv2/test_renegotiate_apache.py112def test_mutual_auth_endpoint(managed_process, curve, protocol): # noqa: F811CODE
LOWtests/integrationv2/conftest.py81def pytest_collection_modifyitems(config, items):CODE
LOWtests/integrationv2/test_version_negotiation.py34def invalid_version_negotiation_test_parameters(*args, **kwargs):CODE
LOWtests/integrationv2/test_client_authentication.py28def assert_openssl_handshake_complete(results, is_complete=True):CODE
LOWtests/integrationv2/test_record_padding.py43def get_payload_size_from_openssl_trace(record_size_bytes: str) -> int:CODE
LOWtests/integrationv2/test_record_padding.py51def assert_openssl_records_are_padded_correctly(openssl_output: str, padding_size: int):CODE
LOWtests/integrationv2/test_sslyze.py214def assert_scan_result_completed(scan_result):CODE
LOWtests/integrationv2/test_sslyze.py215 def get_connectivity_error_str(tb):CODE
LOWtests/integrationv2/test_sslyze.py225def assert_scan_attempt_completed(scan_attempt):CODE
LOWtests/integrationv2/test_sslyze.py241def invalid_sslyze_scan_parameters(*args, **kwargs):CODE
LOWtests/integrationv2/test_sslyze.py317def invalid_certificate_scans_parameters(*args, **kwargs):CODE
LOWtests/integrationv2/test_sslyze.py360def test_sslyze_certificate_scans(CODE
LOWtests/integrationv2/test_external_psk.py75def get_psk_hash_alg_from_cipher(cipher):CODE
LOWtests/integrationv2/test_external_psk.py112def validate_negotiated_psk_openssl(outcome, results):CODE
LOWtests/integrationv2/utils.py32def get_expected_openssl_version(protocol):CODE
LOWtests/integrationv2/utils.py41def get_expected_gnutls_version(protocol):CODE
LOWtests/integrationv2/test_fragmentation.py27def invalid_test_parameters_frag_len(*args, **kwargs):CODE
LOWtests/integrationv2/test_serialization.py60def test_server_serialization_backwards_compat(CODE
LOWtests/integrationv2/test_hello_retry_requests.py196def test_hrr_with_default_keyshare(CODE
LOWtests/cbmc/proofs/run-cbmc-proofs.py293def should_enable_memory_profiling(litani_caps, args):STRING
LOWtests/cbmc/proofs/lib/summarize.py28def _get_max_length_per_column_list(data):CODE
LOWtests/cbmc/proofs/lib/summarize.py36def _get_table_header_separator(max_length_per_column_list):CODE
LOWtests/cbmc/proofs/lib/summarize.py70def _get_status_and_proof_summaries(run_dict):CODE
LOWtests/sidetrail/bin/ct-verif.rb8def run_command_with_heartbeat (beat_time, cmd)CODE
Slop Phrases5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUM…gs/rust-examples/tokio-server-client/src/bin/client.rs10/// NOTE: this ca is to be used for demonstration purposes only!COMMENT
MEDIUM…gs/rust-examples/tokio-server-client/src/bin/server.rs10/// NOTE: this certificate and key are to be used for demonstration purposes only!COMMENT
MEDIUM…gs/rust-examples/hyper-server-client/src/bin/client.rs11/// NOTE: this CA is to be used for demonstration purposes only!COMMENT
MEDIUM…gs/rust-examples/hyper-server-client/src/bin/server.rs13/// NOTE: this certificate and key are to be used for demonstration purposes only!COMMENT
MEDIUMbindings/rust-examples/key-logging/src/lib.rs84 /// NOTE: these materials are to be used for demonstration purposes only!COMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/s2n_alerts_protocol_test.c184 *# The implementation SHOULD provide a way to facilitate logging the sendingCOMMENT
LOWtests/integrationv2/test_early_data.py88# but for now we can just use `-sess_in/out` and cover the S2N->S2N case in the S2N client tests.COMMENT
MEDIUM…specs/www.rfc-editor.org/rfc/rfc5246/appendix-E.2.toml46# This field, in conjunction with the version field, identifies aCOMMENT
MEDIUM…/specs/www.rfc-editor.org/rfc/rfc8446/section-6.2.toml21# implementation SHOULD provide a way to facilitate logging the sendingCOMMENT
Deep Nesting10 hits · 10 pts
SeverityFileLineSnippetContext
LOWcodebuild/bin/s2n_open_fds_test.py32CODE
LOWtests/integrationv2/test_version_negotiation.py135CODE
LOWtests/integrationv2/providers.py915CODE
LOWtests/integrationv2/providers.py170CODE
LOWtests/integrationv2/providers.py439CODE
LOWtests/integrationv2/providers.py504CODE
LOWtests/integrationv2/providers.py665CODE
LOWtests/integrationv2/providers.py689CODE
LOWtests/integrationv2/processes.py110CODE
LOWtests/integrationv2/common.py231CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMcodebuild/bin/s2n_setup_env.sh146 # Create a link to the selected libcrypto. This shouldn't be needed when LIBCRYPTO_ROOT is set, but some testsCOMMENT
MEDIUMtests/pems/crl/generate.sh70 # Create a chain with just the root certificate for validating child certificatesCOMMENT
MEDIUMtests/pems/crl/generate.sh144 # Create a chain that includes the newly signed certificate and all parent certificatesCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOW.clinerules/BINDINGS_RELEASE_STEPS.md37#### Step 2: Run generate.shCOMMENT
LOW.clinerules/BINDINGS_RELEASE_STEPS.md55#### Step 3: Update s2n-tls CrateCOMMENT
LOW.clinerules/BINDINGS_RELEASE_STEPS.md83#### Step 4: Update s2n-tls-tokio CrateCOMMENT
LOW…andard/integration/src/handshake/session_resumption.rs286 // Step 1: OpenSSL client ↔ OpenSSL server handshake to generate a sessionCOMMENT
LOW…andard/integration/src/handshake/session_resumption.rs382 // Step 1: Establish session with first server and get ticketCOMMENT
LOW…andard/integration/src/handshake/session_resumption.rs397 // Step 2: Try to resume with second server using ticket from first serverCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…/specs/www.rfc-editor.org/rfc/rfc8446/section-7.1.toml42# In this version of TLS 1.3, the two input secrets are:COMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHscram/aes_scram.py154 # T = GMAC (N, A||C, null)COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcodebuild/bin/fuzz_corpus_download.sh24 # Check if corpus.zip exists in the specified S3 location.COMMENT
LOWtests/sidetrail/count_success.pl43 #Check if the code under test used unexpected functionsCOMMENT
LOWtests/ctverif/count_success.pl38 #Check if the code under test used unexpected functionsCOMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…andard/integration/src/handshake/session_resumption.rs286 // Step 1: OpenSSL client ↔ OpenSSL server handshake to generate a sessionCOMMENT
LOW…andard/integration/src/handshake/session_resumption.rs382 // Step 1: Establish session with first server and get ticketCOMMENT
LOW…andard/integration/src/handshake/session_resumption.rs397 // Step 2: Try to resume with second server using ticket from first serverCOMMENT
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/integrationv2/processes.py436 except Exception as ex:CODE
LOWtests/integrationv2/processes.py482 except Exception as ex:CODE
LOWtests/integrationv2/fixtures.py91 except Exception as _:CODE
LOWtests/cbmc/proofs/lib/summarize.py142 except Exception as ex: # pylint: disable=broad-exceptCODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/integrationv2/processes.py365CODE
LOWtests/integrationv2/common.py709CODE
LOW.github/gha_monitor/gha_monitor/sns.py26CODE