Daemon to ban hosts that cause multiple authentication errors
This report presents the forensic synthetic code analysis of fail2ban/fail2ban, a Python project with 18,173 GitHub stars. SynthScan v2.0 examined 35,737 lines of code across 102 source files, recording 510 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 23.0 places this repository in the Moderate AI signal 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 510 distinct pattern matches across 15 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 | setup.py | 5 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | config/action.d/smtp.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/version.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/protocol.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/__init__.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/setup.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/exceptions.py | 6 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/helpers.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/tickettestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/fail2banregextestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/clientreadertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/sockettestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/fail2banclienttestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/servertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/observertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/__init__.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/filtertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/misctestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/failmanagertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/databasetestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/utils.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/clientbeautifiertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/actiontestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/actiontestcase.py | 530 | # Create a nasty script which would hang there for a while | COMMENT |
| MEDIUM | fail2ban/tests/dummyjail.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/actionstestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/datedetectortestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/samplestestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/banmanagertestcase.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/action_d/__init__.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/tests/action_d/test_smtp.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/observer.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/datetemplate.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/failregex.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/failregex.py | 118 | # This class represents a regular expression with its compiled version. | COMMENT |
| MEDIUM | fail2ban/server/failregex.py | 412 | # This class represents a regular expression with its compiled version. | COMMENT |
| MEDIUM | fail2ban/server/server.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/ticket.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/jailthread.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/strptime.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/database.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/filterpoll.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/filterpoll.py | 51 | # Initialize the filter object with default values. | COMMENT |
| MEDIUM | fail2ban/server/filterpoll.py | 91 | # This function is the main loop of the thread. It checks if the | COMMENT |
| MEDIUM | fail2ban/server/actions.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/__init__.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/jail.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/action.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/action.py | 48 | # Create a lock for running system commands | COMMENT |
| MEDIUM | fail2ban/server/filtersystemd.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/filtersystemd.py | 97 | # Initialize the filter object with default values. | COMMENT |
| MEDIUM | fail2ban/server/utils.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/datedetector.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/jails.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/transmitter.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/filter.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/filter.py | 62 | # Initialize the filter object with default values. | COMMENT |
| MEDIUM | fail2ban/server/filter.py | 412 | # This function is the main loop of the thread. It checks if the | COMMENT |
| MEDIUM | fail2ban/server/mytime.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| MEDIUM | fail2ban/server/asyncserver.py | 4 | # This file is part of Fail2Ban. | COMMENT |
| 26 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fail2ban/helpers.py | 213 | except Exception as e: # pragma: no cover - unreachable if log-handler safe in this python-version | CODE |
| MEDIUM | fail2ban/helpers.py | 72 | def uni_decode(x, enc=PREFER_ENC, errors='strict'): | CODE |
| LOW | fail2ban/tests/clientreadertestcase.py | 646 | except Exception as e: # pragma: no cover - failed if reachable | CODE |
| LOW | fail2ban/tests/clientreadertestcase.py | 792 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/tests/clientreadertestcase.py | 1050 | except Exception as e: # pragma: no cover | STRING |
| LOW | fail2ban/tests/sockettestcase.py | 109 | except Exception as e: | CODE |
| MEDIUM | fail2ban/tests/sockettestcase.py | 106 | def _serverSocket(self): | CODE |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 259 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 302 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 369 | except Exception as e: # pragma: no cover | CODE |
| MEDIUM | fail2ban/tests/fail2banclienttestcase.py | 247 | def _inherited_log(startparams): | CODE |
| LOW | fail2ban/tests/servertestcase.py | 1287 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1692 | except Exception as e: | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1702 | except Exception as e: | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 2189 | except Exception as e: | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 2506 | except Exception as e: # pragma: no cover | CODE |
| MEDIUM | fail2ban/tests/filtertestcase.py | 1687 | def _state(*args): | CODE |
| MEDIUM | fail2ban/tests/filtertestcase.py | 1696 | def _inoper(): | CODE |
| MEDIUM | fail2ban/tests/filtertestcase.py | 2178 | def _TestCacheStr2IP(forw=True, result=[], random=False): | CODE |
| LOW | fail2ban/tests/utils.py | 589 | except Exception as e: | CODE |
| LOW | fail2ban/tests/utils.py | 682 | except Exception as e: # pragma: no cover - normally unreachable | CODE |
| MEDIUM | fail2ban/tests/utils.py | 675 | def __write(self, record): | CODE |
| MEDIUM | fail2ban/server/observer.py | 84 | def __getitem__(self, i): | CODE |
| LOW | fail2ban/server/observer.py | 222 | except Exception as e: | CODE |
| LOW | fail2ban/server/observer.py | 244 | except Exception as e: | CODE |
| LOW | fail2ban/server/observer.py | 413 | except Exception as e: | CODE |
| LOW | fail2ban/server/observer.py | 463 | except Exception as e: | CODE |
| LOW | fail2ban/server/observer.py | 506 | except Exception as e: | CODE |
| LOW | fail2ban/server/observer.py | 521 | except Exception as e: | CODE |
| LOW | fail2ban/server/datetemplate.py | 161 | except Exception as e: | STRING |
| LOW | fail2ban/server/datetemplate.py | 331 | except Exception as e: | STRING |
| LOW | fail2ban/server/jailthread.py | 72 | except Exception as e: | CODE |
| MEDIUM | fail2ban/server/jailthread.py | 67 | def run_with_except_hook(*args, **kwargs): | CODE |
| LOW | fail2ban/server/database.py | 52 | except Exception as e: | CODE |
| LOW | fail2ban/server/database.py | 61 | except Exception as e: | CODE |
| LOW | fail2ban/server/database.py | 293 | except Exception as e: | CODE |
| LOW | fail2ban/server/database.py | 388 | except Exception as e: | CODE |
| MEDIUM | fail2ban/server/database.py | 48 | def _json_dumps_safe(x): | CODE |
| MEDIUM | fail2ban/server/database.py | 58 | def _json_loads_safe(x): | CODE |
| MEDIUM | fail2ban/server/database.py | 261 | def _dbBackupFilename(self): | CODE |
| LOW | fail2ban/server/filterpoll.py | 119 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/filterpoll.py | 152 | except Exception as e: | CODE |
| MEDIUM | fail2ban/server/filterpoll.py | 135 | def isModified(self, filename): | CODE |
| LOW | fail2ban/server/actions.py | 311 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 334 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 361 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/actions.py | 456 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 515 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 586 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 615 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 660 | except Exception as e: | CODE |
| LOW | fail2ban/server/actions.py | 714 | except Exception as e: | CODE |
| LOW | fail2ban/server/jail.py | 310 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/jail.py | 313 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/jail.py | 344 | except Exception as e: | CODE |
| LOW | fail2ban/server/filtersystemd.py | 513 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/filtersystemd.py | 535 | except Exception as e: # pragma: no cover | CODE |
| MEDIUM | fail2ban/server/filtersystemd.py | 530 | def closeJournal(self): | CODE |
| LOW | fail2ban/server/transmitter.py | 60 | except Exception as e: | CODE |
| MEDIUM | fail2ban/server/filter.py | 196 | def delFailRegex(self, index=None): | CODE |
| 47 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 72 | CODE | |
| LOW | fail2ban/helpers.py | 195 | CODE | |
| LOW | fail2ban/helpers.py | 373 | CODE | |
| LOW | fail2ban/compat/asyncore.py | 553 | CODE | |
| LOW | fail2ban/compat/asynchat.py | 117 | CODE | |
| LOW | fail2ban/tests/clientreadertestcase.py | 893 | CODE | |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 733 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 979 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 1247 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 1333 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 2274 | CODE | |
| LOW | fail2ban/tests/filtertestcase.py | 151 | CODE | |
| LOW | fail2ban/tests/filtertestcase.py | 685 | CODE | |
| LOW | fail2ban/tests/filtertestcase.py | 1964 | CODE | |
| LOW | fail2ban/tests/filtertestcase.py | 2167 | CODE | |
| LOW | fail2ban/tests/failmanagertestcase.py | 250 | CODE | |
| LOW | fail2ban/tests/utils.py | 364 | CODE | |
| LOW | fail2ban/tests/utils.py | 544 | CODE | |
| LOW | fail2ban/tests/utils.py | 562 | CODE | |
| LOW | fail2ban/tests/utils.py | 774 | CODE | |
| LOW | fail2ban/tests/samplestestcase.py | 142 | CODE | |
| LOW | fail2ban/tests/samplestestcase.py | 85 | CODE | |
| LOW | fail2ban/tests/samplestestcase.py | 143 | CODE | |
| LOW | fail2ban/server/observer.py | 173 | CODE | |
| LOW | fail2ban/server/observer.py | 426 | CODE | |
| LOW | fail2ban/server/failregex.py | 129 | CODE | |
| LOW | fail2ban/server/failregex.py | 245 | CODE | |
| LOW | fail2ban/server/server.py | 296 | CODE | |
| LOW | fail2ban/server/server.py | 545 | CODE | |
| LOW | fail2ban/server/server.py | 671 | CODE | |
| LOW | fail2ban/server/server.py | 855 | CODE | |
| LOW | fail2ban/server/strptime.py | 73 | CODE | |
| LOW | fail2ban/server/strptime.py | 189 | CODE | |
| LOW | fail2ban/server/strptime.py | 74 | CODE | |
| LOW | fail2ban/server/strptime.py | 80 | CODE | |
| LOW | fail2ban/server/database.py | 676 | CODE | |
| LOW | fail2ban/server/database.py | 791 | CODE | |
| LOW | fail2ban/server/filterpoll.py | 95 | CODE | |
| LOW | fail2ban/server/actions.py | 151 | CODE | |
| LOW | fail2ban/server/actions.py | 245 | CODE | |
| LOW | fail2ban/server/actions.py | 319 | CODE | |
| LOW | fail2ban/server/actions.py | 480 | CODE | |
| LOW | fail2ban/server/actions.py | 636 | CODE | |
| LOW | fail2ban/server/jail.py | 281 | CODE | |
| LOW | fail2ban/server/jail.py | 329 | CODE | |
| LOW | fail2ban/server/action.py | 114 | CODE | |
| LOW | fail2ban/server/action.py | 417 | CODE | |
| LOW | fail2ban/server/action.py | 443 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 112 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 312 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 373 | CODE | |
| LOW | fail2ban/server/utils.py | 149 | CODE | |
| LOW | fail2ban/server/utils.py | 90 | CODE | |
| LOW | fail2ban/server/datedetector.py | 44 | CODE | |
| LOW | fail2ban/server/datedetector.py | 258 | CODE | |
| LOW | fail2ban/server/datedetector.py | 327 | CODE | |
| LOW | fail2ban/server/datedetector.py | 475 | CODE | |
| LOW | fail2ban/server/transmitter.py | 72 | CODE | |
| LOW | fail2ban/server/transmitter.py | 156 | CODE | |
| LOW | fail2ban/server/transmitter.py | 412 | CODE | |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | config/action.d/smtp.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/version.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/protocol.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/__init__.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/setup.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/exceptions.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/helpers.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/compat/asyncore.py | 1 | # -*- Mode: Python -*- | COMMENT |
| LOW | fail2ban/compat/asynchat.py | 1 | # -*- Mode: Python; tab-width: 4 -*- | COMMENT |
| LOW | fail2ban/tests/tickettestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/fail2banregextestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/clientreadertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/sockettestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/servertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/observertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/__init__.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/filtertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/misctestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/failmanagertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/databasetestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/utils.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/clientbeautifiertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/actiontestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/dummyjail.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/actionstestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/datedetectortestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/datedetectortestcase.py | 581 | self.assertEqual(date, None) | COMMENT |
| LOW | fail2ban/tests/samplestestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/banmanagertestcase.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/action_d/__init__.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/tests/action_d/test_smtp.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/observer.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/datetemplate.py | 1 | # emacs: -*- mode: python; coding: utf-8; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/failregex.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/failregex.py | 221 | ## | COMMENT |
| LOW | fail2ban/server/failregex.py | 401 | # The order of this tuple is important while searching for failure-id | COMMENT |
| LOW | fail2ban/server/server.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/server.py | 881 | # When the first child terminates, all processes in the second child | COMMENT |
| LOW | fail2ban/server/server.py | 901 | COMMENT | |
| LOW | fail2ban/server/ticket.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/jailthread.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/strptime.py | 1 | # emacs: -*- mode: python; coding: utf-8; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/database.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/filterpoll.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/actions.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/__init__.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/jail.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/action.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/filtersystemd.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/filtersystemd.py | 81 | if os.geteuid() != 0: | COMMENT |
| LOW | fail2ban/server/utils.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/datedetector.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/datedetector.py | 121 | template2.weight = 100.0 | COMMENT |
| LOW | fail2ban/server/datedetector.py | 141 | # (See http://bugs.debian.org/537610) | COMMENT |
| LOW | fail2ban/server/jails.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/transmitter.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/filter.py | 1 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- | COMMENT |
| LOW | fail2ban/server/filter.py | 101 | ## Default or preferred encoding (to decode bytes from file or journal): | COMMENT |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fail2ban/tests/servertestcase.py | 1361 | "`{ nft flush set inet f2b-table addr-set-j-w-nft-mp 2> /dev/null; } || ", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1362 | "`{ nft flush set inet f2b-table addr6-set-j-w-nft-mp 2> /dev/null; } || ", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1407 | "`{ nft flush set inet f2b-table addr-set-j-w-nft-ap 2> /dev/null; } || ", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1408 | "`{ nft flush set inet f2b-table addr6-set-j-w-nft-ap 2> /dev/null; } || ", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1489 | "{ iptables -w -N f2b-j-w-iptables-mp || true; iptables -w -A f2b-j-w-iptables-mp -j RETURN; }`", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1495 | "{ ip6tables -w -N f2b-j-w-iptables-mp || true; ip6tables -w -A f2b-j-w-iptables-mp -j RETURN; }`", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1540 | "{ iptables -w -N f2b-j-w-iptables-ap || true; iptables -w -A f2b-j-w-iptables-ap -j RETURN; }`", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1546 | "{ ip6tables -w -N f2b-j-w-iptables-ap || true; ip6tables -w -A f2b-j-w-iptables-ap -j RETURN; }`", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1789 | "{ iptables -w -N f2b-j-w-iptables || true; iptables -w -A f2b-j-w-iptables -j RETURN; }", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1795 | "{ ip6tables -w -N f2b-j-w-iptables || true; ip6tables -w -A f2b-j-w-iptables -j RETURN; }", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1840 | "{ iptables -w -N f2b-j-w-iptables-new || true; iptables -w -A f2b-j-w-iptables-new -j RETURN; }`", | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1846 | "{ ip6tables -w -N f2b-j-w-iptables-new || true; ip6tables -w -A f2b-j-w-iptables-new -j RETURN; }`", | CODE |
| HIGH⚡ | fail2ban/server/asyncserver.py | 119 | self.push(message + CSPROTO.END) | CODE |
| HIGH⚡ | fail2ban/server/asyncserver.py | 126 | self.push(message + CSPROTO.END) | CODE |
| HIGH | fail2ban/server/asyncserver.py | 138 | self.push(message + CSPROTO.END) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fail2ban/compat/asyncore.py | 5 | # ====================================================================== | COMMENT |
| MEDIUM | fail2ban/compat/asyncore.py | 26 | # ====================================================================== | COMMENT |
| MEDIUM⚡ | fail2ban/compat/asyncore.py | 302 | # ================================================== | COMMENT |
| MEDIUM⚡ | fail2ban/compat/asyncore.py | 306 | # ================================================== | COMMENT |
| MEDIUM⚡ | fail2ban/compat/asyncore.py | 314 | # ================================================== | COMMENT |
| MEDIUM⚡ | fail2ban/compat/asyncore.py | 316 | # ================================================== | COMMENT |
| MEDIUM | fail2ban/compat/asyncore.py | 501 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | fail2ban/compat/asyncore.py | 504 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | fail2ban/compat/asyncore.py | 529 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | fail2ban/compat/asyncore.py | 531 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | fail2ban/compat/asynchat.py | 5 | # ====================================================================== | COMMENT |
| MEDIUM | fail2ban/compat/asynchat.py | 26 | # ====================================================================== | COMMENT |
| MEDIUM | fail2ban/server/observer.py | 349 | ## ----------------------------------------- | COMMENT |
| MEDIUM | fail2ban/server/observer.py | 351 | ## ----------------------------------------- | COMMENT |
| MEDIUM | fail2ban/server/observer.py | 363 | ## ----------------------------------------- | COMMENT |
| MEDIUM | fail2ban/server/observer.py | 365 | ## ----------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fail2ban/helpers.py | 34 | CODE | |
| LOW | fail2ban/tests/clientreadertestcase.py | 1049 | CODE | |
| LOW | fail2ban/tests/sockettestcase.py | 31 | CODE | |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 46 | CODE | |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 638 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 679 | CODE | |
| LOW | fail2ban/tests/servertestcase.py | 680 | CODE | |
| LOW | fail2ban/tests/databasetestcase.py | 26 | CODE | |
| LOW | fail2ban/tests/databasetestcase.py | 35 | CODE | |
| LOW | fail2ban/tests/utils.py | 41 | CODE | |
| LOW | fail2ban/tests/utils.py | 46 | CODE | |
| LOW | fail2ban/tests/utils.py | 429 | CODE | |
| LOW | fail2ban/tests/actionstestcase.py | 29 | CODE | |
| LOW | fail2ban/tests/samplestestcase.py | 30 | CODE | |
| LOW | fail2ban/tests/action_d/test_smtp.py | 184 | CODE | |
| LOW | fail2ban/server/observer.py | 30 | CODE | |
| LOW | fail2ban/server/observer.py | 31 | CODE | |
| LOW | fail2ban/server/observer.py | 31 | CODE | |
| LOW | fail2ban/server/observer.py | 31 | CODE | |
| LOW | fail2ban/server/observer.py | 31 | CODE | |
| LOW | fail2ban/server/observer.py | 31 | CODE | |
| LOW | fail2ban/server/observer.py | 32 | CODE | |
| LOW | fail2ban/server/database.py | 28 | CODE | |
| LOW | fail2ban/server/database.py | 196 | CODE | |
| LOW | fail2ban/server/filterpoll.py | 28 | CODE | |
| LOW | fail2ban/server/actions.py | 28 | CODE | |
| LOW | fail2ban/server/actions.py | 29 | CODE | |
| LOW | fail2ban/server/jail.py | 27 | CODE | |
| LOW | fail2ban/server/action.py | 25 | CODE | |
| LOW | fail2ban/server/action.py | 27 | CODE | |
| LOW | fail2ban/server/action.py | 28 | CODE | |
| LOW | fail2ban/server/action.py | 29 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 31 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 32 | CODE | |
| LOW | fail2ban/server/utils.py | 29 | CODE | |
| LOW | fail2ban/server/datedetector.py | 24 | CODE | |
| LOW | fail2ban/server/filter.py | 30 | CODE | |
| LOW | fail2ban/server/asyncserver.py | 32 | CODE | |
| LOW | fail2ban/server/filterpyinotify.py | 30 | CODE | |
| LOW | fail2ban/server/filterpyinotify.py | 32 | CODE | |
| LOW | fail2ban/server/ipdns.py | 818 | CODE | |
| LOW | fail2ban/client/configparserinc.py | 29 | CODE | |
| LOW | fail2ban/client/configparserinc.py | 33 | CODE | |
| LOW | fail2ban/client/jailreader.py | 30 | CODE | |
| LOW | fail2ban/client/jailreader.py | 32 | CODE | |
| LOW | fail2ban/client/configreader.py | 31 | CODE | |
| LOW | fail2ban/client/configreader.py | 31 | CODE | |
| LOW | fail2ban/client/fail2banserver.py | 26 | CODE | |
| LOW | fail2ban/client/fail2banregex.py | 36 | CODE | |
| LOW | fail2ban/client/fail2banregex.py | 46 | CODE | |
| LOW | fail2ban/client/fail2banregex.py | 46 | CODE | |
| LOW | fail2ban/client/csocket.py | 31 | CODE | |
| LOW | doc/conf.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fail2ban/compat/asyncore.py | 15 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| MEDIUM | fail2ban/compat/asynchat.py | 15 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| LOW | fail2ban/tests/filtertestcase.py | 2027 | # Actually no exception would be raised -- it will be just set to 'no' | COMMENT |
| LOW | fail2ban/server/observer.py | 272 | # just add shutdown job to make possible wait later until full (events remaining) | COMMENT |
| LOW | fail2ban/server/observer.py | 275 | #don't pulse - just set, because we will delete it hereafter (sometimes not wakeup) | COMMENT |
| LOW | fail2ban/server/database.py | 825 | # if bantime unknown (after upgrade-db from earlier version), just use min known ban-time: | COMMENT |
| LOW | fail2ban/server/action.py | 918 | # if don't need repair/restore - just return: | COMMENT |
| LOW | fail2ban/server/filter.py | 1162 | # The jail reached the bottom, simply set in operation for this log | COMMENT |
| LOW | fail2ban/server/ipdns.py | 65 | # not found - simply use first known fqdn: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fail2ban/tests/fail2banclienttestcase.py | 95 | def _observer_wait_before_incrban(cond, timeout=MID_WAITTIME): | CODE |
| LOW | fail2ban/tests/fail2banclienttestcase.py | 321 | def with_foreground_server_thread(startextra={}): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 151 | def _assert_correct_last_attempt(utest, filter_, output, count=None): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 201 | def _copy_lines_between_files(in_, fout, n=None, skip=0, mode='a', terminal_line="", lines=None): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1145 | def get_monitor_failures_testcase(Filter_): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1199 | def assert_correct_last_attempt(self, failures, count=None): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1388 | def test_move_into_file_after_removed(self): | CODE |
| LOW | fail2ban/tests/filtertestcase.py | 1444 | def get_monitor_failures_journal_testcase(Filter_): # pragma: systemd no cover | CODE |
| LOW | fail2ban/tests/action_d/test_smtp.py | 212 | def create_temp_self_signed_cert(cls): | CODE |
| LOW | fail2ban/server/asyncserver.py | 56 | class RequestHandler(asynchat.async_chat): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fail2ban/server/filter.py | 562 | # Check if IP address/DNS is in the ignore list. | COMMENT |
| LOW | fail2ban/server/filter.py | 564 | # Check if the given IP address matches an IP address/DNS or a CIDR | COMMENT |
| LOW | fail2ban/server/banmanager.py | 309 | # Check if a ticket is in the list. | COMMENT |
| LOW | fail2ban/server/banmanager.py | 311 | # Check if a BanTicket with a given IP address is already in the | COMMENT |
| LOW | fail2ban/server/ipdns.py | 627 | # Check if IP in DNS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fail2ban/client/fail2banserver.py | 93 | # Start async (don't read config) and in background as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/action.d/smtp.py | 78 | CODE | |
| LOW | fail2ban/server/action.py | 547 | CODE | |
| LOW | fail2ban/server/action.py | 729 | CODE | |
| LOW | fail2ban/server/filter.py | 1002 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fail2ban/server/observer.py | 60 | # observer is event driven and it sleep organized incremental, so sleep intervals can be shortly: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | files/cacti/fail2ban_stats.sh | 22 | # If Fail2ban is not available in the path, you can change the value of the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fail2ban/client/configparserinc.py | 79 | __all__ = ['SafeConfigParserWithIncludes'] | CODE |