<?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 Ildar Agishev on Medium]]></title>
        <description><![CDATA[Stories by Ildar Agishev on Medium]]></description>
        <link>https://medium.com/@Ildar-Agishev?source=rss-d85d6996e44b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JBE62M9JcJEBuEj57HeGBw.jpeg</url>
            <title>Stories by Ildar Agishev on Medium</title>
            <link>https://medium.com/@Ildar-Agishev?source=rss-d85d6996e44b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:54:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Ildar-Agishev/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[SOC with LimaCharlie EDR]]></title>
            <link>https://medium.com/@Ildar-Agishev/soc-with-limacharlie-edr-a5d6ddf7f3bc?source=rss-d85d6996e44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5d6ddf7f3bc</guid>
            <dc:creator><![CDATA[Ildar Agishev]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 09:58:34 GMT</pubDate>
            <atom:updated>2023-03-27T09:58:34.310Z</atom:updated>
            <content:encoded><![CDATA[<h4>PART 1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRe5qRqiGuuBfZOavuQsow.jpeg" /></figure><p>This is the first part of the project dedicated to training SOC skills. <br>In this part, we will set up our virtual environment (VMs) and disable security features (Microsoft Defender) in the Windows victim machine. Next, we will install Sysmon on Windows VM to get telemetry and install LimaCharlie.</p><blockquote><a href="https://limacharlie.io/">LimaCharlie</a> is a relatively new, very powerful “Security Infrastructure as a Service” platform. It not only comes with a cross-platform EDR agent but also handles all of the log shipping/ingestion and has a threat detection engine.</blockquote><p>And we will wrap up part 1 by setting up the attack system. So, let&#39;s get started! <br><em>*This home lab setup is a resemblance of </em><a href="https://substack.com/profile/55707967-eric-capuano"><em>Eric Capuano</em></a><em>’s guide “So you want to be a SOC Analyst?”. So all the credit goes to Eric Capuano.</em></p><h3>Set up VMs</h3><ol><li>Go get the <a href="https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html">VMware Workstation</a> (download and install)</li><li>Download and deploy a free <a href="https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/">Windows VM</a> Evaluation pack.<br><em>Once you have downloaded it, unzip the VM and left-click the </em><em>WinDev####Eval.ovf file and choose import the VM into VMware</em></li><li>Download and install Ubuntu into a new VM with the following customized hardware:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*66Gu60br3NcQZYZoZAELsA.jpeg" /></figure><p>4. During OS installation, leave defaults unless otherwise specified<br>5. Set a username/password and make a note of it, we will need it later</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t64JosbyPdwKlt8tWRpDlg.jpeg" /></figure><p>6. Press space to install OpenSSH server <br>7. Proceed with installing OS until “Install complete!” comes up, then hit Enter on [ Reboot Now ]</p><h3>Set up Windows VM and turn off security features</h3><ol><li>Power on Windows VM</li><li>Disable Tamper Protection and other options as well<br><em>Click the “Start” menu icon&gt;“Settings”&gt;“Privacy &amp; security”&gt;“Windows Security”&gt;Virus &amp; threat protection”&gt;Under “Virus &amp; threat protection settings” click “Manage settings”&gt;turn off the “Tamper Protection” switch and every other option as well</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WCLkFN_cJFdtXMN40zXfmA.jpeg" /></figure><p>3. Disable Defender via Group Policy Editor<br><em>Click the “Start” menu icon&gt;Type “cmd”&gt;Right+Click “Command Prompt” and click “Run as administrator”&gt; Run the following command:</em></p><pre>gpedit.msc</pre><p>4. Inside the Local Group Policy Editor<br><em>Click Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; Microsoft Defender Antivirus&gt;Double-click “Turn off Microsoft Defender Antivirus”&gt;Select “Enabled”&gt;Click Apply&gt;Click OK</em></p><blockquote><em>If you enable this policy setting, Microsoft Defender Antivirus does not run, and will not scan computers for malware or other potentially unwanted software.</em></blockquote><p>5. Disable Defender via Registry<br><em>From the same administrative command prompt, run the command:</em></p><pre>REG ADD &quot;hklm\software\policies\microsoft\windows defender&quot; /v DisableAntiSpyware /t REG_DWORD /d 1 /f</pre><p>6. Let’s also prevent the VM from going into sleep mode during our lab setup, run the command:</p><pre>powercfg /change standby-timeout-ac 0<br>powercfg /change standby-timeout-dc 0<br>powercfg /change monitor-timeout-ac 0<br>powercfg /change monitor-timeout-dc 0<br>powercfg /change hibernate-timeout-ac 0<br>powercfg /change hibernate-timeout-dc 0</pre><p>7. Prepare to boot into Safe Mode to disable all Defender services<br><em>Click the “Start” menu icon&gt;type “msconfig”&gt;Go to “Boot” tab and select “Boot Options”&gt;Check the box for “Safe boot” and “Minimal”&gt;Click Apply and OK. System will soon restart into Safe Mode</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKcvz10WgFF6yKvZWd5PUw.jpeg" /></figure><p>8. Now, in Safe Mode, we’ll disable some services via the Registry<br><em>Click the “Start” menu icon&gt;Type “regedit”&gt;For each of the following registry locations, you’ll need to browse to the key, find the “Start” value, and change it to </em><strong><em>4</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HIHvA-H8QLliN3Vms4kZJQ.jpeg" /></figure><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>Sense</strong></blockquote><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>WdBoot</strong></blockquote><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>WinDefend</strong></blockquote><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>WdNisDrv</strong></blockquote><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>WdNisSvc</strong></blockquote><blockquote>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<strong>WdFilter</strong></blockquote><p>9. Leave Safe Mode the same way we got into it. The system will restart back into normal desktop mode</p><h3>Sysmon installation in Windows VM</h3><ol><li>Launch the PowerShell console as admin for the following commands</li><li>Download Sysmon with the following command</li></ol><pre>Invoke-WebRequest -Uri https://download.sysinternals.com/files/Sysmon.zip -OutFile C:\Windows\Temp\Sysmon.zip</pre><p>3. Unzip Sysmon.zip</p><pre>Expand-Archive -LiteralPath C:\Windows\Temp\Sysmon.zip -DestinationPath <br>C:\Windows\Temp\Sysmon</pre><p>4. Download <a href="https://infosec.exchange/@SwiftOnSecurity">SwiftOnSecurity</a>’s Sysmon config.</p><pre>Invoke-WebRequest -Uri <br>https://raw.githubusercontent.com/SwiftOnSecurity/sysmon-config/master/sysmonconfig-export.xml -OutFile <br>C:\Windows\Temp\Sysmon\sysmonconfig.xml</pre><p>5. Install Sysmon with Swift’s config</p><pre>C:\Windows\Temp\Sysmon\Sysmon64.exe -accepteula -i <br>C:\Windows\Temp\Sysmon\sysmonconfig.xml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvsVMZ5U3CMx2kfq88SPRQ.jpeg" /></figure><h3>Install LimaCharlie EDR on Windows VM</h3><ol><li>Create a free <a href="https://app.limacharlie.io/signup">LimaCharlie</a> account.</li><li>Log into LimaCharlie, create an organization</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*JJt3Q3Gdskcu746d9GIuqQ.jpeg" /></figure><p>3. Once the org is created, click “Add Sensor”<br><em>Select Windows&gt;Provide a description such as WindowsVM — LAB&gt;Click Create&gt;Select the Installation Key we just created</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61L9F2FJf4wkPdE1T4ejuA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwgntXHJLSMfxky_pez4vw.jpeg" /></figure><p><em>Specify the x86–64 (.exe) sensor, but then skip ahead to my instructions versus the ones provided.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*neZb2CSH-qUMt4i0DgQF7g.jpeg" /></figure><p><em>In the WINDOWS VM, paste the following link into your web browser:</em> <a href="https://downloads.limacharlie.io/sensor/windows/64">https://downloads.limacharlie.io/sensor/windows/64</a></p><p><em>Once the sensor downloads onto the VM, launch a </em><strong><em>command prompt as administrator </em></strong><em>and run the following command (assumes the default download path)</em></p><pre>cd C:\Users\User\Downloads</pre><p><em>Next, we will paste the install command provided by LimaCharlie which contains the installation key.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9v6VBb8sPlRQFX0VgS9Og.jpeg" /></figure><p><em>This is the expected output:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ol607Igu4fr_WpnGKZ4SGw.jpeg" /></figure><p><em>If everything is done accordingly, in the LimaCharlie web UI you should also see the sensor reporting in.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0By4m6_peGY3M59z9lIQQ.jpeg" /></figure><p>4. Now let’s configure LimaCharlie to transfer the Sysmon event logs along with its own EDR telemetry<br><em>In the left-side menu, click “Artifact Collection”&gt;Next to “Artifact Collection Rules” click “Add Rule”&gt;fill in the info&gt;Click “Save Rule”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ajc8dGIeW4VoGenxNtAbAg.jpeg" /></figure><p><em>LimaCharlie will now start transferring Sysmon logs which provide a great amount of telemetry</em></p><h3>Setup Attack System</h3><ol><li>Switch over to the Ubuntu VM. Login with the credentials we defined during installation (user: ildar, password: 123456789)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*ECIKGmpmZs7ulY_K1pZSZw.jpeg" /></figure><p>2. Switch to a root command prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*czlDCfbDdYfGhsOoIRBEVg.jpeg" /></figure><p>3. First we need to learn the IP address of the Linux VM and then make sure that IP won’t change in the future, so type the following command into the console</p><pre>ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*Im4L0RWaRziExRWUgpc9UQ.jpeg" /></figure><p>4. In the screenshot above, our VM has the IP address 192.168.227.139. This IP is assigned automatically (DHCP) by VMware and could change in the future so we next want to statically assign it so that it does not change.</p><p>5. Let’s find out the IP address your VM is using as a gateway.</p><pre>ping _gateway -c 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*bvb4-sDwqw_Dz5W8IRA3hw.jpeg" /></figure><p><em>GW: 192.168.227.2</em></p><p>6. Type the following command to edit the configuration file for the network manager “netplan”</p><pre>sudo nano /etc/netplan/00-installer-config.yaml</pre><p><em>In this file, we’ll reconfigure our adapter from DHCP to a statically assigned IP address. Here is my original version</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*nrJd51djuOEEkXTWuxrkWQ.jpeg" /></figure><p><em>Here is my reconfigured version setting the static IP to the one the VM was already assigned via DHCP</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*Jyi0EF3liy0cQg5UadlBkQ.jpeg" /></figure><p><em>Save the file and test your new configuration for errors</em></p><pre>sudo netplan try</pre><p><em>Apply the configuration if no serious errors were found.</em></p><pre>sudo netplan apply</pre><p>7. Now that we have a statically assigned IP address that should not change, let’s SSH onto the VM from our host system to make future CLI activities easier thanks to copy/paste.</p><pre>ssh user@[Linux_VM_IP]</pre><p>8. Now, from within this new SSH session, proceed with the following instructions to set up our attacker C2 server. First, let’s drop into a root shell to make life easier.</p><pre>sudo su</pre><p>9. Run the following commands to download <a href="https://github.com/BishopFox/sliver/wiki">Sliver</a>, a Command &amp; Control (C2) framework by BishopFox.</p><pre># Download Sliver Linux server binary<br>wget https://github.com/BishopFox/sliver/releases/download/v1.5.34/sliver-server_linux -O /usr/local/bin/sliver-server<br># Make it executable<br>chmod +x /usr/local/bin/sliver-server<br># install mingw-w64 for additional capabilities<br>apt install -y mingw-w64</pre><p>10. Now let’s create a working directory we’ll use in future steps</p><pre># Create and enter our working directory<br>mkdir -p /opt/sliver</pre><p>That is all for Part 1. Check Part 2&gt;&gt;&gt;&gt;&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5d6ddf7f3bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC with LimaCharlie EDR]]></title>
            <link>https://medium.com/@Ildar-Agishev/soc-with-limacharlie-edr-23b6c9296b4d?source=rss-d85d6996e44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/23b6c9296b4d</guid>
            <dc:creator><![CDATA[Ildar Agishev]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 08:36:11 GMT</pubDate>
            <atom:updated>2023-03-27T10:00:09.082Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Monitoring, creating alerts, and blocking events</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkFOq9Bal5Tt_CVnMnvfkA.jpeg" /></figure><p>This project walks you through setting up a couple of virtual machines, one Ubuntu Server, and a Windows system. Utilizing Linux tools like Sliver (C2), you deploy malware onto the Windows system that allows remote access.</p><p>At the same time on the Windows system, the logging and analysis program Lima Charlie (EDR) is utilized to monitor logs, create alert rules and even learn how to block events when they happen in real-time. This lab gives a quick overview of the sort of activities a SOC analyst accomplishes daily.</p><figure><img alt="Endpoint Detection and Response" src="https://cdn-images-1.medium.com/max/490/1*ao5B8GLZkzi5bwxe_U3-OA.png" /><figcaption>Endpoint Detection and Response</figcaption></figure><ul><li>I want to thank <a href="https://substack.com/profile/55707967-eric-capuano">Eric Capuano</a> for the lab setup tutorial which I used to recreate this project.</li></ul><h3>Intro</h3><p>I have divided this project into 4 logical parts:</p><ul><li><a href="https://medium.com/@ildar.agishev92/soc-with-limacharlie-edr-a5d6ddf7f3bc">Part 1</a> — Setting up VMs, installing Sysmon and LimaCharlie EDR in victim Windows VM</li><li>Part 2 — Generating C2 payload in attack system and observing logs in LimaCharlie EDR</li><li>Part 3 — Emulating an adversary for crafting detections</li><li>Part 4 — Creating detection and response rules to block an attack</li></ul><h3>Languages and Utilities Used</h3><ul><li>Sliver — Command &amp; Control (C2) framework</li><li>Powershell</li><li>Unix Shell (bash)</li></ul><h3>Environments Used</h3><ul><li><a href="https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html">VMware Workstation Pro</a></li><li><a href="https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/">Windows 11 VM Evaluation</a></li><li><a href="https://releases.ubuntu.com/22.04.1/ubuntu-22.04.1-live-server-amd64.iso">Linux Ubuntu Server 22.04.1</a></li><li><a href="https://app.limacharlie.io/signup">LimaCharlie EDR</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23b6c9296b4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>