AI Slop Code RIsk Monitor

stamparm/maltrail

Malicious traffic detection system

16.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for stamparm/maltrail, a Python project with 8,622 GitHub stars. SynthScan examined 119,453 lines of code across 277 source files, recording 1229 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 16.7 (Elevated 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.

16.7
Adjusted Signal
16.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
8.6K
Stars
Python
Language
119.5K
Lines of Code
277
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.60
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 29.5/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 816 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.5/100 · LOW

Are imports declared and package/API names verified? 67 finding(s).

Agent Over-Engineering Ratio 47.3/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 885 finding(s).

PR Review Velocity Impact 59.6/100 · HIGH

Which changes need focused human review? 1229 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 166MEDIUM 54LOW 1009

Directory Score Breakdown

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.

Pattern Findings

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

Hyper-Verbose Identifiers537 hits · 558 pts
SeverityFileLineSnippetContext
LOWcore/quic_sni.py219def derive_client_initial_keys(dcid, version=1):CODE
LOWcore/quic_sni.py250def extract_sni_from_quic_initial(udp_payload):CODE
LOWcore/common.py823 def _format_action_invocation(self, action):STRING
LOWcore/doctor.py131def check_update_reachability():CODE
LOWtests/test_version_sync.py29 def test_the_tree_agrees_with_itself(self):CODE
LOWtests/test_version_sync.py39 def test_every_pattern_matches_exactly_once(self):CODE
LOWtests/test_version_sync.py50 def test_the_bumper_and_the_checker_cover_the_same_files(self):CODE
LOWtests/test_version_sync.py61 def test_a_bump_is_all_or_nothing(self):CODE
LOWtests/test_version_sync.py82 def test_the_release_workflow_still_verifies_the_tag(self):CODE
LOW⚡tests/test_workflows.py47 def test_it_refuses_to_change_anything_but_the_generated_file(self):CODE
LOW⚡tests/test_workflows.py54 def test_it_does_not_write_to_master(self):CODE
LOW⚡tests/test_workflows.py62 def test_it_verifies_what_it_proposes(self):CODE
LOWtests/test_workflows.py75 def test_ci_still_fails_on_a_stale_mirror(self):CODE
LOWtests/test_workflows.py98 def test_the_documented_feed_count_is_the_real_one(self):CODE
LOWtests/test_workflows.py131 def test_no_job_references_a_matrix_it_does_not_have(self):CODE
LOWtests/test_reference.py60 def test_no_substring_false_positive(self):CODE
LOW⚡tests/test_reference.py110 def test_a_trail_with_no_citation_is_not_reported_as_missing_provenance(self):CODE
LOW⚡tests/test_reference.py115 def test_no_sidecar_names_what_restores_it(self):CODE
LOW⚡tests/test_reference.py123 def test_a_corrupt_sidecar_does_not_take_the_endpoint_down(self):CODE
LOW⚡tests/test_reference.py132 def test_it_reopens_when_the_sidecar_changes(self):CODE
LOW⚡tests/test_ignore.py25 def test_no_config_keeps_event(self):CODE
LOW⚡tests/test_ignore.py28 def test_regex_match_and_miss(self):CODE
LOW⚡tests/test_ignore.py35 def test_invalid_regex_does_not_crash(self):CODE
LOW⚡tests/test_ignore.py41 def test_ignorelist_src_wildcards(self):CODE
LOWtests/test_ignore.py83 def test_cidr_covers_its_network_and_stops_at_the_edges(self):CODE
LOWtests/test_ignore.py89 def test_dash_ranges_in_both_spellings(self):CODE
LOW⚡tests/test_ignore.py103 def test_malformed_rules_degrade_to_literals(self):CODE
LOW⚡tests/test_ignore.py110 def test_a_range_does_not_match_a_non_numeric_port(self):CODE
LOW⚡tests/test_ignore.py113 def test_reloading_the_ignore_list_in_place_takes_effect(self):CODE
LOW⚡tests/test_debug_artifacts.py55 def test_no_js_debugger_statement(self):CODE
LOW⚡tests/test_debug_artifacts.py60 def test_no_console_log_outside_the_vendored_bundle(self):CODE
LOW⚡tests/test_debug_artifacts.py65 def test_no_pdb_breakpoints_in_the_server(self):CODE
LOW⚡tests/test_debug_artifacts.py71 def test_shipped_config_keeps_the_safe_defaults(self):CODE
LOW⚡tests/test_common.py59 def test_common_affix_factoring(self):CODE
LOW⚡tests/test_common.py63 def test_metachars_escaped_literally(self):CODE
LOW⚡tests/test_common.py73 def test_builtin_ranges_match(self):CODE
LOW⚡tests/test_common.py79 def test_domain_not_range_matched(self):CODE
LOW⚡tests/test_common.py83 def test_exact_member_whitelisted(self):CODE
LOW⚡tests/test_common.py211 def test_a_pem_holding_a_known_bad_block_is_rejected(self):CODE
LOW⚡tests/test_common.py216 def test_the_key_is_recognised_without_its_original_certificate(self):CODE
LOW⚡tests/test_common.py223 def test_whitespace_and_block_order_do_not_matter(self):CODE
LOW⚡tests/test_common.py228 def test_an_unrelated_pem_is_accepted(self):CODE
LOW⚡tests/test_common.py233 def test_garbage_in_a_pem_block_is_not_a_crash(self):CODE
LOW⚡tests/test_common.py241 def test_an_unreadable_pem_is_neither_accepted_nor_rejected(self):CODE
LOW⚡tests/test_common.py245 def test_the_shipped_fingerprint_set_still_names_both_blocks(self):CODE
LOW⚡tests/test_common.py316 def test_missing_or_malformed_payload_is_a_non_answer_not_a_crash(self):CODE
LOW⚡tests/test_common.py323 def test_a_hit_costs_no_request(self):CODE
LOW⚡tests/test_common.py329 def test_a_failure_is_cached_too(self):CODE
LOW⚡tests/test_common.py335 def test_expiry_lets_a_lookup_retry(self):CODE
LOW⚡tests/test_common.py345 def test_the_cache_is_bounded(self):CODE
LOWtests/test_common.py38 def test_public_and_boundaries(self):CODE
LOWtests/test_common.py122 def test_non_aligned_cidr_whitelists_subnet(self):CODE
LOWtests/test_common.py299 def test_geoloc_country_is_extracted_and_normalised(self):CODE
LOWtests/test_common.py305 def test_a_country_that_is_not_a_country_code_is_dropped(self):CODE
LOWtests/test_common.py356 def test_disabled_means_no_request_at_all(self):CODE
LOWtests/test_common.py362 def test_an_unknown_kind_is_refused_before_any_request(self):CODE
LOWtests/test_quic_sni.py152 def test_multibyte_packet_number(self):CODE
LOW⚡tests/test_quic_sni.py169 def test_multi_crypto_frame_reassembly(self):CODE
LOW⚡tests/test_quic_sni.py176 def test_multi_crypto_frame_out_of_order(self):CODE
LOW⚡tests/test_quic_sni.py183 def test_padding_and_ping_frames_skipped(self):CODE
477 more matches not shown…
Empty Error Handlers79 hits · 395 pts
SeverityFileLineSnippetContext
HIGHserver.py150except Exception:CODE
HIGHserver.py222except Exception:CODE
HIGHcore/update.py77except (ImportError, AttributeError):CODE
HIGHcore/update.py149except (IOError, OSError):CODE
HIGHcore/update.py351except (OSError, IOError):CODE
HIGHcore/update.py196except Exception:CODE
HIGHcore/update.py833except OSError:CODE
HIGHcore/update.py433except Exception:CODE
HIGHcore/update.py541except Exception:CODE
HIGHcore/update.py751except Exception:CODE
HIGHcore/update.py873except OSError:CODE
HIGHcore/update.py652except Exception:CODE
HIGHcore/geo.py124except Exception:CODE
HIGHcore/geo.py94except Exception:CODE
HIGHcore/trailsbin.py127except OSError:CODE
HIGHcore/index.py188except OSError:CODE
HIGHcore/index.py82except OSError:CODE
HIGHcore/index.py219except sqlite3.Error:CODE
HIGHcore/log.py249except Exception:CODE
HIGHcore/log.py254except socket.error:CODE
HIGHcore/log.py660except Exception:CODE
HIGHcore/log.py95except OSError:CODE
HIGHcore/httpd.py89except ImportError:CODE
HIGHcore/httpd.py95except Exception:CODE
HIGHcore/httpd.py816except Exception:CODE
HIGHcore/httpd.py905except ValueError:CODE
HIGHcore/httpd.py979except (ValueError, RuntimeError):CODE
HIGHcore/httpd.py299except Exception:CODE
HIGHcore/httpd.py138except Exception:CODE
HIGHcore/httpd.py644except Exception:CODE
HIGHcore/httpd.py1050except Exception:CODE
HIGHcore/httpd.py1210except Exception:CODE
HIGHcore/httpd.py2644except Exception:CODE
HIGHcore/httpd.py1005except Exception:CODE
HIGHcore/httpd.py1292except Exception:CODE
HIGHcore/httpd.py866except ValueError:CODE
HIGHcore/httpd.py1706except Exception:CODE
HIGHcore/httpd.py2638except Exception:CODE
HIGHcore/httpd.py1996except Exception:CODE
HIGHcore/httpd.py2483except Exception:CODE
HIGHcore/httpd.py2539except Exception:CODE
HIGHcore/httpd.py2416except Exception: passCODE
HIGHcore/common.py297except (IndexError, ValueError):CODE
HIGHcore/common.py311except (IndexError, ValueError):CODE
HIGHcore/common.py325except (IndexError, ValueError):CODE
HIGHcore/common.py477except (IndexError, ValueError):CODE
HIGHcore/common.py574except Exception:CODE
HIGHcore/common.py733except Exception:CODE
HIGHcore/common.py608except re.error:CODE
HIGHcore/common.py715except Exception:CODE
HIGHcore/settings.py385except Exception:CODE
HIGHcore/settings.py392except Exception:CODE
HIGHcore/settings.py399except Exception:CODE
HIGHcore/settings.py406except Exception:CODE
HIGHcore/settings.py414except Exception:CODE
HIGHcore/settings.py420except Exception:CODE
HIGHcore/settings.py426except Exception:CODE
HIGHcore/settings.py433except Exception:CODE
HIGHcore/provenance.py124except Exception:CODE
HIGHcore/provenance.py128except Exception:CODE
19 more matches not shown…
Cross-File Repetition63 hits · 315 pts
SeverityFileLineSnippetContext
HIGHserver.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/update.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/geo.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/enums.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/trailsbin.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/compat.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/index.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/log.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/logfmt.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/httpd.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/__init__.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/addr.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/assemble.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/ignore.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/common.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/custom_trails.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/settings.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/attribdict.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/provenance.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/testing.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/trailsdict.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/alert.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHcore/meta.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHtests/test_index.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/rutgers.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/ciarmy.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/policeman.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/atmos.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/fareit.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/blocklist.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/abuseipdb.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/viriback.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/greensnow.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/myip.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/emergingthreatsdns.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/sslproxies.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/blackbook.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/binarydefense.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/dshieldip.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/__init__.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/minerchk.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/sslblja3.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/bruteforceblocker.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/torprojectnodes.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/emergingthreatsbot.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/torproject.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/socksproxy.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/cybercrimetracker.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/emergingthreatscip.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/alienvault.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/ipnoise.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/bitcoinnodes.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/turris.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/feodotrackerip.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/sslblcert.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/gpfcomics.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/botscout.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/scriptzteam.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/blackholemonster.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
HIGHfeeds/trickbot.py0copyright (c) 2014-present maltrail developers (https://github.com/stamparm/maltrail/) see the file 'license' for copyinSTRING
3 more matches not shown…
Excessive Try-Catch Wrapping175 hits · 165 pts
SeverityFileLineSnippetContext
LOWserver.py150 except Exception:CODE
LOWserver.py203 except Exception:CODE
LOWserver.py222 except Exception:CODE
MEDIUMcore/update.py242def _cached_sha():CODE
MEDIUMcore/update.py838def update_ipcat(force=False):CODE
LOW⚡core/update.py991 except Exception:CODE
LOW⚡core/update.py993 except Exception as ex:CODE
LOW⚡core/update.py1001 except Exception as ex:CODE
LOWcore/update.py108 except Exception as ex:CODE
LOWcore/update.py191 except Exception as ex:CODE
LOWcore/update.py196 except Exception:CODE
LOWcore/update.py276 except Exception as ex:CODE
LOWcore/update.py359 except Exception as ex:CODE
LOWcore/update.py397 except Exception as ex:CODE
LOWcore/update.py433 except Exception:CODE
LOWcore/update.py535 except Exception as ex:CODE
LOWcore/update.py541 except Exception:CODE
LOWcore/update.py652 except Exception:CODE
LOWcore/update.py743 except Exception as ex:CODE
LOWcore/update.py751 except Exception:CODE
LOWcore/update.py779 except Exception as ex:CODE
LOWcore/update.py798 except Exception as ex:CODE
LOWcore/update.py828 except Exception as ex:CODE
LOWcore/update.py842 except Exception as ex:CODE
LOWcore/update.py869 except Exception as ex:CODE
LOWcore/update.py896 except Exception as ex:CODE
LOWcore/update.py960 except Exception as ex:CODE
LOWcore/geo.py78 except Exception:CODE
LOWcore/geo.py94 except Exception:CODE
LOWcore/geo.py124 except Exception:CODE
LOWcore/geo.py153 except Exception:CODE
LOWcore/trailsbin.py124 except Exception:CODE
LOWcore/log.py249 except Exception:STRING
LOWcore/log.py660 except Exception:CODE
LOWcore/log.py700 except Exception:CODE
MEDIUMcore/log.py665def handle(self):CODE
LOWcore/logfmt.py83 except Exception:CODE
LOWcore/logfmt.py92 except Exception:CODE
LOWcore/logfmt.py116 except Exception:CODE
LOWcore/logfmt.py138 except Exception:CODE
MEDIUMcore/httpd.py1018def process_request_thread(self, request, client_address):CODE
MEDIUMcore/httpd.py1047def shutdown_request(self, request):CODE
MEDIUMcore/httpd.py1213def do_POST(self):CODE
LOWcore/httpd.py95except Exception:CODE
LOWcore/httpd.py131 except Exception:CODE
LOWcore/httpd.py138 except Exception:CODE
LOWcore/httpd.py200 except Exception:CODE
LOWcore/httpd.py268 except Exception:CODE
LOWcore/httpd.py299 except Exception:CODE
LOWcore/httpd.py530 except Exception:CODE
LOWcore/httpd.py543 except Exception:CODE
LOWcore/httpd.py607 except Exception:CODE
LOWcore/httpd.py644 except Exception:CODE
LOWcore/httpd.py816 except Exception:CODE
LOWcore/httpd.py1005 except Exception:CODE
LOWcore/httpd.py1012 except Exception:CODE
LOWcore/httpd.py1032 except Exception:CODE
LOWcore/httpd.py1050 except Exception:CODE
LOWcore/httpd.py1210 except Exception:CODE
LOWcore/httpd.py1275 except Exception:CODE
115 more matches not shown…
Over-Commented Block160 hits · 158 pts
SeverityFileLineSnippetContext
LOWinstall.sh1#!/bin/shCOMMENT
LOWinstall.sh421 fiCOMMENT
LOWruff.toml1# Python linting, so the server is held to a comparable bar to the sensor's clippy -D warnings.COMMENT
LOWruff.toml41# documented CPython thread-safety workaround, and a linter cannot know that).COMMENT
LOWdocker/entrypoint.sh1#!/bin/shCOMMENT
LOWdocker/entrypoint.sh101 chown "$want_uid:$want_gid" "$d" 2>/dev/null || :COMMENT
LOWdocker/tests/entrypoint_test.sh1#!/usr/bin/env bashCOMMENT
LOWcore/geo.py21from core.settings import GEO_IP2CC6_BUNDLED_FILECOMMENT
LOWcore/trailsbin.py1#!/usr/bin/env pythonCOMMENT
LOWcore/log.py41from collections import OrderedDictCOMMENT
LOWcore/log.py441 if config.SHOW_DEBUG:COMMENT
LOWcore/log.py461# third - which is far more than compressing the payload could ever save: gzip on a single event ofCOMMENT
LOWcore/log.py641 # 500/s 0% loss 5,000/s 0% lossCOMMENT
LOWcore/log.py681 else: # Note: naive format without timestamp in frontCOMMENT
LOWcore/logfmt.py1#!/usr/bin/env pythonCOMMENT
LOWcore/httpd.py1141 self.send_header(HTTP_HEADER.CONTENT_SECURITY_POLICY, "default-src 'self'; style-src 'self' 'unsCOMMENT
LOWcore/httpd.py1601 return payloadCOMMENT
LOWcore/httpd.py1661COMMENT
LOWcore/httpd.py2061COMMENT
LOWcore/assemble.py221# NO COMMAS anywhere in here. A third-party CSV reader that accepts any three-field row - whichCOMMENT
LOWcore/assemble.py261 sys.exit("[!] '%s' yielded no trails - wrong directory, or an empty checkout" % options.root)COMMENT
LOWcore/ignore.py1#!/usr/bin/env pythonCOMMENT
LOWcore/custom_trails.py21# This used to be a directory inside the checkout (trails/custom/) that pretended to be a feed: anCOMMENT
LOWcore/settings.py181# --- DNS tunnelling -------------------------------------------------------------------------COMMENT
LOWcore/settings.py201# and URL-reputation services, DNS blocklists, CDNs and object stores. Their normal operation isCOMMENT
LOWcore/settings.py261# 'USE_CONDESND_STORAGE' looks configured while disabling its feature entirely.COMMENT
LOWcore/provenance.py1#!/usr/bin/env pythonCOMMENT
LOWcore/alert.py21from core.settings import ALERT_SEVERITY_ORDERCOMMENT
LOWcore/meta.py21COMMENT
LOWtests/run.sh1#!/usr/bin/env bashCOMMENT
LOWtests/canaries.txt1# Domains and addresses that must never be flagged by a static trail.COMMENT
LOWtests/canaries-allow.txt1# Trails that match a popular domain and are RIGHT anyway.COMMENT
LOWtests/install/run.sh1#!/usr/bin/env bashCOMMENT
LOWtests/install/soname.sh1#!/usr/bin/env bashCOMMENT
LOWtests/install/assert.sh1#!/bin/shCOMMENT
LOWtests/install/assert.sh201 if maltrail-sensor -c "$CONF" -T >/tmp/selftest.log 2>&1; thenCOMMENT
LOWhtml/js/main.js101 // severities for one event. So the page is served the regex itself (<meta name="mt-severity">,COMMENT
LOWhtml/js/main.js1821 var tk = peek();COMMENT
LOWsensor/Cargo.toml21# TPACKET_V3 mmap ring on Linux.COMMENT
LOWsensor/Cargo.toml41# digest that can match them. It is never used to authenticate anything.COMMENT
LOWsensor/deny.toml1# cargo-deny: the checks `cargo audit` does not do.COMMENT
LOWsensor/build.rs1//! Turn a missing libpcap into a sentence somebody can act on.COMMENT
LOWsensor/tools/check_redistribution.py61# door. EC2, EBS, WORKSPACES and the rest are single-tenant and stay eligible for listing. GCP'sCOMMENT
LOWsensor/tools/check_trails.py261 # A dotless key is a bare-TLD trail (the `.xyz` entries in suspicious/domain.txt, with theCOMMENT
LOWsensor/tools/check_trails.py281 # leading dot - `.tk`, `.xyz`, `.cf` - which the loader strips and which this reads as "yes,COMMENT
LOWsensor/tools/check_trails.py401 if verdict:COMMENT
LOWsensor/tools/gen_corpus.py601 # 34. Two DIFFERENT DNS queries back-to-back on one socket in one second. sensor.py's burstCOMMENT
LOWsensor/tools/gen_corpus.py801 # A host/path trail whose BARE PATH is also a trail in its own right never produces theCOMMENT
LOWsensor/tools/check.sh1#!/bin/shCOMMENT
LOWsensor/tools/check.sh41echo "== generated files are in sync with core/settings.py and data/ua.txt =="COMMENT
LOWsensor/tools/check_windows.sh1#!/bin/shCOMMENT
LOWsensor/tools/check_windows.sh21# binary over the entire pcap corpus.COMMENT
LOWsensor/tests/fuzz_extended.rs1//! Extended, seed-randomised fuzzing of the same entry points `fuzz_parsers.rs` uses.COMMENT
LOWsensor/tests/loader_parity.rs1//! Differential loader test: the Rust loader vs `core.common.load_trails()`, on the REALCOMMENT
LOWsensor/tests/capture_live.rs1//! Live-capture and PACKET_FANOUT tests.COMMENT
LOWsensor/tests/capture_live.rs161COMMENT
LOWsensor/tests/capture_live.rs221 p.extend_from_slice(&((8 + payload.len()) as u16).to_be_bytes());COMMENT
LOWsensor/tests/trails.rs441 let (db2, _) = trails::load(&second, &wl).unwrap();COMMENT
LOWsensor/tests/bounded_state.rs1//! Bounded state (ROADMAP Gate 1.5).COMMENT
LOWsensor/tests/fail_closed.rs181/// A capture that OPENS but cannot be read must not replay to "success" with zero packets.COMMENT
100 more matches not shown…
Cross-Language Confusion24 hits · 151 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_frontend.py353 else if (ch === " ") { row.push(cur); cur = ""; }CODE
HIGH⚡tests/test_frontend.py356 row.push(cur);CODE
HIGH⚡tests/test_frontend.py357 out.push(row);CODE
HIGH⚡tests/test_frontend.py823 var s = (t.sev || 1) * 1000;CODE
HIGH⚡tests/test_frontend.py827 s += Math.min(90, Math.log(1 + (t.count || 1)) * 15);CODE
HIGH⚡tests/test_frontend.py842 all.push({ sev: s, type: TYPES[ti], info: INFOS[ii], trail: TRAILS[tr], count: count });CODE
HIGH⚡tests/test_frontend.py846 if (riskOf(t) !== want) bad.push("first call " + JSON.stringify(t) + " " + riskOf(t) + " != " + want);CODE
HIGH⚡tests/test_frontend.py847 if (riskOf(t) !== want) bad.push("memo hit differs " + JSON.stringify(t));CODE
HIGH⚡tests/test_frontend.py851 if (riskOf(t) !== want2) bad.push("after count change " + JSON.stringify(t) + " " + riskOf(t) + " != " + want2);CODE
HIGH⚡tests/test_frontend.py857for (var i = 0; i < a.length; i++) if (a[i] !== b[i]) { bad.push("order diverges at " + i); break; }CODE
HIGH⚡tests/test_frontend.py964 "0.0.0.0", "1.2.3.4", "", null, undefined, "not-an-ip", "2001:db8::1",CODE
HIGH⚡tests/test_frontend.py969 if (ipKey(c) !== want) bad.push("miss " + JSON.stringify(c) + " " + ipKey(c) + " != " + want);CODE
HIGH⚡tests/test_frontend.py970 if (ipKey(c) !== want) bad.push("hit " + JSON.stringify(c) + " differs on the cached call");CODE
HIGH⚡tests/test_frontend.py974for (var a = 0; a < 12; a++) for (var b = 0; b < 12; b++) ips.push(a + "." + b + "." + (b * 7 % 256) + "." + (a * 13 % 2CODE
HIGH⚡tests/test_frontend.py975ips.push("8.8.8.8", "10.0.0.1", "", "x");CODE
HIGH⚡tests/test_frontend.py978for (var i = 0; i < m.length; i++) if (m[i] !== r[i]) { bad.push("order diverges at " + i); break; }CODE
HIGHtests/test_frontend.py530function portDir() { return null; } function hay(t) { return (t.info + " " + t.trail).toLowerCase(); }CODE
HIGHtests/test_frontend.py582for (var i = 0; i < 10; i++) slices.push({ k: "threat" + i, v: 100 - i });CODE
HIGHtests/test_frontend.py649 if (i && v <= t[i - 1]) die("not ascending");CODE
HIGHtests/test_frontend.py1106for (var i = 0; i < 4000; i++) rows.push({CODE
HIGHtests/test_frontend.py1123 if (a !== b) bad.push(k + ' dir=' + dir);CODE
HIGH⚡tests/test_frontend.py198 ranks = self._ranks('var document = { querySelector: function () { return null; } };')STRING
HIGH⚡tests/test_frontend.py1049 m = re.search(r"if \(agg && seen - lastRender >= RENDER_EVERY[^{]*\{", self.js, re.S)STRING
HIGHtests/test_severity_parity.py112%s.forEach(function (c) { out.push(NAMES[severityOf(c[0], c[1])]); });CODE
Decorative Section Separators29 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMinstall.sh154# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh156# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh263# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh265# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh313# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh315# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh506# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh508# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh665# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh667# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh749# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh751# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMinstall.sh781# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py182# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py184# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/quic_sni.py235# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py104# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py106# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py275# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py277# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py380# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡core/tls_intel.py382# ---------------------------------------------------------------------------COMMENT
MEDIUMsensor/tools/check_windows.sh5# ---------------COMMENT
MEDIUMsensor/tools/check_windows.sh18# ------------------------------------COMMENT
Deep Nesting101 hits · 78 pts
SeverityFileLineSnippetContext
LOWcore/update.py200CODE
LOWcore/update.py385CODE
LOWcore/update.py838CODE
LOWcore/update.py949CODE
LOWcore/update.py1007CODE
LOWcore/index.py139CODE
LOWcore/log.py78CODE
LOWcore/log.py143CODE
LOWcore/log.py281CODE
LOWcore/log.py395CODE
LOWcore/logfmt.py38CODE
LOWcore/httpd.py151CODE
LOWcore/httpd.py502CODE
LOWcore/httpd.py549CODE
LOWcore/httpd.py822CODE
LOWcore/httpd.py966CODE
LOWcore/httpd.py1056CODE
LOWcore/httpd.py1228CODE
LOWcore/httpd.py1279CODE
LOWcore/httpd.py1386CODE
LOWcore/httpd.py1662CODE
LOWcore/httpd.py1942CODE
LOWcore/httpd.py2001CODE
LOWcore/httpd.py2058CODE
LOWcore/httpd.py2177CODE
LOWcore/httpd.py2201CODE
LOWcore/httpd.py2329CODE
LOWcore/httpd.py2550CODE
LOWcore/httpd.py2650CODE
LOWcore/httpd.py2742CODE
LOWcore/httpd.py2857CODE
LOWcore/addr.py109CODE
LOWcore/quic_sni.py338CODE
LOWcore/quic_sni.py377CODE
LOWcore/assemble.py109CODE
LOWcore/ignore.py58CODE
LOWcore/common.py70CODE
LOWcore/common.py173CODE
LOWcore/common.py249CODE
LOWcore/common.py400CODE
LOWcore/common.py464CODE
LOWcore/common.py513CODE
LOWcore/common.py542CODE
LOWcore/common.py583CODE
LOWcore/common.py756CODE
LOWcore/common.py425CODE
LOWcore/custom_trails.py34CODE
LOWcore/settings.py438CODE
LOWcore/settings.py618CODE
LOWcore/settings.py631CODE
LOWcore/settings.py651CODE
LOWcore/testing.py410CODE
LOWcore/testing.py550CODE
LOWcore/tls_intel.py118CODE
LOWcore/tls_intel.py326CODE
LOWcore/meta.py213CODE
LOWtests/test_quic_sni.py230CODE
LOWtests/test_frontend.py1161CODE
LOWtests/test_frontend.py1307CODE
LOWtests/test_tls_intel.py204CODE
41 more matches not shown…
Unused Imports43 hits · 36 pts
SeverityFileLineSnippetContext
LOWserver.py16CODE
LOWserver.py37CODE
LOWcore/update.py67CODE
LOWcore/update.py68CODE
LOWcore/update.py69CODE
LOWcore/update.py70CODE
LOWcore/geo.py12CODE
LOWcore/trailsbin.py25CODE
LOWcore/httpd.py21CODE
LOWcore/httpd.py79CODE
LOWcore/httpd.py80CODE
LOWcore/httpd.py81CODE
LOWcore/httpd.py82CODE
LOWcore/httpd.py88CODE
LOWcore/quic_sni.py23CODE
LOWcore/assemble.py8CODE
LOWcore/ignore.py22CODE
LOWcore/common.py48CODE
LOWcore/common.py49CODE
LOWcore/common.py50CODE
LOWcore/common.py51CODE
LOWcore/settings.py24CODE
LOWcore/settings.py25CODE
LOWcore/settings.py26CODE
LOWcore/settings.py27CODE
LOWcore/trailsdict.py8CODE
LOWcore/alert.py8CODE
LOWcore/tls_intel.py20CODE
LOWcore/tls_intel.py21CODE
LOWtests/test_alert.py11CODE
LOWtests/test_adversarial.py13CODE
LOWtests/test_refs.py12CODE
LOWtests/test_refs.py16CODE
LOWtests/test_config.py123CODE
LOWtests/test_assemble.py139CODE
LOWtests/test_assemble.py139CODE
LOWtests/install/windows.py19CODE
LOWsensor/tools/check_redistribution.py32CODE
LOWsensor/tools/gen_vectors.py19CODE
LOWsensor/tools/gen_vectors.py30CODE
LOWsensor/tools/gen_vectors.py31CODE
LOWsensor/tools/gen_vectors.py32CODE
LOWsensor/tools/gen_vectors.py33CODE
AI Slop Vocabulary10 hits · 29 pts
SeverityFileLineSnippetContext
MEDIUMdocker/tests/entrypoint_test.sh13# It builds a small harness image rather than the real one: the entrypoint is the thing underCOMMENT
MEDIUMdocker/tests/entrypoint_test.sh15# harness copies the same entrypoint into the same directory layout, with a stub namedCOMMENT
MEDIUMsensor/tools/gen_corpus.py225# mode BOTH sensors stay silent here; the harness asserts these with --timestamps pcap.COMMENT
MEDIUMsensor/tools/gen_corpus.py242# breaks the harness instead of quietly restoring "parity" with a detection hole.COMMENT
MEDIUM.github/workflows/compat.yml3# The README claimed six platforms; the harness covered five, and none of the result was published.COMMENT
MEDIUM.github/workflows/ci.yml44 # disagree in a way the parity harness structurally cannot see, because each is internallyCOMMENT
MEDIUM.github/workflows/ci.yml360 # actionlint only reaches the scripts embedded in workflows. install.sh, the compat harnessCOMMENT
MEDIUM.github/workflows/ci.yml362 # them - `ulimit -v` in a file declaring #!/bin/sh meant the test harness's memory capCOMMENT
MEDIUM.github/workflows/ci.yml508 # This runs against a real daemon and takes about a minute: it builds a small harness imageCOMMENT
MEDIUM.github/workflows/ci.yml530 fetch-depth: 0 # the harness serves the clone from this checkout over file://CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsensor/src/addr.rs142 // Step 1: re.findall("(?:0000:)+", address) -> maximal runs of the 5-byte unitCOMMENT
LOWsensor/src/addr.rs179 // Step 2: re.sub(r"(\A|:)0+(\w)", r"\g<1>\g<2>", address)COMMENT
LOWsensor/src/addr.rs223 // Step 3: a collapsed leading run yields a single ':' -> make it '::'.COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsensor/src/addr.rs142 // Step 1: re.findall("(?:0000:)+", address) -> maximal runs of the 5-byte unitCOMMENT
LOWsensor/src/addr.rs179 // Step 2: re.sub(r"(\A|:)0+(\w)", r"\g<1>\g<2>", address)COMMENT
LOWsensor/src/addr.rs223 // Step 3: a collapsed leading run yields a single ':' -> make it '::'.COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_tls_intel.py23CODE
LOWsensor/tools/gen_ja_vectors.py36CODE