<?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 Trevor Murphy - SudoBear on Medium]]></title>
        <description><![CDATA[Stories by Trevor Murphy - SudoBear on Medium]]></description>
        <link>https://medium.com/@tmurphy3100?source=rss-fab979a11dbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GediZie85M3Un6-IjZjT5w.png</url>
            <title>Stories by Trevor Murphy - SudoBear on Medium</title>
            <link>https://medium.com/@tmurphy3100?source=rss-fab979a11dbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:56:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tmurphy3100/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[Microsoft Recall: A Security Awareness Update for End Users]]></title>
            <link>https://medium.com/@tmurphy3100/microsoft-recall-a-security-awareness-update-for-end-users-3cbcad43af8f?source=rss-fab979a11dbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cbcad43af8f</guid>
            <dc:creator><![CDATA[Trevor Murphy - SudoBear]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 20:48:06 GMT</pubDate>
            <atom:updated>2024-06-12T20:51:13.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Microsoft Recall</h3><p>Microsoft’s new Recall feature, introduced as part of the Copilot+ PCs initiative, aims to provide users with a “photographic memory” of their activities by taking regular screenshots. This feature allows users to search and revisit any app or file they have opened, leveraging AI for enhanced search capabilities. However, despite its intended convenience, Recall has faced significant criticism from the cybersecurity community due to potential security and privacy risks​. (GeekWire)​​ (<a href="https://www.windowscentral.com/software-apps/windows-11/microsoft-addresses-windows-recall-backlash-promises-to-fix-security-issues-and-make-it-opt-in">Windows Central</a>)​</p><h3>Security Concerns and Privacy Risks</h3><p>The primary security issue with Recall is its ability to capture and store sensitive information in screenshots. These screenshots, taken every few seconds, are stored locally on the device and can include passwords, financial information, and private keys. Although Microsoft has implemented encryption for these screenshots, experts have raised concerns about the potential for exploitation if a system is compromised​. The information collected from Recall is a treasure trove of information that attacks could utilize for privilege escalation, lateral movement, and further enumeration. This is especially a security concern in corporate environments that administrators and end users should be aware of.(<a href="https://winbuzzer.com/2024/06/07/microsoft-upgrades-recall-feature-with-enhanced-security-measures-xcxwbn/">WinBuzzer</a>)​​ (<a href="https://winbuzzer.com/2024/06/03/microsoft-recall-feature-raises-security-concerns-xcxwbn/">WinBuzzer</a>)​</p><h3>Microsoft’s Response and Mitigations</h3><p>In response to the backlash, Microsoft has made several changes to the Recall feature:</p><ol><li><strong>Opt-In Requirement</strong>: Recall is no longer enabled by default. Users must explicitly opt-in during the setup of their Copilot+ PCs, ensuring they are aware of the feature and its implications​ (<a href="https://www.windowscentral.com/software-apps/windows-11/microsoft-addresses-windows-recall-backlash-promises-to-fix-security-issues-and-make-it-opt-in">Windows Central</a>)​.</li><li><strong>Enhanced Authentication</strong>: Access to the Recall timeline and search capabilities now requires Windows Hello authentication, adding an extra layer of security. Additionally, “just-in-time” decryption ensures that data is only decrypted when the user is authenticated​ (<a href="https://www.windowscentral.com/software-apps/windows-11/microsoft-addresses-windows-recall-backlash-promises-to-fix-security-issues-and-make-it-opt-in">Windows Central</a>)​​ (<a href="https://winbuzzer.com/2024/06/07/microsoft-upgrades-recall-feature-with-enhanced-security-measures-xcxwbn/">WinBuzzer</a>)​.</li><li><strong>Data Protection Measures</strong>: Microsoft has introduced measures such as proof of presence to view timeline data, and encrypted the search index database to enhance the security of stored data​ (<a href="https://winbuzzer.com/2024/06/07/microsoft-upgrades-recall-feature-with-enhanced-security-measures-xcxwbn/">WinBuzzer</a>)​.</li></ol><h3>Importance of Keeping Recall Disabled</h3><p>Given the potential risks, it is crucial for users to carefully consider whether to enable the Recall feature. Keeping Recall disabled can significantly reduce the attack surface and mitigate the risk of sensitive data being exposed. Here are some reasons why users should be cautious:</p><ul><li><strong>Protection Against Data Breaches</strong>: Disabling Recall helps prevent the capture and potential theft of sensitive information that could be used in further attacks.</li><li><strong>Mitigation of Social Engineering Risks</strong>: By not enabling Recall, users reduce the risk of falling victim to social engineering attacks that exploit captured data.</li><li><strong>Compliance with Privacy Regulations</strong>: Users should be mindful of privacy regulations like GDPR, which require stringent protection of personal data. Enabling Recall might inadvertently expose them to compliance risks.</li></ul><h3>New Risk, Same Idea</h3><p>The security risks associated with Recall can be compared to the dangers posed by keyloggers Similar to how keyloggers capture every keystroke, Recall captures every screen activity, making it a valuable target for attackers if compromised. It is important to not allow end users or threat attackers to enable Recall, which would be like installing a powered up keylogger.</p><p>While password managers securely store and manage passwords, Recall’s potential to expose sensitive information underscores the importance of using dedicated, secure tools for managing personal data.</p><h3>Conclusion</h3><p>The introduction of Microsoft’s Recall feature highlights the ongoing challenges in balancing functionality and security. Administrators and end users must stay informed about new features and their potential risks. By keeping Recall disabled and employing security practices (such as using secure tools for managing personal data), users can better protect their sensitive information and maintain their privacy in an increasingly digital world.</p><p>For more detailed information on the Recall feature and its implications, refer to sources such as GeekWire, Windows Central, and ITPro​ (<a href="https://www.geekwire.com/2024/microsoft-updates-recall-feature-after-security-and-privacy-backlash/">GeekWire</a>)​​ (<a href="https://www.windowscentral.com/software-apps/windows-11/microsoft-addresses-windows-recall-backlash-promises-to-fix-security-issues-and-make-it-opt-in">Windows Central</a>)​​ (<a href="https://www.itpro.com/software/microsoft/new-microsoft-recall-feature-is-a-security-nightmare-and-could-make-copilot-pcs-a-top-target-for-cyber-criminals">ITPro</a>)​.</p><p><strong>Example Email to Send Out to End Users:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*Z3-KdH55U0RCTvuD9elAUQ.png" /></figure><p>Text below:</p><p><strong>Subject:</strong> PLEASE READ: New Microsoft Feature Security Disaster</p><p><strong>Hello,</strong></p><p>We need to alert you to a serious security concern regarding Microsoft’s new Recall feature, part of their Copilot+ PCs initiative.</p><h4>What is Recall?</h4><p>Recall takes regular screenshots of your computer activity, allowing you to search through past actions using AI. While this sounds convenient, it comes with significant risks.</p><h4>Why is This a Security Problem?</h4><ul><li><strong>Sensitive Data Exposure</strong>: Screenshots can capture passwords, financial info, and other private data.</li><li><strong>Exploitation Risks</strong>: If your device is compromised, attackers could access this data, which was initially stored in plain text.</li><li><strong>Privacy Concerns</strong>: Continuous recording of your activity could lead to privacy violations if accessed by unauthorized individuals.</li></ul><h4>Microsoft’s Response</h4><p>Microsoft has made several changes to address these concerns:</p><ul><li><strong>Opt-In Only</strong>: Recall is now off by default. Users must choose to enable it.</li><li><strong>Enhanced Security</strong>: Access to Recall data requires Windows Hello authentication, and data is now encrypted.</li></ul><h4>What You Should Do</h4><p>To protect your data, please follow these recommendations:</p><ul><li><strong>Do Not Enable Recall</strong>: Avoid turning on this feature.</li><li><strong>Use Strong Authentication</strong>: Ensure you have Windows Hello or other strong authentication methods enabled.</li><li><strong>Stay Updated</strong>: Keep informed about the latest security advisories and follow best practices for data protection.</li></ul><p>Your vigilance is crucial in protecting our organization from these threats. If you have any questions or need assistance, please contact your IT team.</p><p>Stay safe,</p><p><strong>[Signature here]</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cbcad43af8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience with the PNPT through TCM Security]]></title>
            <link>https://medium.com/@tmurphy3100/my-experience-with-the-peh-and-pnpt-through-tcm-security-8567675f56c8?source=rss-fab979a11dbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8567675f56c8</guid>
            <dc:creator><![CDATA[Trevor Murphy - SudoBear]]></dc:creator>
            <pubDate>Mon, 10 Jun 2024 14:17:24 GMT</pubDate>
            <atom:updated>2024-06-10T14:21:56.724Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>My Experience with the PNPT through TCM Security</strong></p><p>In this blog post, I will share my experience with the PEH (Professional Ethical Hacker) course, PJPT (Practical Junior Penetration Tester) and PNPT (Practical Network Penetration Tester) certification through TCM Security. I will discuss the preparation process, the exams themselves, and the benefits of obtaining these certifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*uySt-IOD8WuBnNNb37WIpw.png" /></figure><p><strong>My Journey to the PNPT</strong></p><p>The preparation process for both the PJPT and PNPT certifications was rigorous and required a significant time commitment. I spent several months studying the course materials and completing practice labs. The course materials were comprehensive and well-organized, providing a solid foundation in the core concepts of ethical hacking and penetration testing. The practical labs were particularly helpful in developing real world experience, while avoiding capture the flag-like mentality.</p><p>My journey started a few years ago when I first saw Heath (the Cyber Mentor) on an interview with NetworkChuck named <em>How to Become a Hacker(</em><a href="https://www.youtube.com/watch?v=wIt_VAM4q-Y&amp;t"><em>How to Become a Hacker (top certifications) feat. The Cyber Mentor</em></a><em>) .</em></p><p>From here I became highly interested in ethical hacking, which I only had some educational exposure to in my Masters degree program from WGU, which at the time had me go through EC Council’s CEH program and certification. From her I quickly purchased Heath’s course on Udemy and started hacking away.</p><p>Like most of my adventures in IT and certifications, my studies were not consistent and these courses ended up on the shelf for a while. Throughout the years I continued to follow theCyberMentor and TCM Security and started to get excited about ethical hacking and their courses again. Years of IT work had me wanting more purpose which I sought out through cyber security. In 2023 I started to pick up on TCM’s courses again and finished up the Practical Ethical Hacking (PEH) course. I signed up for a newer certification and raced to test my knowledge with the Practical Junior Penetration Tester (PJPT). This junior level verification motivated me as it was a solid stepping stone before the ultimate goal of the Practical Network Penetration Tester (PNPT).</p><p>I ended up failing this certification three times. Not what I was used to with passing many other certification exams on the first attempt. Passing on my third attempt didn’t even feel rewarding as I wasn’t convinced I knew the ins and outs of what I did to compromise the domain in this exam. The imposter syndrome was real, I needed to learn more.</p><p>From September 2023 to May 2024 I went on to complete the rest of the course materials for the PNPT and ultimately completed the exam. Here are the steps I took to pass:</p><ul><li>Ran through Active Directory videos in the PEH course (again).</li><li>Completed the Windows and Linux Privilege Escalation courses. (TCM)</li><li>Completed the External Pentesting Methodology course. (TCM)</li><li>Completed TCM’s OSINT course and Practical Junior OSINT Researcher (PJOR) certification.</li><li>Competed in TCM’s first CTF event on MetaCTF.</li></ul><p>Here is TCM’s path to PNPT infographic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FIAyr0PLSmVNdVLc.jpg" /></figure><p><strong>My PNPT Exam Failures and Successes</strong></p><p>The PJPT and PNPT exams were both challenging but fair. The exams covered a wide range of topics, including OSINT, external penetration testing, and internal penetration testing. Both exams required a strong foundation of Active Directory knowledge. As someone who has failed both exams multiple times before passing, here are some tips that may help others.</p><ul><li>Take organized notes while completing each course.</li><li>Everything you need for these exams will be within the course.</li><li>If you get stuck, take breaks and come back fresh. Think what would the solution look like if it were easy?</li><li>Re-watch Active Directory videos in the PEH and pay attention to all of Heath’s tidbits throughout each video.</li></ul><p><strong>Conclusion</strong></p><p>I highly recommend the PEH and PNPT certifications to anyone who is interested in a career in ethical hacking or penetration testing. The preparation process is challenging, but the experience and knowledge gained are well worth it. TCM Security’s training courses and materials are excellent and provided me with the foundation needed to succeed in further studies and career work. My path forward is not clear, but I am now starting the CPTS from Hack the Box. My biggest hang up with this material is it being all text based, as I enjoy video format much more. I will persist through the course as the community has taught me as it will greatly set me up for passing the OSCP in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8567675f56c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — LazyAdmin Walkthrough]]></title>
            <link>https://medium.com/@tmurphy3100/tryhackme-lazyadmin-walkthrough-e496679033b6?source=rss-fab979a11dbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e496679033b6</guid>
            <category><![CDATA[linux-priv-esc]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[learning-hacks]]></category>
            <dc:creator><![CDATA[Trevor Murphy - SudoBear]]></dc:creator>
            <pubDate>Sun, 17 Mar 2024 04:05:12 GMT</pubDate>
            <atom:updated>2024-06-10T17:27:48.213Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://tryhackme.com/r/room/lazyadmin">TryHackMe | LazyAdmin</a></p><p>This is an “easy” difficulity box on TryHackMe. It describes itself as a box to practice Linux Privilege escalation on.</p><p><strong>Enumeration</strong></p><p>Firstly, I ran a full Nmap scan on the target provided on all ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nS6RAvAz_WoVC0kWbSZasw.png" /></figure><p>While the scan was running, I navigated to the HTTP website and identified a default Apache webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rsi0PPOqSuoyKZXGUrts4w.png" /></figure><p>Based on this default page and with Wappalyzer we can see the version of Apache and this is running on a Ubuntu OS. Additionally I checked the /robots.txt page for any bread crumbs of information that an “administrator” may leave behind. This is a common occurance with CTF-type challenges. Nothing to report back there.</p><p><strong>Directory Busting</strong></p><p>There are a ton of options to use for directory busting — GoBuster, Dirb, Durbuster, and Ffuf to name a few. I am going to go with Ffuf for it’s speed. One drawback is it won’t pick up sub directories by default, so that’s something I will have to keep in mind if further enumeration is needed.</p><p>Here is the Ffuf command:</p><p><em>ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -u </em><a href="http://10.10.94.28/FUZZ"><em>http://10.10.94.28/FUZZ</em></a></p><p>Results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1h5hPGeTQFVW81g-dPx1SQ.png" /></figure><p>Navigating to the /content directory we can see a default notice. Looks there is CMS called Basic CMS Sweetrice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I67SUMtGxSoTbUGgadTEpQ.png" /></figure><p>I don’t see much else on this page that we can enumerate. I checked the page source and it was just mostly default, no extra comments. The next two steps for me are to research possible exploits for SweetRice and to look for further sub-directories under /content. I will put researching exploits on hold for now, because we do not have a version number.</p><p>I ran FFuf again but this time for /content/FUZZ and found this additional directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*fNYA75ZkqDL6swXLV59J5g.png" /></figure><p>Two of these directories were of immediate interest to me. One was a logon portal at /content/as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gq-4Mi1nKxEUNr1zhhaE5g.png" /></figure><p>And I also found a backup to a SQL database in the directory /inc:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wh9-XxN-dhjKilP-szW7Jg.png" /></figure><p>My best guess so far is there could be credentials in this backup file that we can use to log into this SweetRice portal.</p><p><strong>Gaining System Access</strong></p><p>I was able to download the backup SQL file and just use the <em>cat </em>command to view it’s contents. I noticed a password hash potentially for the admin user.</p><p>42f749ade7f9e195bf475f37a44cafcb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dE7SoJM514uZrMLhoq2ITQ.png" /></figure><p>Luckily enough, I was able to use CrackStation to show that this password is just Password123.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wG8lDXv1KyFU1cI27Q1FIg.png" /></figure><p>Now let’s try it with either manger, or admin, and try to log into that portal.</p><p>Success (with manager/Password123):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1F9ot538ndD8sw95STJynw.png" /></figure><p>While trying to find an option to upload a file I spotted this in Media Center. My goal here is upload a PHP shell and get access to the machine via a reverse shell. I am uploading a file called shell.php, which includes code I just copied from this GitHub page: <a href="https://github.com/pentestmonkey/php-reverse-shell">https://github.com/pentestmonkey/php-reverse-shell</a></p><p>It looks nothing was happening while trying to upload this file, my hunch is something is blocking PHP files from being uploaded. Web servers are usually set up to block certain file types from being uploaded. In this case, I decided just to try another type of PHP file extension, as sometimes the rule does not block every iteration ( See this source for more PHP extensions: <a href="https://www.studyhost.net/support/knowledgebase/53/What-are-valid-file-extensions-I-can-use-for-PHP-scripts.html">https://www.studyhost.net/support/knowledgebase/53/What-are-valid-file-extensions-I-can-use-for-PHP-scripts.html</a>) This successfully uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32dpqzoQjq4aNy6deXnLuQ.png" /></figure><p>Next I started to Netcat listener on my Kali Linux machine and navigated to this file on the webpage to make the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*Ao1PuWGj_AE0FITp7D6vBg.png" /></figure><p>I am now connected as the user www-data. From here I navigated to /home to see which users are on the box and then I was able to navigate to the only user’s folder “itguy” and capture the user flag for the TryHackMe first question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*GYzT4wiGydMi9Q2P2F6oxQ.png" /></figure><p><strong>Privilege Escalation</strong></p><p>Now the goal is to find a way to get root privileges for this machine. The best idea would be to fully enumerate with a tool like LinPEAs or lineum.sh, but I always like to check for any leaky sudo privileges, and in this case I noticed a pearl script that can run as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*GSxFaWf6wfBcwjfBAqHnbA.png" /></figure><p>Navigate to /home/itguy/backup.pl and see what this script does:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*T64WS3VSPNHXlfoJyGVDYA.png" /></figure><p>Looks like it’s calling this .sh script, let’s see what that does. I navigated to /etc/copy and here it is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAxtOLBGftEo1JS-DC1dJw.png" /></figure><p>This looks like a reverse shell script (interesting). Let’s try to insert my Kali Linux machine’s IP into this and just echo a replacement to swap the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvBhBi-pgsIt-t6aFuE7AQ.png" /></figure><p>Success! First I started a new Netcat listener on port 5555, and then let’s try and run this Perl script as sudo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*G9Rhr-Zu6TfpiMCzOM7h0g.png" /></figure><p>I had a hard time finding out why I couldn’t run this. It worked best when I typed out the file path all the way, see above. Don’t forget to start another Netcat listener on port 5554 (see below) to make the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*ZWwuATZB2Mp3F6OK6Ku0DQ.png" /></figure><p>After running that Perl script with sudo permissions I got a root shell and was able to capture the root flag for this challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e496679033b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Simple CTF Walkthrough]]></title>
            <link>https://medium.com/@tmurphy3100/tryhackme-simple-ctf-walkthrough-6502016a1684?source=rss-fab979a11dbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6502016a1684</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[sudo]]></category>
            <dc:creator><![CDATA[Trevor Murphy - SudoBear]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 16:51:38 GMT</pubDate>
            <atom:updated>2024-03-13T02:49:56.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe — Simple CTF Walkthrough</h3><p><strong>Introduction</strong>: TryHackMe is a great platform for learning cybersecurity through many different challenge based rooms. Simple CTF is a capture-the-flag-based room that demonstrates enumeration, exploitation, and escalation. This is a free room on the TryHackMe platform that you can check out here: <a href="https://tryhackme.com/room/easyctf">https://tryhackme.com/room/easyctf</a></p><p><strong>Getting Connected</strong>: TryHackMe offers various ways to connect to their rooms. You can use the AttackBox if you are a subscriber, or head over to <em>Access </em>from your profile and download the VPN configuration files. If you connect from your Kali Linux box, the command will be “<em>sudo openvpn — config configurationfile.ovpn”.</em></p><p><strong>Enumeration</strong>: We must enumerate this box to understand which services are running, discover possible exploits, and answer the questions on TryHackMe. Start by running a Nmap scan. There are many different flags and options, but I usually run it like this:</p><p><em>nmap -T4 -A -p- 10.10.X.X &gt; nmapscan.txt</em></p><p>I added the output command as I would like to save my output into a text file in case I need to come back. Here are the results:</p><p><em>nmap -T4 -A -p- 10.10.X.X &gt; nmapscan.txt</em></p><p>I added the output command as I like to save my output into a txt file in case I need to come it. Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1VnofAPUeQseGwuGxgTUw.png" /></figure><p>We have three services to review here, but I usually like to start with HTTP when present. We have the answers to the first two questions on TryHackMe.</p><ol><li>How many services are running under port 1000? Answer: 2.</li><li>What is running on the higher port? Answer: ssh.</li></ol><p><strong>Enumerating HTTP</strong>:</p><p>My first step was to visit the HTTP page on Firefox; while there, I also checked Wappalyzer for versioning details. When visiting the page, the default Apache2 page is shown and we identified the Apache version is 2.4.18 and it runs on Ubuntu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KGaPHHRBFuR2MAhrp1monw.png" /></figure><p>Searching for more information, I right-clicked on the page and clicked View Page Source. Nothing of interest was here. My next step is to enumerate this site’s pages further to see if anything is running on here that might be exploitable. There are many options to do this — Dirb, Dirbuster, Gobuster, and Ffuf. In this case, I just went with the GUI tool Dirbuster. Here are the settings I used in Dirbuster:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7z-sANq-r-WD_3V-_xmLgw.png" /></figure><p>As the results start coming in for tons of different directories, the first one that sticks out to me is <em>simple</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2dn4wAkJJu8OCw1IeJtHA.png" /></figure><p>Navigating to the Simple page, we see that this site is powered by CMS Made Simple, specifically version 2.2.8. We also get additional details from Wappalyzer as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtPOzP9139kN8E9cqTaITQ.png" /></figure><p>So far, there has been quite a bit of versioning disclosure, but I believe we can start researching exploits. Beginning with a search for CMS Made Simple version 2.2.8 exploits. The first result from my search was an SQL injection, and the CVE was identified as CVE-2019–9053, which happens to be the answer to the following two questions:<em> What’s the CVE you’re using against the application? And what kind of vulnerability is the application vulnerable to?</em></p><p>This exploit also appears when searching for CMS Made Simple 2.2 exploits with Searchsploit. Other options are available, but they are authenticated, and at this point, we have no credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TBDH19xj1TM6PlpCbVD9Q.png" /></figure><p>I copied the SQLi exploit to work within my current directory.</p><p><em>└─$ sudo cp /usr/share/exploitdb/exploits/php/webapps/46635.py sqli.py</em></p><p>Just running the exploit with “./sqli.py” will give us information on how to format our command. We need to provide the URL with -u and a wordlist followed after -w. If we use this exploit to crack the hashes, it will find the password instead of just the hash. In my instance, I am going to have it crack the hash and use the rockyou.txt wordlist in my /usr/share/wordlists directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLNR1WafQE7DaKKXiwx2Gw.png" /></figure><p>I had difficulty getting this exploit to work and returned to it in my next study session. I tried a few things to troubleshoot this script:</p><ul><li>Downloading a newer one from Github.</li><li>Trying a python3 version.</li><li>Trying different wordlists to crack the password.</li></ul><p>I just kept having an issue where the script would give up and output whatever it wanted. It seemed like it was running out of time, so I reviewed the Python script and found a time variable. I at first changed this from 1 to 3 and got a little further, but ultimately, changing it to 5 worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gS9WUKCIGTEY9bVLD-Uq7Q.png" /></figure><p>Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*7ChTDnnbyObHjfK8LIYguw.png" /></figure><p>Having a valid set of credentials allows us to connect via ssh on port 2222. After connecting I was able to quickly capture the user flag as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5WXyj8DPGssMT0lRJzJEkQ.png" /></figure><p>The next question on TryHackMe can now be answered by checking for other users in the /home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*6gh97P-Mq4tXvJhZaptUcw.png" /></figure><p><strong>Privilege Escalation:</strong></p><p>The first step here was to check for any leaked credentials in the bash history. Running <em>cat .bash_history </em>I was only able to identify commands being entered to create the user flag that we already captured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*ul5gPb3fjOLGng2VrO58AA.png" /></figure><p>Next I checked for any sudo privileges that can be utilized. Looks like we have sudo access to <em>vim.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*Cd2-3v3H6SKpjjtjb7k-mA.png" /></figure><p>The best resource available for utilizing sudo privileges is GTFOBins:</p><p><a href="https://gtfobins.github.io/gtfobins/vim/#sudo">vim | GTFOBins</a> — <a href="https://gtfobins.github.io/gtfobins/vim/#sudo">https://gtfobins.github.io/gtfobins/vim/#sudo</a></p><p>From there I just copied the command seen below to utilize <em>Vim’s </em>ability to run as sudo and break out and capture a root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*f0AJc35IbsJ3I9olRApr-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*okOj8v7-I45km-Ieh0CMBQ.png" /></figure><p>After switching to the root directory we were able to capture the root flag and finish up this TryHackMe room. Congrats!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6502016a1684" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a SIEM Lab with Elastic Cloud]]></title>
            <link>https://medium.com/@tmurphy3100/building-a-siem-lab-with-elastic-cloud-bd1ab292239e?source=rss-fab979a11dbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd1ab292239e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[elastic]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Trevor Murphy - SudoBear]]></dc:creator>
            <pubDate>Sat, 03 Feb 2024 05:31:41 GMT</pubDate>
            <atom:updated>2024-02-03T05:32:43.985Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>A recent YouTube video captured my attention as I explored various methods to gain practical experience with SOC and cybersecurity tools. My current role has introduced me to technologies like Elasticsearch and OpenSearch, sparking my interest in integrating professional development with personal learning endeavors.</p><p>The video, shared by Gerald Auger, offers a comprehensive guide titled “Build a Powerful Home SIEM Lab Without Hassle! (Step by Step Guide).” It draws inspiration from Abdullahi Ali’s blog post, “A Simple Elastic SIEM Lab,” providing a structured approach to learning. This post serves as an introduction to SIEM and Elastic, often referred to as ELK, which stands for Elasticsearch, Logstash, and Kibana. These three open-source tools, when used collectively, facilitate real-time log analysis, crucial for identifying security breaches and monitoring server communications.</p><p>SIEM (Security Information and Event Management): SIEM is a comprehensive solution that provides a holistic view of an organization’s information security. It combines two technologies: Security Information Management (SIM), which collects data from log files for analysis and reports on security threats and events, and Security Event Management (SEM), which conducts real-time system monitoring, notifies network admins about important issues, and establishes correlations among different security events. SIEM systems are vital for incident detection and response, providing insights through data analysis, aggregation, and correlation. ELK stands for Elasticsearch, Logstash, and Kibana — three open-source tools used together for searching, analyzing, and visualizing logs generated from any source in real-time. Elasticsearch is a search and analytics engine, Logstash is used for centralizing and processing data, and Kibana is a visualization tool. In the context of security, ELK can be used for log analysis, helping in identifying security breaches, system performance issues, and monitoring server communications. All three of these tools are bundled into the Elastic Cloud service that we will be trialing.</p><p>My goal in completing this task is to gain the skill to start up, configure, and analyze data in a SIEM. As a bonus, I will learn to work with the Elastic Stack. I plan to set up the initial lab as described in this video and blog post and then continue to work to see how we can create events and analyze them. A video that I really enjoyed and that helped me with working further with Elastic was by John Hammond. You can check that video out here: <a href="https://www.blogger.com/u/1/blog/post/edit/7072958628596961102/5414852812755981197#">https://www.youtube.com/watch?v=wiQ8U5mFncw&amp;t=320s&amp;pp=ygUMZWxhc3RpYyBzaWVt</a></p><h3>Getting Started</h3><p>Signing up for a free trial. Head on over to elastic.co/cloud and sign up for a free 14 day trial. No credit card needed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3juT5zboEaxsLEB-" /></figure><p>Afterwards, log into your account for the first time, and we are going to select <em>Security</em> as our use-case, as seen here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*aSj1AOEzZhFOgdE4" /></figure><p>Now open the left side menu and select <em>Add Integration</em> from the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*4rMlvADBsljE5tRL" /></figure><p>Search for and select <em>Elastic Defend</em> and then click the button to add it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*tNTzt2AeFdaXlTiM" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Cr__VpiQRLLxlfH8" /></figure><p>Now look for the banner with the option to Install Elastic Agent, and then copy the install code for the operating system of your choice. This will be for our first agent device that will report security events back to our Elast SIEM. I am going to install it on my Kali Linux VM first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*EhOzf35S6ldkj06h" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*F4ojw0ZWRCtoBzPN" /></figure><p>On the Linux VM, open up and terminal and run the copied command. This command has four parts: <em>Curl </em>is used to download the agent package, <em>tar </em>is used to<em> </em>unpack the zip file, then we switch to the new directory created from the zip file with <em>cd, </em>and then finally, it runs the agent installer with a URL tied to your Easltic instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/0*TReFclJ7wH2InUX_" /></figure><p>Response <em>Y </em>to continue with the install and you will most likely have to verify the root or admin password. The end result we should see <em>Elastic Agent has been installed successfully.</em></p><p>We can check the status of the Elastic agent service for any errors and make sure it is running with the command <em>systemctl status elastic-agent.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*aZ637S9v_ndzOAle" /></figure><p>Now with the agent installed, we are just going to run a few Nmap scans to create some events that we can view in Elastic. Here is one of the Nmap scans that we have ran:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*v2z4nrYFL-rD3OFF" /></figure><p>To see what this will now look like in Elastic, navigate to Observability and go to logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/0*g8hAhZ8pGazohUr-" /></figure><p>*Update as of 2/2/2024. They expanded on the Logs section. We can check out either Explorer to see past logs or Stream for current ones. Let’s go to Explorer and search for Nmap. In this screenshot, you can see the fields I added after searching for Nmap. You can also see the exact Nmap commands that were run on the Kali Linux VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/0*HYpCJIGyHpjsLKBG.png" /></figure><p>This is just an example of something we can find with Elastic as a SIEM. There are a ton of fields you can pick from to build your results.</p><h3>Going Further</h3><p>Now to add, I want to install the Defend agent on the additional machine to see what kind of activity we can monitor. I will be using my Active Directory lab environment and installing the agent on my domain controller and a Windows 10 PC.</p><p>To install on Windows: go to agents, add agents, and copy the PowerShell code. On your Windows server or workstation, make sure you run Powershell as Administrator. Here is what the code looked like for me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/0*HU7usP9Hy-skSeFi" /></figure><p>We also want to get additional monitoring and reporting from Microsoft, so as recommended by John Hammond, we are going to install Sysmon on my domain controller.</p><ol><li>Download Sysmon from Microsoft’s website.</li><li>Navigate to the download and extract it:</li><li>Install Sysmon with the -i flag like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*XDmgOqindOKoA_hS" /></figure><h4>Threat Simulations</h4><p>Brute force attacks are common attacks faced on external servers and applications but can also be an event of interest for internal workstations and servers. This attack is when an attacker will use tools such as Hydra paried with a wordlist to send numerous log attempts to a server, workstation, or application. In this lab, I am going to simulate a smaller brute force attempt from my Kali Linux VM by simply utilizing r<em>desktop </em>and trying to manually brute force into the Administrator account on my lab Windows Server 2019 VM. We will modify Elastic to view this threat and set up realistic alerts that a security team could use to report a brute-force attack.</p><p>Our command from Kali was pretty simple to utilize RDP and make connection attempts; see below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/0*YCsZPUC4DSBEuhy0" /></figure><p>This brings up a Remote Desktop Connection that I used to fudge in some consecutive log-on attempts to create some noise for Elastic.</p><p>In Elastic, go to Analytics and then Discover. Here we are going to search for logon-failed attempts, and we can utilize the Windows Event ID for this one in the search field with <em>winlog.event_id:”4625&quot;</em></p><p>I searched through the available fields and found the most useful ones for this simulation. Some of these fields just come up blank, so it may take some trial and error to get the right ones. See the screenshot of our simulated brute force attempt, along with the fields I selected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/0*PqnsXcj2z-293dqC" /></figure><p>So we were able to identify a brute force attack in our SIEM; what’s more important now is using these logs to take action. For this lab, we are simply going to send an email alert when we hit 5+ invalid log-in attempts in 1 minute.</p><p>1. From the Discover tab that we are on while reviewing the Brute Force alerts, click on <strong>Alerts </strong>and <strong>Create search threshold alert.</strong></p><p>2. From here, enter a name for your alert, and define the query if it is not automatically filled in. Here I set it to “winlog_event_id:”4625&quot; as shown in this screenshot. I also updated the group, threshold, and time window so that it will alert us if there are more than 5 invalid attempts within 1 minute. This is not the best rule, as some tools may delay attempts to avoid this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*t0m5DMJIS7CWbJtM.png" /></figure><p>3. Now, under actions, select Email and enter an email to send the alert.</p><p>4. After running Hydra again, here is what an alert email looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/0*4jziT9QFvM-rkxzH.png" /></figure><ol><li>Lessons Learned</li></ol><p>This exploration into setting up and utilizing a SIEM with Elastic Cloud has been invaluable in comprehending the Elastic system and the fundamentals of SIEM technology. The main challenge was fine-tuning log filters to isolate pertinent data, an area I plan to delve into further with advanced attack scenarios. This project underscores the potential of SIEM systems in enhancing organizational security and offers a solid foundation for future cybersecurity endeavors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd1ab292239e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>