Daemon to ban hosts that cause multiple authentication errors
This report summarizes scanner evidence for fail2ban/fail2ban, a Python project with 18,767 GitHub stars. SynthScan examined 35,811 lines of code across 102 source files, recording 561 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 29.9 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 318 finding(s).
Are imports declared and package/API names verified? 69 finding(s).
Are wrappers, guards, and repeated structures necessary? 188 finding(s).
Which changes need focused human review? 561 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 561 distinct pattern matches across 16 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 |
|---|---|---|---|---|
| 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 | 98 | # 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 |
|---|---|---|---|---|
| HIGH | config/action.d/smtp.py | 201 | except smtplib.SMTPServerDisconnected: # pragma: no cover | CODE |
| HIGH | fail2ban/helpers.py | 190 | except: | CODE |
| HIGH | fail2ban/helpers.py | 481 | except: # pragma: no cover | CODE |
| HIGH | fail2ban/helpers.py | 223 | except: # pragma: no cover | CODE |
| HIGH | fail2ban/helpers.py | 221 | except: # pragma: no cover | CODE |
| HIGH | fail2ban/compat/asyncore.py | 299 | except OSError: | CODE |
| HIGH | fail2ban/compat/asyncore.py | 633 | except AttributeError: | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1022 | except OSError: | CODE |
| HIGH | fail2ban/tests/servertestcase.py | 1008 | except StopIteration: | CODE |
| HIGH | fail2ban/tests/filtertestcase.py | 73 | except: | CODE |
| HIGH | fail2ban/tests/filtertestcase.py | 77 | except: | CODE |
| HIGH | fail2ban/tests/utils.py | 431 | except ImportError: # pragma: no cover | CODE |
| HIGH | fail2ban/tests/actiontestcase.py | 554 | except ValueError: | CODE |
| HIGH | fail2ban/tests/action_d/test_smtp.py | 262 | except FileNotFoundError: pass | CODE |
| HIGH | fail2ban/server/failregex.py | 194 | except KeyError: | CODE |
| HIGH | fail2ban/server/server.py | 940 | except OSError: # ERROR (ignore) | CODE |
| HIGH | fail2ban/server/ticket.py | 151 | except KeyError: | CODE |
| HIGH | fail2ban/server/database.py | 580 | except KeyError: | CODE |
| HIGH | fail2ban/server/database.py | 584 | except KeyError: | CODE |
| HIGH | fail2ban/server/action.py | 104 | except AttributeError: | CODE |
| HIGH | fail2ban/server/action.py | 171 | except KeyError: | CODE |
| HIGH | fail2ban/server/action.py | 440 | except KeyError: # pragma: no cover | CODE |
| HIGH | fail2ban/server/action.py | 754 | except KeyError: | CODE |
| HIGH | fail2ban/server/action.py | 941 | except RuntimeError: # bypass error in stop (if start/check succeeded hereafter). | CODE |
| HIGH | fail2ban/server/action.py | 128 | except: # can't calculate - just ignore it | CODE |
| HIGH | fail2ban/server/action.py | 769 | except KeyError: | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 118 | except KeyError: | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 123 | except KeyError: | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 151 | except KeyError: | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 181 | except OSError: # pragma: no cover | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 424 | except OSError: | CODE |
| HIGH | fail2ban/server/filtersystemd.py | 466 | except OSError: | CODE |
| HIGH | fail2ban/server/datedetector.py | 507 | except ValueError: | CODE |
| HIGH | fail2ban/server/asyncserver.py | 139 | except Exception as e: # pragma: no cover - normally unreachable | CODE |
| HIGH | fail2ban/server/asyncserver.py | 73 | except socket.error: # pragma: no cover - normally unreachable | CODE |
| HIGH | fail2ban/server/asyncserver.py | 307 | except socket.error: # pragma: no cover - normally unreachable | CODE |
| HIGH | fail2ban/server/banmanager.py | 384 | except KeyError: | CODE |
| HIGH | fail2ban/server/filterpyinotify.py | 151 | except KeyError: pass | CODE |
| HIGH | fail2ban/server/filterpyinotify.py | 239 | except KeyError: # pragma: no cover | CODE |
| HIGH | fail2ban/server/filterpyinotify.py | 259 | except KeyError: # pragma: no cover | CODE |
| HIGH | fail2ban/server/filterpyinotify.py | 174 | except KeyError: pass | CODE |
| HIGH | fail2ban/server/failmanager.py | 154 | except KeyError: | CODE |
| HIGH | fail2ban/server/ipdns.py | 67 | except socket.error: | CODE |
| HIGH | fail2ban/server/ipdns.py | 260 | except: | CODE |
| HIGH | fail2ban/client/configparserinc.py | 151 | except (NoSectionError, NoOptionError) as e: | CODE |
| HIGH | fail2ban/client/configparserinc.py | 348 | except KeyError: | CODE |
| HIGH | fail2ban/client/fail2banregex.py | 328 | except NoOptionError: # pragma: no cover | CODE |
| HIGH | fail2ban/client/fail2banregex.py | 544 | except ValueError: | CODE |
| HIGH | fail2ban/client/csocket.py | 64 | except socket.error: # pragma: no cover - normally unreachable | CODE |
| HIGH | fail2ban/client/csocket.py | 68 | except socket.error: # pragma: no cover - normally unreachable | CODE |
| 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 | 111 | except Exception as e: | CODE |
| MEDIUM | fail2ban/tests/sockettestcase.py | 108 | 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 |
| 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/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 |
| 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 | 523 | except Exception as e: # pragma: no cover | CODE |
| LOW | fail2ban/server/filtersystemd.py | 545 | except Exception as e: # pragma: no cover | CODE |
| MEDIUM | fail2ban/server/filtersystemd.py | 540 | 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 | 114 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 321 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 382 | 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 not root, filter readable only: | 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 | 32 | CODE | |
| LOW | fail2ban/tests/sockettestcase.py | 38 | 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 | 32 | CODE | |
| LOW | fail2ban/server/filtersystemd.py | 33 | 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 |