<?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 xpwnd4 on Medium]]></title>
        <description><![CDATA[Stories by xpwnd4 on Medium]]></description>
        <link>https://medium.com/@pwnd4sec?source=rss-a85b77aefd0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O_hre4U7ZG18MyIG9LXZvg.jpeg</url>
            <title>Stories by xpwnd4 on Medium</title>
            <link>https://medium.com/@pwnd4sec?source=rss-a85b77aefd0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:40:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pwnd4sec/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[From Manual Work to Smarter Triage: Building My Maldoc Analysis Workflow for DFIR]]></title>
            <link>https://pwnd4sec.medium.com/from-manual-work-to-smarter-triage-building-my-maldoc-analysis-workflow-for-dfir-2e554ea395db?source=rss-a85b77aefd0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e554ea395db</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[xpwnd4]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 04:47:39 GMT</pubDate>
            <atom:updated>2026-03-24T04:47:39.092Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi readers,</p><p>I wanted to share a project I’ve been working on a Maldoc Analysis Workflow built to help automate the early triage of suspicious documents.</p><p>This is my first time building a project like this, so I’m sharing it not as a finished or perfect solution, but as an ongoing learning experience. While working on it, I became more interested in how suspicious documents are handled during the early stages of DFIR triage, and I wanted to explore how that process could be made faster, more organized, and a little less repetitive.</p><p>Malicious documents are still a common way attackers try to get into an environment. At first glance, they can look harmless maybe an invoice, a report, or just a normal email attachment- but in some cases, they may contain macros, embedded objects, or links that lead to something more suspicious.</p><p>In many cases, checking these files is still a manual task. Analysts may need to identify the real file type, generate hashes, upload the sample to VirusTotal, run multiple analysis tools, inspect macros, and then piece everything together into a clear result.</p><p>I wanted to make that process easier and more consistent.</p><p>So I built a lightweight workflow where an analyst can upload a suspicious file through a web portal and receive a more structured summary of the findings. It’s still a work in progress, but I wanted to document what I’ve built so far and share the direction I’m hoping to take it next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Gn6jyJXtoEMoULCpsoPWwg.png" /><figcaption>Figure 1: File upload page</figcaption></figure><p><strong>The workflow uses a simple but practical setup:</strong></p><ul><li>a web portal for file submission</li><li>n8n for automation</li><li>a Flask API running in REMnux for analysis</li><li>Cloudflare Tunnel for secure access</li><li>VirusTotal for threat intelligence enrichment</li></ul><p>Once a file is uploaded, the system automatically checks the real file type, generates hashes, runs oletools, looks for suspicious macro behavior, extracts possible indicators like URLs or IPs, and returns a verdict such as <strong>Malicious</strong>, <strong>Suspicious</strong>, <strong>Pending</strong>, or <strong>Clean</strong>.</p><p>High-level architecture of the Maldoc Analysis Workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*L7yvuNTxG9fppJqGtyxd7w.png" /><figcaption>Figure 2: Architecture diagram</figcaption></figure><p>Example output showing hashes, findings, and verdict.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*7n1pQdj19hCNE6p7y0dYKw.png" /><figcaption>Figure 3: VT Analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*YSyjUzZ0mzQEty-Z7ckNUg.png" /><figcaption>Figure 4: OLEID Analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*qqnUKsQoBKOtiZ4BB8w7aw.png" /><figcaption>Figure 5: MRAPTOR Analysis</figcaption></figure><p>What I find most valuable about this project is that it addresses a practical DFIR challenge, helping analysts quickly assess whether a suspicious document deserves further investigation.</p><p>It is not designed to replace analyst judgment or function as a complete malware analysis platform. Instead, its current goal is to support the early triage stage by automating repetitive checks and presenting the results in a more organized way.</p><p>This project is still ongoing, and I see the current version as a foundation rather than a finished solution. At this stage, it focuses mainly on static analysis, but future improvements may include dynamic analysis, richer artifact extraction, better reporting, and a simple case-tracking dashboard.</p><p>Even in its current form, it highlights how automation can improve the speed and consistency of suspicious document triage while supporting, not replacing, deeper analytical work.</p><p>Thanks for reading. This project is still a work in progress, and I’m looking forward to improving it further through future updates and continued learning.</p><p>-Mr. M</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e554ea395db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reverse Engineering a Remote Access Trojan: Static & Dynamic Approach]]></title>
            <link>https://pwnd4sec.medium.com/reverse-engineering-a-remote-access-trojan-static-dynamic-approach-75198b347485?source=rss-a85b77aefd0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/75198b347485</guid>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[bind-shell]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[remoteaccesstrojan]]></category>
            <dc:creator><![CDATA[xpwnd4]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 10:15:11 GMT</pubDate>
            <atom:updated>2025-06-23T10:25:36.531Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧠 Introduction</h3><h3>👨‍💻whoami</h3><p>I currently work as a SOC Analyst, and in my own time, I’m gradually learning the red team side trying to understand how attackers think by studying and breaking down their tools.</p><p>Lately, I’ve been diving into malware analysis, heavily inspired by the <strong>PMAT course from TCMSecurity</strong>. Big kudos to HuskyHacks for the clear methodology and hands-on approach it made complex topics a lot more beginner-friendly.</p><p>I may still be new to reversing malware, but I’m all in — tearing apart shady executables one RAT at a time.</p><h3>🕳️ What’s this all about?</h3><p>Stumbled on a <strong>Remote Access Trojan (RAT)</strong> sample, and instead of just tossing it into VirusTotal and calling it a day, I figured: let’s <em>properly</em> dissect it.</p><p>In this post, I’m walking through a <strong>static + dynamic analysis</strong> of a malicious command shell used by a RAT.</p><ul><li>how it behaves when poked,</li><li>where it phones home (C2),</li><li>and what kind of shady command execution it enables for its operator.</li></ul><p>We’ll also peek under the hood to catch persistence tricks, obfuscated strings, dropped files, and any red flags hiding in memory or on the wire.</p><p>No fluff just raw reversing, packet sniffing, and system watching.</p><h3>🎯 Objective</h3><blockquote><em>In this blog, I’ll perform static and dynamic analysis on a malicious RAT Command Shell to uncover its behavior, C2 communication, persistence methods, and post-exploitation potential.</em></blockquote><h3>🧰 Tools</h3><p>Here’s the loadout I used for this mission:</p><ul><li>🧠 <strong>FlareVM</strong> — Isolated Sandbox</li><li>🧵 <strong>Strings</strong> — Finding the juicy bits hidden in plain sight</li><li>🖥️ <strong>Process Monitor / Process Explorer</strong> — Keeping tabs on shady process trees</li><li>🌐 <strong>TCPView &amp; Wireshark</strong> — Watching every packet</li><li>🛜 <strong>InetSim</strong> on <strong>Remnux</strong> — Faking C2 to see what the RAT spills</li></ul><h3>🔍 Static Analysis — What the Binary Tells Us Without Running It</h3><p>Before we let this RAT loose in a sandbox, let’s get our hands dirty with some good old static analysis. No execution, just reading the tea leaves from the binary itself. First stop? Let’s see what kind of file we’re dealing with.</p><h3>🕵️ Let’s Start Digging — Strings First Blood</h3><p>Alright, time to pop the hood.</p><p>First move? I hit the sample with the classic strings command. Why? Because it&#39;s simple, fast, and gives us a sneak peek at anything human-readable embedded in the binary URLs, file paths, commands, maybe even credentials if we’re lucky.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*jcXL2tDQhiTJ1scA-c5PIg.png" /></figure><p>I dumped the strings output into strings-result.txt so we can easily check it anytime during the analysis.</p><p>So here’s the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*S8_LKqsJcwOeyPrOiI9o1w.png" /></figure><p>From there, we can already see some kind of suspicious human-readable info, like msdcorelib.exe, and some functions that are usually used by malicious applications.</p><h3><strong>💣 Detonating the Sample in the Sandbox</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*IwdOuqyixaLb0pqSOGdbAA.png" /></figure><p><strong>After running the sample, we get a pop-up that says: “NO SOUP FOR YOU” looks harmless at first, but that’s just surface-level.</strong></p><p>Earlier, we already spotted the MessageBoxW function in the strings, which is what handles this kind of UI output — icons, titles, and message content.</p><h3>⚙️ Heuristic Analysis — Network Behavior Breakdown</h3><p>After detonation, the first thing I checked was the <strong>network traffic</strong>. If this RAT is phoning home to a Command &amp; Control server, I want to catch that handshake in action.</p><p>To monitor the traffic, I used:</p><ul><li><strong>🌐 Wireshark</strong> — for packet-level inspection</li><li><strong>🧪 InetSim</strong> on <strong>Remnux</strong> — to simulate fake C2 servers and capture callbacks</li></ul><p>So I ran the application again, this time with Wireshark set up on my Remnux box — listening on the correct network interface to catch anything suspicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*0L5a0n5IdSEmr4--Qgu6tw.png" /></figure><p>While monitoring with Wireshark on Remnux, I captured an HTTP GET request coming straight from the RAT after execution. The malware attempted to connect to the following Command and Control (C2) server http[:]//serv1[.]ec2-102-95-13-2-ubuntu[.]local/</p><p>The file name matches the one we saw earlier dropped in the static analysis (msdcorelib.exe).</p><h3><strong>🧬 Initial Hypothesis — Suspected Malware Behavior</strong></h3><p>Based on everything we’ve seen so far from both static and dynamic analysis, here’s our working theory:</p><blockquote><em>When the application is executed, it reaches out to its Command and Control (C2) server to download a suspicious </em><em>.exe file — possibly named </em><em>msdcorelib.exe, or maybe something randomized to avoid detection.</em></blockquote><p>Once downloaded, it likely <strong>drops that file into a persistence directory</strong>, such as:</p><pre>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup</pre><p>This would allow the malware to <strong>run automatically every time the user reboots the machine</strong> — classic persistence behavior.</p><p>But we’re not stopping here. We’re going to dig deeper to confirm this behavior and see what else it’s trying to pull off in the background.</p><h3>🖥️ Heuristic Analysis — Host-Based Behavior</h3><p>After executing the sample, I switched focus to what’s happening <strong>under the hood</strong> — local file system changes, spawned processes, registry modifications, and any sign of persistence. This is where the real damage happens.</p><p>I started <strong>ProcMon</strong>, then executed the malicious application again while <strong>InetSim</strong> was still running to simulate the C2 server callback.</p><p><strong>ProcMon Filter Used:</strong></p><p>I applied this filter in <strong>Process Monitor</strong> to catch the specific file activity:</p><pre>Process Name IS RAT.Unknown.exe  <br>&amp;<br>Path CONTAINS \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Start Menu\Programs\Startup\</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8hf4XVbKqgRdpBjjY82-g.png" /></figure><p><strong>This time, something interesting happened:</strong></p><p>Instead of dropping the usual msdcorelib.exe, I observed that the file <strong>renamed itself to </strong><strong>mscordll.exe</strong> and was placed in the Startup directory:</p><pre>C:\Users\&lt;username&gt;\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\mscordll.exe</pre><p>This behavior is known as <strong>de-chaining or de-coupling</strong>, where the malware alters file names or decouples payload stages to avoid detection or signature-based matching. It’s a subtle trick to throw off analysts and evade IOC-based detections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*7p6pehDoONJWZoajBxD9hw.png" /></figure><p>To confirm this behavior, I manually navigated to the directory where the malware dropped the file and sure enough, mscordll.exe was sitting there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*to5OO8TcSIu64ZBRMaP76A.png" /></figure><h3>🌐 TCPView — Real-Time Network Connections</h3><p>To monitor <strong>live network connections</strong> during execution, I used <strong>TCPView</strong> a lightweight and powerful tool from Sysinternals that shows all active TCP and UDP connections on the system.</p><p>After launching the malicious application, I opened TCPView to watch for <strong>suspicious outbound activity</strong>. Sure enough, I spotted the process RAT.Unknown.exe trying to establish a connection to the fake C2 server I set up using InetSim.</p><p>While monitoring the system with <strong>TCPView</strong>, I noticed that the malicious application was actively <strong>listening for incoming connections</strong> — not just reaching out to a C2.</p><p>Specifically, it was listening on:</p><pre>0.0.0.0:5555</pre><p>This means the application was bound to <strong>all network interfaces</strong>, accepting connections on <strong>port 5555</strong>. So when this executable is run, the attacker can connect to the victim machine at any time via this open port — a classic <strong>bind shell behavior</strong>.</p><h3>🧠 Why This Matters:</h3><blockquote>- Unlike reverse shells (where the victim connects out), this sets up a <strong>server</strong> on the infected machine.</blockquote><blockquote>- The attacker only needs to know the victim’s IP and port (5555) to gain shell access.</blockquote><blockquote>- This could easily be missed by a firewall if the port is allowed, especially on internal networks.</blockquote><h3>🔗 Connecting to the Bind Shell via Remnux</h3><p>Now that we’ve confirmed the RAT is listening on <strong>port 5555</strong>, we can simulate an attacker connecting to it. Since it’s bound to 0.0.0.0, any machine on the same network can connect — in this case, I used my <strong>Remnux box</strong> as the attacker machine.</p><p>From Remnux, I used nc (netcat) to initiate the connection:</p><pre>nc &lt;victim-ip&gt; 5555</pre><p>If the malware is running and the port is open, you’ll get an active shell or at the very least, a socket connection that allows the attacker to send commands or payloads depending on the backdoor’s design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPsXeb-xjks9AgI5Ym0v4g.png" /></figure><p>With a successful connection established and a Base64-encoded string captured</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*0agqxj3GlKwk7ZLuvSrXSw.png" /></figure><p>Back in the strings dump, we spotted this line: <strong><em>“What command can I run for you?”</em></strong> Sounds friendly but we know better. Now that the RAT is active and we’ve got a live session, let’s see if it’s wired for remote code injection.</p><p>So lets try again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*STJQizgoF2imbL3M9Gs9PQ.png" /></figure><p>So when decrypted, the Base64 string revealed a command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTGwJybo8jg_l6XU8ex1Gw.png" /></figure><h3>📡 Analyzing TCP Traffic via ProcMon</h3><p>Now that we have <strong>remote access to the infected machine</strong>, we can dive deeper and inspect the malware’s TCP-related operations using <strong>Process Monitor</strong>.</p><p>To narrow down the relevant events, I applied the following <strong>ProcMon filter</strong>:</p><pre>Operation CONTAINS TCP  <br>Process Name IS  RAT.Unknown.exe</pre><p>This filter helps us focus only on <strong>TCP socket activity</strong> tied to the malicious executable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*k86D75aYBrPe1pUhcEBWKQ.png" /></figure><p>From the filtered ProcMon view (Operation CONTAINS TCP, Process Name IS RAT.Unknown.exe), we observed a clear sequence of network activity:</p><pre>TCP Connect → TCP Send → TCP Receive</pre><p>This confirms that the RAT is successfully establishing a connection, sending out data (likely system info or a beacon), and receiving a response from its C2.</p><h3>🔌 Disconnection Behavior</h3><p>Interestingly, when I manually <strong>terminated the process from Task Manager</strong>, I observed immediate TCP Disconnect operations associated with RAT.Unknown.exe. This shows that the malware was actively maintaining a session, and it <strong>closed the socket cleanly</strong> once the process was killed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*ta8tpZhh8k2Su_KLaH5WGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*nSUJp_wDNiDaLfHzTaqBmg.png" /></figure><p>This behavior can be useful for defenders to detect <strong>abrupt session drops</strong> linked to suspicious processes — especially when hunting for RATs or bind shells.</p><h3>✅ Conclusion</h3><p>This Remote Access Trojan (RAT) may look simple at first glance, but under the hood, it demonstrates classic but effective techniques used by real-world attackers:</p><ul><li><strong>TCP-based bind shell</strong> listening on port 5555</li><li><strong>C2 communication</strong> via HTTP protocol</li><li><strong>File drop + rename behavior</strong> (msdcorelib.exe → mscordll.exe)</li><li><strong>Persistence</strong> through the Windows Startup folder</li><li><strong>Remote command injection</strong></li><li><strong>Clean TCP disconnection</strong> when the malware process is killed</li></ul><p>This analysis shows how attackers can leverage even basic functionality to maintain control over a compromised system, blend in with normal traffic, and silently persist across reboots.</p><h3>🛡️ Simple Mitigation Tips</h3><ul><li>🧍‍♂️ <strong>Limit user privileges</strong> — Don’t run as admin unless you need to.</li><li>🔐 <strong>Enable a firewall</strong> — Block incoming connections on unused ports.</li><li>⚠️ <strong>Disable startup execution</strong> from suspicious locations like %AppData%.</li><li>🧹 <strong>Use Autoruns</strong> to review and remove suspicious startup entries.</li><li>🕵️‍♂️ <strong>Regularly monitor processes and connections</strong> (TCPView, Task Manager).</li><li>🎯 <strong>Train users to avoid suspicious downloads and links.</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75198b347485" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Phishing Simulations: A Beginner’s Investigation from a Threat Actor’s Perspective]]></title>
            <link>https://pwnd4sec.medium.com/exploring-phishing-simulations-a-beginners-investigation-from-a-threat-actor-s-perspective-4ae908379f27?source=rss-a85b77aefd0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ae908379f27</guid>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[investigation]]></category>
            <dc:creator><![CDATA[xpwnd4]]></dc:creator>
            <pubDate>Sun, 04 May 2025 12:08:10 GMT</pubDate>
            <atom:updated>2025-05-04T12:45:31.325Z</atom:updated>
            <content:encoded><![CDATA[<h3>Configuring and Investigating a Basic Phishing Simulation: A Hands-On Approach</h3><p>Hello, guys! This might be a long post (or maybe not) — so earlier today, I was debating whether I should play on HackTheBox and work on my methodology notes, but NO. I found myself diving into researching how I could implement a phishing simulation (since I have a start-up company focused on VAPT consulting, talks, and phishing simulations — yes, I’m marketing my own company here <em>lol</em> — I’ll be sharing all the details soon enough) and performing a basic investigation while playing the role of a threat actor on the backend.</p><p>So, I decided to set up a phishing simulation lab using GoPhish (<a href="https://getgophish.com/">https://getgophish.com/</a>), an open-source phishing simulation tool. I gave it my best shot, troubleshooting and figuring out why it wasn’t working at first (because, you know, things don’t always go as planned <em>lol</em>).</p><p>With that said, I created a simple, super basic phishing campaign — just a “whack” Facebook phishing campaign. For now, I’m sending it to my other email address (<em>evil laugh</em>).</p><p>Now that the configuration is done, I’ve launched the phishing campaign (sent it to my other email). Below is a screenshot showing that the email has been sent, but there are still no values for “Email Opened,” “Clicked Link,” “Submitted Data,” or “Email Reported.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhmd_rbFUNVAzCvwgbuuVQ.png" /></figure><p>So, I received an email from the sender (which is my main account that I set up on the GoPhish website). For now, let’s assume it came from the threat actor, not from my account — let’s say something like <a href="/service/mailto:facebook.fake.support@gmail.com"><strong>facebook.fake.support@gmail.com</strong></a>.</p><p><em>Note: The threat actor can also use advanced techniques to create fake emails or impersonate legitimate sources, which is something to always be mindful of.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PIG8gJWDs6mNf8BRMWXiw.png" /></figure><p>Now, we’re going to perform a basic investigation. Even though we may not be tech-savvy, we can still analyze the email we received to determine whether it’s legitimate or not.</p><p>Red flags:</p><p><strong>Suspicious Sender Email</strong></p><ul><li>Sender is using a @gmail.com address, not an official Facebook domain.</li><li>🔴 <em>Red Flag:</em> Facebook will <strong>never</strong> send login alerts from a free Gmail account.</li></ul><p><strong>Urgent Subject Line</strong></p><ul><li><em>“We noticed a login attempt from a new device…”</em></li><li>🔴 <em>Red Flag:</em> Creates <strong>fear and urgency</strong>, pushing the user to act without thinking.</li></ul><p><strong>Emotionally Manipulative Content</strong></p><ul><li>Mentions device, location (New York), and exact time of login.</li><li>🔴 <em>Red Flag:</em> Adds a <strong>fake sense of realism</strong> to make the message more convincing.</li></ul><p><strong>Call to Action: “Secure Your Account”</strong></p><ul><li>Contains a large blue button prompting immediate action.</li><li>🔴 <em>Red Flag:</em> Common phishing technique to redirect users to a <strong>malicious login page</strong>.</li></ul><p><strong>Generic Greeting</strong></p><ul><li>Begins with just “Hello,” and no personal name.</li><li>🔴 <em>Red Flag:</em> Legitimate services usually use your <strong>full name or username</strong>.</li></ul><p><strong>Impersonation of Facebook Branding</strong></p><ul><li>Uses Facebook-style formatting and logo.</li><li>🔴 <em>Red Flag:</em> Visuals can be <strong>easily faked</strong> — always check the <strong>domain</strong>, not just the design.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56Z-8AX8As0MK7TX4pKoqw.png" /></figure><p>The link binds to the “Secure Your Account” option, and when clicked, it redirects to a webpage other than the legitimate landing page.</p><p><em>Note: I’ve created a test website using HTML as a baseline to replicate Facebook. A threat actor could use more advanced techniques to exploit this, making it harder to distinguish between a real and fake page.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JgQ1xVTcdyP5yXDUesrlQ.png" /></figure><p>Once the victim inputs their credentials (email and password), we can check the dashboard and see that the user has submitted data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T59lp6NTYt_sUfN2CUYXHw.png" /></figure><p>Now, we can see the user’s timeline, including when the campaign was created, when the email was sent, when the link was clicked, and, finally, when the data was submitted. In the screenshot below, we can clearly see the user’s username and password in plaintext.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Up3r-M8Nd7PLlQsTAoPuyQ.png" /></figure><p>In conclusion, this experience was incredibly fulfilling, and I felt a great sense of satisfaction while configuring this. It reminded me of when I was an intern, setting up a lab for the CheckPoint firewall — something I truly enjoyed. Setting up labs has always helped me understand the backend of technology and enhanced my troubleshooting skills when things didn’t go as expected.</p><p>On the other hand, since this is a very basic phishing campaign, I could use it as a demo when giving talks at conferences or events, especially since not everyone is familiar with these concepts.</p><p>Although it’s simple, this setup can really help people avoid clicking on malicious links or falling for phishing attempts. I’m also open to feedback on my write-up, as well as on the basic configuration and investigation. I know there are much more in-depth techniques to tackle this, but for now, this is just the tip of the iceberg.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ae908379f27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Unquoted Service Paths to Elevate Privileges to Local Administrator]]></title>
            <link>https://pwnd4sec.medium.com/exploiting-unquoted-service-paths-to-elevate-privileges-to-local-administrator-79a1839eb98e?source=rss-a85b77aefd0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a1839eb98e</guid>
            <category><![CDATA[red-team-security]]></category>
            <category><![CDATA[unquoted-path]]></category>
            <category><![CDATA[elevated-privileges]]></category>
            <category><![CDATA[exploitation]]></category>
            <dc:creator><![CDATA[xpwnd4]]></dc:creator>
            <pubDate>Wed, 25 Dec 2024 06:41:30 GMT</pubDate>
            <atom:updated>2024-12-25T06:41:30.047Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“The Unquoted Service Path vulnerability in Windows occurs when services are installed using paths containing spaces without proper quotation marks.</em></p><p><em>If attackers obtain write permissions in the service’s installation directory, they can execute malicious code with elevated privileges.”</em></p><p>Using the <strong>PowerUp.ps1</strong> script (or alternatively <strong>WinPEAS</strong>), running the Invoke-AllChecks command performs a comprehensive scan of the system. It checks all privileges and unquoted paths that the current user has access to. The script identifies any files or directories that the user can modify without requiring administrative privileges. These findings can potentially be exploited for privilege escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*D_VQCa7NX3jxas8HRfWd5g.png" /><figcaption>PowerUp.ps1 Script</figcaption></figure><p><strong>Abusing Unquoted Service Paths (Adding a User):</strong><br>Exploiting unquoted service paths involves taking advantage of misconfigured services to execute malicious code, such as adding a new user to the system.</p><p>However, this method is very noisy and can easily be detected in both System and Security logs, making it unsuitable for stealthy operations.</p><p><strong><em>Relevant Event IDs:</em></strong></p><ul><li><strong>Event ID 7045</strong> — <em>“A service was installed in the system”</em>:<br>Indicates that a new service was created or installed on the system.</li><li><strong>Event ID 7036</strong> — <em>“The [ServiceName] service entered the running state”</em>:<br>Logged when a service transitions into the running state.</li><li><strong>Event ID 4688 (Security Log)</strong> — <em>“A new process has been created”</em>:<br>Tracks the creation of new processes, including the execution of malicious payloads.</li><li><strong>Event ID 4697 (Security Log)</strong> — <em>“A service was installed in the system”</em>:<br>Indicates that a new service was created or modified, recorded specifically in the Security log.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*FlR7_88dFtwfpbXqzNiEFw.png" /><figcaption>Adding student527 from dcorp domain</figcaption></figure><p>As a result of the exploit, the user <strong>“student527”</strong> has now been successfully added to the local Administrators group. With this elevated privilege, the user can perform any administrative actions on the system. This includes tasks like accessing sensitive files, modifying system settings, or attempting lateral movement to other machines where they might also have local administrative access.</p><h3>Conclusion and Remediation</h3><p>The <strong>PowerUp.ps1</strong> tool and the <strong>Unquoted Service Path</strong> vulnerability demonstrate how misconfigurations in Windows systems can be exploited to achieve privilege escalation.</p><p>To protect against such attacks, organizations should take the following steps:</p><ol><li><strong>Audit and Remediate Unquoted Service Paths:</strong><br>Use tools like <strong>PowerUp.ps1</strong>, <strong>WinPEAS</strong>, or native scripts to identify unquoted paths in services. Update service configurations to properly quote file paths with spaces (e.g., &quot;C:\Program Files\Service\binary.exe&quot;).</li><li><strong>Restrict Directory Permissions:</strong><br>Ensure service installation directories and executable paths are not writable by non-administrative users.</li><li><strong>Enable Logging and Monitoring:</strong><br>Regularly monitor <strong>System</strong> and <strong>Security</strong> logs for suspicious Event IDs (e.g., 7045, 4688, 4697). Use a SIEM solution to set alerts for unusual activity.</li><li><strong>Follow the Principle of Least Privilege (PoLP):</strong><br>Restrict user privileges and ensure that only authorized personnel can install or modify services.</li></ol><p>By addressing these vulnerabilities proactively and maintaining strong monitoring practices, organizations can significantly reduce the risk of exploitation and improve their overall security posture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a1839eb98e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>