<?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 Cyber Balla  on Medium]]></title>
        <description><![CDATA[Stories by Cyber Balla  on Medium]]></description>
        <link>https://medium.com/@cyberballa?source=rss-407cebc2c992------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vqR4Xg__f0oRI7P7A4h9EQ.png</url>
            <title>Stories by Cyber Balla  on Medium</title>
            <link>https://medium.com/@cyberballa?source=rss-407cebc2c992------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:46:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyberballa/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[Making My Homelab Smarter During Power Outages]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@cyberballa/making-my-homelab-smarter-during-power-outages-442ea9159483?source=rss-407cebc2c992------2"><img src="https://cdn-images-1.medium.com/max/1053/1*aAmG_wNa2JkCwfrkRtOYpA.png" width="1053"></a></p><p class="medium-feed-snippet">As my homelab continues to grow, I&#x2019;ve been spending more time thinking about reliability and what happens when things go wrong.</p><p class="medium-feed-link"><a href="https://medium.com/@cyberballa/making-my-homelab-smarter-during-power-outages-442ea9159483?source=rss-407cebc2c992------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cyberballa/making-my-homelab-smarter-during-power-outages-442ea9159483?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/442ea9159483</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 04:31:36 GMT</pubDate>
            <atom:updated>2026-11-29T04:34:15.314Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Spent an Hour Troubleshooting OPNsense. The Fix Was One Click.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@cyberballa/spent-an-hour-troubleshooting-opnsense-the-fix-was-one-click-7121b2c53e1d?source=rss-407cebc2c992------2"><img src="https://cdn-images-1.medium.com/max/928/1*ZuXyIxIwuhST9Mu1Cxz2GQ.png" width="928"></a></p><p class="medium-feed-snippet">I started building my home lab because I wanted somewhere to experiment, break things, and actually understand how they work. One of the&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@cyberballa/spent-an-hour-troubleshooting-opnsense-the-fix-was-one-click-7121b2c53e1d?source=rss-407cebc2c992------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cyberballa/spent-an-hour-troubleshooting-opnsense-the-fix-was-one-click-7121b2c53e1d?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/7121b2c53e1d</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[opnsense]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 16:31:01 GMT</pubDate>
            <atom:updated>2026-11-24T16:31:01.729Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Humble Beginnings: Building My First Home Lab]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@cyberballa/humble-beginnings-building-my-first-home-lab-9ecd70e18e60?source=rss-407cebc2c992------2"><img src="https://cdn-images-1.medium.com/max/600/1*EsucGKlQynSkmDLriynwXA.png" width="600"></a></p><p class="medium-feed-snippet">Every home lab has to start somewhere&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@cyberballa/humble-beginnings-building-my-first-home-lab-9ecd70e18e60?source=rss-407cebc2c992------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cyberballa/humble-beginnings-building-my-first-home-lab-9ecd70e18e60?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ecd70e18e60</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 02:39:37 GMT</pubDate>
            <atom:updated>2026-11-22T06:34:23.404Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building My Home Lab: The Beginning of My Journey]]></title>
            <link>https://medium.com/@cyberballa/building-my-home-lab-the-beginning-of-my-journey-e2b8f03d897a?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b8f03d897a</guid>
            <category><![CDATA[home-lab-projects]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[self-hosting]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 03:34:16 GMT</pubDate>
            <atom:updated>2026-11-16T03:34:16.086Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Working in IT has given me the opportunity to troubleshoot different systems, networks, and technologies. Over time, I’ve become increasingly interested in understanding not just how to fix technical problems, but how the infrastructure behind these systems is designed, configured, and maintained. That curiosity led me to start building my own home lab.</p><p>I’ve wanted an environment where I can experiment with technologies outside of work, strengthen my technical skills, and gain more hands-on experience with networking, Linux, virtualization, and cybersecurity.</p><p>Rather than relying entirely on tutorials or simulated environments, I wanted to build something physical that I could configure, break, troubleshoot, rebuild, and continuously improve.</p><h3>The Hardware I’m Starting With</h3><p>My current collection includes:</p><blockquote>Dell PowerEdge T150: Primary Proxmox virtualization server.</blockquote><blockquote>Dell PowerEdge T130: Additional server for future projects.</blockquote><blockquote>Dell OptiPlex systems: Small-form-factor computers for additional workloads and experimentation.</blockquote><blockquote>GMK mini PCs: Compact systems for lightweight services.</blockquote><blockquote>Raspberry Pis: Dedicated services and smaller projects.</blockquote><blockquote>Silver Peak EdgeConnect appliance: Repurposed to run OPNsense.</blockquote><blockquote>D-Link DGS-1100–16V2: Managed network switch.</blockquote><blockquote>CyberPower UPS: Backup power for essential equipment.</blockquote><p>One of my main goals for this home lab is to create a segmented network using VLANs to separate devices and services based on their purpose.</p><p>Rather than having everything operate on a single network, I plan to create dedicated VLANs for management, servers, trusted devices, IoT devices, and testing.</p><p>I’ll be using OPNsense as my firewall, alongside a managed D-Link switch to handle VLAN connectivity. The goal is to improve network organization, control communication between devices, and create an isolated environment where I can safely experiment without affecting my existing home network.</p><p>The network topology diagram below illustrates the layout I have in mind and how I envision the different components working together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILXda231Yw6vK11-1L3x_g.png" /></figure><p>In my next post, I’ll dive deeper into the OPNsense setup, VLAN configurations, firewall rules, and the process of bringing this network design to life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b8f03d897a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active Directory Home Lab]]></title>
            <link>https://medium.com/@cyberballa/active-directory-home-lab-6e6500eeb7bb?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e6500eeb7bb</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Sat, 23 Mar 2024 13:18:58 GMT</pubDate>
            <atom:updated>2024-03-23T13:18:58.938Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Active Directory is a vital technology that centralizes resource and user access management in network environments. It enhances security, availability, and manageability of resources, streamlining administration tasks and bolstering organizational efficiency.</p><h3>Objective of the Lab</h3><p>The objective of this lab is to replicate a professional work environment within a home setting, enabling individuals to acquire practical, hands-on experience. It will cover the following:</p><ul><li>Enabling and configuration DNS &amp; DHCP</li><li>Adding Users and Managing Roles</li><li>Creating Folders on Server Manager</li><li>Managing Folder Permissions for Users</li><li>Mapping Share Drives For End-Users</li><li>Setting Up and Utilizing RSAT Tools</li><li>Configuring Group Policies Objects (GPOS)</li></ul><h3>Enabling DNS &amp; DHCP</h3><p>To start, ensure that a static IP address is configured on the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*bliN_AiobgGFIlz0Ow3Yfw.png" /></figure><p>Next, open Server Manager and click on “Manage” at the top right corner then click “Add Roles and Features.” Click on DHCP Server and if DNS server isn’t already installed, check the DNS Server box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*QCRsAqlXbD6N3TFsPEYEIA.png" /></figure><p>Once installed, you’ll see the static IP address displayed in the DHCP portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ko0nf64GQI-lxkZNEoFn8w.png" /></figure><p>Where the server name and IPV4 Address are displayed, right-click the highlighted text, and select “DHCP Manager” from the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*HMGW7gRVdeln1VtFPx1jfQ.png" /></figure><p>Click on “Contents” within DHCP, then right-click on “IPv4” and select “New Scope.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*NPd9EzijVssf2zSmE7dqPw.png" /></figure><p>You’ll be prompted to name the scope and then configure the DHCP based on the range of IP addresses. We’ll configure it according to our IP range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*BSQsWqTn1tIZ2ieULxkD7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*FpyESahWLgiErxj3Kyz70A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*JDQy8y9ealFNXnneI4greQ.png" /></figure><p>After completion, when we join the IP to the domain, it will display the addresses it is leasing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*204MsPFFmY3squAJbmS30w.png" /></figure><p>We’ll proceed to DNS and create a new scope for the Reverse Lookup Zones. This enables systems to query the DNS server with an IP address and receive the corresponding hostname.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*_NexOINbhVqufJS4x3P7xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*BE7DpAyj-hMRaI6e3ZJo5A.png" /></figure><p>Once finished, open Command Prompt and enter the command. This will initiate the registration of the DNS and display the record.</p><p>ipconfig /registerdns</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*5BqjakluY_q1Babd-4HCqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*woC8eOKEFP4eia9rAlvWig.png" /></figure><h3><strong>Adding Users</strong></h3><p>To add a user, click on the “Tools” button at the top right, and then select “Active Directory Users and Computers.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*qR2A1NW0081to_QmQMCDBA.png" /></figure><p>Right-click on the “Users” folder, then select “New” -&gt; “User”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*bBPhmDjXbB3Y0K9XIiW2uA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*_44MdamHQecu5Qp3PVC32Q.png" /></figure><p>Now you can edit the properties of the new User object accordingly.</p><h3>Folders on Server Manager</h3><p>To start, we’ll install the tool by clicking on “Manage” at the top right, then selecting “Add Roles and Features.” From there, navigate to “Server Roles,” check and expand “File and Storage Services,” and select “File Server Manager.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*OmPfF59pvZsbzAy_-x5sYQ.png" /></figure><p>After the installation, navigate back to the server manager and will see “File and Storage Services” at the bottom. Click on shares and right click the box that contains NETLOGON and SYSVOL. Click New Share then select “SMB Share — Advanced”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*8CJuAsDr-VpIFq4xKuykvg.png" /></figure><p>Select the preffered path of the Shared folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*39v6rq4FCjVc1Mfi8b_6PA.png" /></figure><p>Since it will be used to share with multiple users, I selected Group Files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*bC3irSSgd-GOcFSk2F-Vcw.png" /></figure><p>Now, we can see the file selected to be shared, “cyberballa”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*09FzT3Y2_25cDftR6JJM5A.png" /></figure><p>Within the directory, we’ll create two folders: Marketing and Sales.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbOuAfl26PKUn_ujevFH1A.png" /></figure><p>To start with Marketing, right-click the folder, select the “Security” tab, and then click “Advanced.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*CUVNa72cbqJpUZqOnIztUA.png" /></figure><p>We will click on “Disable inheritance” then “Convert inherited permissions into explicit permissions on this object”. This allows us to selectively delete the users rather than have them all be removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*GZKa-iu1dZtkA146ILDSDw.png" /></figure><p>Then, click “Select a principal” and the user you’d like to assign it to and the permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*sHUpcj1cpg5pZVJAt-1y-Q.png" /></figure><p>After we select ok, we will right click the Marketing Folder again and click properties -&gt; Sharing -&gt; Share and give the user Read/Write permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*u99C1q8UUraHEjJfvn_zQg.png" /></figure><p>Now, back to “Active Directory User Account and Computers,” we’ll map the shared drives for the users. You can obtain the file’s path by right-clicking the Marketing Folder, selecting “Properties,” then opening the Sharing Tab. You’ll find it under the “Network Path.” Once we have the location, we’ll go to the Active Directory User Account and Computers window, right-click the user in this case, Nick Smith, navigate to the profile tab, and at the bottom, copy the location to connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*1wszRZGVrd04wWo5Z0eyow.png" /></figure><p>Now, if we log on to Nick’s desktop, it will appear under This PC -&gt; Network locations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBXElWVLjennhFUmA0sBww.png" /></figure><p>And since we have Read and Write permissions, we are able to modify and make changes to the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRCs_XBH5LroJZMHieyPdQ.png" /></figure><p>The same applies, if we add another user to the second folder, “Sales.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*nm29ZXct2utfQBw00T5u_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*2J_PchBKYdZSl4beHCFiqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCl2joYm-eYFZDYUDTdtVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wxwjgCHByDt7lwopVEUoQ.png" /></figure><h3><strong>Adding RSAT Tools</strong></h3><p>RSAT, or Remote Server Administration Tools, is a method for remotely managing Active Directory through a workstation. It offers efficiency and flexibility, enabling enhanced security by delegating permissions instead of directly managing AD tasks on the AD server.</p><p>The installation can be found <a href="https://www.microsoft.com/en-us/download/details.aspx?id=45520">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*47qEKQ6xjRh_QK2HFYJwPA.png" /></figure><p>Once installed on the Windows 10 Desktop, we will have access the the AD tools and server manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjvwjkQAB35Lt_iiaTl4qw.png" /></figure><h3>Delegation Rights</h3><p>We can return to the AD Users and Computers window to add a new user and grant them the necessary permissions to utilize RSAT. Once the user is created, we’ll right-click on “cyberballa.com” and select “Delegate Control.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*ozIvMEm0-aFp5iO3iBoXyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*dYK-JWmHnz66JdmqeDkDHg.png" /></figure><p>The permissions granted is the ability to Reset users passwords and force password change at next logon, as well as joining a computer to the domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*7GVgT7S0kV0-JWNarShGRA.png" /></figure><p>Now to test this out, we can login to the user. If we try to delete a user, it will not allow us since we do not have sufficient permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*jAC-uSyns-HNngro_bXViQ.png" /></figure><p>However, if we attempt to change a user password, it will allow us because that action falls within our scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*irDB6PhmlTwuQjRJCkJ63w.png" /></figure><p>To simplify, we can delegate the permissions for the group “Help Desk” and we will set it to only reset users passwords and force password change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*HvTUYcTSW6I0z1oY4VpZ9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*F76Z4BiLxD_dDw4K1nAN_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*s5eMpP_9jmmM4p2EB_I9IQ.png" /><figcaption>Once completed, we can delegate the permissions for the group “Help Desk” and we will set it to only reset users passwords and force password change.</figcaption></figure><p>You can simply add a user based on the grouping to assign those permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*PPGrJaJALndm2gGuvKfPJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*SmyAiJzawL0V5Km4kyPckQ.png" /></figure><h3><strong>Organizational unit</strong></h3><p>To address the clutter caused by numerous users and accounts, creating an organized and structured approach is essential for effective account management. One solution is to utilize Organizational Units (OUs) to better organize Active Directory Users and Computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*kbqs4AXCvKWn3NroCu4kNg.png" /></figure><p>As shown in the image above, we have created separate OUs based on the department each user is in.</p><p>By creating separate OUs, it also generates distinct Group Policy Objects (GPOs) for each one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*why5SwHiczTJsd-kUhyA6w.png" /></figure><p>For example, we can create one to define the IT department’s minimum password length by increasing it from the default 7 to 10 characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*pk6BmBTxyH9ZU1ZBhHrtxQ.png" /></figure><p>And change the Sales department to deny all removable storage classes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfjJoA5SZdo86rQFruaNFw.png" /></figure><h3>Conclusion</h3><p>The Active Directory home lab project was an enjoyable experience, offering hands-on practice in managing AD roles, permissions, and policies. Through configuring settings, delegating permissions, and implementing Group Policy Objects, I gained valuable insights into Active Directory administration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e6500eeb7bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yara Threat Detection]]></title>
            <link>https://medium.com/@cyberballa/yara-threat-detection-a809c694e0f4?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/a809c694e0f4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Thu, 08 Feb 2024 22:29:07 GMT</pubDate>
            <atom:updated>2024-02-08T22:29:07.236Z</atom:updated>
            <content:encoded><![CDATA[<p>In this project, we will explore how to identify basic file IoCs, create YARA rules for detecting malicious activity, and utilize tools such as yarGen and Arya for rule generation and testing. These skills are invaluable for threat detection and mitigation in various cybersecurity roles.</p><h3><strong>Yara</strong></h3><p>YARA is an open-source malware classification tool used to identify and classify malware or suspicious files based on its signatures or rules. It is a powerful and flexible tool that allows users to create rules matching their organization’s needs or targeting specific threats. It serves as a crucial component for cybersecurity professionals to effectively mitigate and detect threats.</p><h3><strong>Objective of the Lab</strong></h3><ul><li>Identify Basic File IoCs</li><li>Creating YARA rules</li><li>Utilize yarGen to generate YARA detection rules</li><li>YARA rule testing with Arya</li></ul><h3>Setup</h3><p>The setup process can be found at <a href="https://cyberwoxacademy.com/intro-to-threat-detection/">https://cyberwoxacademy.com/intro-to-threat-detection/</a>.</p><h3>Investigating IoC</h3><p>Once the lab has been successfully set up, we will notice on the desktop a file called “kenobi.txt”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*k8sh4llXhVaIegVDkK9Qyg.png" /></figure><p>We can begin collecting information from the properties tab:</p><ul><li><strong>File Name:</strong> kenobi.txt</li><li><strong>File Path:</strong> /home/kali/Desktop</li><li><strong>File Size:</strong> 24 Bytes</li></ul><p>To collect additional information, we will execute the following command:</p><pre>strings kenobi.txt &gt; kenobistrings.txt</pre><p>This command extracts readable text from the file “kenobi.txt” and saves them to a new file named “kenobistrings.txt”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*ajS-tpL22avJPdaNKy3Fnw.png" /></figure><p>By using cat kenobistrings.txt, we can now view the output data. As demonstrated in the image above.</p><p>Now, we can add the additional information collected to our list:</p><ul><li><strong>File Name:</strong> kenobi.txt</li><li><strong>File Path:</strong> /home/kali/Desktop</li><li><strong>File Size:</strong> 24 Bytes</li><li><strong>Strings</strong>: “Hello there! star{warz}”</li></ul><p>Next, we will commence collecting the file hashes by executing the following commands:</p><pre>md5sum kenobi.txt</pre><pre>sha1sum kenobi.txt</pre><pre>sha256sum kenobi.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*CBKgtYMtXh-qsmBO6JZlxw.png" /></figure><p>The updated list will be:</p><ul><li><strong>File Name:</strong> kenobi.txt</li><li><strong>File Path:</strong> /home/kali/Desktop</li><li><strong>File Size:</strong> 24 Bytes</li><li><strong>Strings</strong>: “Hello there! star{warz}”</li><li><strong>MD5 Hash:</strong> f1bc52b1c4da8b1d9dbe44bf41697d9d</li><li><strong>SHA1 Hash:</strong> acf20e2e687005925149527e979220d21ded5696</li><li><strong>SHA256 Hash:</strong> a6592f3b045c0bd897899a25b3b0b10a4c8444e28764cfcf2717dee1b67d3eb</li></ul><h4>Creating A YARA Rule</h4><p>To begin creating a YARA rule to hunt for additional files, we will run the following command to open the editor:</p><pre>nano starwars.yara</pre><p>The YARA rule will incorporate the information we have collected during our investigation.</p><pre>rule star_wars<br>{<br>      meta:<br>              author = &quot;USER&quot;<br>              date = &quot;DATE&quot;<br>              description = &quot;This is a sample YARA rule for testing lab.&quot;<br>              reference = &quot;Blank&quot;<br>              md5hash = &quot;f1bc52b1c4da8b1d9dbe44bf41697d9d&quot;<br>              sha1hash = &quot;acf20e2e687005925149527e979220d21ded5696&quot;<br>              sha256hash = &quot;a6592f3b045c0bd897899a25b3b0b10a4c8444e28764cfcf2717dee1b67d3ecb&quot;<br>      strings:<br>              $s1 = &quot;Hello there!&quot;<br>              $s2 = &quot;star{warz}&quot;<br>      conditions:<br>              ($s1 or $s2) and filesize &lt; 20KB</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*nPNPzPsQ5xBeO_JAjAMnYg.png" /></figure><p>The purpose of this rule is to search for two specific strings listed in the strings section: “Hello there!” and “star{warz}”. Additionally, it targets files that are smaller than 20KB in size.</p><p>We can run this rule by using the command:</p><pre>sudo yara -m -s -r starwars.yara ~/ 2&gt;/dev/null</pre><p>To break down the command:</p><ul><li><strong>sudo</strong>: Executes the command with superuser privileges.</li><li><strong>yara:</strong> Invokes the YARA tool for rule-based malware detection and analysis.</li><li><strong>-m:</strong> Modifies the behavior of YARA to only display matching file names instead of entire matches.</li><li><strong>-s:</strong> Enables the “fast scan” mode, which instructs YARA to terminate scanning a file once a match is found.</li><li><strong>-r starwars.yara:</strong> Specifies the YARA rule file to be used for scanning. In this case, it’s “starwars.yara”</li><li><strong>~/:</strong> Specifies the directory to scan. In this command, it’s the user’s home directory (~).</li><li><strong>2&gt;/dev/null:</strong> Redirects any error output (stderr) to /dev/null. This prevents error messages from being displayed in the terminal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H83kRDlGm7RKgAggmsa5Vw.png" /></figure><p>After executing the command, it outputs multiple files. The file of interest that we will investigate is “grevous.txt”.</p><h3>Investigating Grievous.txt</h3><p>Following similar steps as with the previous file, we will collect information about the “grevious.txt” file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*bwDu6X0T-zAW1RrGJVvWgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*59SOtjK8q-dhji5M1skt0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*BSAYpneUJL65YUKJJGhhAA.png" /></figure><p>IoC’s collected:</p><ul><li><strong>File Name</strong>: grievous.txt</li><li><strong>File Path</strong>: /home/kali/grievous.txt</li><li><strong>Size</strong>: 38 bytes</li><li><strong>Strings</strong>: “General Kenobi.. star{warz} order{66}”</li><li><strong>MD5 Hash:</strong> e10edced67b747f31ce544a5ec39b4eb</li><li><strong>SHA1 Hash:</strong> d6a51843f65d032abfb2ec500ce11f32ea72e39d</li><li><strong>SHA256 Hash: </strong>0833077daa6d59e306178a61efde6063cbe45eb2d107d4c28649ce579b7082f</li></ul><p><strong>Update YARA Rule</strong></p><p>Now, we can revisit the “starwars.yara” file and update the rule with the additional information gathered from the “grevious.txt” file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*d7BQHtgJ2Gw_CuqeZtZN8g.png" /></figure><p>Then by running the sudo yara command but this time specifying the directory to tmp:</p><pre>sudo yara -m -s -r starwars.yara /tmp 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*0bYaC8vu-7Yx3gCCB4QM_Q.png" /></figure><p>From the output, it has identified a file named “yoda.txt”.</p><h3>Investigating Yoda.txt</h3><p>We will follow the same steps as in the previous investigation to collect the file information and update the YARA rule accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*shAq35MxH_K2v-jQjl5AKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*zlu6_8r3sidJ4jghvGkvfQ.png" /></figure><p>IoC’s Collected</p><ul><li><strong>File Name</strong>: yoda.txt</li><li><strong>File Path</strong>: /tmp/yoda.txt</li><li><strong>Size</strong>: 42 Bytes</li><li><strong>Strings</strong>: “Do, or do not. There is no try. order{66}”</li><li><strong>MD5 Hash</strong>: 17879abd086b7494b0d40f5aa6a712fe</li><li><strong>SHA1 Hash</strong>: 6fd8ba400fffdbc3c214cc13804e2acab3e9bf39</li><li><strong>SHA256 Hash</strong>: 2b15dbc85887bed44ff3317572aa5a54c343cc19c22435119d948bcb5f972a7</li></ul><h3>Using YarGen</h3><p>YarGen is a tool that automatically generates YARA rules by analyzing files and identifying malware based on common patterns present in existing samples.</p><p>We will change directory to “~/tools/yarGen/malwarez” to access the content. Within the folder we can see a file called deathstar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*CIpFKbu8HJLCKdNNnHeTvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Gcf6NE6wAlLPfZ6juYB6Ig.png" /></figure><p>IoC’s Collected:</p><ul><li><strong>File name</strong>: deathstar.txt</li><li><strong>File path</strong>: /home/%USER%/tools/yarGen/malwarez/deathstar.txt</li><li><strong>Size</strong>: 90 bytes</li><li><strong>Strings</strong>:“VGhpcyBpcyBub3QgdGhlIGRyb2lkIHlvdSBhcmUgbG9va2luZymb3Iu O66. DV. LS. #%%%^storm##tropper”</li><li><strong>MD5 Hash</strong>: 046d58458878c1cbafa660dfa497e86c</li><li><strong>SHA1 Hash: </strong>269eca6ebd424c44bd2f84631876bfcc5e00ff81</li><li><strong>SHA256 Hash: </strong>572dc75a02ede10754a1eae0c171bca5b71077811e047d4a7cf6b87f827fc044</li></ul><p>To run yarGen, we need to execute a few commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*dqWuUfTDomaPr8cZ5aO3pw.png" /></figure><pre>pip install -r requirements.txt</pre><pre>python yarGen.py --update</pre><pre>python yarGen.py -m ./malwarez/ -o starwarz.yara</pre><p>A breakdown of the command:</p><ul><li>-m ./malwarez: Specifies the directory containing the malware samples to analyze.</li><li>-o starwarz.yara: Specifies the output file where the generated YARA rules will be saved with the name &quot;starwarz.yara&quot;.</li></ul><p>Once the file has been created, we will run cat to view its contents.</p><pre>cat starwarz.yara</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*a34520Ae38Ot8nMKb-anBg.png" /></figure><p>We will now run the generated yarGen rule:</p><pre>sudo yara -m -s -r starwarz.yara ./</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*Bgkgia_HAofdMm8joTM3RQ.png" /></figure><h3>Arya</h3><p>Arya is a valuable tool that generates pseudo-malicious files designed to trigger YARA rules, allowing users to test the effectiveness of their rules in matching specific patterns or characteristics.</p><p>To utilize Arya, we will first execute this command:</p><pre>sudo apt update &amp;&amp; sudo apt install yara cmake &amp;&amp; pip install -r requirements.txt</pre><p>We will create another Yara rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*fhrNMCebWYV3FXdPPVsVvg.png" /></figure><p>Now, to test the YARA rule, we will run:</p><pre>python3 ~/tools/arya/src/arya.py -i &lt;path to your rule&gt; -o youdidit.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*Y3Qap0Pm9OOCI_OZ1ML7qQ.png" /></figure><p>The YARA rule was successfully triggered by Arya, indicating that it effectively detected the characteristics specified in the rule.</p><h3>Conclusion</h3><p>This lab has offered hands-on experience in identifying basic file IoCs and in creating and testing YARA rules. By collecting information from suspicious files, crafting custom rules, and utilizing tools such as yarGen and Arya.</p><h3>Credit</h3><h4>Cyberwox</h4><p><a href="https://cyberwoxacademy.com/intro-to-threat-detection/">Intro to Threat Detection with YARA - Cyberwox Academy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a809c694e0f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Honeypot]]></title>
            <link>https://medium.com/@cyberballa/azure-honeypot-37c2cb93b4c6?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/37c2cb93b4c6</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[honeypot]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Thu, 08 Feb 2024 10:17:27 GMT</pubDate>
            <atom:updated>2024-02-08T10:17:27.349Z</atom:updated>
            <content:encoded><![CDATA[<p>In this project, we explore the utilization of a honeypot by using T-Pot, deploying a Debian VM using Azure to install T-Pot on it.</p><h3>Honeypot</h3><p>Honeypots are decoy systems or networks utilized to “bait” attackers into attempting unauthorized access. They offer businesses and researchers a means to gain insights into their threat actors and gather threat intelligence by understanding their tactics, techniques, and procedures (TTPs). This knowledge enables organizations to enhance their ability to detect and respond to security threats effectively.</p><h3><strong>T-Pot</strong></h3><p>In this lab, we’re utilizing T-Pot, which includes multiple honeypots created by T-Mobile. What’s cool about T-Pot is its integration with Kibana, providing visualization to effectively track and monitor attacks in real-time.</p><p>To deploy T-Pot on Azure, you can refer to this guide: <a href="https://tylerwall.medium.com/creating-an-azure-honeypot-2c2eeb89bc9e">https://tylerwall.medium.com/creating-an-azure-honeypot-2c2eeb89bc9e</a></p><p>The T-Pot has been running for a few hours and has detected over 3000 attacks from various locations worldwide. It’s important to note that most of these attacks are from bots, so once deployed, you’ll notice instant alerts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q0c2JVOpoG3y-2ZyZ2BNA.png" /></figure><p>Since T-Pot utilizes multiple honeypots, we can observe the attacks on each one individually and identify which honeypot attracted the most attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTuz1nBY8S6GSIbA3SSnww.png" /></figure><p>Honeytrap and Cowrie have attracted the most attention. This is largely due to them being medium-high interaction honeypots. Cowrie specializes in logging brute force attacks and shell interactions executed by attackers. Meanwhile, Honeytrap monitors TCP or UDP services and simulates widely recognized services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*nsYYUmHzAgsydVr01Z6lHg.png" /></figure><p>Cowrie additionally logs the commands utilized on the command line by the attacker, enabling us to observe the top 10 most frequently used commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yI2YmYcdR2O9GjA0J36ydg.png" /></figure><p>T-Pot aggregates logs on the usernames and passwords attempted during brute-force attacks on machines. This feature is particularly valuable for enhancing defensive and offensive security by collecting and cataloging the passwords utilized by attackers.</p><p>A CVE that was commonly detected was the “CVE-2020–1189,” identified as the Treck TCP/IP stack Out-of-Bounds Read Vulnerability. This vulnerability stemmed from improper input validation during packet handling, enabling attackers to exploit it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*WrXoNgNXfU1FDxp74s56IA.png" /></figure><p>We can further analyze suspicious alerts identified by Suricata. Among the most common alerts are those associated with TCP traffic, particularly anomalies such as forged or invalid acknowledgment values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*XdSEZBQVJY7xIdMitBFLNw.png" /></figure><h3>Conclusion</h3><p>In summary, this project has provided an engaging and interactive platform for gaining deeper insights into the threat landscape. It has offered valuable hands-on experience by demonstrating how to leverage Azure for deploying a honeypot. It has also helped with providing information on frequently used exploits and suspicious alerts.</p><h3>Acknowledgement</h3><h4>Tyler Wall</h4><p><a href="https://tylerwall.medium.com/creating-an-azure-honeypot-2c2eeb89bc9e">https://tylerwall.medium.com/creating-an-azure-honeypot-2c2eeb89bc9e</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37c2cb93b4c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing Email Analysis]]></title>
            <link>https://medium.com/@cyberballa/phishing-email-analysis-fa683923fb7c?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa683923fb7c</guid>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[phishing-email]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Thu, 08 Feb 2024 02:33:14 GMT</pubDate>
            <atom:updated>2024-02-08T02:33:14.199Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Millions of phishing emails are constantly sent to users and organizations in an attempt to cause damage, such as stealing credentials, installing malware like ransomware, or stealing sensitive information. That’s why it’s crucial for both organizations and users to be able to identify and understand phishing emails. The objective of this project is to explore techniques for analyzing phishing emails.</p><h3>Email Artifacts</h3><p>Email artifacts are essential components of digital evidence that can be pivotal in investigating suspicious emails. These artifacts include:</p><ul><li>Sending Email Address</li><li>Subject Line</li><li>Recipient Email Addresses</li><li>Sending Server IP &amp; Reverse DNS</li><li>Reply-To Address</li><li>Date &amp; Time</li></ul><h3>Manual Analysis</h3><p>To begin, we will start with a manual analysis to collect the essential artifacts to aid in our investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*rRwFjPfvJhZM_1uN28F1Ug.png" /></figure><p>Phishing emails often employ social engineering tactics to manipulate users. These emails typically evoke a sense of urgency, fear, or curiosity. In this instance, the aim is to create a sense of urgency. By exploiting the desire for rewards or recognition, phishing attackers seek to manipulate recipients into clicking on malicious links, providing personal information, or taking other actions that compromise their security. Phrases like “Open Immediately!” add to this sense of urgency, further compelling the recipient to react based on emotions rather than logic.</p><p>Examining the image above closely, we can observe that the email has been spoofed to resemble the legitimate T-Mobile email address. However, there is a noticeable difference in the spelling, as the spoofed address reads “<strong>tmoobille</strong>” instead of “<strong>T-Mobile.</strong>” While it may look obvious, it’s crucial to recognize that unsuspecting recipients may not pay close attention to such details, especially when they are rushed or distracted. They may overlook the subtle differences in the domain name and fall victim to the phishing attempt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*5Is-YAxlaJtytFGwCGt4VQ.png" /></figure><p>The body of the email does a relatively good job of appearing legitimate, particularly with the inclusion of “T-Mobile” at the top, which adds authenticity. However, the contents of the email are somewhat confusing as they lack specificity regarding the reward; instead, it simply mentions “T-MOBILE.”</p><h4>Text Editor Extraction</h4><p>From the email, we can extract valuable information such as the sender (from), recipient (To), subject, and body content. However, downloading the email allows us to gather additional data, such as the sending server’s IP address or a reply-to address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*ZXcRlSrdVM3jy0_DdPsWAA.png" /></figure><p>From the above image, you can see the email spoofing in action. The “In-Reply-To” email listed is the one to which responses will be redirected, despite the different email being displayed. This tactic is commonly used to deceive users into believing they are communicating with a legitimate sender.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*OkviyKVPA9HFDkO00Pxj3Q.png" /></figure><p>With the X-sender-IP, we can conduct a reverse DNS lookup to gather information about the server. To perform this, we utilized whois.domaintools.com. From the screenshot below, we can observe that the reverse DNS lookup indicates the host as a Microsoft sending server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*o-tDpTiqwRw4jEVzUAz5TA.png" /></figure><p>From the DNS information, it appears that the email domain is utilizing a service provided by a company based in Germany. This suggests that the domain registration or hosting may be managed by a provider located in Germany.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*-5esszHA0tgj-zcoC0aLqQ.png" /></figure><p>Let’s turn our focus to the “Confirm Here” link in the email.</p><h4>Tools Used:</h4><ul><li>Virus Total</li><li>urlscan.io</li><li>WannaBrowser</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*UtrDPLHj_2XjTjzDtIxifQ.png" /></figure><p>By running a VirusTotal scan, none of the vendors were able to flag the URL as malicious. The fact that none of the vendors flagged the URL as malicious does not necessarily guarantee its safety. It’s important to remember that the absence of a detection does not equate to the absence of a threat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*WKQFu7fqNSp7SuHclGN-DA.png" /></figure><p>With the help of urlscan, we can see that the link redirects the user to “hxxps://packetlander.com/0/0/0/c0a7683dbaaca26393a0b61be8f652b4”.</p><p>To expand on this, we can use Wannabrowser to get the header and body details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Yiv6BuuEz8Kmfuz9PFwlA.png" /></figure><p>Based on the content of the body, it seems that the script is designed to enforce a redirect and prevent any manipulation of the opener window by a new window or tab.</p><h4>Collected Artifacts</h4><pre><strong>Sending Email Address:</strong> noreply@tmoobille.com <br><strong>Subject Line:</strong> You Are Our February Winner ! Open Immediately!<br><strong>Sending Server IP &amp; Reverse DNS:</strong> 89.144.20.218<br><strong>Reply-To Address:</strong> @oxudjle.qmtldrlzksmwlllpmbjnf.us.com<br><strong>Date &amp; Time: </strong>02-01-2024</pre><h3>PhishTool Analysis</h3><p>To automate the process, Phishtool is a valuable phishing analysis tool that conducts WHOIS checks, VirusTotal scans, retrieves file names and hashes, and collects URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*6KMApjU0o5mtafE-zpHwKg.png" /></figure><p>PhishTool simplifies and expedites the process by providing all the essential artifacts in a matter of seconds. From the originating IP, you can navigate to the far right of the page to find three dots. Clicking on them will bring up a dropdown menu that includes “Investigate.” From there, you can select “IPWHOIS lookup” to conduct a search and gather more information about the IP address. As demonstrated in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*bGvOWcaaM8zHrnOoW9Jeow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*kIdLsxvDxjXkIIqv754Viw.png" /></figure><p>PhishTool also provides an image of the email body and allows for further analysis by examining the HTML or source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*HGa4rntKUJQOdflP-Mc1-w.png" /></figure><p>And for client-based information, it generates a list of all X-headers found and includes a search function for convenient navigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*FIOPKb1_nnDOooFyazkjTQ.png" /></figure><p>To view the URLs found in the email, you can open “Message URLs”. A useful feature is that under the VirusTotal section, you can configure it to be linked with your VirusTotal account to run scans.</p><h3>Conclusion</h3><p>Phishing emails remain a prevalent threat in today’s digital landscape, posing risks to both individuals and organizations alike. Through this exploration, we’ve gained valuable insights into the anatomy of phishing emails, their common characteristics, and the tactics used by attackers to deceive unsuspecting recipients. By analyzing emails and collecting email artifacts, we gain a deeper understanding of the intent and legitimacy behind these emails.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa683923fb7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Memory Analysis with MemProcFS]]></title>
            <link>https://medium.com/@cyberballa/memory-analysis-with-memprocfs-4bd95cafa0cd?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bd95cafa0cd</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 06:12:22 GMT</pubDate>
            <atom:updated>2024-02-07T06:12:22.818Z</atom:updated>
            <content:encoded><![CDATA[<p>In this lab, we deploy a Windows virtual machine and employ MemProcFS for analyzing the memory image of the compromised Windows system.</p><p><strong>Lab Environment:</strong></p><ul><li>Sliver- to generate c2 payload and Command &amp; Control Session</li><li>Windows VM- compromised machine to investigate memory image</li><li>MemProcFS- tool enables direct access to VMware for conducting memory analysis.</li></ul><h3>Compromised Windows VM</h3><p>After successfully implanting our C2, we can start our memory analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*t1tlG_XYmhjxRQimNs7GIQ.png" /></figure><h3>Analyze Memory</h3><p>To initiate the process, we open an administrative PowerShell session and navigate to the MemProcFS file location.</p><pre>cd C:\path\to\MemProcFS_directory</pre><p>As we’re utilizing Sliver, we have the option to download a YARA rule used to identify C2 implants, facilitating further analysis later.</p><pre>IWR -Uri https://raw.githubusercontent.com/Neo23x0/<br>signature-base/master/yara/gen_gcti_sliver.yar -Outfile gen_gcti_sliver.yar</pre><p>Now we can execute MemProcFS, incorporating the YARA rule file.</p><pre>.\MemProcFS.exe -device vmware -forensic 1 <br>-forensic-yara-rules &quot;.\gen_gcti_sliver.yar&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*QKid_v6p4kfOZL24o2PK-w.png" /></figure><p>It detects two running VMs. Since we have an Ubuntu VM running simultaneously, we will specify the VM-ID of <strong>14648</strong> to mount the Windows VM on our host system.</p><p>A new drive labeled M:\ will become visible on our host machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*fzo841loFwdiozV60ewOiA.png" /></figure><p>To start, we’ll navigate to sys\proc and access proc.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*0GL9cUU1npJwUoRavGn3Kg.png" /></figure><p>In the text file, you’ll find the malicious process running under the name EXPLICIT_DARE.</p><p>To search for Established and Closed connections, we can navigate to sys\net to observe the connections active on the system. This will reveal any unusual traffic generated by the C2 server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*S-uKZPsWd8ZG3HUmrb43MA.png" /></figure><p>We can examine the timeline of the C2 implant by accessing forensic\timeline\timeline_all.txt. This timeline provides a record of events related to the C2 implant, including its activity and interactions with the system. Analyzing this timeline is crucial for identifying IOCs and understanding the scope and impact of the C2 implant on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*-1CLKfyXksYxxKrP4kwtOw.png" /></figure><p>To directly examine the Sliver EXE, we can navigate to name\EXPLICIT_DARE\modules\EXPLICIT_DARE. This directory contains crucial information pertaining to the process objects associated with the Sliver implant. Analyzing this information provides insights into the behavior and characteristics of the Sliver executable (such as the pefile.dll), aiding in further understanding its functionality and potential impact on the system.</p><h3>Credit</h3><h4><strong>Eric Capuano</strong></h4><ul><li><a href="https://blog.ecapuano.com/p/vmware-memory-analysis-with-memprocfs?utm_source=profile&amp;utm_medium=reader2">https://blog.ecapuano.com/p/vmware-memory-analysis-with-memprocfs?utm_source=profile&amp;utm_medium=reader2</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd95cafa0cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Azure Cloud Detection Lab]]></title>
            <link>https://medium.com/@cyberballa/microsoft-azure-cloud-detection-lab-dffcbac3cfa2?source=rss-407cebc2c992------2</link>
            <guid isPermaLink="false">https://medium.com/p/dffcbac3cfa2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Cyber Balla ]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 22:28:18 GMT</pubDate>
            <atom:updated>2024-02-06T22:28:18.421Z</atom:updated>
            <content:encoded><![CDATA[<p>In this project, we explore the Azure Cloud Detection Lab by CyberWox. It covers:</p><ul><li>Setting up and rolling out Azure Resources (including Log Analytics, Virtual Machine, and Azure Sentinel)</li><li>Configuring Windows Security Policies</li><li>Using KQL to query logs</li><li>Create personalized analytical rules for identifying Microsoft Security Events.</li></ul><h3>Setup</h3><p>The setup process can be found at: <a href="https://cyberwoxacademy.com/azure-cloud-detection-lab-project/">https://cyberwoxacademy.com/azure-cloud-detection-lab-project/</a></p><h3>Kusto Query Language</h3><p>After creating and configuring all the resources, we can RDP into our Windows 10 VM and open the Event Viewer .The security event of interest is 4624, which is generated upon successful login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZcnYZXzsGCC9SJNrilXIQ.png" /></figure><p>Since we’ve connected the Windows Event Logs to Sentinel, we can now search for log events on the VM machine directly from Sentinel.</p><pre>SecurityEvent<br>| where EventID == 4624</pre><p>This command queries the Sentinel SIEM for Event Logs matching EventID 4624</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*aRqGwXx0Qwsi7U7pSdHMSg.png" /></figure><p>Since the previous command only searches for the event log, to obtain more results, we can expand our query by using:</p><pre>SecurityEvent<br>| where EventID == 4624<br>| project TimeGenerated, Computer, AccountName</pre><p>This KQL query is filtering log entries from the “SecurityEvent” table, focusing on events with an EventID of 4624. Then, it selects and presents the “TimeGenerated,” “Computer,” and “AccountName” fields from these filtered events. Which retrieves the timestamp, computer name, and account name associated with successful logins from the Security Event logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*NC3EFatCEumgTdrIwZgDhA.png" /></figure><h3>Creating Scheduled Task</h3><p>To start, navigate to the Start Menu and search for Task Scheduler on your VM to open the application. Then, choose “Create Task” and provide it with a name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*w5EULrIRv3-AaaVvvHEgiw.png" /></figure><p>Now, navigate to the “Trigger” tab and choose a time. Since we want to trigger this event in one minute from now, set the time accordingly and then click “OK.</p><p>Finally, select “Actions,” then “New Action” to initiate a program as a task. In this demonstration, we navigated to This PC &gt; Windows C: &gt; Program Files &gt; Internet Explorer &gt; iexplore. Then, select “Open.” Then “OK”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*EXlmc2I32SQ2_6TQY9nnEw.png" /></figure><p>Once the task has been created, we can view this event and its properties in the Event Viewer. The event ID for this is 4698.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*kWg8JCJoQZHeU47gVzwGhw.png" /></figure><p>We can return to Microsoft Sentinel to query this event ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*bpej0xT7OlIHlZ_OF0jEKA.png" /></figure><p>This command parses the EventData to extract specific fields such as the subject user name, the name of the scheduled task, and the client process ID. The query then projects the computer name, timestamp, client process ID, name of the scheduled task, and the user associated with the event.</p><pre>SecurityEvent                             <br> | where EventID == 4698<br> | parse EventData with * &#39;&lt;Data Name=&quot;SubjectUserName&quot;&gt;&#39; User &#39;&lt;/Data&gt;&#39; *<br>| parse EventData with * &#39;&lt;Data Name=&quot;TaskName&quot;&gt;&#39; NameofSceuduledTask &#39;&lt;/Data&gt;&#39; *<br> | parse EventData with * &#39;&lt;Data Name=&quot;ClientProcessId&quot;&gt;&#39; ClientProcessID &#39;&lt;/Data&gt;&#39; *<br> | project Computer, TimeGenerated, ClientProcessID, NameofSceuduledTask, User</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*bbhhxhrT0YzseGd7EqlZ5Q.png" /></figure><p>We can now navigate to Microsoft Sentinel &gt; Analytics to create a scheduled query. Here, we’ll define the analytic rule name, description, severity, and Tactics, Techniques, and Procedures (TTP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*eo8uHc7ApthGygIdZM7paA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*2ObbW6n4e-v1qtR_VxIfqw.png" /></figure><p>After successfully creating the analytic rule, five minutes later, the Windows VM will trigger an alert to Sentinel. Through the Incidents page, you can investigate further into the incident</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*0LZ0f2oPXKub45UMmhJYZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*PFNFtfHUJ3-2dna_0nuA-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNb9ht1s0oCMv9zBOfoTRQ.png" /></figure><h3>MITRE ATT&amp;CK</h3><p>The scheduled task falls under the sub-technique T1053.005, which is categorized under the “Scheduled Task/Job” tactic in the MITRE ATT&amp;CK framework. This technique involves adversaries leveraging the Windows Task Scheduler to maintain persistence by scheduling tasks or jobs to execute malicious actions on a system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*ZQWY_39jfI235ieW-cGUHw.png" /></figure><h3>Mitigation</h3><p><a href="https://attack.mitre.org/mitigations/M1028"><strong><em>M1028</em></strong></a>- <strong>Operating System Configuration</strong>: To mitigate the attack, configure scheduled tasks to run using an authenticated account. Change the local policies and disable the domain controller to prevent unauthorized task scheduling.</p><p><a href="https://attack.mitre.org/mitigations/M1018"><strong><em>M1018</em></strong></a><strong>- User Account Management: </strong>Restrict user account privileges and address Privilege Escalation vectors to ensure that only authorized administrators have the ability to create scheduled tasks on remote systems</p><h3>Acknowledgments</h3><p>Inspired by CyberWox’s lab.</p><p><a href="https://cyberwoxacademy.com/azure-cloud-detection-lab-project/">https://cyberwoxacademy.com/azure-cloud-detection-lab-project/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dffcbac3cfa2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>