🤖 The Modern Port Scanner 🤖
This report summarizes scanner evidence for bee-san/RustScan, a Rust project with 20,544 GitHub stars. SynthScan examined 13,698 lines of code across 43 source files, recording 66 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 7.5 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 50 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 15 finding(s).
Which changes need focused human review? 66 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 66 distinct pattern matches across 6 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 | build.rs | 161 | /// Parses out the Payloads into a BTreeMap of line numbers mapped to vectors of payload bytes | COMMENT |
| LOW | build.rs | 181 | COMMENT | |
| LOW | pictures/nice.yml | 1 | # The configurations that used for the recording, feel free to edit them | COMMENT |
| LOW | pictures/nice.yml | 21 | cols: 108 | COMMENT |
| LOW | pictures/nice.yml | 41 | COMMENT | |
| LOW | pictures/accessible.yml | 1 | # The configurations that used for the recording, feel free to edit them | COMMENT |
| LOW | pictures/accessible.yml | 21 | cols: 107 | COMMENT |
| LOW | pictures/accessible.yml | 41 | COMMENT | |
| LOW | pictures/fast.yml | 1 | # The configurations that used for the recording, feel free to edit them | COMMENT |
| LOW | pictures/fast.yml | 21 | cols: 105 | COMMENT |
| LOW | pictures/fast.yml | 41 | COMMENT | |
| LOW | pictures/newfast.yml | 1 | # The configurations that used for the recording, feel free to edit them | COMMENT |
| LOW | pictures/newfast.yml | 21 | cols: 235 | COMMENT |
| LOW | pictures/newfast.yml | 41 | COMMENT | |
| LOW | .github/workflows/scan-benchmark.yml | 1 | name: Scan benchmark | COMMENT |
| LOW | src/lib.rs | 1 | //! This crate exposes the internal functionality of the | COMMENT |
| LOW | src/lib.rs | 21 | //! use rustscan::input::{PortRanges, ScanOrder}; | COMMENT |
| LOW | src/lib.rs | 41 | //! // Inside an async context (e.g. `#[tokio::main]`) this is simply | COMMENT |
| LOW | src/address.rs | 21 | /// | COMMENT |
| LOW | src/address.rs | 101 | /// Given a string, parse it as a host, IP address, or CIDR. | COMMENT |
| LOW | src/address.rs | 241 | } | COMMENT |
| LOW | src/input.rs | 21 | COMMENT | |
| LOW | src/input.rs | 161 | /// Greppable mode. Only output the ports. No Nmap. Useful for grep or outputting to a file. | COMMENT |
| LOW | src/input.rs | 181 | #[arg(short, long, default_value = "1500")] | COMMENT |
| LOW | src/input.rs | 201 | #[arg(long, value_enum, ignore_case = true, default_value = "default")] | COMMENT |
| LOW | src/input.rs | 221 | #[arg(short = 'x', long = "exclude-addresses", value_delimiter = ',')] | COMMENT |
| LOW | src/input.rs | 401 | exclude_addresses: Option<Vec<String>>, | COMMENT |
| LOW | src/tui.rs | 1 | //! Utilities for terminal output during scanning. | COMMENT |
| LOW | src/benchmark/mod.rs | 1 | //! Provides functionality to capture timing information for scans. | COMMENT |
| LOW | src/scripts/mod.rs | 1 | //! Scripting Engine to run scripts based on tags. | COMMENT |
| LOW | src/scripts/mod.rs | 21 | //! None of the scripts will run, this replaces the removed `--no-nmap` option. | COMMENT |
| LOW | src/scripts/mod.rs | 41 | //! | COMMENT |
| LOW | src/scripts/mod.rs | 61 | //! - The `{{port}}` part will be reaplced with the ports separated with the | COMMENT |
| LOW | src/port_strategy/range_iterator.rs | 1 | use gcd::Gcd; | COMMENT |
| LOW | src/scanner/mod.rs | 81 | } | COMMENT |
| LOW | src/scanner/mod.rs | 261 | COMMENT | |
| LOW | src/scanner/mod.rs | 421 | /// # use std::net::{IpAddr, Ipv6Addr, SocketAddr}; | COMMENT |
| LOW | src/scanner/mod.rs | 441 | SocketAddr::V4(_) => SocketAddr::from((Ipv4Addr::UNSPECIFIED, 0)), | COMMENT |
| LOW | src/scanner/socket_iterator.rs | 1 | use itertools::{iproduct, Product}; | COMMENT |
| LOW | src/scanner/socket_iterator.rs | 21 | /// `SocketIterator` lives in a private module, so this example is not run as | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/scan-benchmark/scan_bench.py | 59 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 61 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 129 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 131 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 272 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 274 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 541 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 543 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 633 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 635 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 809 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/scan-benchmark/scan_bench.py | 811 | # -------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/scan-benchmark/scan_bench.py | 622 | except (OSError, subprocess.CalledProcessError): | CODE |
| HIGH | .github/scan-benchmark/scan_bench.py | 628 | except (ImportError, OSError, ValueError): | CODE |
| HIGH | .github/scan-benchmark/scan_bench.py | 111 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pictures/nice.yml | 50 | # Don't forget to add a backgroundColor style with a null as type | COMMENT |
| LOW | pictures/accessible.yml | 50 | # Don't forget to add a backgroundColor style with a null as type | COMMENT |
| LOW | pictures/fast.yml | 50 | # Don't forget to add a backgroundColor style with a null as type | COMMENT |
| LOW | pictures/newfast.yml | 50 | # Don't forget to add a backgroundColor style with a null as type | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/scan-benchmark/scan_bench.py | 64 | CODE | |
| LOW | .github/scan-benchmark/scan_bench.py | 602 | CODE | |
| LOW | .github/scan-benchmark/scan_bench.py | 666 | CODE | |
| LOW | .github/scan-benchmark/scan_bench.py | 744 | CODE | |
| LOW | .github/scan-benchmark/scan_bench.py | 824 | CODE | |
| LOW | .github/scan-benchmark/scan_bench.py | 316 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/scan-benchmark/scan_bench.py | 28 | CODE |