<?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 Muhsin on Medium]]></title>
        <description><![CDATA[Stories by Muhsin on Medium]]></description>
        <link>https://medium.com/@muhsinbinirshad?source=rss-3b4d8fd30aa3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tDC9oW1K1pcZvFrU7kLVPg.png</url>
            <title>Stories by Muhsin on Medium</title>
            <link>https://medium.com/@muhsinbinirshad?source=rss-3b4d8fd30aa3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:32:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhsinbinirshad/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[If I Had to Learn Cyber security From Zero in 2026, This Is Exactly What I Would Do]]></title>
            <link>https://medium.com/@muhsinbinirshad/if-i-had-to-learn-cyber-security-from-zero-in-2026-this-is-exactly-what-i-would-do-3f7fad465838?source=rss-3b4d8fd30aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f7fad465838</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-learning]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cybersecurity-training]]></category>
            <dc:creator><![CDATA[Muhsin]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 21:56:05 GMT</pubDate>
            <atom:updated>2026-10-01T09:57:32.785Z</atom:updated>
            <content:encoded><![CDATA[<h3>If I Had to Learn Cybersecurity From Zero in 2026, This Is Exactly What I Would Do</h3><p>Today I’m going to share how I would start cybersecurity if I had to begin from zero in 2026. Not a giant list of tools and certifications, just the path I think actually works and what I would focus on first. So yeah.. let’s start guuys.</p><h3>The Story</h3><p>I keep seeing cybersecurity roadmaps everywhere, and most of them look the same: 30 certifications, 50 tools, 4 programming languages and a long list of CTF platforms. Basically, everyone tells you to learn everything. As a beginner, that’s confusing. You open 20 tabs, save 10 roadmaps, and still don’t know what to learn first.</p><p>When I started looking for bugs in websites, what helped me wasn’t knowing more tools. It was understanding how the application actually worked, so when I saw something weird in the traffic, I knew why it was weird. That’s what I’d focus on again if I had to start from zero: first understand how things work, then learn how to break them, and finally learn how to secure them.</p><h3>How I Would Learn</h3><p>Before we start the road-map, here’s the learning process I would follow for almost every topic</p><ol><li><strong>Read first:</strong> Start with an article, documentation, or a good blog post about the topic</li><li><strong>Note what you don’t understand:</strong> Write down every word, term, or concept that you don’t understand properly</li><li><strong>Research those points:</strong> Do a quick search, or ask ChatGPT or any other AI tool to explain them, then go back to the original topic</li><li><strong>Repeat until it clicks:</strong> Keep doing this until you understand the full context, not just the surface-level part</li><li><strong>Then watch a YouTube video:</strong> At this point, the video will reinforce what you already learned instead of teaching you everything from zero</li></ol><p>Yes, this takes a bit more time, but I think it’s worth it. I prefer to read and research first, understand the topic, and only then use YouTube to reinforce it. This way you understand why things work instead of just copying steps.</p><p>Also you can use AI, but a small warning: it can be wrong and still sound very confident, so always verify important things against the documentation or multiple sources. And please don’t make ChatGPT your first option every time. Try to think and research on your own first, or you can slowly become too dependent on it. I’m saying this from experience: I’ve been using ChatGPT since 2022, and it’s honestly a little scary how dependent you can become.The Way</p><h4><strong>1. IT fundamentals first</strong></h4><p>This doesn’t feel like cybersecurity in the beginning, but you need it. If you skip the basics, everything later will feel like random words. Learn how operating systems work, what a process is, how files, permissions and users work, and what happens when you turn on a computer and run a program. Get comfortable with the command line, because you’ll spend a lot of time there. You don’t need to master all of it. Just know enough that a security concept like “privilege escalation” makes sense because you already understand what privileges are.</p><h4><strong>2. Networking</strong></h4><p>You don’t need to become a network engineer, but understand the basics properly: IP addresses, TCP/UDP, ports, DNS, DHCP, NAT, HTTP/HTTPS, VPNs, firewalls and proxies. If Nmap shows you 80 open, you should know what that actually means instead of moving to the next port. Try to follow a single request from your browser to a website: how the name gets resolved, how the connection is made and how the data travels back. Tools like Wireshark are great here because you can actually see the packets instead of just imagining them.</p><h4><strong>3. Linux, properly</strong></h4><p>Don’t install Kali and copy commands from YouTube. Kali is just a collection of security tools. The real skill is understanding Linux: users, permissions, processes, services, SSH, Bash and logs. Install a normal distro like Ubuntu in a virtual machine and use it daily. Break it, fix it, set up a web server, read the logs and see what happens when someone tries to log in. When you understand the system underneath, the tools start making sense.</p><h4><strong>4. Learn some programming</strong></h4><p>You don’t need to be a full-time developer, but you should be able to read code and understand what it does. Start with Python, Bash, basic JavaScript, SQL, JSON and APIs. Write small scripts, send HTTP requests, parse files and automate small things. A simple port scanner, a log parser or a script that calls an API are all good first projects. Building one small tool teaches you more than installing 20 tools you never understand.</p><h4><strong>5. Understand how the web works</strong></h4><p>If you want to get into offensive security, spend a good amount of time here. Understand cookies, sessions, authentication, authorization, APIs, frontend, backend and how data moves between them. Open your browser’s developer tools and watch the requests a website makes. Look at the cookies, headers and API calls. Most web bugs come from small mistakes in how these pieces trust each other.</p><p>IDOR (Insecure Direct Object Reference) is a good example of this kind of vulnerability. You don’t need to memorize the definition. If an application trusts something like /api/user/123 and doesn&#39;t check whether you&#39;re allowed to access user 123, that&#39;s the problem. Change the number to 124, and if someone else&#39;s data comes back, you&#39;ve found it.</p><h4><strong>6. Then learn the vulnerabilities</strong></h4><p>Now learn SQL injection, XSS, CSRF, IDOR, SSRF, file upload issues, command injection, API vulnerabilities, business logic issues and misconfigurations. Don’t just read the definition. For each one, ask yourself: what is the application trusting here, and why is that a mistake? Then build a vulnerable application, attack it, understand why it worked, fix it, and try to break it again. PortSwigger Web Security Academy and intentionally vulnerable apps like DVWA or OWASP Juice Shop are free and perfect for this. That cycle of break, fix and break again is where the real understanding comes from.</p><h4><strong>7. Learn only the tools you need</strong></h4><p>You don’t need 100 tools. Start with a handful: Burp Suite, Nmap, Wireshark, Metasploit, ffuf, Gobuster and Nuclei. But remember, the tool is not the skill. If a scanner gives you 500 results, that doesn’t mean you found 500 vulnerabilities. Most of them might be noise. The real skill is knowing what each result means, why it matters, and how to verify it yourself.</p><h4><strong>8. Do hands-on labs</strong></h4><p>Use TryHackMe, Hack The Box, PortSwigger Academy, OverTheWire and CTFs. Don’t just solve machines by following writeups. Try to understand why the attack worked. You don’t understand a security control until you try to bypass it, and you don’t understand a vulnerability until you exploit it in a lab.</p><h4><strong>9. Don’t stop at CTFs</strong></h4><p>Start building your own stuff: a small home lab, an Active Directory setup, a vulnerable web app, a SIEM with Windows logs and detection rules, or something small in AWS or Azure. It doesn’t have to be huge. Build it, break it, fix it, and understand what’s happening.</p><p>I know most people don’t have a powerful laptop or money to spend on this, and that’s okay. You don’t need expensive hardware. Start with free tools like VirtualBox or VMware Workstation Player and run small virtual machines on your own system. If your laptop is low on RAM, use a cloud free tier or free trial instead: AWS, Azure and GCP all offer free tiers or trial credits, and some VPS providers have cheap plans or trial offers. Just check the current limits before you start, and set a billing alert so you don’t get a surprise charge. Keep your labs small, shut them down when you’re not using them, and only build what you need. Then put your work on GitHub and write about it in medium.com, because eventually someone will ask, <strong>“<em>What can you actually do?</em>”</strong> and you should have something to show.</p><h4><strong>10. Certifications are not the roadmap</strong></h4><p>Certifications can help, but not all of them are equal. Security+ and Network+ give you structure and can help get past HR filters, but many entry-level certs are multiple-choice exams you can pass by memorizing dumps. CEH is the usual example. It’s well known, but a lot of people in the industry don’t take it seriously because it tests what you remember, not what you can do.</p><p>The certs that carry real weight are the hands-on ones, where you have to compromise machines or find vulnerabilities in a lab and can’t fake it. Good examples are <strong>BSCP</strong> from PortSwigger for web security, <strong>CRTP</strong> and <strong>CRTO</strong> for Active Directory and red teaming, <strong>OSCP </strong>for pentesting, and the Hack The Box certifications like <strong>CPTS </strong>and <strong>CBBH</strong>. HTB’s exams are fully practical and their training paths go deep, which is why many people rate them highly. To be honest, none of these are beginner certs. But if you’re motivated and willing to put in the work, they’re totally achievable, and people respect them because you can only pass by actually doing the work.</p><p>Don’t make your roadmap Cert → Cert → Cert → Cert. Pick one or two practical certs that match your direction, solve the labs honestly without copying writeups, and back them up with real projects. I’d rather see a couple of hands-on certifications and good projects than a wall of certificates with no practical work behind them.</p><h4><strong>11. Learn cloud</strong></h4><p>Pick one: AWS, Azure or GCP. You don’t need to be an architect. Just understand IAM, roles, storage, networks, security groups, containers, secrets and logging. A lot of modern applications run in the cloud, so you need to know how that environment works.</p><p>The good news is that most cloud providers give you high-quality learning material for free or very cheap, and starting with their own material is the most reliable choice. AWS has AWS Skill Builder, Azure has Microsoft Learn, and Google has Google Cloud Skills Boost (formerly Cloud Skills Boost/Qwiklabs), which gives you guided hands-on labs. Since it’s coming straight from the provider, it’s usually accurate and up to date.</p><p>But I’ll be honest: it covers everything, and it can feel complicated and overwhelming, especially in the beginning. You’ll see hundreds of services and a lot of unfamiliar terms. That’s normal. I still suggest going for it. Don’t try to learn the whole platform. Follow the same process from the start of this blog: read first, note what you don’t understand, research it, and then go back. Focus on the security-related parts first, like IAM, storage permissions and logging, and it will slowly start making sense.</p><h4><strong>12. Learn Windows and Active Directory</strong></h4><p>If you’re interested in pentesting or red teaming, you need to spend real time on Windows and Active Directory. Most companies run their internal networks on AD, so a huge part of enterprise security comes down to understanding how it works and how it gets misconfigured.</p><p>Start with the basics: Windows fundamentals, users, groups, permissions and PowerShell. Then move into Active Directory itself: what a domain and a domain controller are, how authentication works with Kerberos, how LDAP stores and queries directory data, and how SMB file sharing works. Once that makes sense, look at tools like BloodHound, which maps relationships inside a domain and shows you attack paths you would never spot manually. Don’t just memorize commands. Understand what’s happening underneath, like why a certain misconfiguration lets you move from a normal user to domain admin.</p><p>One thing I have to be honest about: this is the part where hardware starts to matter. To practice properly, you need to build your own AD lab, and even a basic one means running a domain controller, a couple of Windows clients or servers and an attacker machine at the same time. That’s at least 4 virtual machines, and a powerful laptop with a minimum of 16 GB RAM makes it much smoother. If you don’t have that, don’t give up. Start with a smaller setup (one DC and one client), shut down machines you’re not using, or You can also use the AD labs on TryHackMe, Hack The Box or other lab platforms while you work toward building your own.</p><h4><strong>13. Build a habit of reading security research</strong></h4><p>Try to read something related to cybersecurity every day, even if it’s only 20 or 30 minutes. Read vulnerability reports, CVEs, bug bounty writeups, pentesting blogs and disclosures.</p><p>I personally like cybersecurity blogs on Medium, especially writeups from other pentesters. You see how someone approached a problem, what they noticed, what they tried and how they found the bug. Sometimes you’ll think, “I would have never tried that.” That’s exactly the point, because it helps you think outside the normal checklist.</p><p>In the beginning, I wouldn’t spend too much time on HackerOne or Bugcrowd activity reports. They can be complicated while you’re still learning the basics. Start with simple Medium blogs and writeups, and go deeper once your fundamentals are strong.</p><h4><strong>14. Read real research and try to reproduce it</strong></h4><p>Don’t just read a writeup and say, “Nice vulnerability.” Try to recreate the idea in your own lab. Read CVEs, bug bounty reports, pentest reports, incident reports and CTF writeups, then build a small environment to test the same concept. This is where you stop thinking like someone studying cybersecurity and start thinking like a security researcher.</p><h4><strong>15. Use AI as a helper, not a shortcut</strong></h4><p>AI is one of the biggest changes compared to a few years ago. It can help with research, debugging, explaining code, automation and understanding vulnerabilities faster. But it should support your learning, not replace it.</p><p>Try to figure things out yourself first. Read, research, test in your lab, get stuck, and then use AI to explain the parts you couldn’t solve. That way you’re using it to go faster, not to think for you.</p><p>Also learn the security side of AI: LLM basics, prompt injection, AI application security, agents and how AI is used in security research.</p><p>And remember, AI can be confidently wrong. The better your fundamentals are, the easier it is to spot when it gives you a bad answer. AI won’t make you good at cybersecurity. Your understanding will, and AI can make that understanding grow faster.</p><h4><strong>16. Choose a direction</strong></h4><p>At some point you’ll find something you enjoy more: web pentesting, bug bounty, red teaming, AppSec, cloud security, SOC, DFIR, threat hunting, malware analysis, vulnerability research, exploit development or AI security. You don’t need to choose on day one. Try different things, see what keeps you curious, then go deeper.</p><h3>Conclusion</h3><p>The biggest mistake beginners make is trying to learn security only by watching and reading. Another course, another cert, another tool feels like progress, but at some point you have to sit in front of a real system and figure it out yourself. So keep it simple: learn the basics properly, read and research before you watch videos, build small labs, break things, and write down what you learn. Go for hands-on certs over multiple-choice ones, and use AI to help you, not to think for you.</p><p>Tools, certs and AI models will keep changing. But if you understand how systems actually work, you can learn whatever comes next. That’s the roadmap I’d follow if I had to start from zero in 2026. See you in the next one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f7fad465838" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Was Able to Extract Half a Million Users’ Data Through Simple Misconfigurations and Bug…]]></title>
            <link>https://medium.com/@muhsinbinirshad/how-i-able-to-extract-half-a-million-users-data-through-simple-misconfigurations-and-bug-chaining-23add47c43db?source=rss-3b4d8fd30aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/23add47c43db</guid>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[data-breach]]></category>
            <category><![CDATA[apihacking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bola]]></category>
            <dc:creator><![CDATA[Muhsin]]></dc:creator>
            <pubDate>Thu, 12 Sep 2024 07:28:04 GMT</pubDate>
            <atom:updated>2024-09-12T07:41:13.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Was Able to Extract Half a Million Users’ Data Through Simple Misconfigurations and Bug Chaining in an API</h3><p>Today, I’m going to show you how I was able to extract around half a million users’ data by leveraging some misconfigurations and chaining vulnerabilities. Let’s dive in!</p><h3>The Story</h3><p>I found this vulnerability back in December 2023. Like most days, I was searching for bugs on websites I visit . I have this habit of inspecting websites whenever I have some spare time, especially looking for interesting elements like API keys, endpoints in JavaScript files, and ohter request patterns. I also often try various injection attacks just to test the security.</p><p>That day was no different. I visited a website and started my routine: reading the JavaScript files for anything interesting. Unfortunately, nothing stood out. So, I moved on to inspecting HTTP traffic.</p><h3>The Way</h3><p>While analyzing the HTTP traffic, I discovered that the application was using a REST API to fetch and update user data. After some digging, I came across an API endpoint that was used to retrieve user addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQj27em-xs6wkCI5H_lMzA.png" /></figure><p>Curious, I decided to test this endpoint further. The first thing I tried was a Broken Object Level Authorization (BOLA) attack, also known as an IDOR (Insecure Direct Object Reference) attack in web applications. I attempted to change my user ID parameter to another user’s ID in the request.</p><p>However, this initial attempt was blocked, and I received a 401 Unauthorized response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9iSJ6kA-xakEdjQyBdpxA.png" /><figcaption>401 Unauthorized when using “api”</figcaption></figure><h3>Digging Deeper: API Versioning</h3><p>I wasn’t ready to give up just yet. My next step was to check for any deprecated or older API versions that might still be accessible. I started by altering the API version in the request. Initially, I changed it from &quot;api&quot; to &quot;v1&quot;, but that didn’t work. Then, I tried &quot;v2&quot; and – boom! I was able to retrieve another user’s address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSbC1pid9qxB505oPxum-A.png" /><figcaption>changed to 200 ok when use “v2”</figcaption></figure><h3>Brute Forcing User Data</h3><p>Realizing that I had found a vulnerability, I began testing further by brute-forcing user IDs to enumerate more addresses. During the brute-forcing process, I noticed that the application didn’t have any rate limiting in place, allowing me to extract a significant amount of user data without being blocked.</p><p>In just two hours, I managed to extract around 100,000 user addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJd8hIhe0zmyClpTyS6TFg.png" /><figcaption>Intruder result</figcaption></figure><h3>Conclusion: A Chain of Vulnerabilities</h3><p>This wasn’t just one vulnerability. It was a chain of multiple issues that, when combined, led to a massive data breach:</p><ol><li><strong>Improper Asset Management</strong> — Deprecated APIs were still accessible.</li><li><strong>Broken Access Control</strong> — The v2 API version allowed unauthorized access to user data.</li><li><strong>No Rate Limiting</strong> — The absence of rate limiting enabled me to extract a large volume of user data without any restrictions.</li></ol><p>By exploiting these misconfigurations, I was able to access and extract the personal data of hundreds of thousands of users. This incident highlights the importance of proper security hygiene, including access controls, asset management, and implementing rate limiting in APIs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23add47c43db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything You Need to Know About Docker]]></title>
            <link>https://medium.com/@muhsinbinirshad/everything-you-need-to-know-about-docker-d5b5de5e7289?source=rss-3b4d8fd30aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5b5de5e7289</guid>
            <category><![CDATA[docker-container]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[hypervisors]]></category>
            <dc:creator><![CDATA[Muhsin]]></dc:creator>
            <pubDate>Thu, 09 May 2024 07:31:48 GMT</pubDate>
            <atom:updated>2024-05-09T07:41:27.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Op4kDY4K4d126AL8ohW4aw.png" /></figure><h3>What is Docker?</h3><p>Docker is an open-source platform that developers use to automate application deployment within lightweight, portable, self-sufficient containers. These containers package everything an application needs to run, including code, runtime, system tools, libraries, and settings. By sharing the host machine’s kernel, containers achieve a smaller footprint compared to virtual machines. Docker promotes a consistent environment across different machines, from development to production, streamlining the process of building, shipping, and running applications.</p><h3>How Does Docker Work?</h3><p>Docker utilizes containerization technology to create and manage containers. Containers are instances of Docker images — pre-built packages that contain all the necessary components to run a specific application. Docker allows you to define these images using a simple text file called a Dockerfile, which specifies the steps needed to assemble the image.</p><p>When you run a Docker container, it uses the underlying host operating system’s kernel but isolates the application’s process and resources. This isolation ensures that the containerized application runs consistently regardless of the host environment.</p><h3>Problems Docker Solves</h3><p>Before Docker, deploying and managing applications was complex and error-prone. Developers had to deal with issues like:</p><ul><li><strong>Dependency conflicts: </strong>Different environments required different versions of libraries and dependencies.</li><li><strong>Inconsistencies: </strong>Applications behaved differently in development, testing, and production environments.</li><li><strong>Deployment challenges:</strong> Moving applications between different servers or platforms was cumbersome and time-consuming.</li></ul><h3>Without Docker vs. With Docker.</h3><p><strong>Without Docker:</strong></p><ul><li>You’d need to manually install dependencies like databases, web servers, or libraries on each server.</li><li>Compatibility issues could arise due to differences in operating systems or software versions.</li><li>Scaling and deploying applications across multiple servers could be challenging and time-consuming.</li></ul><p><strong>With Docker:</strong></p><ul><li>You package your application and all its dependencies into a container once.</li><li>This container can be easily shared and run on any machine that has Docker installed, regardless of the underlying OS.</li><li>Scaling and deploying applications becomes much simpler as you can spin up multiple containers easily.</li></ul><h3>Real-Life Example: Sharing a Tool Using Docker:</h3><p><strong>Develop the Tool on Windows</strong>:</p><ul><li>The developer writes a Python script (tool.py) using Windows and installs necessary libraries (e.g.,requests) using pip.</li></ul><p><strong>Containerize the Tool with Docker</strong>:</p><ul><li>Create aDockerfilein the project directory:</li></ul><pre># Use an official Python runtime as a parent image<br>FROM python:3.9<br><br># Set the working directory in the container<br>WORKDIR /app<br><br># Copy the current directory contents into the container at /app<br>COPY . /app<br><br># Install any needed dependencies specified in requirements.txt<br>RUN pip install --no-cache-dir -r requirements.txt<br><br># Define the command to run the application<br>CMD [&quot;python&quot;, &quot;toolname.py&quot;]</pre><p><strong>Build and Share the Docker Image</strong>:</p><ul><li>Build the Docker image:</li></ul><pre>docker build -t toolname .</pre><ul><li>Share the Docker image (e.g., via Docker Hub):</li></ul><pre>docker tag toolname username/toolname<br><br>docker push username/toolname</pre><p><strong>Run the Tool on Linux:</strong></p><ul><li>The friend pulls the Docker image on their Linux machine:</li></ul><pre>docker pull username/toolname</pre><ul><li>Run the tool inside a Docker container:</li></ul><pre>docker run username/toolname</pre><h3>Benefits of Using Docker in this Scenario</h3><ul><li><strong>Consistency</strong>: The Docker container ensures that the tool runs identically on both Windows and Linux environments.</li><li><strong>Dependency Management</strong>: Docker manages dependencies (e.g., Python runtime,requestslibrary) within the container, eliminating compatibility issues.</li><li><strong>Portability</strong>: The friend can run the tool without any setup or installation steps, thanks to Docker’s portability and self-contained nature.</li></ul><h3>What are Containers?</h3><p>Imagine you have a program or an application you’ve written, like a small game or what ever it is .Now, when you want to share this with others or run it on different computers, you might run into issues like different settings or missing libraries or dependencies that’s needed for your program to work.</p><p>Containers are like virtual packages that include everything your program needs to run: the code, libraries, dependencies, and settings. They’re a way to package up your program so it can run reliably and consistently on any computer that supports containers.</p><h3>What is Containerization?</h3><p>Containerization is a lightweight form of virtualization that allows you to run applications and their dependencies in isolated environments called containers. Each container shares the host operating system kernel but has its own file system, processes, and network interfaces. Containers package applications along with all the necessary libraries and dependencies, ensuring consistency and portability across different computing environments.</p><h3>What is Virtualization?</h3><p>Virtualization is a technology that creates virtual machines (VMs) on a single physical computer. These VMs act like separate computers, each capable of running its own operating system and applications. Imagine having multiple computers within your existing machine, each functioning independently.</p><h4>How Does Virtualization Work?</h4><p>Virtualization relies on software called a hypervisor. The hypervisor acts as a layer between the physical hardware and the VMs. It partitions the physical resources (CPU, memory, storage) and allocates them to each VM as needed.</p><h4>Virtualization and Its Issues</h4><p>Virtualization involves creating virtual machines (VMs) that emulate complete hardware systems, including the operating system. Each VM runs its own OS, requiring separate resource allocations and management. While VMs provide strong isolation, they can be resource-intensive due to redundant OS instances.</p><h3>Virtualization vs. Containerization</h3><p>Virtualization and containerization both involve creating isolated environments, but they work differently:</p><ul><li><strong>Virtualization</strong>: This is like running a whole new computer (a virtual machine) inside your existing computer. It’s like having a computer within a computer, with its own operating system. Virtual machines can be resource-intensive because each one requires its own operating system.</li><li><strong>Containerization</strong>: Containers share the host system’s operating system kernel and resources (like memory and CPU). They are lightweight and efficient, making them faster to start up and use fewer resources compared to virtual machines.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*BnugXQurG2kpjTG-r2sLmg.jpeg" /></figure><p>In summary, Docker revolutionizes software development and deployment by simplifying the creation, distribution, and operation of applications. With Docker, developers can package their applications and dependencies into portable containers that run consistently across different environments.</p><p>This technology addresses common challenges like dependency conflicts and environment inconsistencies, making application deployment more reliable and efficient. Docker also promotes collaboration and scalability, allowing developers to easily share and scale applications using container orchestration tools.</p><p>Whether you’re a developer aiming for a consistent development-to-production workflow or a DevOps engineer streamlining deployment processes, Docker offers significant advantages in agility, portability, and manageability.</p><p><strong>Thanks for reading</strong></p><p>please follow me on linkedin</p><p><a href="https://www.linkedin.com/in/muhsinbinirshad/">https://www.linkedin.com/in/muhsinbinirshad/</a></p><p><a href="https://app.affine.pro/share/22cb7893-851c-4fd1-b415-bc41934d8eb3/lWzJGBvrORD3sA9krJ_G5">https://app.affine.pro/share/22cb7893-851c-4fd1-b415-bc41934d8eb3/lWzJGBvrORD3sA9krJ_G5</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5b5de5e7289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows API: A Double-Edged Sword for Developers and Hackers]]></title>
            <link>https://medium.com/@muhsinbinirshad/windows-api-a-double-edged-sword-for-developers-and-hackers-163bf942786e?source=rss-3b4d8fd30aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/163bf942786e</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Muhsin]]></dc:creator>
            <pubDate>Thu, 28 Mar 2024 00:02:26 GMT</pubDate>
            <atom:updated>2024-03-28T00:02:26.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2-VTlfI577kJu-T90Vi7A.png" /></figure><p>In the world of computer systems, the Windows API is super important. It’s like a big toolbox for developers and users, giving them lots of useful stuff to work with. It helps apps talk to the operating system smoothly, handling things like managing files and controlling hardware.</p><p>But there’s a downside. Sometimes, hackers take advantage of the Windows API’s abilitys for their own sneaky reasons. In this article, we’ll take a closer look at the Windows API, checking out what it does, how it’s built, and why it’s attractive to cybercriminals</p><p><strong>Understanding the Windows API:</strong></p><p>The Windows API, also known as the Application Programming Interface, serves as a comprehensive set of functions and data structures provided by Microsoft for developers to interact with the Windows operating system. Serving as a middle layer, it abstracts the complexities of system operations, offering a standardized means for software to communicate with the underlying OS. Through the Windows API, developers can perform a lot of tasks, from creating graphical user interfaces to accessing system resources and services etc...</p><p><strong>Key Components of the Windows API:</strong></p><p><strong><em>Dynamic Link Libraries (DLLs)</em></strong> play a crucial role within the Windows API framework. These dynamic libraries contain code and data that can be utilized by multiple programs simultaneously, promoting code reuse and reducing memory usage. Numerous Windows API functions are implemented within DLLs, making them integral components of the Windows operating system.</p><p>The relationship between DLLs and the Windows API is fundamental. When an application calls a function from the Windows API, the corresponding DLL containing that function is loaded into memory, enabling the execution of the function. This dynamic linking mechanism facilitates efficient resource usage and seamless integration between applications and the operating system.</p><p><strong>Among the essential DLLs are:</strong></p><ul><li><strong>Kernel32.dll</strong>: Core functionalities for memory management, process management, and file operations.</li><li><strong>User32.dll</strong>: Handling user interface operations including window creation, message handling, and input processing.</li><li><strong>Gdi32.dll</strong>: Supporting graphical device interface operations such as drawing shapes, text, and images on the screen</li><li><strong>Advapi32.dll</strong>: Providing advanced system services like registry access, security, and event logging</li><li><strong>Wininet.dll</strong>: Facilitating internet-related operations such as HTTP requests and FTP transfers.</li><li><strong>Shell32.dll</strong>: Enabling shell operations such as file manipulation, shortcut creation, and accessing special folders.</li></ul><p>These modules encapsulate a diverse array of functions, each serving a specific purpose within the Windows ecosystem.</p><p><strong>Exploiting the Windows API:</strong></p><p>While empowering developers to create robust applications, the extensive functionality of the Windows API also presents opportunities for cybercriminals seeking to exploit system vulnerabilities. Malicious entities leverage various features of the Windows API to develop malware with harmful intents. Let’s explore some common tactics employed by cybercriminals:</p><p><strong>Process Injection:</strong></p><p>Utilizing functions like <strong><em>CreateRemoteThread</em> </strong>and <strong><em>VirtualAllocEx</em></strong> from <strong><em>Kernel32.dll </em></strong>to inject malicious code into legitimate processes, evading detection mechanisms and executing unauthorized actions within the system’s context.</p><p><strong>File Manipulation:</strong></p><p>Utilizing functions like<em> </em><strong><em>CreateFile</em></strong> and <strong><em>WriteFile</em></strong> to create, read, write, and delete files on the system, enabling them to plant malicious payloads, log keystrokes, or steal sensitive information.</p><p><strong>Registry Manipulation:</strong></p><p>Utilizing functions like <strong><em>RegCreateKey</em></strong><em> </em>and <strong><em>RegSetValue</em> </strong>from <strong><em>Advapi32.dll</em></strong><em> </em>to manipulate registry entries, modify system configurations, and establish persistence by creating autorun entries for their malware.</p><p><strong>Network Communication:</strong></p><p>Utilizing functions like <strong><em>InternetOpen</em></strong> and <strong><em>HttpSendRequest</em></strong><em> </em>from <strong><em>Wininet.dll</em></strong> to establish communication channels with remote servers, enabling data exfiltration, command-and-control operations, and downloading additional payloads.</p><p><strong>User Interaction:</strong></p><p>Utilizing functions like <strong><em>SetWindowsHookEx</em></strong> from <strong><em>User32.dll</em></strong> to monitor and intercept user input, facilitating keylogging activities or capturing sensitive information entered by users.</p><p><strong>Privilege Escalation:</strong></p><p>Exploiting vulnerabilities in functions like <strong><em>AdjustTokenPrivileges</em></strong><em> </em>to escalate privileges, gaining elevated access rights and bypassing security restrictions to perform malicious actions.</p><p><strong>Exploring Malware Development Techniques Using Windows API Functions:</strong></p><p>Understanding the techniques employed by malware developers is crucial for effective defense strategies in cybersecurity. Malicious entities leverage various functionalities offered by the Windows API to craft sophisticated malware capable of evading detection and causing significant harm. Let’s delve into some common malware development techniques and the corresponding Windows API functions utilized in each process:</p><p><strong>Networking:</strong></p><ul><li><strong><em>socket()</em></strong>, <strong><em>WSAStartup()</em></strong>: Initializing the Winsock library for network operations.</li><li><strong><em>bind()</em></strong>, <strong><em>listen()</em></strong>, <strong><em>accept()</em></strong>, <strong><em>connect()</em></strong>: Facilitating network communication.</li><li><strong><em>read()/recv()</em></strong>, <strong><em>write()/send()</em></strong>: Enabling data transmission over sockets.</li><li><strong><em>shutdown()</em></strong>, <strong><em>WSACleanup()</em></strong>: Managing socket operations.</li></ul><p><strong>Persistence:</strong></p><ul><li><strong><em>RegCreateKeyEx()</em></strong>, <strong><em>RegSetValueEx()</em></strong>: Enabling malware to establish persistence in the system registry.</li><li><strong><em>GetTempPath()</em></strong>, <strong><em>CreateFile()</em></strong>, <strong><em>CopyFile()</em></strong>: Facilitating file manipulation and persistence.</li><li><strong><em>OpenSCManager</em></strong>, <strong><em>CreateService()</em></strong>: Allowing malware to install persistent services.</li></ul><p><strong>Encryption:</strong></p><ul><li><strong><em>CryptAcquireContext()</em></strong>, <strong><em>CryptGenKey()</em></strong>, <strong><em>CryptDeriveKey()</em></strong>: Facilitating encryption and decryption of data.</li></ul><p><strong>Stealth:</strong></p><ul><li><strong><em>VirtualAlloc()</em></strong>, <strong><em>VirtualProtect()</em></strong>: Allocating and protecting memory for malware operations.</li><li><strong><em>ReadProcessMemory</em></strong>, <strong><em>WriteProcessMemory</em></strong>, <strong><em>NtWriteVirtualMemory</em></strong>, CreateRemoteThread: Enabling process manipulation and injection for stealthy execution.</li></ul><p><strong>Execution:</strong></p><ul><li><strong><em>CreateProcessA/W</em></strong>, <strong><em>ShellExecute</em></strong>, <strong><em>WinExec</em></strong>: Launching processes or executing commands.</li><li><strong><em>ResumeThread</em></strong>, <strong><em>NtResumeThread</em></strong>: Resuming suspended threads for malware execution.</li></ul><p><strong>Miscellaneous:</strong></p><ul><li><strong><em>GetAsyncKeyState()</em></strong>, <strong><em>SetWindowsHookEx</em></strong>: Facilitating keylogging and user input interception</li><li><strong><em>GetForegroundWindow()</em></strong>, <strong><em>LoadLibrary()/GetProcAddress()</em></strong>: Retrieving information about active windows and loading additional modules.</li><li><strong><em>CreateToolhelp32Snapshot()</em></strong>: Allowing enumeration of running processes for reconnaissance.</li><li><strong><em>GetDC()</em></strong>, <strong><em>BitBlt()</em></strong>: Enabling screen capture and manipulation.</li></ul><p><strong><em>In simple terms:</em></strong></p><p>The Windows API is like a toolbox for computer programs, helping developers build powerful apps. But, it also has weaknesses that hackers can exploit to create harmful software.</p><p>To protect against these threats, it’s crucial for cybersecurity experts to understand how the Windows API works and how hackers misuse it.</p><p><strong>Stay curious, stay vigilant, and keep exploring the depths of knowledge</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=163bf942786e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JWTs: Structure, Usage, and Vulnerabilities]]></title>
            <link>https://medium.com/@muhsinbinirshad/jwts-structure-usage-and-vulnerabilities-3d36c3ff4a68?source=rss-3b4d8fd30aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d36c3ff4a68</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[jwt-token]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[jwt-exploitation]]></category>
            <dc:creator><![CDATA[Muhsin]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 17:22:39 GMT</pubDate>
            <atom:updated>2024-02-14T17:22:39.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*i8N6u2G7l_SaOB1O2tPgIw.png" /></figure><h4>Introduction:</h4><p>JWT stands for JSON Web Token. It is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. JWTs are commonly used for authentication and authorization in web applications</p><p>JWTs are commonly used in authentication mechanisms like API, OAuth 2.0 and OpenID Connect, where they are used as access tokens or ID tokens to securely transmit information between parties. They offer several advantages, including statelessness, scalability, and the ability to carry custom claims. However, it’s important to implement proper security measures to prevent common vulnerabilities such as JWT tampering,</p><h4><strong>Understanding the Structure of JWT:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*zAJOg6---bxWvxumdVGudQ.jpeg" /></figure><p>JWTs consist of three main components: <strong>Header</strong>, <strong>Payload</strong>, and <strong>Signature</strong>. Let’s explore each component in detail:</p><p><strong>Header:</strong></p><p>The Header provides metadata about the token and specifies the cryptographic algorithm used for signature generation. It typically appears as follows:</p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><p>Here, “alg” signifies the algorithm (in this case, HMAC-SHA256), and “typ” denotes the token type as JWT.</p><p><strong>Payload</strong>:</p><p>The Payload contains claims, which are assertions about an entity (usually the user) and additional data. An example of a Payload might look like:</p><pre>{<br>  &quot;sub&quot;: &quot;1234567890&quot;,<br>  &quot;name&quot;: &quot;John Doe&quot;,<br>  &quot;admin&quot;: true<br>}</pre><p>This Payload includes a subject identifier, user name, and an “admin” claim indicating administrative privileges.</p><p><strong>Signature</strong>:</p><p>The third part is the signature itself, which is generated by taking the <strong>base64url encoding of the header and payload concatenated with a period (</strong><strong>.),</strong> and then applying the specified cryptographic algorithm using a secret key. For example, if the algorithm is HMAC SHA-256, the signature is generated as follows:</p><pre>HMACSHA256(   base64UrlEncode(header) + &quot;.&quot; + base64UrlEncode(payload),   secret )</pre><p>The secret is a string known only to the server that signs the token. It’s used to verify that the token hasn’t been tampered with by parties without access to the secret.</p><p><strong>Cryptographic Algorithms Used in JWT</strong>:<br>JWTs support various cryptographic algorithms for generating signatures. Some commonly used algorithms include:</p><ul><li><a href="https://auth0.com/blog/rs256-vs-hs256-whats-the-difference/">HS256</a></li><li><a href="https://auth0.com/blog/rs256-vs-hs256-whats-the-difference/">RS256</a></li></ul><p>Each algorithm has its strengths and use cases, and the choice depends on factors such as security requirements and performance considerations.</p><h3>JWT ATTACKS:</h3><h4><strong>Directory Traversal in Key ID (KID) Parameter:</strong></h4><p>The KID parameter in the JWT Header identifies the key used to verify the signature. While it enhances security by allowing servers to select the appropriate key, improper validation of KID values can lead to vulnerabilities like Directory Traversal.</p><p><strong>Example of KID Value :</strong></p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;,<br>  &quot;kid&quot;: &quot;/keys/publickey.crt&quot;<br>}</pre><p><strong>JWT Directory Traversal Payload in KID:</strong></p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;,<br>  &quot;kid&quot;: &quot;../../../../etc/passwd&quot;<br>}</pre><p>In this example, the KID value “…/…/…/…/etc/passwd” attempts directory traversal to access sensitive system files. If the server naively retrieves the key based on this value without proper validation, it could inadvertently expose sensitive data.</p><h4><strong>Sensitive Data in Payload Section:</strong></h4><p>The Payload section may contain sensitive user information, such as:</p><pre>{<br>  &quot;username&quot;: &quot;john_doe&quot;,<br>  &quot;email&quot;: &quot;john.doe@example.com&quot;,<br>  &quot;isAdmin&quot;: true<br>  &quot;adminURL&quot;: &quot;/admin/users/john&quot;<br>}</pre><p>This Payload includes hidden admin endpoint ,this must be consider as a juicy information.</p><h4><strong>Algorithms none attack:</strong></h4><p>This vulnerability occurs when a server accepts JSON Web Tokens (JWTs) with no signature or when the “alg” parameter in the JWT header is set to “none.” Attackers can manipulate this parameter, tricking the server into accepting unsecured tokens. Proper token validation is essential to prevent unauthorized access.</p><p>Before Attack:</p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><pre>{<br>  &quot;username&quot;: &quot;john_doe&quot;,<br>  &quot;email&quot;: &quot;john.doe@example.com&quot;,<br>  &quot;isAdmin&quot;: false<br>}</pre><p>After :</p><pre>{<br>  &quot;alg&quot;: &quot;none&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><pre>{<br>  &quot;username&quot;: &quot;john_doe&quot;,<br>  &quot;email&quot;: &quot;john.doe@example.com&quot;,<br>  &quot;isAdmin&quot;: true<br>}</pre><h4><strong>JWT Unverified Signature Leads Authentication Bypass Attacks:</strong></h4><p>The “<em>JWT Unverified Signature Leads Authentication Bypass Attacks</em>” scenario highlights a security vulnerability in which a server fails to properly verify the authenticity of JSON Web Tokens (JWTs) during authentication. Instead of verifying the tokens by checking their signatures, the server only decodes them, allowing attackers to exploit this weakness. The primary goal of attackers in this scenario is to manipulate their session token to gain unauthorised access to certain privileged areas, such as the admin panel, and potentially perform unauthorised actions</p><p><strong>Example:</strong></p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><pre>{<br>  &quot;username&quot;: &quot;tamperd value&quot;,<br>  &quot;email&quot;: &quot;tamperd value&quot;,<br>  &quot;isAdmin&quot;: true<br>}</pre><h4>JWT Weak Secrets Brute force Attack:</h4><p>This vulnerability occurs when an application uses a weak or easily guessable key for signing JSON Web Tokens (JWTs). Attackers exploit this weakness by creating forged tokens with their own malicious content and signing them using the weak key. These fake tokens can then be used to gain unauthorized access, bypassing authentication measures. To mitigate this vulnerability, it’s crucial to use strong, cryptographically secure keys for JWT signing to ensure the integrity and authenticity of tokens.</p><p><a href="https://github.com/ticarpi/jwt_tool"><strong>For this attack you can use jwt_tool</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*uL8DlnIiGt7r6hav8QIJAQ.png" /></figure><p>conclusion:</p><p>JSON Web Tokens (JWTs) are a popular choice for authentication and authorization in web applications, but they are not without their security risks. By understanding the common JWT attacks and implementing proper security measures, you can help to protect your applications from unauthorized access.</p><p>I hope you found this blog post informative, 😊</p><p><a href="https://www.linkedin.com/in/muhsinbinirshad/">Follow me on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d36c3ff4a68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>