<?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 Gilbert on Medium]]></title>
        <description><![CDATA[Stories by Gilbert on Medium]]></description>
        <link>https://medium.com/@cybergil_33510?source=rss-589c83f38f71------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ArUZWEsW8pikOlnGZUA_SA@2x.jpeg</url>
            <title>Stories by Gilbert on Medium</title>
            <link>https://medium.com/@cybergil_33510?source=rss-589c83f38f71------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:21:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybergil_33510/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[Detection Of IOC’s Using Microsoft Sentinel — Azure Cloud Detection Lab.]]></title>
            <link>https://medium.com/@cybergil_33510/detection-of-iocs-using-microsoft-sentinel-azure-cloud-detection-81a12cdae3f2?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/81a12cdae3f2</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Wed, 03 Jul 2024 17:06:18 GMT</pubDate>
            <atom:updated>2024-09-27T15:40:26.422Z</atom:updated>
            <content:encoded><![CDATA[<h3>Identifying IOC’s Using Microsoft Sentinel — Azure Cloud Detection Lab.</h3><h3>INTRODUCTION</h3><p>In this lab I will be exploring the use of Azure cloud resources like Microsoft Sentinel, Log Analytics Workspace and Azure VMs for detection and monitoring.</p><p>SIEM which stands for Security Information and Events Management are a very important part of cybersecurity operations. SIEM’s like Microsoft Sentinel is a cloud based SIEM/SOAR solution that allows security analyst to analyze log data from different data sources like workstations, servers, firewall etc.</p><h3>ACTIVITIES</h3><p>· Configure and Deploy Azure Resources such as Log Analytics Workspace, Virtual Machines, and Microsoft Sentinel</p><p>· Implement Network and Virtual Machine Security Best Practices</p><p>· Utilize Data Connectors to bring data into Sentinel for Analysis</p><p>· Understand Windows Security Event logs</p><p>· Configure Windows Security Policies</p><p>· Utilize KQL to query Logs</p><p>· Write Custom Analytic Rules to detect Microsoft Security Events</p><p>· Utilize MITRE ATT&amp;CK to map adversary tactics, techniques, detection and mitigation procedures</p><h3>LAB NETWORK DESIGN AND TOPOLOGY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*NR00Nv3ezzBuXFaq.png" /></figure><h3>SECTION1: SETTING UP THE LAB RESOURCES</h3><p><strong>Creating a Resource Group</strong></p><p>I will create a Resource Group where the resources for this demo will be deployed under.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*2mvMIrIVZ9jv7gTC.png" /></figure><p><strong>Creating an Azure VM</strong></p><p>This VM will be the source of the Windows event logs we will be analysing for anomalous activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*g06685SNFntpxIFP.png" /></figure><p><strong>Network and Virtual Machine Security</strong></p><p>Because this VM is public facing I will be using the network security group firewall rules to control access to this VM. I will be using another Azure built in security feature called Just in Time (JIT) access. In Azure, you can block inbound traffic on specific ports, by enabling just-in-time VM access. Defender for Cloud ensures “deny all inbound traffic” rules exist for your selected ports in the network security group and. These rules restrict access to your Azure VMs’ management ports and defend them from attack. I will configure this VM to allow access over RDP port 3389 for only my local machine IP as seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*6griuIvsRGN2iP3p.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*qxGOdDpf3QNQ5o27.png" /></figure><p><strong>Creating Log Analytics Workspace</strong></p><p>I will use Log Analytics workspace is used to collect and store log data from my Azure VM. Its important to save log data on secure external locations and not on the endpoint to ensure you always have access to reliable log data for investigations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*kXqwOMuISAMoHFtx.png" /></figure><h3>SECTION 2: Getting Data into Microsoft Sentinel</h3><p>To get the log data from the Azure VM to the Microsoft Sentinel instance I will use corresponding data connector for my data source. In this case I will be using the “Windows Security Events via AMA” connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*xVQVsPee2zH_JaYU.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*Pg5TNhUMWSPH0sOM.png" /></figure><h3>SECTION 3: Generating Security Events</h3><p>On the Windows VM I will create a scheduled task <strong>“Scheduled Task/Job” (T1053)”</strong> specifically <strong>“Windows Task Scheduler (T1053.005)”</strong> which is a sub-technique of the Persistence tactic on the <strong>MITRE ATT&amp;CK</strong> framework used by various APTs and bad actors to maintain persistence on an endpoint.</p><p>I will also create services <strong>“Create or Modify System Process” (T1543)”</strong> specifically the sub-technique <strong>“Windows Service” (T1543.003) </strong>of the Persistence tactic on<strong> MITRE ATT&amp;CK </strong>framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*e9RXU3Hgq1XI4jhp.png" /></figure><p>To ensure Windows logs these events I enabled the logging via the “Local Security Policy”</p><p>I will turn on logging for “Audit Object Access” as seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*PBTymfi3mFs0OPiX.png" /></figure><p><strong>Creating Custom Analytics rule</strong></p><p>I will create custom analytics rule to alert me to scheduled task creation on my VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*zKSlGsHancaRRxuo.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*uVzCE3SXbEQQzDzK.png" /></figure><h3>SECTION 4: Analyzing Logs on Microsoft Sentinel</h3><p>Microsoft Sentinel like all other SIEM use a specific query language to analyze and parse logs in this case Microsoft sentinel uses Kusto Query Language (KQL). I will use this to parse the data to produce specific actionable data for triage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*UjHkc8eialpWxdl7.png" /></figure><p>A search for Event ID 4698 will return a ton of data that is hard to sift through as seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*v0Th5YGu9rB6VuHv.png" /></figure><p>We can refine this the query further to gain more actionable data as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*NZUnOUzeu61FZajt.png" /></figure><p>Expanding the alerts to view refined details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*kFpV2eniDSd4AyRZ.png" /></figure><p><strong>Triaging Alerts Created By The Custom Log Analytics Rule I Created Earlier.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*Imx2fDKTvKWoui46.png" /></figure><p>You can assign alerts to specific analyst or take ownership and triage as seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*aaTu3nkZkYlg0z2P.png" /></figure><h3>Conclusion</h3><p>SIEM solutions like Microsoft Sentinel are a major part of cybersecurity operations and play a major part in identification and triage of incidents. Custom detection rules and proper use of the specific query language will help to filter the data further.</p><p><strong>Mitigations for Service Creation (T1543.003 — Windows Service)</strong><br><strong>Application Control:</strong></p><p>Use application control solutions to block unauthorized software from executing. Ensure only authorized administrators can create or modify services.<br><strong>Privileged Account Management:</strong></p><p>Restrict the use of privileged accounts and avoid using privileged accounts for day-to-day operations. Ensure that only authorized users have permission to install and manage services.</p><p><strong>File and Directory Permissions:</strong></p><p>Apply strict permissions to system directories and files to prevent unauthorized modifications. Ensure that only authorized users have the necessary permissions to create or modify services.</p><p><strong>User Account Management:</strong></p><p>Enforce the principle of least privilege and ensure that users only have the access necessary to perform their job functions.</p><p><strong>Monitor for Unusual Activity:</strong></p><p>Use endpoint detection and response (EDR) tools to monitor for unusual activity related to service creation and modification. Set up alerts for suspicious service-related activities.</p><p><strong>Security Policy Enforcement:</strong></p><p>Implement and enforce security policies that prevent unauthorized service creation or modification. Regularly audit service configurations and permissions.</p><p><strong>Mitigations for Scheduled Tasks (T1053 — Scheduled Task/Job)</strong></p><p><strong>Application Control:</strong></p><p>Use application control solutions to block unauthorized software from executing. Prevent unauthorized users from creating or modifying scheduled tasks.</p><p><strong>Privileged Account Management:</strong></p><p>Restrict the use of privileged accounts and avoid using privileged accounts for day-to-day operations. Ensure that only authorized users can create or manage scheduled tasks.</p><p><strong>File and Directory Permissions:</strong></p><p>Apply strict permissions to directories and files related to task scheduling to prevent unauthorized modifications. Ensure only authorized users have the necessary permissions to create or modify scheduled tasks.</p><p><strong>User Account Management:</strong></p><p>Enforce the principle of least privilege and ensure that users only have the access necessary to perform their job functions. Regularly review and update user permissions.</p><p><strong>Monitor and Audit:</strong></p><p>Use endpoint detection and response (EDR) tools to monitor for unusual activity related to task scheduling. Set up alerts for suspicious task-related activities.<br>Regularly audit scheduled tasks to identify and remove any unauthorized or unnecessary tasks.</p><p>Further, reading on MITRE ATT&amp;CK can be found on the <a href="https://attack.mitre.org/">MITRE ATT&amp;CK</a> website.</p><p>Thanks for reading this far</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81a12cdae3f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vulnerability Management - Nessus Essentials Home Lab.]]></title>
            <link>https://medium.com/@cybergil_33510/vulnerability-management-nessus-essentials-df6810cd47b5?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/df6810cd47b5</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 04:25:52 GMT</pubDate>
            <atom:updated>2024-06-29T03:50:20.753Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>I wanted to run a vulnerability management program on my home network Cyb3rgil.home in order to identify and fix vulnerabilities. I needed this project to be completed at minimal financial cost so I chose Tenable Nessus essential as my vulnerability scanner. Tenable Nessus allows you to scan up to 19 individual IP addresses without a paid subscription suitable for a small business or home use .This was an exciting project from start to finish. I was able to improve my knowledge in vulnerability management and show an understanding of the theoretical concepts of vulnerability management.</p><h3><strong>Scope</strong></h3><p>The vulnerability scanning will be limited to the following IP ranges <strong><em>192.168.2.0/24 </em></strong>part of the Cyb3rgil.home network. The target host for immediate remediation action is <strong><em>192.168.2.10</em></strong> machine and all vulnerabilities above informational must be remediated within 24hrs. Vulnerabilities found on other hosts on the<strong><em>192.168.2.0/24 </em></strong>network should only be reported.</p><h3>Purpose</h3><p>The purpose of the vulnerability management program is to discover, prioritize, assess, report, remediate and verify vulnerabilities in the Cybergil.home network. Following the vulnerability management lifecycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*6WF0FtZPrmB_YEWMxjwyDw.png" /><figcaption>Vulnerability Management Lifecyle</figcaption></figure><p>Source: <a href="https://truedigitalsecurity.com/blog/move-needle-vulnerability-management">Move the Needle with Your Vulnerability Management Program | True Digital Security</a></p><h3>Tools</h3><p><a href="https://www.tenable.com/products/nessus/nessus-essentials">Tenable Nessus Essentials</a></p><p>To register for an account visit <a href="https://www.tenable.com/products/nessus/nessus-essentials">here</a> . This would require a work or school email account. After the registration, you will receive an email with you activation code and link to download the Nessus Agent for your corresponding operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*U_mZvqyxiBYz7ok_7iywHg.png" /><figcaption><em>Activation Email</em></figcaption></figure><p>Follow the prompts from the email to complete installation. Then visit the Nessus web portal at <a href="https://localhost:8834/">https://localhost:8834/</a></p><p>Tenable has a great GUI that is easy to navigate, it also has a number of built-in scan that you can run out of the box. I first ran a basic host discovery scan to discover all hosts on my network.</p><h3>Discover</h3><p>Click on ‘<em>create a new scan’ or ‘My scans &gt; New Scan’ then select from the scan templates.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bm1aL-MezKG1ZfEwVlP4AQ.png" /><figcaption><em>Host Discovery Scan</em></figcaption></figure><p>Following the host discovery scan I found a total of 6 hosts and open ports for specific devices on the local network. As expressed in the scope of the project the most target host is <em>192.168.2.10.</em></p><h3>Prioritize</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*usM6X4l4FijfIbh45RP_2g.png" /><figcaption><em>Host Discovery Scan Report</em></figcaption></figure><p>The host discovery scan only discovered a total of 2 vulnerabilities which were just informational.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6S6xLYSPwDo4oRV4F-fECg.png" /><figcaption><em>Vulnerability Report For Host Discovery Scan</em></figcaption></figure><p>Next, I set up an un authenticated network vulnerability scan to discover further vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqi4nmvrZepCQ5kSmjs-7w.png" /><figcaption>Network Vulnerability scan</figcaption></figure><h3>Access</h3><p>This is where it gets interesting, I found 2 vulnerabilities that met the threshold for immediate triage.</p><ol><li><strong>SMB Signing not required</strong></li></ol><ul><li><strong>Description — </strong>Signing is not required on the remote SMB server. An unauthenticated, remote attacker can exploit this to conduct man-in-the-middle attacks against the SMB server.</li><li><strong>Vulnerability Rating — Risk Factor:</strong> Medium CVSS v3.0 Base Score 5.3</li></ul><p><strong>Details about Vulnerability</strong></p><ul><li><a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc786681(v=ws.10)?redirectedfrom=MSDN">Microsoft network server: Digitally sign communications (always): Security Configuration Editor | Microsoft Learn</a></li><li><a href="https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html">https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html</a></li><li><a href="http://www.nessus.org/u?a3cac4ea">http://www.nessus.org/u?a3cac4ea</a></li></ul><h3>Report</h3><p>One vulnerability found on 192.168.2.10 wit a Severity rating of Medium and CVSS score of 5.3. The other potential vulnerability has been confirmed as a false positive. I will commence remediation activities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJQOhOJRINGdYHKZuVYsYA.png" /></figure><ul><li><strong>Priority:</strong> Remediate within 24hrs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S64SpACPnR5BiEPcoe8ySA.png" /><figcaption>SMB Signing not required vulnerability</figcaption></figure><h3>Remediation</h3><p>Details on remediation for this vulnerability is available online <a href="https://learn.microsoft.com/en-us/previous-versions/orphan-topics/ws.11/cc731957(v=ws.11)?redirectedfrom=MSDN">here</a>. You would need to do the following.</p><p>Open Register editor under HKEY_LOCAL_MACHINE folder</p><p><strong>Registry key</strong><br>HKLM\System\CurrentControlSet\Services\LanManServer\Parameters\RequireSecuritySignature<br><strong>Associated security setting</strong><br>Microsoft network server: Digitally sign communications (always). To do this right click on the <em>RequireSecuritySignature </em>file<em> </em>and set value to <strong>1.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*hGDgkEDWMO8SwasLHgUbmQ.png" /><figcaption>Registry Key update</figcaption></figure><p>2. SSL Certificate Cannot Be Trusted</p><ul><li>Description: The server’s X.509 certificate cannot be trusted.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEVLRaNbGkvZKVaGNlL0Lg.png" /><figcaption>False-positive</figcaption></figure><p>This turned out to be a false-positive as the service running on port 8834 is the Tenable web portal. The output also shows tenable as the issuer. This vulnerability however can be fixed by purchasing or generating a valid SSL certificate on the Nessus web client.</p><h3>Verification</h3><p>I ran another vulnerability scan on the network to confirm that the SMB signing not required vulnerability had been remediated. As seen in the image below the SMB signing vulnerability has been fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K0RRWRERlDIAKcUIjS2tqQ.png" /><figcaption>SMB signing not required vulnerability remediated</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqCcboFP4SbVeom5yesZAw.png" /><figcaption>SMB Signing not required vulnerability remediated</figcaption></figure><p>There are so many other scan templates and functionalities that can be explored on the Nessus platform. I think Nessus is an amazing tool for vulnerability management.</p><h3>Lessons Learned</h3><ol><li>Establish your scope.</li><li>Choose a framework to help in planning and execution.</li><li>There will be false positives, keep an eye out for this.</li><li>Use the solutions provided by Nessus if available or do some research online to determine the best way to remediate found vulnerabilities.</li><li>Set a threshold for triage and remediation.</li></ol><h3>References</h3><ul><li><a href="https://truedigitalsecurity.com/blog/move-needle-vulnerability-management">Move the Needle with Your Vulnerability Management Program | True Digital Security</a></li><li><a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc786681(v=ws.10)?redirectedfrom=MSDN">Microsoft network server: Digitally sign communications (always): Security Configuration Editor | Microsoft Learn</a></li><li><a href="https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html">https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html</a></li><li><a href="http://www.nessus.org/u?a3cac4ea">http://www.nessus.org/u?a3cac4ea</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6810cd47b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ACTIVE DIRECTORY HOMELAB PART II: USING GROUP POLICY TO MANAGE AND CONFIGURE SETTINGS OF ACTIVE…]]></title>
            <link>https://medium.com/@cybergil_33510/active-directory-homelab-part-ii-using-group-policy-to-manage-and-configure-settings-of-active-f21e9e16cd41?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/f21e9e16cd41</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 20:24:40 GMT</pubDate>
            <atom:updated>2024-03-24T20:24:40.623Z</atom:updated>
            <content:encoded><![CDATA[<h4>ACTIVE DIRECTORY HOMELAB PART II: USING GROUP POLICY TO MANAGE AND CONFIGURE SETTINGS OF ACTIVE DIRECTORY OBJECTS.</h4><p>Group Policy is a feature in Microsoft Windows operating systems that allows administrators to manage and configure the settings of users and computers within an Active Directory environment. There are over 3000 settings that can be configured with Group Policy. Group Policy is primarily used for the following purposes:</p><ol><li><strong>Security Settings:</strong> Administrators can enforce security policies such as password requirements, account lockout policies, firewall settings, and software restriction policies to enhance system security.</li><li><strong>System Configuration:</strong> Group Policy allows administrators to configure various system settings such as desktop backgrounds, screensavers, power management options, and control panel settings across multiple computers.</li><li><strong>Software Installation and Maintenance:</strong> It enables administrators to deploy, install, and manage software applications centrally across a network of computers. This can include deploying updates, patches, and ensuring compliance with software licensing agreements.</li><li><strong>User Environment Management:</strong> Group Policy enables administrators to customize the user environment by configuring user-specific settings such as drive mappings, printer assignments, desktop shortcuts, and Start menu configurations.</li><li><strong>Group Policy Preferences: </strong>This feature allows administrators to configure settings that users can change, such as mapped drives, scheduled tasks, and printer preferences, while still providing standardization and control.</li></ol><p>As an example, I will use GPO to update computer power settings for the the Toronto Organizational Unit of the domain CYBERGIL.local.</p><p>From Server Manager Open “Group Policy Management”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vbEJxLpZT5aH6YgOXEiyLw.png" /></figure><p>This will open the ‘Group policy Management’ console as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*eIRSG2SgB9-XMNRMzvST4Q.png" /></figure><p>Select ‘Create a GPO in this domain and link it here. Name your GPO and click ok. Then right click on the GPO and select ‘Edit’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*p22SVi4crGMW9Si8hW09OQ.png" /></figure><p>Select Computer configuration &gt; Preferences &gt;Control panel settings &gt; Power options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*YFNPLvopxIYMOxdCi6ZQwQ.png" /></figure><p>Right click and select New &gt; Power Plan (At least Windows 7)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*4tFozMbJ53IQUxgW619-mQ.png" /></figure><p>Under Action Select create and name you power plan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*lCA0z2khy_46ZdMQ7_A_Dw.png" /></figure><p>Once this is done you can go to your client machine and use the run dialog to run ‘gpudate’ to update the group policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*5PTNMv6MAwJvKzD-ro43kw.png" /></figure><p>This will open a command line window as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*h4gSFpCVYkymlCIPbx_LVA.png" /></figure><p>The power settings are configured according to the GPO settings. As seen in the image below the power setting ‘Green!” has been set for client machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4hUkHGRVLJK1xnPpx6thA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f21e9e16cd41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SETTING UP AN ACTIVE DIRECTORY HOMELAB PART 1.]]></title>
            <link>https://medium.com/@cybergil_33510/setting-up-an-active-directory-homelab-part-1-fb319e5cab8c?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb319e5cab8c</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 22:10:52 GMT</pubDate>
            <atom:updated>2024-03-21T22:10:52.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*LjK3nQo1cSRJgkiIVK1_6A.jpeg" /></figure><p><strong>What is Active Directory ?</strong></p><p>Active Directory or Active Directory Domain Services (AD DS) is a core component of Microsoft’s Windows Server operating system. It’s a directory service that manages resources in a network environment. AD DS stores information about objects (User accounts, Computer accounts, Groups, Organizational Units, Domains, Service accounts etc.) on the network and makes this information available to users and network administrators.</p><p><strong>Role of Domain Controllers</strong></p><p>A Domain Controller (DC) is a vital component within a Windows domain infrastructure, responsible for overseeing security authentication requests, user access, and directory services. Any Windows Server operating system is equipped with the capability to host Active Directory Domain Services (AD DS) and fulfill the role of a Domain Controller. These servers act as the centralized authority within a domain, verifying user credentials during logins, enforcing access controls, and maintaining the domain’s directory database. By distributing Group Policy settings and facilitating multi-master replication for data consistency across the network, Domain Controllers play a pivotal role in ensuring the security, stability, and functionality of Windows-based network environments.</p><p><strong>REQUIREMENTS</strong></p><ul><li>Host Machine 8GB Memory 500GB Storage</li><li>Virtualization Software (VirtualBox, VMWare, Hyper-V)</li><li>Windows Server 2022 ISO</li><li>Windows 10 ISO</li></ul><p><strong>KEY ACTIVITIES ON THIS HOMELAB</strong></p><ul><li>Download and Install Windows Server 2022.</li><li>Rename the Server.</li><li>Configure static IP</li><li>Install Active Directory.</li><li>Create Objects in Active Directory.</li><li>Create Active Directory Groups.</li><li>Create Network shared folders</li><li>Create Active Directory Organizational Units.</li><li>Create Client Machines to join the Domain (Windows 10)</li></ul><ol><li><strong>Download and Install Windows Server 2022.</strong></li></ol><p>To download the Windows Server 2022 navigate to <a href="https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022">Windows Server 2022 | Microsoft Evaluation Center</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmWPc2rvVL8LujXBZH_6ug.png" /></figure><p>Go to your virtualization software and create a virtual machine using the Windows Server 2022 ISO file. I will be using VMWare for my Virtual machines.</p><p>Select “New Virtual Machine” as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rx1plfgbS2W4dNjKoPhXTw.png" /></figure><p>Select “Typical”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*opSjGoKiomPWYxCclfR4aw.png" /></figure><p>Select “Browse” and go to the location you saved the Windows Server ISO image from earlier. Then Click “Next”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*n3nnqthOqPWa5WqIsKDkTw.png" /></figure><p>We do not have a product key so no need to enter one, you may choose to change the version of Windows Server to be installed. Optionally you may enter a password, otherwise just click “next”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*3OkftbUrZPv20bcaEsch_g.png" /></figure><p>Give your VM a name of your choice, and choose the location you would like to save the VM files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*3Kc6p60IylO3GNEXtUhoiA.png" /></figure><p>Configure your desired disk size, I will be using the reccomended 60GB and will split my virtual disk into multiple files to improve perfomance then click “next”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*u5UzdSrf-otIh-Qti8KOJw.png" /></figure><p>Ensure you uncheck the “Power on this virtual machine after creation” so you do not get any errors during installation. Click Finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*Dp5Q33VdRGZv1ppr6JI4XA.png" /></figure><p>Select “Edit virtual machine settings”. We need to remove the floppy disk to prevent errors during installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*i0KNFyV7OIqFBSoZvmIvLQ.png" /></figure><p>Select ‘Floppy Disk” and Click “remove” then “Ok”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*91yFftByF7ugiCR_1VLNig.png" /></figure><p>Power on the Virtual Machine and you should have asimilar display on your screen. Select the language of choice, time and currency format abd keyboard or input method or just Click “Next” to use the default settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0EgjTaBOElySX8g2antsA.png" /></figure><p>Click “Install”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBsyn8JihVi4sxq3QgyIdg.png" /></figure><p>Select the Operating System you want to install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QptxpAwzhSsHQJxVTA4LuQ.png" /></figure><p>Agree to terms and conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKN2fCKE_QG4ohnpBJYHsw.png" /></figure><p>Select “custom”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UXnwihPT9JdaOCGEtVr8tA.png" /></figure><p>Select “New”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aw7FPvZIM-j97BX_OKwhUw.png" /></figure><p>Select “Apply”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*erA8AWrKyVhXwlW3xf8Fnw.png" /></figure><p>Select “Ok” and then “Next”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6kQUq0jYdOPqO_4_LmJPA.png" /></figure><p>Allow the installation to continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITXReacOCoS_hlhuZXWRoQ.png" /></figure><p>Input you desired password and click “Finish” to complete installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqX_lqNSQo9BkSThI8SIzA.png" /></figure><p>After installation you should have a similar screen to the image below. Right click on your VM tab and select “Install VMware Tools” This will improve the functionality of your VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30O6kjd3K8Fvacyu_AB-iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uk0CNatFne_9yTU9gT5nqA.png" /></figure><p>Navigate to File Explorer &gt; This PC &gt; Run the DVD drive that appears and follow the prompts to complete installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*hoZLaSoLdv9Bxx2RUkE8sA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dz1ZjM8y4ufXhPoJ09-aZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*twip143eIaf-DPqrvumEFg.png" /></figure><p>I prefer to use “complete” you may also select “typical”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fX0vJpJBPnt8PYoMn_daQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCQbl4ned41cstpv_yjn5Q.png" /></figure><p>Your VM will be automatically restarted after installation of VMware tools.</p><p><strong>2. Renaming the VM</strong></p><p>This can be done in variopus ways but I will do this through Server Manager. Select “Local Server” Select “ Computer name. Enter the desired name for your</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmerCVAHtoWx7PKzkorlbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*nWywjgmWAQw_4gi5IEVdIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*-pxyjuoxK0FFf_f49jXYuA.png" /></figure><p>Your VM will be restarted again after renaming your VM.</p><p><strong>3. Configure Static IP Address</strong></p><p>This is optional depending on the desired function for you home lab. You may use any private IP range. For this lab i will be using the default IP from my virtual machine as my static IP’s</p><p>Type “Run” into the search box and open the Run Dialog tab, then type <em>ncpa.cpl</em> and click ok to open network and sharing center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*qT19p_-4pKjIoZhGhoVNlA.png" /></figure><p>Double click the Ethernet tab and select properties from the next tab that opens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hPmbsP5CjuHd_bmg8LYQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*KXUDyiF0nnLrBiwueNLVNA.png" /></figure><p>Select Internet Protocol Version 4(TCP/IPV4)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*zBIuqDGoQlxfnR2w9w9UcQ.png" /></figure><p>The DNS Server address will be the IP address of the server and I added the optional alternate DNS IP of 8.8.8.8 which is Google DNS server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*rmsZX_aU87W264d5i5Orhw.png" /></figure><p><strong>4. Install Active Directory Domain Services</strong></p><p>Select Manage &gt; Add roles and features</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YlXfIxGM9oTqblI4FKYJKw.png" /></figure><p>Follow the prompts and install the defaults</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*6-gSDJLuW8tFJXVYiI187w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*osokIXyNetfeCrrzMQAMbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*zNE14ye_S8Lc8P2Lse0-Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*UInXDn3AYbjOD47epTVAZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*qP5xq2JvQXf7YOPcMXWOag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*O6psQYXVgUxE1AhqHL4b3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*yeGHgPxqsYuZJb8TzWunaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*IVwsQDpgUcupvsMSnY3lCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*PN5U0fERknq0vKVGfcuNEQ.png" /></figure><p><strong>5. Create Objects in Active Directory.</strong></p><p>To create objects in Active Directory we will Click “Tools” and Select “Active Directory Users and Computers” as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIaLXTORuLluPgoVxYbHDQ.png" /></figure><p>Right click on Users &gt; New &gt; User.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*CZJM7CRSNIgin7VF8EwUxA.png" /></figure><p>Set up you user according to you specifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*i_PPDmfRx7bNKQLB3QUWCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*y0CEt2L4cao3hAMwIcKUKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*JADuz4tOMV9IvxHJgymeaw.png" /></figure><p>Next we create groups by right clicking the users folder &gt; New &gt; Group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*9lAE39Kcqp95brUb5HEEfg.png" /></figure><p>We will now add users to the groups created as shown in the images below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*NabLWznyufIU9YPRsKje5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*NfIo7cC2PkbZwPwINv6EYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*MzzG0uxiD5ZZEUamuoKj9A.png" /></figure><p>ON the Desktop of the Server I will create Folders and name them after the Groups I created, Accounting, Sales and Marketing and share the folders. To share each folder I will right click and select properties as shown in the images below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*7rTZO4TEOX2NgugESZHE9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*8eSv4qrpLw-ZLQ5_CVRgRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*abnrEDxA89SiSm7gydfFIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*_mFMv6qqwRww64NWGrW0-A.png" /></figure><p>To view the shared folders we ope the “run” dialog and type <em>\\Servename </em>as shown in the image below. For example, \\CBERGIL-DC01.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*3LfepPTHBTBzrdWCjfe-xA.png" /></figure><p>The folders will now be shown on the network share showing its available on the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsU8j4zz1te_ntK7-uqmEg.png" /></figure><p>To grant permissions to each folder to the respective groups we go to the properties of each folder and assign group permissions as required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*JA_50MdZ6pNjCM6Shd-nfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*Y12L-WfMR1IM2LkGBsWnKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*d4HAQ1KfKfnWnk_6cKbyzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*dStjpggF3YfAHUMN3kn88g.png" /></figure><p>This is an example of Role Based Access Control (RBAC).</p><p><strong>6. Create Active Directory Organizational Units.</strong></p><p>Organizational Units can be used to group Active Directory Objects based on location department or any parameters depending on the organizations policies. I will be using this based on location I will create Organizational units for Toronto, Montreal and Calgary. I will also create Child OU’s and name them ‘Users’ and Computers for each Parent OU to group the AD objects like users and computers according to location.</p><ul><li><strong>Parent Organizational Unit based on location</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Ibgf9jGWu_zs_XVmdNHLKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*n-e1LqVbLnI_ucDBYok5xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*f-r9p-CaRwkTqJxuA1fEEQ.png" /></figure><ul><li><strong>Creating Child Organizational Units</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*690Z3ABRRub3z-bNuhR-cA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*2kqnV6vIzFvaxTMyNPJCBw.png" /></figure><p>I will repeat the process in the image above and create a child OU named computers.</p><p>7. <strong>Create Client Machines to join the Domain (Windows 10)</strong></p><p>To create client machines we will navigate to <a href="https://www.microsoft.com/en-us/software-download/windows10">Download Windows 10 (microsoft.com)</a> to download the window 10 media creation tool which you will use to create the Windows 10 ISO for the client machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQk8i6nDmWfruO7PyWWDSg.png" /></figure><p>Double click on the Windows 10 media creastion tool and run it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*hzDVhTTf-eM-AXayl1PJDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*KRgtIH0Llta-ruAaKg6f1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*Owfz1oNXZWk7L6hX6Xmjkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*hPnAqwaEhEa-5JUvYDNL5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*zk0HQzeXe-0Z5Z9cKp3rCg.png" /></figure><p>Use the created ISO file to set up a Windows 10 client machine.</p><p><strong>Joining the Domain from Client machine (Windows 10)</strong></p><p>To join the Client machine to your domain first you have to open network settings and add the IP of your server as the preferred DNS server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OuHbsviophm4zc4UT4EnnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*_11frCm8ID2Y-FqD7387wQ.png" /></figure><p>Then search work or school in the search bar on the desktop and select connect as shown in the images below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-xW6sbPmwQ3eK-utC6rXQ.png" /></figure><p>Select “Join this device to a local Active Directory Domain”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70h4tu6xy5wyKdeJS5awxw.png" /></figure><p>Input your domaim name e.g. CYBERGIL.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMW424KokeVTtF7ldgEVeQ.png" /></figure><p>You should get a prompt to authenticate with your credentials, you can also sign in with any of the users we created earlier but in this case I will use the Administrator credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbclpMJ8h6NA4Fwo3lZMpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-0OfZB63GkxzThFt-w6_A.png" /></figure><p>Your device will be restarted and you should have a screen like the image below when you go to network settings to confim youre now part of the Domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNbzG9-OX0xdCPcE24ytOA.png" /></figure><p>In part 2 of this series we will use Group policy to to manage and control the working environment of users and computers in the Active Directory environment. Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb319e5cab8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up A Malware Analysis Lab On Virtual Box: Part 3.]]></title>
            <link>https://medium.com/@cybergil_33510/setting-up-a-malware-analysis-lab-on-virtual-box-part-3-3555e51c1a72?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/3555e51c1a72</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 21:59:33 GMT</pubDate>
            <atom:updated>2024-06-17T03:01:32.747Z</atom:updated>
            <content:encoded><![CDATA[<p>The final part of building the malware analysis lab is the installation of FlareVM. To do this I open up a browser on my VM and and navigate to the <a href="https://github.com/mandiant/flare-vm">link</a>. You can also search for FlareVM on your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePK6Zpb6i322ZxwqSfcvoQ.png" /></figure><ul><li>This may take up to 3 hours to complete one completed you will have a similar response to the image below and you would have to restart the VM.</li><li>Create a folder on your desktop and name it “FlareVM” or any name of your choosing.</li><li>Right-click on the ‘installer.ps1’ PowerShell script and use the save as link to save to the folder you created on your desktop.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*rR_bnuZ6agh4XBhwGewK-g.png" /></figure><ul><li>Go to the FlaveVM folder where the Powershell script ‘installer.ps1’ is stored. Click on File → Open Windows PowerShell → Open Windows PowerShell as Administrator. This will open the folder in a PowerShell window.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Ry_hnB5Ngl7NPWen-kqNQ.png" /></figure><ul><li>Follow the Read-me tab on GitHub to complete the installation.</li><li>After installation a log.txt file will pop up, review this for any errors.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6T40jgcOw_3Loo8JGS2QIw.png" /></figure><ul><li>Then press ENTER on the terminal window to complete. Then restart the VM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*QXtdpfkxfGkCHv-hkUd3Ag.png" /></figure><p>You should have a similar Desktop on your VM like the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8RkWGYUzwgRo5ZD7A3PeGA.png" /></figure><ul><li>This part is very important before running any malware. You must change the Network settings from ‘NAT’ to ‘Not attached’ this will ensure that whatever malware you run does not propagate to your host machine or network.</li><li>There you have it a VM capable of running malware without propagating to host machine or network.</li></ul><p>Note: Don’t forget to change the network setting before any Malware analysis so as not to damage your host machine. Goodluck !</p><p>Thanks for reading this far!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3555e51c1a72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up A Malware Analysis Lab On Virtual Box: Part 2.]]></title>
            <link>https://medium.com/@cybergil_33510/setting-up-a-malware-analysis-lab-on-virtual-box-part-2-534530f9de12?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/534530f9de12</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 05:39:51 GMT</pubDate>
            <atom:updated>2024-02-19T05:39:51.957Z</atom:updated>
            <content:encoded><![CDATA[<p>Previously in part 1 of this series we installed Oracle VirtualBox and created a Windows 10 ISO file. In this part we will configure the VM which we will use for Malware analysis.</p><p>STEP 1: Configure the Windows 10 VM from the ISO image.</p><ul><li>On the VirtualBox Click ‘Start’</li><li>Click ‘Next’ to proceed with installation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLekSAlbmagskfPA6HnCkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*giW7Zo3ieg7ICMZ4Gs-MtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IuJxnRyMMlZv883snZANQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1oX00UEBAKaOnFCtmTFHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHLDLZx63KxlReGHxxEQqA.png" /></figure><ul><li>Select the ‘Custom Installation’ Option when prompted</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_p3V8y1bZBEXKxNkl5jiw.png" /></figure><ul><li>Select the location you prefer, I will leave mine on the default settings</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*4qbXLdeJX5HeXzsO21dlLg.png" /></figure><ul><li>Select ‘Limited Experience’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*AjdvgdW4NuzcDs2-s6yvDw.png" /></figure><ul><li>Select ‘Offline account’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*4JYVQ7yjIPv6k0lFuAhLLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*SAONEiOtWFJmByZyPB4h_g.png" /></figure><ul><li>Set up security answers you will remember.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*OEH_ModpyU_GvS0ZCnlWhA.png" /></figure><ul><li>Once the Windows 10 VM is installed, Click ‘Devices’ and select “Insert Guest Additional Changes” to improve the running of the VM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7T74Uhp1vqWJYlE9qlxdxQ.png" /></figure><ul><li>Open File explorer → This PC → Double click the “VirtualBox Guest Additions” as shown in the image below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*poIyro1qPgfIOGb6ysG7aQ.png" /></figure><ul><li>Double click on “VBoxWindowsAdditions-amd64” and select “Yes” when prompted. You will need to reboot the VM after installation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuBgD2zSPLta5KpV1GX5BQ.png" /></figure><ul><li>Next we have to disable Windows updates to do this, we open the ‘Run dialog” on the VM by Pressing Windows Key + R or opening the run dialog by searching on the search tab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*wSX5v7VvBiGcS93XLcDAfA.png" /></figure><ul><li>On the ‘Run Dialog’ type services.msc and click ‘OK’. This will open the services tab scroll down to ‘Windows Update’. Double click the ‘Windows Update’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*62RG8E5CJicikKMDCLZEdg.png" /></figure><p>On the tab that opens change the ‘Startup type’ from Available to Disabled click ‘Apply’ and then ‘OK’ as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*MqYNn-Gb6OQN1GDU9D3FpA.png" /></figure><ul><li>Next we will have to turn off Windows anti-virus protection so it doesnt interfere with the malware we will be working on. To do this search for Windows Security in the search bar.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lddlDYKSW6vdWYHkpdHzqg.png" /></figure><ul><li>Select ‘Virus &amp; Threat Protection’ then ‘Manage Settings’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeWyPVPobXxgHDCKyH-bJw.png" /></figure><ul><li>Turn off Real-time Protection, Cloud delivered Protection, Automatic Sample Protection and Tamper Protection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJy3Uy_TPR9MgUvhTnO2sg.png" /></figure><ul><li>You should have a similar screen after all the Virus Protection Settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Zh9Ne4mqEV36bGUT_QzpQ.png" /></figure><ul><li>To further remove the virus protection and firewall on the Windows VM open the Run Dialog again and type gpedit.msc. This will open the local group policy editor.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*RhBFCYyAvrrG0QxOcThnUQ.png" /></figure><ul><li>Select Administrative templates → Windows Components → Microsoft Defender Antivirus → Real time protection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVh1wR4oH4FPO9016oMfGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aw_5ir3mvP0cgvCAeNsXew.png" /></figure><ul><li>Double click the ‘Turn off real time protection’ Select ‘Enabled’ Apply and ok to save.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hoi5CkWslghbxz1owJK6Kg.png" /></figure><ul><li>Next navigate to Microsoft Defender Antivirus.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzL6J4kFyZK9rIC9WGNokg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwAKpAGfwJj5eIEezCgHWg.png" /></figure><ul><li>Double click on ‘Turn off Microsoft Defender Antivirus and set to ‘Enabled’ and Apply to save the settings.</li></ul><p>Next navigate to File explorer Select View → Options → Change folder and search options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZCbZSVMwOwSiI9cUU0BRg.png" /></figure><ul><li>Select Show hidden files, folders and drives. Uncheck ‘Hide extensions for known file types click Apply and OK to save settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*leeizLb8lZGlDa45C4z-jg.png" /></figure><p>At this point we need to take a snapshot and name the snapshot accordingly this will allow you to revert to a know good backup of your VM when or if you break something. Then restart the VM after taking the snapshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-WEGfUoWrbj7HfSA-4SiQ.png" /></figure><p>In the next part we will install Flare VM. Thanks for reading this far !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=534530f9de12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up A Malware Analysis Lab On Virtual Box: Part 1.]]></title>
            <link>https://medium.com/@cybergil_33510/setting-up-a-malware-analysis-lab-on-virtual-box-part-1-1498e7e3c782?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/1498e7e3c782</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Sun, 18 Feb 2024 20:31:39 GMT</pubDate>
            <atom:updated>2024-02-19T05:41:12.641Z</atom:updated>
            <content:encoded><![CDATA[<p>Malware analysis is major part of blue team activities. It is important to do this safely to avoid propagation of the Malware to the host machine and possibly the network. VirtualBox is a free virtualization platform that lets you create and run virtual machines.</p><p>REQUIREMENTS:</p><ul><li>Host Machine</li><li>Oracle VirtualBox</li><li>FlareVM</li></ul><p>STEP 1: Download VirtualBox on to host machine using this <a href="https://www.virtualbox.org/wiki/Downloads">link</a></p><ul><li>Click ‘Download virtual box 7.0’ as show in the image below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjHCzVMNkQaOinyW0UCAKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xYWUlV_eH853qCYEG2KPnQ.png" /></figure><ul><li>Select the corresponding download link for your specific host machine.</li><li>Ensure to check the hash of the file to confirm the downloaded document matches.</li><li>Once you confirm the hash of the file run the VirtualBox installer and complete with default settings.</li></ul><p>Double click the VirtualBox installer and follow the prompts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*k3Z0Z4m-jxiCtfhMlpdsoQ.png" /></figure><ul><li>Click ‘Yes’ on the next page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*BQ7tMQhMGe9P8Pco4st4Uw.png" /></figure><ul><li>Click ‘Yes’ again.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*8NfAQ9Be8vvBChb2cOHGsw.png" /></figure><ul><li>Click ‘Install’.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*Pn8cpqG2op7PCbw_yMOXZQ.png" /></figure><ul><li>Click ‘Finish’ to complete installation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*GbRuwJmZda0nAwlv3_IiUQ.png" /></figure><ul><li>You should be left with a page like this after installation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZmyDmkLBQPXuLDDqj294w.png" /></figure><p>STEP 2: Download Windows 10 ISO.</p><ul><li>Navigate to this <a href="https://www.microsoft.com/en-us/software-download/windows10">link</a> to download the Windows 10 iso.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNg8pceeYuKA6I4aPM3VnQ.png" /></figure><p>The download tab in the image below will download a media creation too which you will use to create an ISO file.</p><ul><li>Run the media creation tool downloaded and follow the directions below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*EZ9qY9-4kNqwIU44WOwITw.png" /></figure><ul><li>Select “Create Installation Media (USB flash drive, DVD, ISO file) for another PC</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*da0APGxYwDyP40CCa2IgPQ.png" /></figure><ul><li>Use the default setting on the next page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*oUyF_KMa2k9Xqf1rgEnLqw.png" /></figure><ul><li>Select ISO file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*zOSrlhtvXcQLHESYhNCooA.png" /></figure><ul><li>Save the ISO file to you preferred location on Host machine.</li></ul><p>STEP 3: Creating a Windows 10 virtual machine on VirtualBox.</p><ul><li>Click ‘New’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wl0YOg9MeujWBiaiFeIFeA.png" /></figure><ul><li>Create a new folder in the same location as your ISO file and name it ‘Windows Storage’ to help store the VM files</li><li>Name your VM e.g. Malware Lab and select the Windows 10 ISO file you created earlier and select “Next”</li><li>Click on the folder tab and select other and the folder (Windows Storage) you created</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*Fmq9NBbzCP-9dkGRQLLgAg.png" /></figure><ul><li>Recommended configuration is at least 4GB memory and 2 CPU, you may choose to use higher depending on your host configuration. Select ‘Next’.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMWJD3JBBIPQu7rdH4ECYw.png" /></figure><ul><li>Recommended storage is at least 100GB. This is because of the space requirement for FlareVM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rxx7us2NcVA_Kn_w-R_1XA.png" /></figure><p>On the next page just Click ‘Finish’ to complete the set up. You will have a similar page to the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mnNfyV39bCT4n0n6ywgAA.png" /></figure><p>In the next part we will complete the Malware Analysis Lab setup configuring the Windows 10 VM .</p><p>See you soon, thanks for reading this far!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1498e7e3c782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CONFIGURING A VIRTUAL PRIVATE NETWORK (VPN) ON A VIRTUAL PRIVATE SERVER]]></title>
            <link>https://medium.com/@cybergil_33510/configuring-a-virtual-private-network-vpn-on-a-cloud-hosted-server-f0e61bd474af?source=rss-589c83f38f71------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0e61bd474af</guid>
            <dc:creator><![CDATA[Gilbert]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 06:15:49 GMT</pubDate>
            <atom:updated>2024-01-28T06:24:30.731Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CONFIGURING A VIRTUAL PRIVATE NETWORK (VPN) ON A VIRTUAL PRIVATE SERVER</strong></p><p>With the ever-evolving threat landscape, online privacy has become paramount. Its is important to have a means of secure communications. This can be achieved with a virtual private network (VPN).</p><p><strong>REQUIREMENTS</strong></p><p>Linux server (Ubuntu, Debian, CentOS etc.)</p><p>Host Machine (Windows, MacOS etc)</p><p>WireGuard App</p><p><strong>Step 1: CREATE A VIRTUAL PRIVATE SERVER</strong></p><p>There are many popular cloud server providers. For my server I chose <a href="https://www.vultr.com/">Vultr</a>, when creating your server it is recommended to select a Linux based distribution.</p><ul><li>Sign up for an account on <a href="https://www.vultr.com/">Vultr</a></li><li>Once you’re logged in to the Vultr dashboard, click the ‘Deploy +’ button and select ‘Deploy New Sever’</li><li>Choose a plan for your server depending on your need and anticipated throughput.</li><li>Choose a server location according to your requirements.</li><li>For my server image I chose Ubuntu Linux TLS (version 22.04)</li><li>Add additional options like IPV6 or backups. Backups are optional but recommended.</li><li>Name your server and label it.</li><li>Click ‘Deploy Now’.</li><li>Wait a few minutes for the server to be created.</li></ul><p>You have just created your server, next you will have to log in via SSH using the username and password provided by your cloud provider on the server control panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QipVogW6sFMUPP5olJ7ZAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2dXPywa96xWnH4DTAaxdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prUG9S9Q_6_VRAPlsj9pzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4TbxBASy5Xj-wQZHDpP_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PLbw3uDnNpAZHAzqRDsag.png" /></figure><p><strong>Step 2: CONNECT TO YOUR SERVER USING SSH</strong></p><p>To connect to your server open terminal on you host machine and type the following command.</p><ul><li>ssh username@server-ip</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*272pJZIL735PNTqT63QzCQ.png" /></figure><blockquote>Replace username with your server username and server-ip with your server IP address e.g. root@192.168.1.10</blockquote><p>If this is your first time connecting to the server, you may be asked to accept the server SSH fingerprint. Type ‘yes’ and press ENTER to continue.</p><p>Enter your password and press ENTER (Use a strong password)</p><p>Once your password is authenticated and you are logged into your server via SSH. You can now run commands on the server through the terminal.</p><p>To disconnect from the server type EXIT and press ENTER.</p><p><strong>STEP 3: UPDATE YOUR SERVER</strong></p><p>After connecting to your server via SSH, you can update it by running the following commands.</p><ul><li>sudo apt update &amp;&amp; sudo apt -y upgrade</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*XEx4uKX0UvJUlTqnHGrYiw.png" /></figure><ul><li>sudo reboot</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*J7QKxzEPhEJPEFI_bRm5yw.png" /></figure><blockquote>The reboot command is optional but recommended</blockquote><p><strong>STEP 4: INSTALL WIREGUARD</strong></p><p>Log in to your server again via SSH to complete this step, once logged in run the following commands to install WireGuard to do this you must first Install the WireGuard script using the following command.</p><ul><li>wget <a href="https://get.vpnsetup.net/wg">https://get.vpnsetup.net/wg</a> -O wg.sh</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*ghARcos9xz5_EignXAkUfQ.png" /></figure><p>To auto install WireGuard using default options .</p><ul><li>sudo bash wg.sh — auto</li></ul><blockquote>For servers with an external firewall (e.g. Amazon EC2) open UDP port 51820 for the VPN.</blockquote><p>For interactive install using custom options.</p><ul><li>sudo bash wg.sh</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*O3CbIzDZpHWl2sJzvdmBKw.png" /></figure><ul><li>This will allow you to customize features like VPN servers DNS name, UDP port, DNS server for VPN clients and name of first client.</li><li>After this setup you can run the script again to manage users.</li></ul><p><strong>STEP 5: CONFIGURE WireGuard VPN CLIENT.</strong></p><p>To configure your WireGuard client you will have to securely transfer your client configuration file(s) from the server to your host machine/local computer using SCP command.</p><p>Once again, connect to your server via SSH and run the command.</p><ul><li>scp username@server-ip:/path/to/file /local/folder</li></ul><blockquote>Replace username with the actual username of the server and server-ip with actual IP address of server.</blockquote><p>For example, if you want to authenticate as root and transfer /root/client.conf from the server with ethe IP address 192.168.1.10 to local computer:</p><ul><li>scp root@scp192.168.1.10:/root/client.conf C:\Users\Cybergil\Downloads</li></ul><p>This will copy the configuration file to the Downloads folder on the my Windows local computer. Replace with corresponding path for your local computer.</p><p>You will be prompted to enter your password and press ENTER.</p><p><strong>STEP 6: DOWNLOAD WIREGUARD APPLICATION TO YOU DEVICE TO USE THE VPN.</strong></p><p>Navigate to (https://www.wireguard.com/install/). WireGuard is available for Windows, MacOS, iOS and Android.</p><p><strong>For Windows and MacOS:</strong></p><ul><li>Open the installed WireGuard Application Click ‘Add Tunnel’ and select the securely generated configuration file (client.conf) downloaded from the server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*VZu2mRqGRdZy-42AY5-Z9Q.png" /></figure><p><strong>For Mobile Devices:</strong></p><ul><li>To add a VPN connection, download the WireGuard app from you corresponding App store.</li><li>Open the WireGuard Application on your mobile device and Click the ‘Add’ button, then scan the QR code generated in the script output from earlier or select ‘Create from file or archive’ and select the securely generated configuration file (client.conf)you downloaded from the sever.</li></ul><p>There you have it your own VPN. Enjoy !</p><blockquote>Note: This VPN can be hosted on a physical server or even a RaspberryPi choosing a cloud server offers the flexibility of high availability and scaling.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0e61bd474af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>