A pure Unix shell script ACME client for SSL / TLS certificate automation
This report presents the forensic synthetic code analysis of acmesh-official/acme.sh, a Shell project with 47,169 GitHub stars. SynthScan v2.0 examined 65,076 lines of code across 307 source files, recording 159 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 4.4 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 159 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 |
|---|---|---|---|---|
| MEDIUM | deploy/truenas_ws.sh | 15 | # ------------------------------------------------ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 49 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 51 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 56 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 58 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 190 | # ── 5. Save new CertificateId for next renewal ─────────────────────────────── | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 198 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 200 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 212 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 214 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 224 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | deploy/byteplus_alb.sh | 226 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 12 | # ┌─────────────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 23 | # └─────────────────────────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 73 | # ── 1. Load & validate credentials ────────────────────────────────────────── | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 138 | # ── 2. Build certificate name ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 163 | # ── 3. Read cert and key ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 174 | # ── 4. Deploy: first-time upload or renewal replace ───────────────────────── | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 254 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 256 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 274 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 276 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 388 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | deploy/byteplus_alb.sh | 390 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | dnsapi/dns_inwx.sh | 13 | # ------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notify/smtp.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | notify/bark.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | notify/dingtalk.sh | 41 | # DINGTALK_SIGNING_KEY="" | COMMENT |
| LOW | notify/aws_ses.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/vault.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/directadmin.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/edgio.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/haproxy.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/haproxy.sh | 21 | # It is strongly recommended to set this something that makes sense | COMMENT |
| LOW | deploy/haproxy.sh | 41 | # | COMMENT |
| LOW | deploy/consul.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/vault_cli.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/multideploy.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/multideploy.sh | 21 | # 0 means success, otherwise error. | COMMENT |
| LOW | deploy/multideploy.sh | 181 | COMMENT | |
| LOW | deploy/localcopy.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/cpanel_uapi.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/netlify.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/keyhelp.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/lighttpd.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/lighttpd.sh | 21 | # It is strongly recommended to set this something that makes sense | COMMENT |
| LOW | deploy/unifi.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/unifi.sh | 21 | # The deploy-hook automatically detects standard Unifi installations | COMMENT |
| LOW | deploy/unifi.sh | 41 | # (same setting as above, default is updated when running on Cloud Key Gen1): | COMMENT |
| LOW | deploy/windows_rdp.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/windows_rdp.sh | 101 | cat <<PSEOF | COMMENT |
| LOW | deploy/ssh.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/ssh.sh | 21 | # export DEPLOY_SSH_FULLCHAIN="" | COMMENT |
| LOW | deploy/panos.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/zyxel_gs1900.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/zyxel_gs1900.sh | 21 | # Current GS1900 Switch Compatibility: | COMMENT |
| LOW | deploy/zyxel_gs1900.sh | 41 | # | COMMENT |
| LOW | deploy/mydevil.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/truenas_ws.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/truenas_ws.sh | 21 | # export DEPLOY_TRUENAS_HOSTNAME="<TRUENAS_HOSTNAME_OR_IP>" | COMMENT |
| LOW | deploy/truenas_ws.sh | 101 | # 0: true | COMMENT |
| LOW | deploy/truenas_ws.sh | 141 | done | COMMENT |
| LOW | deploy/synology_dsm.sh | 1 | #!/bin/bash | COMMENT |
| LOW | deploy/synology_dsm.sh | 21 | # - export SYNO_HOSTNAME="localhost" - defaults to "localhost" | COMMENT |
| LOW | deploy/proxmoxve.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/gcore_cdn.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/ruckus.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/truenas.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/ali_dcdn.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/cleverreach.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/routeros.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/routeros.sh | 21 | # deploy script to work. | COMMENT |
| LOW | deploy/routeros.sh | 41 | # could be updated. Currently only the www-ssl service is beeing | COMMENT |
| LOW | deploy/proxmoxbs.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/qiniu.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/ali_cdn.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/byteplus_alb.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | deploy/byteplus_alb.sh | 21 | # │ → ReplaceCertificate (UpdateMode=new) — single API call │ | COMMENT |
| LOW | deploy/byteplus_alb.sh | 41 | # - ReplaceCertificate with UpdateMode=new uploads + replaces in 1 call | COMMENT |
| LOW | deploy/peplink.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | .github/workflows/wiki-guard.yml | 1 | name: Wiki Guard | COMMENT |
| LOW | dnsapi/dns_bunny.sh | 161 | ## _sub_domain="_acme-challenge.two" | COMMENT |
| LOW | dnsapi/dns_dgon.sh | 161 | ##################### Private functions below ##################### | COMMENT |
| LOW | dnsapi/dns_arubabusiness.sh | 21 | COMMENT | |
| LOW | dnsapi/dns_arubabusiness.sh | 81 | COMMENT | |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/kemplm.sh | 55 | # Check if certificate is already installed | COMMENT |
| LOW | deploy/haproxy.sh | 262 | # Check if issuer cert is also a root CA cert | COMMENT |
| LOW⚡ | deploy/multideploy.sh | 82 | # Check if yq is installed | COMMENT |
| LOW⚡ | deploy/multideploy.sh | 89 | # Check if deploy file exists | COMMENT |
| LOW | deploy/multideploy.sh | 147 | # Check if extracted services exist in services list | COMMENT |
| LOW | deploy/multideploy.sh | 150 | # Check if service exists | COMMENT |
| LOW | deploy/kong.sh | 61 | #Check if sslcreated (if not => POST else => PATCH) | COMMENT |
| LOW | deploy/lighttpd.sh | 210 | # Check if issuer cert is also a root CA cert | COMMENT |
| LOW | deploy/truenas.sh | 219 | # Check if the app use the same certificate TrueNAS web UI | COMMENT |
| LOW⚡ | deploy/byteplus_alb.sh | 185 | # Check if deploy step set _new_cert_id | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 63 | # Check if there are existing TXT records for this subdomain | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 78 | # Check if this exact TXT value already exists (avoid duplicates) | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 143 | # Check if there are existing TXT records for this subdomain | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 211 | # Check if the response contains our domain | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 225 | # Check if the hyphenated name exists in the response | COMMENT |
| LOW | dnsapi/dns_sotoon.sh | 229 | # Check if the origin itself is used as name | COMMENT |
| LOW | dnsapi/dns_infoblox_uddi.sh | 63 | # Check if record already exists | COMMENT |
| LOW | dnsapi/dns_infoblox_uddi.sh | 178 | # Check if response contains results (even if empty) | COMMENT |
| LOW | dnsapi/dns_bunny.sh | 22 | # Check if API Key is set | COMMENT |
| LOW | dnsapi/dns_bunny.sh | 79 | # Check if API Key Exists | COMMENT |
| LOW | dnsapi/dns_subreg.sh | 116 | # Check if the current $response contains a successful status in the ns2:Map format: | COMMENT |
| LOW | dnsapi/dns_cyon.sh | 229 | # Check if we got an error response (JSON) instead of HTML | COMMENT |
| LOW | dnsapi/dns_dgon.sh | 21 | # Check if API Key Exists | COMMENT |
| LOW | dnsapi/dns_dgon.sh | 76 | # Check if API Key Exists | COMMENT |
| LOW | dnsapi/dns_one.sh | 33 | #Check if the TXT exists | COMMENT |
| LOW | dnsapi/dns_one.sh | 71 | #Check if the TXT exists | COMMENT |
| LOW | dnsapi/dns_huaweicloud.sh | 162 | # Check if retry count is reached | COMMENT |
| LOW | dnsapi/dns_huaweicloud.sh | 247 | # Check if record exist | COMMENT |
| LOW | dnsapi/dns_mgwm.sh | 76 | # Check if credentials are set | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | acme.sh | 7614 | # Create the custom cert home now instead of on first issuance, so the | COMMENT |
| MEDIUM | deploy/haproxy.sh | 199 | # Create a temporary PEM file | COMMENT |
| MEDIUM | deploy/lighttpd.sh | 147 | # Create a temporary PEM file | COMMENT |
| MEDIUM | deploy/panos.sh | 27 | # This function is to parse the XML response from the firewall | COMMENT |
| MEDIUM | deploy/panos.sh | 58 | #This function is used to deploy to the firewall | COMMENT |
| MEDIUM | dnsapi/dns_bunny.sh | 14 | ## Create the text record for validation. | COMMENT |
| MEDIUM | dnsapi/dns_bhosted.sh | 349 | # Create a unique config key for cached record ids | COMMENT |
| MEDIUM | dnsapi/dns_dgon.sh | 13 | ## Create the text record for validation. | COMMENT |
| MEDIUM | dnsapi/dns_ali.sh | 13 | # This file is referenced by Alibaba Cloud Services deploy hooks | COMMENT |
| MEDIUM | dnsapi/dns_online.sh | 159 | # Creating a dummy record in this temporary version, because online.net doesn't accept enabling an empty version | COMMENT |
| MEDIUM | dnsapi/dns_mgwm.sh | 16 | # This function is called by acme.sh to add a TXT record. | COMMENT |
| MEDIUM | dnsapi/dns_mgwm.sh | 36 | # This function is called by acme.sh to remove a TXT record after validation. | COMMENT |
| MEDIUM | dnsapi/dns_mgwm.sh | 87 | # Create the Basic Auth Header. acme.sh's _base64 function is used for encoding. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | deploy/multideploy.sh | 79 | # Usage: | COMMENT |
| LOW | deploy/multideploy.sh | 121 | # Usage: | COMMENT |
| LOW | deploy/multideploy.sh | 175 | # Usage: | COMMENT |
| LOW | deploy/multideploy.sh | 203 | # Usage: | COMMENT |
| LOW | deploy/multideploy.sh | 223 | # Usage: | COMMENT |
| LOW | deploy/multideploy.sh | 265 | # Usage: | COMMENT |
| LOW | deploy/zyxel_gs1900.sh | 37 | # Usage: | COMMENT |
| LOW | deploy/truenas_ws.sh | 30 | # Usage: | COMMENT |
| LOW | deploy/truenas_ws.sh | 92 | # Usage: | COMMENT |
| LOW | deploy/truenas_ws.sh | 113 | # Usage: | COMMENT |
| LOW | dnsapi/dns_bookmyname.sh | 25 | # Usage: | COMMENT |
| LOW | dnsapi/dns_eurodns.sh | 20 | # Usage: | COMMENT |
| LOW | dnsapi/dns_glesys.sh | 20 | # Usage: | COMMENT |
| LOW | dnsapi/dns_glesys.sh | 71 | # Usage: | COMMENT |
| LOW | dnsapi/dns_laodc.sh | 12 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | dnsapi/dns_ipprojects.sh | 54 | _err "e.g.: export IPP_Apikey=\"your_api_key\"" | CODE |
| HIGH | dnsapi/dns_eurodns.sh | 22 | # export EURODNS_API_KEY="your-api-key" | COMMENT |
| HIGH | dnsapi/dns_laodc.sh | 13 | # export LaoDC_Key="your-api-key" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | notify/smtp.sh | 344 | print("Error sending: %r" % err) | CODE |
| MEDIUM | notify/smtp.sh | 348 | print("Error connecting to %s:%d: %r" % (smtp_host, smtp_port, err)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dnsapi/dns_namecheap.sh | 15 | # Due to Namecheap's API limitation all the records of your domain will be read and re applied, make sure to have a back | COMMENT |