<?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 Gunay Mehdizada on Medium]]></title>
        <description><![CDATA[Stories by Gunay Mehdizada on Medium]]></description>
        <link>https://medium.com/@mehdizadgunay58?source=rss-54e52e37bab1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*t9PyIB6TWrf0xeawqCsdxQ.jpeg</url>
            <title>Stories by Gunay Mehdizada on Medium</title>
            <link>https://medium.com/@mehdizadgunay58?source=rss-54e52e37bab1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:40:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mehdizadgunay58/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[Boss of the SOC Version 1 Scenario 2]]></title>
            <link>https://medium.com/@mehdizadgunay58/boss-of-the-soc-version-1-scenario-2-dd3130cb50e8?source=rss-54e52e37bab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd3130cb50e8</guid>
            <category><![CDATA[boss-of-the-soc]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Gunay Mehdizada]]></dc:creator>
            <pubDate>Sun, 17 Nov 2024 21:20:22 GMT</pubDate>
            <atom:updated>2024-11-17T21:20:22.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*0Se6onF9j-uxSB0Pm48uNg.png" /></figure><p><a href="https://bots.splunk.com/event/3oQ7sqI5bajOCP43o0svqT/detail">https://bots.splunk.com/event/3oQ7sqI5bajOCP43o0svqT/detail</a></p><p>In this post, I will guide you through the process of solving the <strong>Boss of the SOC v2</strong> challenge, hosted by the <strong>Splunk</strong> team on <strong>Cyberdefenders.org</strong>, providing a clear and efficient approach to completing it.</p><blockquote><strong>Question 200: What was the most likely IPv4 address of we8105desk on 24AUG2016?</strong></blockquote><p>According to the date at the end of the question, we should first consider the date and change it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*fS8cvrMaYQ2PYU2lQLcw0g.png" /></figure><pre>index=&quot;botsv1&quot; host=we8105desk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*Yby_9dcIit2Ouyi1ScF7ew.png" /></figure><p>We can identify 192.168.250.100 as the IP address of the suspected infected host because of its frequent activity.</p><p><strong>Answer: 192.168.250.100</strong></p><blockquote><strong>Question 201: Amongst the Suricata signatures that detected the Cerber malware, which one alerted the fewest number of times? Submit ONLY the signature ID value as the answer. (No punctuation, just 7 digits)</strong></blockquote><p>Search for the keyword “cerber” using “suricata” as the source type. Then, check the “alert.signature_id” field to find the signature ID with the fewest alert counts associated with “cerber”.</p><pre>index=&quot;botsv1&quot; sourcetype=suricata cerber src_ip=&quot;192.168.250.100&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*SyJid2h_n6pd6I0qeBOjTA.png" /></figure><p>Here we see the one which alerted the fewest number of times : 2816763</p><p><strong>Answer: 2816763</strong></p><blockquote><strong>Question 202: What fully qualified domain name (FQDN) does the Cerber ransomware attempt to direct the user to at the end of its encryption phase?</strong></blockquote><p>Using the victim’s IP address as the source IP:</p><pre>index=botsv1 src_ip=&quot;192.168.250.100&quot; source=&quot;stream:dns&quot; NOT query=*.arpa AND NOT query=*.microsoft.com AND NOT query=*.msn.com AND NOT query=*.info AND NOT query=*.local AND query=*.*<br>| table dest_ip _time query<br>| sort by _time desc</pre><p>This query to look at DNS activity from the victim’s IP address, with a focus on potentially suspicious domain queries. By filtering out known legitimate domains and generic queries, it helps highlight domains that might need further investigation. The table output makes it easier to analyze the data, showing just the important details: the queried domains, their destination IPs, and timestamps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*YC4h7Zv4GpNqXxoADIGKzA.png" /></figure><p>Malicious looking cerberhhyed5frqa.xmfir0.win</p><p><strong>Answer: cerberhhyed5frqa.xmfir0.win</strong></p><blockquote><strong>Question 203: What was the first suspicious domain visited by we8105desk on 24AUG2016?</strong></blockquote><pre>index=botsv1 src_ip=&quot;192.168.250.100&quot; source=&quot;stream:dns&quot; NOT query=*.arpa AND NOT query=*.microsoft.com AND NOT query=*.msn.com AND NOT query=*.info AND NOT query=*.local AND query=*.*<br>| table dest_ip _time query<br>| sort by _time desc</pre><p>Through this query we can find the first suspicious domain visited by we8105desk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQwieiC95OqBgWcrs3VpDg.png" /></figure><p>Here we see the answer: <strong>solidaritedeproximite.org</strong></p><blockquote><strong>Question 204: During the initial Cerber infection a VB script is run. The entire script from this execution, pre-pended by the name of the launching .exe, can be found in a field in Splunk. What is the length of the value of this field? (Enter the number of characters (i.e.the “length”) of the field.)</strong></blockquote><p>Firstly , we should search for .vbs files and look in the fields “CommandLine” or “process” for the “vbs” scripts.</p><pre>index=botsv1 sourcetype=&quot;xmlwineventlog:microsoft-windows-sysmon/operational&quot; *.vbs <br>|  table CommandLine</pre><p>The “vbs” file run by “cmd.exe” looks really suspicious, mainly because its contents are obfuscated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rp-jUjM8rBdHLz6RDi-GXQ.png" /></figure><pre>| eval lenght=len(CommandLine) | table CommandLine, lenght</pre><p>After that add this to your command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBLLyzRLXaVpUU8fJ_B8hg.png" /></figure><p><strong>Answer: 4490</strong></p><blockquote><strong>Question 205: What is the name of the USB key inserted by Bob Smith?</strong></blockquote><p><a href="https://lantern.splunk.com/Splunk_Platform/Use_Cases/Use_Cases_Security/Forensics/Investigating_a_ransomware_attack/Removable_devices_connected_to_a_machine">https://lantern.splunk.com/Splunk_Platform/Use_Cases/Use_Cases_Security/Forensics/Investigating_a_ransomware_attack/Removable_devices_connected_to_a_machine</a></p><p>As stated in the splunk documentation: friendlyname -&gt; Search for a registry entry value specific to USB devices.</p><pre>sourcetype=winregistry friendlyname</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*w9IZXKqFAuq6W8lCKrYjkw.png" /></figure><p>Here we see, <strong>Answer: MIRANDA_PRI</strong></p><blockquote><strong>Question 206: Bob Smith’s workstation (we8105desk) was connected to a file server during the ransomware outbreak. What is the IPv4 address of the file server?</strong></blockquote><pre>index=&quot;botsv1&quot; src_ip=192.168.250.100</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*Aet-jPevkuqAnJ_pqxZOMw.png" /></figure><p>Since it says file server, we’ll look at the <strong>smb</strong> sourcetype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*lOdGAoIo3W4M6WLn6AgWdw.png" /></figure><p>We can identify 192.168.250.20 as the IP address of the file server because of its frequent activity.</p><p><strong>Answer: 192.168.250.20</strong></p><blockquote><strong>Question 207 : How many distinct PDFs did the ransomware encrypt on the remote file server?</strong></blockquote><p>Let’s first identify what is the host name of the file server. We know that its IP address is “192.168.250.20”</p><pre>index=botsv1 192.168.250.20</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*shU4JwhmXfHLM0pqAMNULw.png" /></figure><p>It is neither “splunk-02” nor “suricata”. It is <em>we9041srv. </em>Add it to the search .</p><pre>index=botsv1 host=we9041srv *.pdf Relative_Target_Name=&quot;*&quot; | dedup Relative_Target_Name</pre><p>It will show you only unique pdf files that’s why I used dedup command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*eLyfAontE93Vyu1rIEQkzg.png" /></figure><p>Here we see the 258 events but….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*D2aaU0vLQpKZrB6vn8MxdQ.png" /></figure><p>We have two account names available and it can not be an Administrator.</p><p><strong>Answer: 257</strong></p><blockquote><strong>Question 208: The VBscript found in question 204 launches 121214.tmp. What is the ParentProcessId of this initial launch?</strong></blockquote><p>“121214.tmp” was launched when a “vbs” script was executed. Simply add the file name in our search command to filter events related to our search.</p><pre>index=botsv1 sourcetype=&quot;xmlwineventlog:microsoft-windows-sysmon/operational&quot; vbs 121214.tmp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*-iJif9Zs1iiG9uy7Ur6zVw.png" /></figure><p><strong>Answer: 3968</strong></p><blockquote><strong>Question 209: The Cerber ransomware encrypts files located in Bob Smith’s Windows profile. How many .txt files does it encrypt?</strong></blockquote><p>Let’s find bob.smith hostname :</p><pre>index=botsv1 sourcetype=&quot;XmlWinEventLog:Microsoft-Windows-Sysmon/Operational&quot; bob.smith</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*dSFuLsbQqQHA8gXgq0wQDQ.png" /></figure><p>“we8105desk” is Bob Smith’s hostname.</p><pre>index=botsv1 bob.smith sourcetype=&quot;XmlWinEventLog:Microsoft-Windows-Sysmon/Operational&quot; TargetFilename=&quot;C:\\Users\\bob.smith.WAYNECORPINC\\*.txt&quot; <br>| dedup TargetFilename</pre><p>Through this command, we extracted the unique count of files with the .txt extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-HAr95VYZqLO-JOAZBc3g.png" /></figure><p><strong>Answer: 406</strong></p><blockquote><strong>Question 210: The malware downloads a file that contains the Cerber ransomware cryptor code. What is the name of that file?</strong></blockquote><p>Let’s use Suricata since it examines network packets and traffic flows to identify and alert us about any suspicious or malicious activity.</p><p>In question 24 we found a suspicious domain, “solidaritedeproximite.org”.</p><pre>index=botsv1 sourcetype=suricata &quot;http.hostname&quot;=&quot;solidaritedeproximite.org&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*M2y3HkWbtTKkpO9iyLmBXA.png" /></figure><p><strong>Answer: mhtr.jpg</strong></p><blockquote><strong>Question 211: Now that you know the name of the ransomware’s encryptor file, what obfuscation technique does it likely use?</strong></blockquote><p><strong>Answer : Steganography</strong></p><p><strong><em>Steganography is the practice of concealing information within another message or physical object to avoid detection.</em></strong></p><p>The file has a “.jpg” extension, which suggests it’s meant to be a JPEG image. However, unlike a normal JPG file that doesn’t perform any actions, this one is hiding malware within its contents.</p><p>Thanks for reading !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd3130cb50e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boss of the SOC Version 1 Scenario 1]]></title>
            <link>https://medium.com/@mehdizadgunay58/boss-of-the-soc-writeup-a8afacfd4584?source=rss-54e52e37bab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8afacfd4584</guid>
            <category><![CDATA[boss-of-the-soc]]></category>
            <dc:creator><![CDATA[Gunay Mehdizada]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 19:21:20 GMT</pubDate>
            <atom:updated>2024-11-18T07:41:35.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*0Se6onF9j-uxSB0Pm48uNg.png" /></figure><p><a href="https://bots.splunk.com/event/3oQ7sqI5bajOCP43o0svqT/detail">https://bots.splunk.com/event/3oQ7sqI5bajOCP43o0svqT/detail</a></p><p>In this post, I will guide you through the process of solving the <strong>Boss of the SOC v1</strong> challenge, hosted by the <strong>Splunk</strong> team on <strong>Cyberdefenders.org</strong>, providing a clear and efficient approach to completing it.</p><blockquote><strong><em>Question 101: </em>What is the likely IPv4 address of someone from the Po1s0n1vy group scanning imreallynotbatman.com for web application vulnerabilities?</strong></blockquote><p>We will examine the number of events tied to the src_ip (source IP) addresses communicating with the domain imreallynotbatman.com.</p><pre>index=* imreallynotbatman.com<br>| table src_ip <br>| stats count by src_ip<br>| sort -count</pre><p>In this query, the table command is used to extract and display the src_ip addresses, providing a clear list of all the source IPs involved in the communication. The stats count by src_ip command is then applied to calculate the total occurrences of each src_ip, effectively summarizing how many times each IP address has interacted with the target domain. Finally, the sort -count command sorts the results in descending order, allowing us to prioritize the most frequent source IPs, from highest to lowest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlDIlMT3ffENaL3a4FNwVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hSDuM9SCFaOW1L4itp89WQ.png" /></figure><p>Based on the results, we can reasonably conclude that the IP address 40.80.142.82 is most likely associated with someone scanning imreallynotbatman.com .</p><p>In the case of this investigation, it&#39;s likely that 192.168.250.70 represents the internal or local server hosting the imreallynotbatman.com website.</p><p><strong>Answer: 40.80.142.82</strong></p><blockquote><strong>Question 102:What company created the web vulnerability scanner used by Po1s0n1vy? Type the company name. (For example “Microsoft” or “Oracle”)</strong></blockquote><pre>imreallynotbatman.com scan</pre><p>From “<strong>alert.signature</strong>” field we can find the company name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*t_cjHkIdKYGHB4epX432SA.png" /></figure><p><strong>Answer: Acunetix</strong></p><blockquote><strong>Question 103: What content management system is imreallynotbatman.com likely using?(Please do not include punctuation such as . , ! ? in your answer. We are looking for alpha characters only.)</strong></blockquote><p>Content management system(CMS) is a software application or platform that allows users to create, manage, and modify content on a website without needing specialized technical knowledge, such as coding or web development skills.</p><p>We can simply search “<strong>c_ip=”192.168.250.70</strong>&quot; and in url part you can find CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*y1ApycW7AxnRsVIQKNGaqQ.png" /></figure><p><strong>Answer: Joomla</strong></p><blockquote><strong><em>Question 104:</em></strong> <strong><em>What is the name of the file that defaced the imreallynotbatman.com website? Please submit only the name of the file with the extension (For example, “notepad.exe” or “favicon.ico”).</em></strong></blockquote><p>We’re investigating a potentially malicious file that was most likely downloaded via HTTP. By using stream:http as our source type and focusing on the victim’s IP as the source, we pinpointed a suspicious file name in the src_headers field.</p><pre>index=* source=&quot;stream:http&quot; src_ip=192.168.250.70</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*7KWOBGA_z4dsoXvtn0VB7w.png" /></figure><p>The file we identified here is named <strong>“poisonivy-is-coming-for-you-batman.jpeg.”</strong></p><p><strong>Answer: poisonivy-is-coming-for-you-batman.jpeg.</strong></p><blockquote><strong>Question 105: This attack used dynamic DNS to resolve to the malicious IP. What fully qualified domain name (FQDN) is associated with this attack?</strong></blockquote><p>We can readily determine the fully qualified domain(FQDN) name based on the response to the first question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*XPbnKwE_A6_Rvtr5-EJG8w.png" /></figure><p>The domain <strong>prankglassinebracket.jumpingcrab.com</strong> is specified as the host and that’s all it wants from us.</p><p><strong>Answer:</strong> <strong>prankglassinebracket.jumpingcrab.com</strong></p><blockquote><strong>Question 106: What IPv4 address has Po1s0n1vy tied to domains that are pre-staged to attack Wayne Enterprises?</strong></blockquote><p>We identified two IP address that are malicious, “40.80.148.42” and “23.22.63.114”. The first one was used for vulnerability scanning, and “23.22.63.114” hosted the file that defaced the victim’s website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*xKN3km33usS7TJPh7dCkWA.png" /></figure><p><strong>Answer: 23.22.63.114</strong></p><blockquote><strong>Question 107: What IPv4 address is likely attempting a brute force password attack against imreallynotbatman.com?</strong></blockquote><pre>index=* sourcetype=stream:http dest_ip=192.168.250.70 http_method=POST <br>| stats count by src_ip, form_data</pre><p>The query filters HTTP events where the destination IP address is imreallynotbatman.com and the HTTP request method is POST. The stats command is then used to count the occurrences of each unique combination of src_ip, form_data. This helps pinpoint the source of the attack and provides insight into the nature of the data being submitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5KELd73X-idaeMHlrLPeA.png" /></figure><p>As observed, the IP address 23.22.63.114 appears to be performing multiple password guessing attempts in an effort to identify the correct credentials.</p><p><strong>Answer : 23.22.63.114</strong></p><blockquote><strong>Question 109 : What is the name of the executable uploaded by Po1s0n1vy?Please include file extension. (For example, “notepad.exe” or “favicon.ico”)</strong></blockquote><pre>index=* sourcetype=stream:http dest_ip=&quot;192.168.250.70&quot; http_method=POST *.exe</pre><p>File uploads to web forms typically use the HTTP POST method. With that in mind, we’ll filter events related to imreallynotbatman.com that use the HTTP POST request method. We’ll also hypothesize that the uploaded file has an .exe extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*jGIwoymcMq7LvSBKFX5-Ug.png" /></figure><p>We can see 2 files but 3791.exe looks suspicious.</p><p><strong>Answer: 3791.exe</strong></p><blockquote><strong>Question 110: What is the MD5 hash of the executable uploaded?</strong></blockquote><p>Change the source type to “sysmon” with the name of the executable as our keyword search.</p><pre>index=* sourcetype=&quot;xmlwineventlog:microsoft-windows-sysmon/operational&quot; 3791.exe<br>| stats count by CommandLine</pre><p>We then click on the “<strong>CommandLine</strong>” field and narrow down on the malicious executable file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*OAzypZX-RkPblXekQuJSiQ.png" /></figure><p>The command would be as follows:</p><pre>index=* sourcetype=&quot;xmlwineventlog:microsoft-windows-sysmon/operational&quot; 3791.exe  CommandLine=&quot;3791.exe&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWVJzAuxYLuS7QJLunEElg.png" /></figure><p>Then click on the “<strong>MD5</strong>” field:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_hXIyjzf001L52mQ7lBqfw.png" /></figure><p><strong>Answer : AAE3F5A29935E6ABCC2C2754D12A9AF0</strong></p><blockquote><strong>Question 111: GCPD reported that common TTPs (Tactics, Techniques, Procedures) for the Po1s0n1vy APT group, if initial compromise fails, is to send a spear phishing email with custom malware attached to their intended target. This malware is usually connected to Po1s0n1vys initial attack infrastructure. Using research techniques, provide the SHA256 hash of this malware.</strong></blockquote><p>If this malware connects to Po1s0n1vy’s initial attack infrastructure, then we know its IP: 23.22.63.114</p><p>I’ll look it up on Virustotal and check its details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nhJfj8jcVh6az_tlCHFag.png" /></figure><p><strong>MirandaTateScreensaver.scr.exe</strong> looks suspicious and let’s check it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1rqyo3nXNIeTNiHeDZAzw.png" /></figure><p>And its SHA-256 hash is -&gt; <strong>9709473ab351387aab9e816eff3910b9f28a7a70202e250ed46dba8f820f34a8</strong></p><blockquote><strong>Question 112: What special hex code is associated with the customized malware discussed in question 111?It’s not in Splunk!!</strong></blockquote><p>It is on VirusTotal, go to the Community Tab and we see a hex code associated with the malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObV_iQ-Sa1pQZ9e0YfSBhQ.png" /></figure><blockquote><strong>Question 114: What was the first brute force password used?</strong></blockquote><pre>src_ip=23.22.63.114 imreallynotbatman.com http_method=POST form_data=*username*passwd*<br>| table form_data, _time<br>| sort by _time</pre><p>The query is identifying the first password used in a brute force attack targeting imreallynotbatman.com. It filters for HTTP POST requests containing login credentials (username and passwd), specifically from the IP address 23.22.63.114. The results are displayed with the form data and timestamp, and sorted by time to pinpoint the first login attempt. By examining the first entry, we can easily identify the <strong>first password</strong> used in the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s27h2iN-0WxWr12vRJZ1-g.png" /></figure><p><strong>Answer : 12345678</strong></p><blockquote><strong>Question 115:One of the passwords in the brute force attack is James Brodsky’s favorite Coldplay song. We are looking for a six character word on this one. Which is it?</strong></blockquote><p>Firstly, we need to search for “Coldplay” songs that are six-character.</p><p>Here are some of their six-character songs.</p><ol><li>Yellow</li><li>Violet</li><li>Trouble</li><li>Sparks</li><li>Shiver</li><li>Clocks</li><li>Square</li><li>Always</li><li>Ghosts</li></ol><p>Since the 6-character password is <strong>yellow</strong>, we choose it.</p><p><strong>Answer: yellow</strong></p><blockquote><strong>Question 116:What was the correct password for admin access to the content management system running “imreallynotbatman.com”?</strong></blockquote><pre>index=* sourcetype=stream:http dest_ip=&quot;192.168.250.70&quot; http_method=POST uri=/joomla/Administrator/index.php<br>| rex field=form_data &quot;passwd=(?&lt;password&gt;\w+)&quot;<br>| stats count by password<br>| sort -count</pre><p>The query helps us find the <strong>correct password</strong> used for <strong>admin access</strong> to the content management system (CMS) on imreallynotbatman.com. It filters HTTP POST requests to the login page (/joomla/Administrator/index.php) with a successful response (status=200). The rex command then extracts the password from the form_data field. By reviewing the results, we can identify the <strong>correct password</strong> used to access the admin panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeAZkYb-r_VnRCRJrMFlUg.png" /></figure><p>Okay, so we identified “batman” being used more than once, but we don’t know yet if it was used successfully or maybe another source conducted a brute force attack.</p><p><strong>Answer: batman</strong></p><blockquote><strong>Question 117: What was the average password length used in the password brute forcing attempt?Round to closest whole integer. For example “5” not “5.23213”</strong></blockquote><pre>index=* sourcetype=stream:http dest_ip=&quot;192.168.250.70&quot; http_method=POST uri=/joomla/Administrator/index.php<br>| rex field=form_data &quot;passwd=(?&lt;password&gt;\w+)&quot;<br>| eval length = len(password)<br>| stats avg(length) as avglength<br>| eval rounded = round(avglength,0)</pre><p>Let’s break down the command, focusing on the eval and stats functions:</p><ul><li><strong>eval length = len(password)</strong>: This calculates the length of the retrieved password and stores it in a new field called length.</li><li><strong>stats avg(length) as avglength</strong>: This calculates the <strong>average</strong> length of all the values in the length field and stores it as avglength.</li><li><strong>eval rounded = round(avglength, 0)</strong>: This rounds the average length (avglength) to the nearest whole number and stores it in the rounded field.</li></ul><p>Finally, the result will display both the avglength and rounded values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JF-pJL5Y02PZbnkU5euUQ.png" /></figure><p>Answer : 6</p><blockquote><strong>Question 118: How many seconds elapsed between the time the brute force password scan identified the correct password and the compromised login?Round to 2 decimal places.</strong></blockquote><pre>index=* sourcetype=stream:http  http_method=POST uri_path=&quot;/joomla/administrator/index.php&quot;<br>|  rex field=form_data &quot;passwd=(?&lt;password&gt;\w+)&quot;<br>| search password=&quot;batman&quot;<br>| transaction password<br>| table duration<br>| eval rounded_duration = round(duration, 2)</pre><p><strong>“How many seconds elapsed between the time the brute force password scan identified the correct password and the compromised login?”</strong></p><ul><li><strong>index=botsv1 sourcetype=stream:http http_method=POST uri_path=&quot;/joomla/administrator/index.php&quot;</strong>: Filters events for HTTP POST requests targeting the Joomla admin login page.</li><li><strong>rex field=form_data &quot;passwd=(?&lt;password&gt;\w+)&quot;</strong>: Extracts the password submitted in the form data.</li><li><strong>search password=&quot;batman&quot;</strong>: Filters to only show events where the password is <strong>&quot;batman&quot;</strong> (the correct one in this case).</li><li><strong>transaction password</strong>: Groups events by the password field, linking the login attempts and their duration.</li><li><strong>table duration</strong>: Displays the <strong>duration</strong> of each transaction, which is the time between when the correct password was identified and the successful login.</li><li><strong>eval rounded_duration = round(duration, 2)</strong>: Rounds the duration to <strong>2 decimal places</strong> for a cleaner result.</li></ul><p>This will show the <strong>elapsed time</strong> (in seconds) between the correct password being identified and the login being successfully compromised, rounded to 2 decimal places.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmSS1_frTbd7ygkH7WOLbQ.png" /></figure><p><strong>Answer : 92.17</strong></p><blockquote><strong>Question 119: How many unique passwords were attempted in the brute force attempt?</strong></blockquote><pre>index=* sourcetype=stream:http src_ip=23.22.63.114 dest_ip=&quot;192.168.250.70&quot; http_method=POST uri_path=&quot;/joomla/administrator/index.php&quot;<br>| rex field=form_data &quot;passwd=(?&lt;password&gt;\w+)&quot;<br>| dedup password <br>| stats count by password<br>| stats sum(count) as count</pre><p>The query helps us identify the distinct passwords used during the attack. By extracting and counting the unique passwords submitted in the form data, we can get an accurate count of how many different passwords were tried by the attacker. The dedup command ensures we only consider each password once, preventing duplicate entries from inflating the count. Finally, using the stats command, we sum up the total number of unique passwords attempted. This approach provides a clear view of the attacker&#39;s strategy and how many different guesses were made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3RHsQQUrOIn5qFxa1Mx5Q.png" /></figure><p><strong>Answer : 412</strong></p><p><strong>Thanks for reading !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8afacfd4584" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Nginx to Ubuntu and writing PHP and MySQL to that server]]></title>
            <link>https://medium.com/@mehdizadgunay58/writing-nginx-to-ubuntu-and-writing-php-and-mysql-to-that-server-eda6f06bae48?source=rss-54e52e37bab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/eda6f06bae48</guid>
            <dc:creator><![CDATA[Gunay Mehdizada]]></dc:creator>
            <pubDate>Wed, 29 Nov 2023 19:44:19 GMT</pubDate>
            <atom:updated>2023-11-29T19:44:19.789Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Step 1 -&gt; Installing the nginx web server</strong></p><p><em>Firstly running ‘</em><strong><em>sudo apt update</em></strong><em>’ command is important after installation of new packages on a Linux operating system. ‘</em><strong><em>sudo apt update</em></strong><em>’ makes sure your computer knows about the newest software available, helping it run smoothly and securely.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqliFF3UPWDZsdvh_cJTVw.png" /></figure><p><em>After updating you can install Nginx by ‘</em><strong><em>sudo apt install nginx</em></strong><em>’ command</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apzzK2gk7Kp7VIYuEUNidw.png" /></figure><p><em>Enter Y to confirm that you want to install Nginx. Once the installation is finished, the Nginx web server will be active and running on your Ubuntu server.</em></p><p><em>Secondly, </em><strong><em>Adjusting the Firewall </em></strong><em>-&gt; Before testing Nginx, the firewall software needs to be configured to allow access to the service. We need ‘</em><strong><em>sudo ufw app list</em></strong><em>’ command for showing a list of predefined application profiles that you can use to configure firewall rules with UFW.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sihCiykjGjNi2ORO62Z4gA.png" /></figure><p><em>These options likely represent pre-configured setups for the Nginx web server and OpenSSH. “Nginx Full” includes all features, “Nginx HTTP” is optimized for regular web traffic, “Nginx HTTPS” is for secure web traffic with HTTPS, and “OpenSSH” is for secure remote access to the server.</em></p><p><em>I just will need to allow regular HTTP traffic on port 80. For enable this I will use ‘</em><strong><em>sudo ufw allow ‘Nginx HTTP</em></strong><em>’ command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3C1Mbp1NjJPNiTXzTkXO_g.png" /></figure><p><em>After that let’s check status by ‘</em><strong><em>sudo ufw status’</em></strong><em> command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*px9qjOgJ3O6pEZu4klPNlw.png" /><figcaption><em>And it gives status inactive (Let’s fix it)</em></figcaption></figure><p><em>Step 1.Install UFW (if it is not installed)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sNnGpWO-5xGvRuVrbjH-iQ.png" /></figure><p><em>Step 2.Enable UFW</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1PCDHXyNm-1n821Z8NE_w.png" /></figure><p><em>Now, you can set up rules based on your needs. For a based web server setup, you can allow traffic on ports 80(HTTP) and 443(HTTPS).Allow SSH;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgstHS7sdDooYh4rbIpz-w.png" /></figure><p><em>After all check status again-&gt;Status is active</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25prluLw4ETYh5Imhg42yw.png" /></figure><p><em>This output displays that HTTP traffic is allowed</em></p><p><em>If you are unaware of your server’s public IP address, you can discover it by executing by command ‘ </em><strong><em>ip addr show</em></strong><em>’-&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFUP4Jv0HnBzTVtfbZ938A.png" /></figure><p><em>At the end we write the command ‘</em><strong><em> open </em></strong><a href="http://your_ip/"><strong><em>http://your_ip</em></strong></a><em> ‘</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4bQfsAIQuYBwgpSafJYlw.png" /></figure><p><em>The page will shown-&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWIvTn__fhOMXqz_YXbfGw.png" /></figure><p><em>It means you have successfully installed Nginx and enabled HTTP traffic for your web server 😊</em></p><p><strong>STEP 2-&gt;Installing MySQL</strong></p><p><em>Firstly we can install MySQL server by following command ‘</em><strong><em>sudo apt install mysql-server</em></strong><em>’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wEy_WeHpwk0uE-YIAO6gg.png" /></figure><p><em>Confirm installation by pressing Y, and then click Enter button</em></p><p><em>After completing the MySQL installation, it is advisable to run the ‘</em><strong><em>sudo mysql_secure_installation’</em></strong><em> command. This script helps bolster the security of your MySQL database server by establishing a root password, eliminating unnecessary user accounts and databases , and fortifying overall security settings. This step is crucial to safeguard against common security vulnerabilities and is recommended as a post-installation measure .</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V95m6a5Y02iuN9MW8-Um0A.png" /></figure><p><em>For all questions, press Y and click the Enter key at each prompt. This will remove some anonymous users and test database, disable remote root logins.</em></p><p><em>When you’re finished, test your mysql console by the ‘</em><strong><em>sudo mysql’</em></strong><em> command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxCNR0cyMPiZ2WY1Hvxc9w.png" /></figure><p><em>For exiting MySQL console, write ‘</em><strong><em>exit</em></strong><em>’:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7acRkO0JYM3kq9w7rXdTQ.png" /></figure><p><em>Your MySQL server now installed and secured</em></p><p><strong>STEP 3-&gt; Installing PHP</strong></p><p><em>The command ‘</em><strong><em>sudo apt install php8.1-fpm php-mysql</em></strong><em>’ installs PHP version 8.1 with the FastCGI Process Manager(FPM) for efficient handling of PHP requests. Additionally , it includes the MySQL extension(‘</em><strong><em>php-mysql</em></strong><em>’) to enable PHP to interact with MySQL databases. This is a common setup for web servers, facilitating the execution of dynamic PHP scripts and database connectivity</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*po0gbT5-W89z-dsc1NEoyQ.png" /></figure><p><em>Now, your PHP components installed .</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eda6f06bae48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>