Insights

SSH perimeter hardened: a brute-force campaign and what we did about it

71 attacker IPs, 11,468 failed logins in one hour, and the fail2ban + ASN blocklist response that turned an open front door into a measured one.

All insights
8 min read
Red laser holographic interference pattern on a dark surface — the contour lines of a brute-force SSH campaign hitting the perimeter at 14:34 UTC

On 2026-08-16 at 14:34 UTC fail2ban on our VPS (vps01612308, 185.25.148.67) woke up to a brute-force campaign: 71 unique attacker IPs generated 11,468 failed SSH authentication attempts inside a single hour. The attackers tried root, admin, ubuntu, debian, and oddly specific usernames like cargovo, solana123, jito, and ibkr — names scraped from public DNS, GitHub repos, and crypto operator forums. This post walks through what we saw, what we did, and what you can copy.

Attacker IPs
71
Failed logins / hr
11,468
Top attacker
5,017 attempts
fail2ban jails
sshd + recidive
ASN CIDRs blocked
546

What landed on the doorstep

fail2ban 1.0.2 logged its first Ban action one second after startup. By the time we drained auth.log an hour later the picture was unambiguous: a coordinated credential-stuffing campaign across hosting providers, bulletproof ISPs, and the usual long tail of residential botnets.

The biggest single offender (61.240.137.69, AS4837 CHINA UNICOM) had hammered 5,017 times in an hour. The longest tail was TECHOFF SRV LIMITED (AS48090, NL) — nine IPs, 746 attempts, the classic bulletproof pattern of one offender, many hosts.

  • AS4837 CHINA UNICOM China169 Backbone — 2 IPs, 5,033 attempts (incl. the 5,017-attack monster)
  • AS197170 TechTies Inc. (SC) — 2 IPs, 1,879 attempts
  • AS48090 TECHOFF SRV LIMITED (GB) — 9 IPs, 746 attempts
  • AS154383 ZORNTECH WEB SOLUTIONS (BD) — 2 IPs, 540 attempts
  • AS153135 PT Netindo Persada Nusantara (ID) — 1 IP, 301 attempts

Why the usernames mattered

Username enumeration is a fingerprint. root, admin, ubuntu, debian, postgres, gitlab-runner, vagrant, bitrix, cloud, bot — every scanner's starter pack. Then we saw cargovo, solana123, jito, ibkr, ibkrpro.

Those four are not random. cargovo is the brand of a Pryzmat product; solana123 / jito and ibkr / ibkrpro are operator-facing terms from the Solana validator and Interactive Brokers ecosystems. The attackers had scoped this campaign against the IP's reverse DNS and any public association — not against a fresh /24.

What we changed in the next hour

fail2ban was already running but the defaults were too forgiving: 600s ban, 600s findtime, 5 retries. We wrote a jail.local that cuts all three to a much harsher default and adds a recidive jail that catches repeat offenders across a 4-week window.

Then we moved from IP-level bans to ASN-level blocks. We pulled the IPv4 prefix lists for the top nine offending ASNs from RADb whois, deduplicated the 583 raw prefixes into 546 unique CIDRs, and dropped them into a dedicated iptables chain (ASN_BLOCK) inserted at the top of INPUT. Our own public IP and RFC1918 ranges are whitelisted at the top of the chain so we never lock ourselves out.

  • fail2ban: bantime 1h, findtime 10m, maxretry 3 (sshd jail)
  • fail2ban recidive jail: bantime 4w, findtime 1w, maxretry 5 across all jail ban events
  • iptables ASN_BLOCK chain — 546 CIDRs across AS48090, AS197170, AS154383, AS14061, AS47890, AS142403, AS137905, AS153135, AS135918
  • persisted via iptables-persistent so blocks survive reboot

Still on the to-do list (and should be on yours)

This was step one. The campaign continues and other operators are seeing the same profile — if you are reading this with a public Linux box, the same shape applies to your auth.log.

The follow-ups we have queued are the boring, high-leverage ones: disable PasswordAuthentication entirely once keys are in place, disable root SSH or restrict it to a non-default port, and add a Telegram alert cron that scrapes fail2ban status every five minutes and pings on new ASN detections. None of these are novel. All of them pay for themselves the next time a campaign runs.

Evidence and references

All raw evidence — per-IP SSH attempt counts, Geo/ASN enrichment from ip-api.com, the joined dataset, the ASN blocklist CSV, and the YouTrack ticket mapping — lives under intel/2026-08-16-ssh-attacks/ in the Pryzm workspace.

The parent incident epic is JAISIU-2216; one Bug ticket per attacker IP (JAISIU-2217 → JAISIU-2287) is linked as a subtask. If you are running a similar response on your own VPS, copy the playbook: fail2ban jail.local, ASN_BLOCK chain, key-only sshd_config, persistence via iptables-persistent.

  • Security
  • fail2ban
  • SSH
  • Incident