Habr•September 16, 2026•🇷🇺Translated from Russian

Developer Builds Custom Bouncer Tool to Automatically Block .env and SSH Probing on VPS

A system administrator managing a modest VPS hosting static sites behind Caddy decided to stop manually watching logs filled with brute-force attempts against SSH and automated scans for common sensitive files.

The server regularly received requests for wp-admin, .env, phpmyadmin, and backup configuration files even though no WordPress instance was present. At the same time, systemd-journal recorded repeated OpenSSH messages such as “Invalid user admin” and “Invalid user oracle”.

Although Fail2ban is widely used, the administrator found its configuration of jails, filters, and actions too cumbersome for web-related blocking and preferred a single binary with minimal dependencies.

How the custom solution works

The resulting tool, called Bouncer, first performs a controlled crawl of the site using a breadth-first queue limited by depth and total page count. It extracts internal links from HTML, records all discovered paths, and allows additional routes such as API endpoints to be added manually in the configuration.

When new entries appear in the Caddy access log showing a 404 response, the path is checked against the discovered list. Five unknown paths within a sliding time window trigger addition of the source IP to an nftables set that drops traffic before it reaches listening ports. Direct requests to files such as /.env result in immediate blocking without waiting for the threshold.

For SSH, the program parses journal entries and treats an “Invalid user” message as an immediate ban because legitimate users do not attempt non-existent accounts. Failed password attempts for existing users are counted within a time window instead.

  • The tool never replays old log files on startup, processing only new lines from the moment it begins.
  • Each site maintains its own path list and log source, allowing multiple Caddy virtual hosts to be protected by one process.
  • An installation script places the binary, generates a systemd unit, populates a whitelist with the administrator’s current IP, and inserts the required nftables drop rule in the correct chain order.

After switching from a previous prototype named CaddyBan, the administrator reported significantly cleaner logs and fewer manual reviews of connection attempts.

Related articles

AntiMalware•Other

RBC Restores News Portal After DDoS Attack as Russian Organizations Face Rising Cyber Threats

RBC's news website was hit by a DDoS attack on December 4, disrupting normal operations and forcing the outlet to publish updates via Telegram. Technical teams worked to restore full functionality after users saw only a simplified technical page instead of regular sections and articles. No evidence of infrastructure compromise or data leaks has been reported. The incident follows similar attacks in November 2026, including a 2.1 Tbit/s DDoS on hosting provider Beget that interrupted client FTP and SSH connections, and earlier strikes on Rosstat's resources. Roskomnadzor recorded 3,478 DDoS incidents in November, up from 2,500 in October, with the longest attack lasting over 20 days and targeting telecom companies mainly in the Central Federal District.

AntiMalware•Other

Russia's NTI Fund Exits Natalia Kasperskaya's SOVA Open AI Platform Project

The National Technology Initiative fund has fully exited the capital of Virtual Assistants, the company behind the open conversational AI platform SOVA. Structures linked to founders Natalia Kasperskaya and Stanislav Ashmanov repurchased the stake, with changes registered in the Unified State Register of Legal Entities on December 1, 2026. The fund had entered the project in 2022 and later increased its share to 49.4 percent, following earlier state plans to allocate 300 million rubles toward a 400 million ruble project. Laboratory Nanosemantics now holds 59.65 percent while Ashmanov directly controls the remaining 40.35 percent. Although SOVA was positioned as an open-source ecosystem for building voice assistants and chatbots, its GitHub repositories have seen no updates since April 2023. The company continues to collect user feedback for future modernization while experts note growing competition from technologies such as Whisper, GigaAM, and Yandex SpeechKit.

AntiMalware•Other

Incident at Sarov Nuclear Center Triggers Wave of Disinformation on Social Media

An industrial accident at the Russian Federal Nuclear Center in Sarov on December 3, 2026, led to the rapid spread of false claims about nuclear material fires and potential Chernobyl-scale consequences across social networks and messengers. Official statements from RFNC-VNIIEF confirmed the event occurred during scheduled non-nuclear production work, resulting in five fatalities with additional injuries under investigation, while emphasizing that the site was localized and no threat existed to facilities holding fissile materials. Radiation levels remain within normal limits according to both the institute and the Main Directorate of EMERCOM for Nizhny Novgorod Region, with no danger to the public or environment. The limited official information released so far has fueled further misinformation, prompting Lapsha Media to warn of additional fakes and advise verification against authoritative sources. Specialists continue damage assessment and repairs at the affected industrial site, with the exact cause of the incident still undisclosed.

Habr•Other

SpaceVM Border Firewall Configuration Guide Restricts SSH and Web Access to Specific Subnets

SpaceVM has published a detailed tutorial on configuring its border firewall using a three-node cluster example. The guide demonstrates how to allow SSH and HTTP/HTTPS access exclusively from the 172.22.21.0/24 subnet while disabling default system rules that permit broader access. It explains rule processing order, where lower index values take precedence, and shows how to apply traffic shaping limits. Administrators must activate rules after creation and verify connectivity from allowed and disallowed hosts. The instructions cover both incoming filter rules and shaping policies for management networks without affecting virtual machine traffic.