<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Qyleron</title>
    <description>The latest articles on DEV Community by Qyleron (@qyleron).</description>
    <link>https://dev.to/qyleron</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F684295%2Ff3d3f7de-c1ac-4838-ad05-6b002973b849.png</url>
      <title>DEV Community: Qyleron</title>
      <link>https://dev.to/qyleron</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qyleron"/>
    <language>en</language>
    <item>
      <title>60 days on a $6 server: what 128,777 connections to a honeypot looked like</title>
      <dc:creator>Qyleron</dc:creator>
      <pubDate>Sat, 28 Nov 2026 04:39:22 +0000</pubDate>
      <link>https://dev.to/qyleron/60-days-on-a-6-server-what-128777-connections-to-a-honeypot-looked-like-okp</link>
      <guid>https://dev.to/qyleron/60-days-on-a-6-server-what-128777-connections-to-a-honeypot-looked-like-okp</guid>
      <description>&lt;p&gt;One source address made 17,417 SSH connections to our decoy server in 60 days, about one in every seven connections it received. The other 111,360 came from 2,604 more addresses, and most of them wanted the same few things: a root password, a quick check that the shell worked, and any file that might hold a secret.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Method in one line: captured with Echidra OSS on one $6 VPS, one region, 28 July to 26 September 2026. Our own test traffic is excluded.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who came
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;Sessions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SSH&lt;/td&gt;
&lt;td&gt;115,079&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP&lt;/td&gt;
&lt;td&gt;9,350&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FTP&lt;/td&gt;
&lt;td&gt;2,264&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Telnet&lt;/td&gt;
&lt;td&gt;2,084&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;128,777&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;SSH is almost nine in ten of everything. The server wasn't advertised anywhere, and its address was never published. These connections came from tools that sweep the internet address by address.&lt;/p&gt;

&lt;p&gt;The traffic is very uneven. One address made 17,417 connections, and the 10 busiest addresses made 67,973 sessions: 52.8% of everything. That's good news: a short blocklist removes a large share of the noise (see "What you can use today" below).&lt;/p&gt;

&lt;h2&gt;
  
  
  What they tried
&lt;/h2&gt;

&lt;p&gt;17,707 SSH login attempts used 614 different usernames. &lt;code&gt;root&lt;/code&gt; was tried 15,114 times, about 85% of the total; then &lt;code&gt;ubuntu&lt;/code&gt; (598), &lt;code&gt;support&lt;/code&gt; (584) and &lt;code&gt;admin&lt;/code&gt; (252). The passwords and how bots choose them are covered in &lt;a href="https://qyleron.com/blog/ssh-bruteforce-botnet-patterns/?ref=devto" rel="noopener noreferrer"&gt;Analyzing SSH Brute-Force Patterns&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Over HTTP, the requests weren't looking for a website. They were looking for mistakes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What was requested&lt;/th&gt;
&lt;th&gt;Sessions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CONNECT&lt;/code&gt;, testing whether the server is an open proxy&lt;/td&gt;
&lt;td&gt;270&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/.env&lt;/code&gt;, a file that often holds database passwords and API keys&lt;/td&gt;
&lt;td&gt;242&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paths used by network cameras&lt;/td&gt;
&lt;td&gt;177&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/mcp&lt;/code&gt;, &lt;code&gt;/api/mcp&lt;/code&gt;, &lt;code&gt;/sse&lt;/code&gt;: AI tool servers&lt;/td&gt;
&lt;td&gt;78&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commands injected into router web pages&lt;/td&gt;
&lt;td&gt;65&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The AI tool server paths stand out. These servers became common in the last year, and scanners already ask for them on machines that have never run one. Some of these requests come from research scanners, so "scanned for" is fairer than "attacked".&lt;/p&gt;

&lt;h2&gt;
  
  
  What they did after getting in
&lt;/h2&gt;

&lt;p&gt;The decoy lets SSH logins succeed so it can see what comes next. Almost every bot that got in ran a single command to check that the shell answered:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;First command&lt;/th&gt;
&lt;th&gt;Times sent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;echo -e "\x6F\x6B"&lt;/code&gt; (prints &lt;code&gt;ok&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;11,110&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;echo OK&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,132&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;whoami&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;746&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;echo -n login_success&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;499&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The hex-encoded &lt;code&gt;ok&lt;/code&gt; is the odd one. Writing &lt;code&gt;ok&lt;/code&gt; as &lt;code&gt;\x6F\x6B&lt;/code&gt; prints the same thing as a plain &lt;code&gt;echo ok&lt;/code&gt;. One likely reason: it slips past a simple rule that looks for the word.&lt;/p&gt;

&lt;h2&gt;
  
  
  180 sessions worth looking at
&lt;/h2&gt;

&lt;p&gt;Out of 128,777 sessions, Echidra OSS rated 180 as high risk. 179 tried to make the server download and run a program: 90 over SSH after logging in, 89 through commands hidden in web requests. One planted a key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The key.&lt;/strong&gt; On 10 August a bot logged in as &lt;code&gt;alexandra&lt;/code&gt; with the password &lt;code&gt;123&lt;/code&gt;. Two and a half seconds later it had typed one line and left:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p /root/.ssh &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'ssh-rsa AAAAB3NzaC1yc2E...6oWL rsa-key-20250409'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; /root/.ssh/authorized_keys &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chmod 700 /root/.ssh &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chmod 600 /root/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That adds its own key to root's &lt;code&gt;authorized_keys&lt;/code&gt;. With that key in place, its owner can log back in without a password, even after the password is changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The download.&lt;/strong&gt; One of the SSH ones logged in as &lt;code&gt;admin&lt;/code&gt; / &lt;code&gt;admin&lt;/code&gt;, then sent one long command that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;printed &lt;code&gt;auth_ok&lt;/code&gt;, written in hex, to confirm the shell answered;&lt;/li&gt;
&lt;li&gt;moved to &lt;code&gt;/tmp&lt;/code&gt;, &lt;code&gt;/var/tmp&lt;/code&gt; or &lt;code&gt;/dev/shm&lt;/code&gt;, whichever was writable;&lt;/li&gt;
&lt;li&gt;wrote &lt;strong&gt;its own private SSH key&lt;/strong&gt; to a file and used it to copy a script from a server it named, with &lt;code&gt;scp&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;if that failed, fetched the same script over HTTPS with &lt;code&gt;wget&lt;/code&gt; or &lt;code&gt;curl&lt;/code&gt; and piped it straight into &lt;code&gt;sh&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;deleted the key and the script.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Carrying its own key lets the bot fetch its payload over SSH, which looks like ordinary admin traffic on many networks, and fall back to HTTPS only when it has to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The CPU check.&lt;/strong&gt; One session ran &lt;code&gt;echo 1 &amp;amp;&amp;amp; cat /bin/echo&lt;/code&gt;. It read the program file behind a basic command to learn the server's CPU type, the usual step before downloading malware built for it.&lt;/p&gt;

&lt;p&gt;Almost everything that reaches a server is automated and careless. The careful sessions are rare, and they're the ones worth finding.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Want to see what's hitting your own server?&lt;/strong&gt; Echidra OSS runs on a $6 VPS and takes a few minutes to set up. &lt;a href="https://qyleron.com/setup-and-onboarding/?ref=devto" rel="noopener noreferrer"&gt;Setup guide&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How Echidra OSS labelled it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpx19sf9hkle53v56z87.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpx19sf9hkle53v56z87.webp" alt="Echidra OSS Session Inspector for the key-implant session: two high-severity findings (a login key added to authorized_keys, and SSH logins with guessed passwords), the evidence text, and the command timeline with login alexandra, password 123 and the one-line key install" width="800" height="1667"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The key-implant session in the Session Inspector, linked to its two findings.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For the key implant, Echidra OSS:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;labelled it a &lt;strong&gt;commodity bot&lt;/strong&gt;, &lt;strong&gt;high risk&lt;/strong&gt;, intent &lt;strong&gt;persistence&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;tagged it with ATT&amp;amp;CK &lt;strong&gt;T1098.004&lt;/strong&gt; (SSH authorized keys) and &lt;strong&gt;T1110&lt;/strong&gt; (brute force);&lt;/li&gt;
&lt;li&gt;explained why: &lt;em&gt;"After logging in, the session wrote a public key into an SSH authorized_keys file, which would let its owner log back in without a password."&lt;/em&gt;;&lt;/li&gt;
&lt;li&gt;gave the fix: &lt;em&gt;"Disable password login over SSH, review every authorized_keys file for keys you don't recognize, and alert on any change to those files."&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Across the sessions it labelled, the classifier sorted them like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Who&lt;/th&gt;
&lt;th&gt;Sessions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Brute-force bots&lt;/td&gt;
&lt;td&gt;19,744&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automated scanners&lt;/td&gt;
&lt;td&gt;2,001&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commodity bots (bots that act after logging in)&lt;/td&gt;
&lt;td&gt;684&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Risk&lt;/th&gt;
&lt;th&gt;Sessions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;20,365&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;1,884&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What they were after&lt;/th&gt;
&lt;th&gt;Sessions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stealing logins&lt;/td&gt;
&lt;td&gt;20,247&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Looking around (reconnaissance)&lt;/td&gt;
&lt;td&gt;1,985&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivering a payload&lt;/td&gt;
&lt;td&gt;179&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exploiting a known flaw&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Staying in (persistence)&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fslrhz4n7jq81fzygpzxi.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fslrhz4n7jq81fzygpzxi.webp" alt="Echidra OSS Intelligence page row for the key-implant finding: Commodity bots are adding their own login key to authorized_keys after logging in over SSH, severity HIGH, MITRE technique T1098.004 SSH Authorized Keys, 1 session, recommended fix starting Disable password login over SSH, status Open" width="800" height="87"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The key-implant finding on the Intelligence page: high severity, ATT&amp;amp;CK T1098.004, one session, and the recommended fix.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to change on your own servers
&lt;/h2&gt;

&lt;p&gt;Every item here comes from something the decoy actually received.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Turn off password logins for root.&lt;/strong&gt; In &lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt;, set &lt;code&gt;PermitRootLogin prohibit-password&lt;/code&gt; (or &lt;code&gt;no&lt;/code&gt;), then reload SSH. 85% of login attempts used &lt;code&gt;root&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use keys, not passwords, for SSH&lt;/strong&gt;: &lt;code&gt;PasswordAuthentication no&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check &lt;code&gt;authorized_keys&lt;/code&gt; for keys you don't recognise&lt;/strong&gt;, on every server and every account. One added key is enough for an attacker to keep access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make sure your web server never serves &lt;code&gt;.env&lt;/code&gt;.&lt;/strong&gt; From outside, run &lt;code&gt;curl -s -o /dev/null -w "%{http_code}\n" https://your-site/.env&lt;/code&gt;. Anything other than &lt;code&gt;404&lt;/code&gt; or &lt;code&gt;403&lt;/code&gt; needs fixing today.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put AI tool servers behind a login&lt;/strong&gt;, and don't expose them to the internet unless they have to be.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't leave a proxy open.&lt;/strong&gt; If you run one, make sure it only accepts your own clients.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What you can use today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A blocklist&lt;/strong&gt; of the 50 most active addresses from these 60 days, as plain text: &lt;a href="https://qyleron.com/blog/honeypot-60-days-sensor-report-1/blocklist-top50.txt" rel="noopener noreferrer"&gt;blocklist-top50.txt&lt;/a&gt;. Addresses change hands, so treat it as a starting point and expire entries after a few weeks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same list from your own server&lt;/strong&gt;, if you run Echidra OSS: &lt;code&gt;echidra blocklist&lt;/code&gt;, with plain text or CSV output for a firewall, fail2ban or Cloudflare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The rule that caught the key implant&lt;/strong&gt;: &lt;code&gt;ssh_authorized_key_install&lt;/code&gt; in &lt;a href="https://github.com/Qyleron/EchidraOSS/blob/v1.0.0/classifier/rules/default_rules.yaml" rel="noopener noreferrer"&gt;default_rules.yaml&lt;/a&gt;. It fires when an SSH session, after logging in, writes to an &lt;code&gt;authorized_keys&lt;/code&gt; file:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ssh_authorized_key_install&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;SSH login key added after login&lt;/span&gt;
  &lt;span class="na"&gt;risk_score&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;
  &lt;span class="na"&gt;mitre_tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;T1098.004&lt;/span&gt;
  &lt;span class="na"&gt;conditions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;protocol&lt;/span&gt;
      &lt;span class="na"&gt;operator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;equals&lt;/span&gt;
      &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tcp_shell&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;authorized_keys_write_attempt&lt;/span&gt;
      &lt;span class="na"&gt;operator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;equals&lt;/span&gt;
      &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Method and limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One sensor, one region, one $6 VPS, from 28 July to 26 September 2026.&lt;/li&gt;
&lt;li&gt;Captured with development builds of Echidra OSS from before 1.0. Every session was re-labelled with the 1.0.0 classifier on 22 October.&lt;/li&gt;
&lt;li&gt;Our own test traffic from 127.0.0.1 (12,705 sessions) is excluded from every number.&lt;/li&gt;
&lt;li&gt;A "session" is one connection. One address can make many.&lt;/li&gt;
&lt;li&gt;A decoy only sees what reaches it. A server with a domain name or a public service would see more targeted traffic than this.&lt;/li&gt;
&lt;li&gt;The sensor's address and provider aren't published.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A question for you
&lt;/h2&gt;

&lt;p&gt;If you run servers that face the internet, what shows up in your own logs that isn't here? We'll look for it in the next report.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;See what's hitting your own server.&lt;/strong&gt; Echidra OSS is open source (AGPL-3.0). It runs on a $6 VPS and takes a few minutes to set up. &lt;a href="https://qyleron.com/setup-and-onboarding/?ref=devto" rel="noopener noreferrer"&gt;Setup guide&lt;/a&gt; · &lt;a href="https://github.com/Qyleron/EchidraOSS" rel="noopener noreferrer"&gt;Echidra OSS on GitHub&lt;/a&gt;. On GitHub, use Watch → Releases to hear about new versions.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>linux</category>
      <category>opensource</category>
    </item>
    <item>
      <title>SSH hardening for a VPS, checked against 60 days of honeypot traffic</title>
      <dc:creator>Qyleron</dc:creator>
      <pubDate>Fri, 27 Nov 2026 18:22:22 +0000</pubDate>
      <link>https://dev.to/qyleron/ssh-hardening-for-a-vps-checked-against-60-days-of-honeypot-traffic-ok8</link>
      <guid>https://dev.to/qyleron/ssh-hardening-for-a-vps-checked-against-60-days-of-honeypot-traffic-ok8</guid>
      <description>&lt;p&gt;Our decoy server received 115,079 SSH connections in 60 days. Its address was never published, so none of them were aimed at us. They came from tools that try every address on the internet, and they would try yours the same way. Each setting below comes from something a bot actually did on the decoy, so you can see what it would have stopped.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmrdxs47kpfjibl982whr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmrdxs47kpfjibl982whr.png" alt="Bar chart of the usernames bots tried in 17,707 SSH login attempts: root 15,114 (85%), ubuntu 598, support 584, admin 252, and 1,159 spread over 610 other usernames"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Method in one line: one Echidra OSS sensor on a $6 VPS, one region, 28 July to 26 September 2026. The full numbers are in &lt;a href="https://qyleron.com/blog/honeypot-60-days-sensor-report-1/?ref=devto" rel="noopener noreferrer"&gt;Sensor Report #1&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Root takes 85% of the guesses
&lt;/h2&gt;

&lt;p&gt;There were 17,707 SSH login attempts, and &lt;code&gt;root&lt;/code&gt; was the username in 15,114 of them. Stop root from logging in with a password:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="nc"&gt;PermitRootLogin&lt;/span&gt; &lt;span class="n"&gt;prohibit&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;prohibit-password&lt;/code&gt; still lets root in with a key, if you need that. &lt;code&gt;no&lt;/code&gt; is stricter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next come the accounts your image created
&lt;/h2&gt;

&lt;p&gt;After root, the most-tried usernames were &lt;code&gt;ubuntu&lt;/code&gt; (598), &lt;code&gt;support&lt;/code&gt; (584) and &lt;code&gt;admin&lt;/code&gt; (252), out of 614 different usernames. Bots try the accounts that cloud images and appliances create by default, because those are often left with weak or reused passwords.&lt;/p&gt;

&lt;p&gt;Name the only accounts that may log in over SSH:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AllowUsers deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every other username is refused, whatever password it sends.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which passwords got in?
&lt;/h2&gt;

&lt;p&gt;The decoy lets logins succeed so it can see what happens next. The sessions that mattered most got in with &lt;code&gt;admin&lt;/code&gt; / &lt;code&gt;admin&lt;/code&gt; and &lt;code&gt;alexandra&lt;/code&gt; / &lt;code&gt;123&lt;/code&gt;. A real server with either of those would have been taken over the same way.&lt;/p&gt;

&lt;p&gt;Turn passwords off completely and use keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="nc"&gt;PasswordAuthentication&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;
&lt;span class="nc"&gt;KbdInteractiveAuthentication&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second line matters. On some systems, keyboard-interactive login still accepts a password when &lt;code&gt;PasswordAuthentication&lt;/code&gt; is off.&lt;/p&gt;

&lt;h2&gt;
  
  
  A key planted in 2.5 seconds
&lt;/h2&gt;

&lt;p&gt;On 10 August a bot logged in and, two and a half seconds later, typed one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p /root/.ssh &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'ssh-rsa AAAAB3NzaC1yc2E...6oWL rsa-key-20250409'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; /root/.ssh/authorized_keys &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chmod 700 /root/.ssh &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chmod 600 /root/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Its owner could now log back in without a password, even after the password was changed. Changing passwords after a break-in doesn't remove a key like this.&lt;/p&gt;

&lt;p&gt;Find every &lt;code&gt;authorized_keys&lt;/code&gt; file on the server and read each key's comment, the last field, to check you recognise it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo find / -xdev -name &lt;span class="s1"&gt;'authorized_keys*'&lt;/span&gt; -path &lt;span class="s1"&gt;'*/.ssh/*'&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; xargs -r sudo awk &lt;span class="s1"&gt;'NF &amp;amp;&amp;amp; !/^#/ {print FILENAME ": " $NF}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To hear about the next change, watch the folder with auditd (on Debian or Ubuntu):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install auditd
sudo install -d -m 700 /root/.ssh
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'-w /root/.ssh/ -p wa -k ssh_keys'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sudo tee /etc/audit/rules.d/ssh-keys.rules
sudo augenrules --load
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;sudo ausearch -k ssh_keys&lt;/code&gt; then lists every write. Add a line for each user's &lt;code&gt;~/.ssh/&lt;/code&gt; folder too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the login is the line to hold
&lt;/h2&gt;

&lt;p&gt;One bot that logged in sent a single long command. It:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;found whichever of &lt;code&gt;/tmp&lt;/code&gt;, &lt;code&gt;/var/tmp&lt;/code&gt; or &lt;code&gt;/dev/shm&lt;/code&gt; it could write to;&lt;/li&gt;
&lt;li&gt;copied a script with &lt;code&gt;scp&lt;/code&gt;, using a private key it brought along;&lt;/li&gt;
&lt;li&gt;if that failed, fetched the same script with &lt;code&gt;wget&lt;/code&gt; or &lt;code&gt;curl&lt;/code&gt; over HTTPS and piped it into &lt;code&gt;sh&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;deleted the key and the script.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another session read &lt;code&gt;/bin/echo&lt;/code&gt; to learn the CPU type, the usual step before downloading malware built for it.&lt;/p&gt;

&lt;p&gt;Every step had a fallback. Blocking one download tool or one folder won't stop a bot that's already logged in. That's why the three login settings above come first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cutting the noise from repeat offenders
&lt;/h2&gt;

&lt;p&gt;One address made 17,417 connections to the decoy, and the ten busiest made 52.8% of all traffic. Most of the noise comes from a few sources, so limiting repeated failures removes a lot of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="nc"&gt;MaxAuthTries&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Debian or Ubuntu, fail2ban blocks an address for a while after too many failures:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install fail2ban
sudo fail2ban-client status sshd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second command should show the &lt;code&gt;sshd&lt;/code&gt; jail. If it says the jail doesn't exist, enable it in &lt;code&gt;/etc/fail2ban/jail.local&lt;/code&gt;. On systems without &lt;code&gt;/var/log/auth.log&lt;/code&gt;, add &lt;code&gt;backend = systemd&lt;/code&gt; to that jail.&lt;/p&gt;

&lt;p&gt;This cuts log noise and load. It doesn't replace the login settings: a bot that guesses right on its first try is never blocked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everything in one file
&lt;/h2&gt;

&lt;p&gt;On Ubuntu and Debian, put your settings in a file of their own. Files in &lt;code&gt;/etc/ssh/sshd_config.d/&lt;/code&gt; are read in name order and the first value wins. A name starting with &lt;code&gt;00-&lt;/code&gt; beats the &lt;code&gt;50-cloud-init.conf&lt;/code&gt; that some cloud images use to switch password login back on.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/etc/ssh/sshd_config.d/00-hardening.conf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="nc"&gt;PermitRootLogin&lt;/span&gt; &lt;span class="n"&gt;prohibit&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;
&lt;span class="nc"&gt;PasswordAuthentication&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;
&lt;span class="nc"&gt;KbdInteractiveAuthentication&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;
&lt;span class="nc"&gt;MaxAuthTries&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="nc"&gt;AllowUsers&lt;/span&gt; &lt;span class="n"&gt;deploy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;deploy&lt;/code&gt; with your own username. Then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make sure you can log in with your key &lt;strong&gt;before&lt;/strong&gt; you turn passwords off.&lt;/li&gt;
&lt;li&gt;Check the file: &lt;code&gt;sudo sshd -t&lt;/code&gt;. No output means no errors.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check the values sshd will really use:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo sshd -T | grep -Ei 'permitrootlogin|passwordauthentication|kbdinteractive|maxauthtries|allowusers'
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4. Reload: &lt;code&gt;sudo systemctl reload ssh&lt;/code&gt;. The service is called &lt;code&gt;sshd&lt;/code&gt; on Fedora, RHEL and Arch.&lt;/p&gt;

&lt;p&gt;5. &lt;strong&gt;Keep your current session open&lt;/strong&gt; and log in from a second terminal. Close the first one only when the second works.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Which SSH setting do you change first on a new server?&lt;/strong&gt; Tell us in the comments.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Method and limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One sensor, one region, one $6 VPS, from 28 July to 26 September 2026.&lt;/li&gt;
&lt;li&gt;A decoy only sees what reaches it. A server with a domain name or a public service would see more targeted traffic.&lt;/li&gt;
&lt;li&gt;Our own test traffic is excluded from every number.&lt;/li&gt;
&lt;li&gt;The sensor's address and provider aren't published.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;See what's hitting your own server.&lt;/strong&gt; Echidra OSS is open source (AGPL-3.0). It runs on a $6 VPS, records what bots try after they log in, and labels it with MITRE ATT&amp;amp;CK and a fix. &lt;a href="https://qyleron.com/setup-and-onboarding/?ref=devto" rel="noopener noreferrer"&gt;Setup guide&lt;/a&gt; · &lt;a href="https://github.com/Qyleron/EchidraOSS" rel="noopener noreferrer"&gt;Echidra OSS on GitHub&lt;/a&gt;. On GitHub, use Watch → Releases to hear about new versions.&lt;/p&gt;

</description>
      <category>security</category>
      <category>linux</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Defending Against Automated Botnet Floods Without Degrading Container CPU Footprints</title>
      <dc:creator>Qyleron</dc:creator>
      <pubDate>Sat, 19 Sep 2026 13:35:00 +0000</pubDate>
      <link>https://dev.to/qyleron/defending-against-automated-botnet-floods-without-degrading-container-cpu-footprints-3bpf</link>
      <guid>https://dev.to/qyleron/defending-against-automated-botnet-floods-without-degrading-container-cpu-footprints-3bpf</guid>
      <description>&lt;p&gt;A botnet-driven connection flood doesn't just threaten availability, it can quietly drive up your container CPU bill before anyone notices, depending entirely on how your listener is built. This guide compares how synchronous blocking engines and asynchronous event loops handle the same flood at the kernel level, and why that difference determines whether your infrastructure degrades gracefully or falls over.&lt;/p&gt;

&lt;p&gt;When people talk about surviving a connection flood, the conversation usually jumps straight to rate limiting and network-layer mitigation. Those matter, but they don't explain why two services under the exact same flood, same packet rate, same source distribution, can show wildly different CPU graphs. That difference comes down to a decision made long before the flood ever starts: how the listener itself is architected to handle concurrent connections.&lt;/p&gt;

&lt;p&gt;This matters directly to SREs and cloud architects because CPU footprint under load determines your autoscaling behavior, your bin-packing density, and ultimately your infrastructure cost during exactly the kind of event you can't schedule around.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. How synchronous blocking engines spend kernel CPU
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Synchronous, thread-per-connection listeners spend rising kernel CPU on context-switching as connection count grows, independent of how much real traffic those connections carry.&lt;/strong&gt; A synchronous, thread-per-connection (or process-per-connection) architecture handles concurrency by handing each incoming connection its own thread, which then blocks on I/O until that connection has data to process. This model is simple to reason about, but it has a structural cost that only becomes visible under load: every thread the kernel schedules carries real overhead, independent of whether that thread is doing useful work.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Context switching dominates under high concurrency.&lt;/strong&gt; Once thread count climbs into the thousands, the kernel spends a growing share of every CPU cycle just deciding which thread runs next, rather than executing application code. This overhead scales with connection count, not with actual traffic volume.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each thread carries a fixed memory and scheduling cost.&lt;/strong&gt; A blocked thread waiting on a slow or intentionally slow-drip connection, exactly what a flood does, still occupies a kernel scheduling slot and its full stack allocation, even while doing nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock contention compounds under pressure.&lt;/strong&gt; Many synchronous frameworks serialize access to shared state, connection pools, logging buffers, rate-limit counters, behind a lock. As thread count rises, contention on that lock rises with it, and CPU that should be doing I/O work goes into spinning or waiting on the lock instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The practical result: CPU usage under a synchronous architecture rises non-linearly as connection count increases, because each additional connection adds fixed kernel-level overhead on top of whatever actual work it represents. A flood of mostly-idle, slow-drip connections, the kind a botnet is cheap to generate, is close to a worst case for this model, since it maximizes thread count while minimizing actual useful throughput per thread.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A useful diagnostic: if CPU usage during an incident tracks connection count more closely than it tracks request throughput, that's a strong sign the bottleneck is architectural, kernel scheduling and context-switch overhead, rather than application logic actually working harder.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  2. How async event loops absorb the same flood
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Async event-loop architectures decouple CPU cost from connection count, since a small fixed pool of threads multiplexes across thousands of connections via non-blocking I/O.&lt;/strong&gt; An asynchronous, event-loop-based architecture handles concurrency differently: a small, fixed number of OS threads, often just one per CPU core, cooperatively multiplexes across thousands of connections using non-blocking I/O and an event notification mechanism like &lt;code&gt;epoll&lt;/code&gt; on Linux.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connection count no longer drives thread count.&lt;/strong&gt; Whether the event loop is juggling 100 connections or 100,000, it's still running on the same small, fixed set of OS threads, so the kernel-level context-switching cost that scales with connection count in the synchronous model simply doesn't apply here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Idle connections cost almost nothing.&lt;/strong&gt; A connection with no data to process just sits in the kernel's I/O readiness table until it has something to report. It doesn't hold a thread, a stack, or a scheduling slot the way a blocked synchronous thread does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CPU usage tracks actual work, not connection count.&lt;/strong&gt; Because the event loop only spends cycles on connections that have real I/O ready to process, CPU usage under an async architecture scales much more closely with actual request throughput than with the raw number of open connections.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is precisely why a slow-drip flood, designed to maximize open connection count while minimizing real work per connection, is far less effective against an async architecture: the attack's core mechanism, exhausting per-connection kernel resources, doesn't have the same leverage when connections aren't consuming dedicated threads in the first place.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What this means for container CPU footprints specifically
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A synchronous listener's container CPU limit must be sized for worst-case connection count, while an async listener's CPU footprint stays tied to request throughput, not to the number of open connections.&lt;/strong&gt; In a containerized environment, this architectural difference has a direct, measurable cost implication. A container running a synchronous, thread-per-connection listener needs its CPU limit sized for worst-case concurrent connection count, not average throughput, because that's what drives its actual CPU consumption under load. Undersize it, and a flood causes CPU throttling that degrades every other workload sharing that node; oversize it defensively, and you're paying for headroom that sits idle outside of incident windows.&lt;/p&gt;

&lt;p&gt;An async architecture decouples those two numbers. Its CPU footprint under a connection flood stays much closer to its footprint under normal load, because the mechanism driving synchronous CPU spikes, kernel scheduling overhead scaling with thread count, isn't in play. This makes capacity planning materially simpler: you size for expected request throughput, not for a worst-case connection count that a botnet can generate for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Operational signals worth tracking
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A synchronous listener's CPU usage tracks connection count under a flood, while an async listener's CPU usage stays tied to actual request throughput.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ratio of open connections to CPU usage.&lt;/strong&gt; A synchronous listener will show this ratio climbing during a flood; an async one should stay comparatively flat, since connection count and CPU cost are decoupled by design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kernel context-switch rate&lt;/strong&gt; (visible via &lt;code&gt;vmstat&lt;/code&gt; or &lt;code&gt;/proc/stat&lt;/code&gt; on the host) during a suspected flood. A sharp rise here, disproportionate to actual request volume, points directly at thread-per-connection overhead rather than application-layer load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Container throttling events&lt;/strong&gt; correlated with connection count rather than request rate. If your orchestrator's CPU throttling metric spikes in lockstep with concurrent connections rather than requests per second, the listener architecture is very likely the root cause, not insufficient CPU limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thread count inside the container&lt;/strong&gt; during an incident. A synchronous architecture will show thread count scaling directly with connection count; an async one will show a flat, small thread count regardless of load.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This same asymmetry is what makes a lightweight async decoy service a useful tool for absorbing and studying flood traffic directly: because it doesn't spend a thread per connection, it can safely accept far more concurrent flood traffic on the same CPU footprint as a normal service, generating detailed telemetry on the attack instead of falling over from it. This is the same architectural principle &lt;a href="https://github.com/Qyleron/EchidraOSS" rel="noopener noreferrer"&gt;Echidra OSS&lt;/a&gt; is built on.&lt;/p&gt;

&lt;p&gt;The floods this architecture absorbs most often originate from the same botnet infrastructure covered in &lt;a href="https://qyleron.com/blog/ssh-bruteforce-botnet-patterns/" rel="noopener noreferrer"&gt;Analyzing SSH Brute-Force Patterns&lt;/a&gt;, the credential-spraying stage there and the connection-flood stage here are frequently run from overlapping pools of compromised hosts.&lt;/p&gt;

&lt;h2&gt;
  
  
  See it in action
&lt;/h2&gt;

&lt;p&gt;We ran a live SYN flood against a deployed Echidra OSS honeypot and measured what actually happened to its CPU and memory in real time.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/7fJcO2ziX-4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result:&lt;/strong&gt; In our reproducible request-flood test, memory stepped up once on first traffic and then stayed flat, and CPU stayed elevated for about 79 seconds while the backlog was processed, then dropped straight back to idle. No restarts. You can &lt;a href="https://github.com/Qyleron/EchidraOSS/tree/main/benchmarks" rel="noopener noreferrer"&gt;reproduce the test yourself&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  See Deception-Based Detection in Action
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Echidra OSS&lt;/strong&gt; is an open-source cyber deception engine (AGPLv3). Deploy a lightweight decoy alongside your real infrastructure and map unauthorized access attempts to MITRE ATT&amp;amp;CK in real time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lightweight:&lt;/strong&gt; ~50MB idle, ~150MB after a request flood (our tests).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Burst-tolerant:&lt;/strong&gt; no crashes under a request flood; CPU back to idle in under 90 seconds.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://qyleron.com/setup-and-onboarding/" rel="noopener noreferrer"&gt;View the Deployment Guide&lt;/a&gt; · &lt;a href="https://github.com/Qyleron/EchidraOSS/tree/main/benchmarks" rel="noopener noreferrer"&gt;Reproduce These Numbers&lt;/a&gt; · &lt;a href="https://github.com/Qyleron/EchidraOSS" rel="noopener noreferrer"&gt;Star it on GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>opensource</category>
      <category>containers</category>
    </item>
    <item>
      <title>Benchmarking Cyber Deception: Why Legacy Honeypots Fail Under High Concurrency (And How EchidraOSS Fixes It)</title>
      <dc:creator>Qyleron</dc:creator>
      <pubDate>Tue, 01 Sep 2026 04:30:00 +0000</pubDate>
      <link>https://dev.to/qyleron/benchmarking-cyber-deception-why-legacy-honeypots-fail-under-high-concurrency-and-how-echidraoss-48d</link>
      <guid>https://dev.to/qyleron/benchmarking-cyber-deception-why-legacy-honeypots-fail-under-high-concurrency-and-how-echidraoss-48d</guid>
      <description>&lt;p&gt;A concurrency comparison of Cowrie, Thinkst Canary, and generic Twisted listeners against EchidraOSS's async FastAPI core. The difference shows up exactly when it matters most: under a connection flood.&lt;/p&gt;

&lt;p&gt;Most honeypot evaluations compare feature checklists: protocol coverage, decoy realism, alerting integrations. Those details matter, but they skip the variable that actually decides whether a deception layer survives contact with the internet. That variable is simple: &lt;strong&gt;what happens to the listener process when a hundred connections arrive in the same second.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This isn't a hypothetical. Mass-scanning botnets, credential-stuffing swarms, and internet-wide research crawlers such as Shodan and Censys don't trickle in. They arrive in bursts. A deception system that can't absorb a burst doesn't fail gracefully. It drops connections, skips logging, or pins a CPU core, and that's precisely the moment you lose the session data the honeypot was deployed to capture.&lt;/p&gt;

&lt;p&gt;We built EchidraOSS around that failure mode instead of treating it as an afterthought. This post breaks down why the dominant architectures in the honeypot space, including Cowrie's Twisted reactor and the raw Twisted or socket listeners teams often build themselves, hit a concurrency ceiling, and how Thinkst Canary's managed appliance model sidesteps it. Then it covers what EchidraOSS does differently at the architecture level.&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Asynchronous concurrency: the event loop is the whole story
&lt;/h2&gt;

&lt;p&gt;Cowrie is built on Twisted's reactor pattern, an event-driven model that predates &lt;code&gt;asyncio&lt;/code&gt; by over a decade. The reactor is also a single-threaded event loop, so the model itself isn't the limit. The limit is whatever runs on the loop: any blocking or CPU-heavy step in a callback holds up every other connection, so a burst of new SSH negotiations competes for the same loop turn as everything already in flight. Generic, self-built listeners usually have a lower ceiling: many use a thread per connection or blocking socket reads, and they lack Cowrie's years of incremental tuning.&lt;/p&gt;

&lt;p&gt;Thinkst Canary sidesteps the software problem by shipping a managed appliance. It solves concurrency by dedicating hardware or a locked-down VM to the problem, not by fixing the underlying model. That approach works, and it's also why Canary is priced and deployed as infrastructure rather than as software you drop into an existing box.&lt;/p&gt;

&lt;p&gt;EchidraOSS's listeners and API run on &lt;strong&gt;Python 3.11+ with FastAPI's async event loop&lt;/strong&gt;. Every connection handler is a coroutine, not a thread and not a blocking socket read. When a scanning bot opens fifty SSH connections in the same second, those connections don't each claim a thread. They're all suspended on I/O at once, and the loop services whichever one has data ready, in the order the operating system delivers it. The slow work, classifying and storing each finished session, is handed to a small, bounded pool of background workers, so it never runs on the loop and a flood can't grow the backlog without limit. There's no thread-per-connection overhead and no context-switch cost that scales linearly with load.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The practical effect: the listener doesn't spend a thread per connection, so connection count isn't what drives its CPU cost.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;What that looks like in practice: in our own test, a 10-second burst of 1,000 HTTP requests at 100 per second kept the honeypot process working at 100 to 130% CPU for about 79 seconds while it classified and stored the sessions, then it dropped straight back to idle. Memory stepped up once on first traffic and stayed flat afterward. Every session still costs real work, and that work outlasts the flood itself. The architecture keeps the cost tied to the requests, not to the number of open connections.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Funijd2b5abqtqbtqmk9p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Funijd2b5abqtqbtqmk9p.png" alt="Line chart showing EchidraOSS honeypot CPU rising to about 130% during a 10-second request flood, staying elevated for about 79 seconds while the backlog is processed, then dropping straight back to idle" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Fig. 1:&lt;/strong&gt; EchidraOSS CPU during and after a request flood, measured with the public benchmark.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Low memory footprint: deployable on a VPS for about $6 a month
&lt;/h2&gt;

&lt;p&gt;Concurrency headroom only helps if it doesn't cost you a fleet of memory. This is where Cowrie's process model and self-built Twisted listeners tend to sprawl. Every open session carries its own buffered state and protocol objects, and Cowrie specifically adds a simulated filesystem context per connection. That overhead adds up fast once you're running SSH, HTTP, FTP, and Telnet decoys side by side.&lt;/p&gt;

&lt;p&gt;EchidraOSS keeps its footprint down through &lt;strong&gt;modular service design&lt;/strong&gt;. The honeypot listeners, with their classification workers, and the dashboard API run as separate processes that share a single PostgreSQL instance instead of each maintaining redundant in-memory state. Session objects are short-lived: they exist as coroutine-local state for the duration of the connection, get classified, get written to Postgres, and are released. In our tests, memory grew only slightly after its initial step up on first traffic.&lt;/p&gt;

&lt;p&gt;That design is exactly why the reference deployment path (see the &lt;a href="https://qyleron.com/setup-and-onboarding/" rel="noopener noreferrer"&gt;Setup and Onboarding guide&lt;/a&gt;) runs comfortably as a single Docker Compose stack, honeypot listeners, dashboard API, and PostgreSQL together, on a 1 vCPU, 1GB RAM instance that costs about &lt;strong&gt;$6 a month&lt;/strong&gt; at providers such as DigitalOcean, Vultr, or Hetzner. You're sizing for a modest, observed footprint, not a worst-case ceiling.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd7zqsnngvt2t8hum0z1v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd7zqsnngvt2t8hum0z1v.png" alt="Bar chart showing EchidraOSS resident memory at idle (50MB) and after three request floods (156MB each), stepping up once and then staying flat" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Fig. 2:&lt;/strong&gt; EchidraOSS memory before and after a request flood, measured with the public benchmark.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Real-time log classification: no post-processing pipeline required
&lt;/h2&gt;

&lt;p&gt;This is the gap that matters most once you're running one of these tools in production. Cowrie, generic Twisted listeners, and most self-built setups write &lt;strong&gt;unstructured text logs&lt;/strong&gt;, whether that's JSON lines or flat text, with no semantic layer on top. Turning "attacker ran &lt;code&gt;cat /etc/passwd&lt;/code&gt;, then downloaded a binary with &lt;code&gt;wget&lt;/code&gt;" into "this was a credential-harvesting attempt followed by second-stage payload retrieval, MITRE T1552 and T1105" is left entirely to you: a Logstash pipeline, a Splunk query, or a homegrown script that somebody has to maintain and retune every time attacker tooling shifts. Thinkst Canary does better here with its own hosted console, but the classification logic is closed. You get an alert, not an inspectable rule trail.&lt;/p&gt;

&lt;p&gt;EchidraOSS classifies sessions &lt;strong&gt;natively, at capture time&lt;/strong&gt;, using a deterministic rule engine. It's not an LLM call and not a black box. Every closed session runs through classification rules that assign an actor label (for example, &lt;code&gt;brute_force_bot&lt;/code&gt;), an intent such as reconnaissance, credential theft, or persistence, a risk score from 0 to 100, and one or more &lt;strong&gt;MITRE ATT&amp;amp;CK technique IDs&lt;/strong&gt;, all before the session reaches a dashboard query. Because the rules are deterministic pattern matches over observed command and request behavior rather than a model inference call, classification runs in-process at session close. There's no network round trip, no queueing on an inference server, and no variance from a probabilistic model changing its answer between runs.&lt;/p&gt;

&lt;p&gt;The downstream result is what the &lt;a href="https://qyleron.com/console-guide/" rel="noopener noreferrer"&gt;Console Guide&lt;/a&gt; calls &lt;strong&gt;Intelligence&lt;/strong&gt;. Instead of a flat firehose of logs, recurring actor-and-technique pairs get grouped into issues with evidence, a recommended fix, and an impact summary, pulled from the same built-in playbook that generated the classification. The reasoning behind every flag stays inspectable, not a mystery.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw4zs2zzdarljopxouk4m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw4zs2zzdarljopxouk4m.png" alt="EchidraOSS Issue Intelligence dashboard showing a table of grouped attacker issues by MITRE ATT&amp;amp;CK technique, with the Issue Detail panel open showing Evidence, Recommended Fix, and Impact" width="800" height="343"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Fig. 3:&lt;/strong&gt; The Intelligence view grouping recurring sessions into issues by actor and MITRE ATT&amp;amp;CK technique.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  Head-to-head: architecture
&lt;/h2&gt;

&lt;p&gt;The table below reflects the structural properties of each project's public architecture, plus EchidraOSS's own load testing. Treat the figures as directional. The point isn't the third decimal place. It's the order of magnitude, and much of that difference traces back to the concurrency model rather than to tuning.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Methodology note: EchidraOSS figures come from Qyleron's own load testing, which is public and reproducible: see the &lt;a href="https://github.com/Qyleron/EchidraOSS/tree/main/benchmarks" rel="noopener noreferrer"&gt;benchmarks folder&lt;/a&gt;. Cowrie and Thinkst Canary figures are drawn from each project's public documentation and community-reported deployment experience, not from independent lab testing we ran ourselves. Treat them as representative, not as a controlled benchmark.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;METRIC&lt;/th&gt;
&lt;th&gt;COWRIE&lt;/th&gt;
&lt;th&gt;THINKST CANARY&lt;/th&gt;
&lt;th&gt;GENERIC TWISTED LISTENER&lt;/th&gt;
&lt;th&gt;EchidraOSS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Concurrency model&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Twisted reactor, single-threaded event loop, prone to blocking&lt;/td&gt;
&lt;td&gt;Managed appliance, concurrency solved by hardware and not exposed&lt;/td&gt;
&lt;td&gt;Twisted or raw sockets, usually thread per connection&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Python 3.11, FastAPI async event loop&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory footprint&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Roughly 250 to 400MB idle, climbs with concurrent simulated-filesystem sessions&lt;/td&gt;
&lt;td&gt;Not applicable. Fixed appliance or VM allocation, not user-tunable&lt;/td&gt;
&lt;td&gt;200MB or more idle, scales roughly linearly with open threads&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;About 50MB idle, about 150MB after a request flood (our tests)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Parsing and classification speed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None native. Offline log parsing required&lt;/td&gt;
&lt;td&gt;Proprietary, cloud-side, latency not disclosed&lt;/td&gt;
&lt;td&gt;None native. Raw logs only&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Deterministic, resolved in-process at session close&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK mapping&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Not built in. Requires external tooling&lt;/td&gt;
&lt;td&gt;Alerting only, no exposed technique-level mapping&lt;/td&gt;
&lt;td&gt;Not built in&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Native, per session, with an inspectable evidence trail&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Deployment overhead&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manual Python, Twisted, and log pipeline setup&lt;/td&gt;
&lt;td&gt;Vendor-managed hardware or appliance provisioning&lt;/td&gt;
&lt;td&gt;Fully manual, no packaged deployment path&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;A single &lt;code&gt;docker compose up&lt;/code&gt;, or systemd on a bare VM&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Minimum viable hardware&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Small VM, though the log pipeline usually needs a second host&lt;/td&gt;
&lt;td&gt;Dedicated appliance or cloud instance, vendor-sized&lt;/td&gt;
&lt;td&gt;Small VM, degrades under concurrent load&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1 vCPU, 1GB: about a $6 a month cloud VPS&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is an architecture problem, not a tuning problem
&lt;/h2&gt;

&lt;p&gt;You can add more RAM to Cowrie or hand-tune a Twisted reactor's thread pool. Neither changes the underlying model. You'd be compensating for blocking I/O and unstructured logging with infrastructure spend instead of fixing what's actually blocking. EchidraOSS's advantage isn't a set of tuning flags. The async event loop and the deterministic classifier are load-bearing parts of the design from the first connection handler onward. The same code path runs at idle and under load. The async model is the path.&lt;/p&gt;

&lt;p&gt;That's also why the comparison holds up on cheap hardware. A honeypot that only performs well on generously provisioned infrastructure isn't solving the deployment problem most teams actually have: running deception at the edges of their network, cheaply, in enough places that coverage is real instead of symbolic.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;
&lt;h3&gt;
  
  
  📦 Run it yourself
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;EchidraOSS&lt;/strong&gt; is open-source under AGPLv3. Clone it, point it at a VPS that costs about $6 a month, and watch the classification engine work in real time.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/Qyleron/EchidraOSS" rel="noopener noreferrer"&gt;Clone the GitHub Repository&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/Qyleron/EchidraOSS/tree/main/benchmarks" rel="noopener noreferrer"&gt;Reproduce the benchmarks&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>cybersecurity</category>
      <category>opensource</category>
      <category>python</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
