RepoTrust

shadowsocks/ChinaDNS

Protect yourself against DNS poisoning in China.

https://github.com/shadowsocks/ChinaDNS · commit 9e4261c78e91 · scored 2026-11-13 · scoring prov-4+qual-2+sec-2

RepoTrust ai badge RepoTrust quality badge RepoTrust security badge

Dispute this score or request a re-score Full report JSON

Scores

Pillar Score Signal Confidence Coverage
AI provenance (estimated AI-generated share) 0 none-detected 65% 100%
Code quality 55 weak 90% 100%
Security 65 weak 85% 100%

AI provenance

No AI attribution or AI-consistent velocity signals detected.

Month Lines added Attributed to AI
2014-07 800 0%
2014-08 223 0%
2014-09 38 0%
2014-11 41 0%
2014-12 176 0%
2015-01 318 0%
2015-02 168 0%
2015-04 541 0%
2015-06 10 0%
2015-07 12 0%
2015-08 2 0%

AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.

Code quality

Code quality is weak: test-to-source ratio 0.05, no CI test run detected; 29% of function code in complex or long functions; 3% duplicated lines. Weakest area: testing.

Area Score
Complexity (lizard) 41
Duplication 83
Code smells (Opengrep) 48
Tests and CI 39
Documentation 85
Type safety n/a
Process (Scorecard review/maintenance) n/a

Most complex functions:

Security

Security posture is weak: no high-impact findings. Weakest area: posture.

Area Score
Secrets (gitleaks, tree + history) 100
Static analysis (Opengrep) 54
Vulnerable dependencies (OSV) n/a
CI workflows (zizmor) n/a
Posture (policy, updates, signing, lockfiles) 0
OpenSSF Scorecard n/a

Top findings

Severity Finding Location
medium opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] src/chinadns.c:179
medium opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] src/chinadns.c:183
medium opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] src/chinadns.c:320
medium opengrep/c.lang.security.insecure-use-strtok-fn: Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead. [confidence low] src/chinadns.c:323
medium opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] src/chinadns.c:326
medium opengrep/c.lang.security.insecure-use-string-copy-fn: Finding triggers whenever there is a strcpy or strncpy used. This is an issue because strcpy does not affirm the size of the destination array and strncpy will not automatically NULL-terminate strings. This can lead to buffer overflows, which can cause program crashes and potentially let an attacker [confidence low] src/chinadns.c:327
medium opengrep/c.lang.security.insecure-use-strtok-fn: Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead. [confidence low] src/chinadns.c:350
medium opengrep/c.lang.security.insecure-use-strtok-fn: Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead. [confidence low] src/chinadns.c:355
medium opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] src/chinadns.c:546

Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.

Distribution signals

Signals consistent with a repository that exists to distribute a download. They are heuristics, not a verdict; release files were not downloaded or inspected.

Repository profile

Language Lines
C 1,174
Shell 117
Python 65

Embed a badge

Maintainers can show these in a README. Badges update when the repository is re-scored.

[![RepoTrust ai](https://repotrust.synapticcyber.com/badge/github.com/shadowsocks/ChinaDNS/ai.svg)](https://repotrust.synapticcyber.com/r/github.com/shadowsocks/ChinaDNS/)
[![RepoTrust quality](https://repotrust.synapticcyber.com/badge/github.com/shadowsocks/ChinaDNS/quality.svg)](https://repotrust.synapticcyber.com/r/github.com/shadowsocks/ChinaDNS/)
[![RepoTrust security](https://repotrust.synapticcyber.com/badge/github.com/shadowsocks/ChinaDNS/security.svg)](https://repotrust.synapticcyber.com/r/github.com/shadowsocks/ChinaDNS/)