🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
This report summarizes scanner evidence for StevenBlack/hosts, a Python project with 31,349 GitHub stars. SynthScan examined 29,497 lines of code across 121 source files, recording 46 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.7 (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? 38 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 37 finding(s).
Which changes need focused human review? 46 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 46 distinct pattern matches across 7 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⚡ | testUpdateHostsFile.py | 1627 | def test_multiple_space_as_separator(self): | CODE |
| LOW⚡ | testUpdateHostsFile.py | 1637 | def test_multiple_tabs_as_separator(self): | CODE |
| LOW⚡ | testUpdateHostsFile.py | 1647 | def test_line_with_comment_at_the_end(self): | CODE |
| LOW | testUpdateHostsFile.py | 221 | def test_no_freshen_no_new_file(self): | CODE |
| LOW | testUpdateHostsFile.py | 267 | def test_no_freshen_fail_new_file(self, mock_open): | CODE |
| LOW | testUpdateHostsFile.py | 512 | def test_only_common_exclusions(self, mock_gather, mock_exclude, _): | CODE |
| LOW | testUpdateHostsFile.py | 534 | def test_mixture_gatherexclusions(self, mock_gather, mock_exclude, _): | CODE |
| LOW | testUpdateHostsFile.py | 573 | def test_invalid_exclude_domain(self): | CODE |
| LOW | testUpdateHostsFile.py | 584 | def test_valid_exclude_domain(self): | CODE |
| LOW | testUpdateHostsFile.py | 721 | def test_update_only_extensions(self, mock_join_robust, *_): | CODE |
| LOW | testUpdateHostsFile.py | 745 | def test_update_both_pathways(self, mock_join_robust, *_): | CODE |
| LOW | testUpdateHostsFile.py | 815 | def test_sources_fail_succeed(self, mock_get, mock_write, *_): | CODE |
| LOW | testUpdateHostsFile.py | 1012 | def test_strip_raw_with_comment(self): | CODE |
| LOW | testUpdateHostsFile.py | 1072 | def test_basic_include_static_hosts(self): | CODE |
| LOW | testUpdateHostsFile.py | 1099 | def test_basic_include_static_hosts_linux(self): | CODE |
| LOW | testUpdateHostsFile.py | 1340 | def test_set_no_unified_hosts(self): | CODE |
| LOW | testUpdateHostsFile.py | 1408 | def test_move_hosts_posix_fail(self, *_): | CODE |
| LOW | testUpdateHostsFile.py | 1507 | def test_flush_posix_fail_then_succeed(self, *_): | CODE |
| LOW | testUpdateHostsFile.py | 1544 | def test_remove_hosts_file_exists(self): | CODE |
| LOW | testUpdateHostsFile.py | 1560 | def test_remove_hosts_file_backup(self, _): | CODE |
| LOW | testUpdateHostsFile.py | 1748 | def test_connect_unknown_domain(self): | CODE |
| LOW | testUpdateHostsFile.py | 2094 | def test_print_success_no_support(self, _): | CODE |
| LOW | testUpdateHostsFile.py | 2103 | def test_print_success_support(self, _): | CODE |
| LOW | testUpdateHostsFile.py | 2118 | def test_print_failure_no_support(self, _): | CODE |
| LOW | testUpdateHostsFile.py | 2127 | def test_print_failure_support(self, _): | CODE |
| LOW | updateHostsFile.py | 430 | def prompt_for_flush_dns_cache(flushcache, promptflush): | CODE |
| LOW | updateHostsFile.py | 521 | def display_exclusion_options(commonexclusions, exclusionpattern, exclusionregexes): | CODE |
| LOW | updateHostsFile.py | 1407 | def move_hosts_file_into_place(finalfile): | CODE |
| LOW | updateHostsFile.py | 1806 | def is_valid_user_provided_domain_format(domain): | STRING |
| LOW | makeHosts.py | 56 | def recursively_loop_extensions(extension, extensions, current_extensions): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | updateReadme.py | 20 | CODE | |
| LOW | updateHostsFile.py | 100 | CODE | |
| LOW | updateHostsFile.py | 916 | CODE | |
| LOW | updateHostsFile.py | 1407 | CODE | |
| LOW | updateHostsFile.py | 1471 | CODE | |
| LOW | updateHostsFile.py | 1599 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | updateHostsFile.py | 789 | except Exception: | CODE |
| MEDIUM | updateHostsFile.py | 790 | print("Error in updating source: ", updateurl) | CODE |
| LOW | updateHostsFile.py | 954 | except Exception as e: | CODE |
| LOW | updateHostsFile.py | 1429 | except Exception: | STRING |
| LOW | updateHostsFile.py | 1450 | except Exception: | STRING |
| MEDIUM | updateHostsFile.py | 1725 | print("Error retrieving data from {}".format(url)) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | updateHostsFile.py | 1671 | except IndexError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | updateHostsFile.py | 371 | # Create a hosts file if it doesn't exist. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | testUpdateHostsFile.py | 1369 | def test_move_hosts_no_name(self, _): # TODO: Create test which tries to move actual file | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | makeHosts.py | 8 | CODE |