<?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: Tekush1</title>
    <description>The latest articles on DEV Community by Tekush1 (@tekush1).</description>
    <link>https://dev.to/tekush1</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%2F4267792%2Fbc7cb909-d7dc-465c-ac6b-009c6858e293.png</url>
      <title>DEV Community: Tekush1</title>
      <link>https://dev.to/tekush1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tekush1"/>
    <language>en</language>
    <item>
      <title>Narayanastra: Detect Linux Rootkits With One Command (No Install, Written in Rust)</title>
      <dc:creator>Tekush1</dc:creator>
      <pubDate>Thu, 26 Nov 2026 22:53:40 +0000</pubDate>
      <link>https://dev.to/tekush1/narayanastra-detect-linux-rootkits-with-one-command-no-install-written-in-rust-1ld5</link>
      <guid>https://dev.to/tekush1/narayanastra-detect-linux-rootkits-with-one-command-no-install-written-in-rust-1ld5</guid>
      <description>&lt;h2&gt;
  
  
  Is Your Linux Server Already Hacked?
&lt;/h2&gt;

&lt;p&gt;When an attacker breaks into a Linux machine, the first thing they do is &lt;strong&gt;hide&lt;/strong&gt;. Rootkits make processes, files, and network connections invisible to &lt;code&gt;ps&lt;/code&gt;, &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;netstat&lt;/code&gt;, and most antivirus — because those tools ask the OS what's running, and a rootkit &lt;strong&gt;controls that answer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Narayanastra&lt;/strong&gt; is a free, open-source post-compromise scanner built in Rust. It detects hidden threats by asking the system the same question two independent ways, then comparing the answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;Narayanastra uses &lt;strong&gt;cross-view detection&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compares &lt;code&gt;/proc&lt;/code&gt; vs raw syscalls&lt;/li&gt;
&lt;li&gt;Checks netlink vs &lt;code&gt;bind()&lt;/code&gt; probes for hidden sockets&lt;/li&gt;
&lt;li&gt;Verifies kernel modules via multiple interfaces&lt;/li&gt;
&lt;li&gt;Detects hidden eBPF programs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If answers don't match, &lt;strong&gt;something is hiding&lt;/strong&gt; — Narayanastra shows you what, where, and severity (Danger / Warning / Info) with MITRE ATT&amp;amp;CK IDs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero Setup. One Command.
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL https://github.com/Tekush1/narayanastra/releases/latest/download/narayanastra-linux-x86_64 -o narayanastra
chmod +x narayanastra &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo ./narayanastra
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Single static binary. No agent. No install.&lt;/p&gt;

&lt;h2&gt;
  
  
  12 Linux Scan Modules
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;rootkit&lt;/strong&gt; — Hidden kernel modules, hooks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;process&lt;/strong&gt; — Hidden/zombie processes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;network&lt;/strong&gt; — Hidden sockets, reverse shells&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;files&lt;/strong&gt; — Tampered binaries, hidden files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;memory&lt;/strong&gt; — JIT shellcode, injected code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;logs&lt;/strong&gt; — Log wiping, anti-forensics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;persistence&lt;/strong&gt; — Cron backdoors, systemd units&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;eBPF&lt;/strong&gt; — Hidden eBPF programs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kernel hooks&lt;/strong&gt; — Syscall table modifications&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;container&lt;/strong&gt; — Container escape indicators&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;io_uring&lt;/strong&gt; — io_uring-based evasion&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;anti-forensics&lt;/strong&gt; — Active anti-analysis techniques&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Scan Modes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quick&lt;/strong&gt; — fast overview&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full&lt;/strong&gt; (&lt;code&gt;--full&lt;/code&gt;) — expensive deep checks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch&lt;/strong&gt; — continuous monitoring, new findings only&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline&lt;/strong&gt; — scan a powered-off disk where malware &lt;em&gt;can't fight back&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remote&lt;/strong&gt; — SSH upload, scan, download report, cleanup&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Container&lt;/strong&gt; — offline-style check against container filesystems&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Output Formats
&lt;/h2&gt;

&lt;p&gt;Reports in &lt;strong&gt;text, JSON, HTML, SARIF, and NDJSON&lt;/strong&gt; — ready for your SIEM, CI pipeline, or Slack/Discord webhook.&lt;/p&gt;

&lt;p&gt;Exit codes: &lt;code&gt;0&lt;/code&gt; clean, &lt;code&gt;1&lt;/code&gt; warnings, &lt;code&gt;2&lt;/code&gt; danger, &lt;code&gt;3&lt;/code&gt; error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Rust?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Memory-safe with zero runtime overhead&lt;/li&gt;
&lt;li&gt;Static musl binary (no glibc dependency)&lt;/li&gt;
&lt;li&gt;Runs on &lt;code&gt;x86_64&lt;/code&gt; and &lt;code&gt;aarch64&lt;/code&gt; Linux + Windows&lt;/li&gt;
&lt;li&gt;Parallel modules for fast scans&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Open Source &amp;amp; Free (MIT)
&lt;/h2&gt;

&lt;p&gt;Built by &lt;strong&gt;Kushagra Dwivedi&lt;/strong&gt; — founder of CyberHX, a cybersecurity platform focused on practical security tools and training.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Tekush1/narayanastra" rel="noopener noreferrer"&gt;https://github.com/Tekush1/narayanastra&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Star it, try it on your servers, open an issue if you find something interesting. 🛡️&lt;/p&gt;

</description>
      <category>securityrustopensourcelinux</category>
    </item>
  </channel>
</rss>
