<?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 Franck on Medium]]></title>
        <description><![CDATA[Stories by Franck on Medium]]></description>
        <link>https://medium.com/@kofrathur?source=rss-91068cfdb3e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*23Vi-uGzzPcIL3rQ</url>
            <title>Stories by Franck on Medium</title>
            <link>https://medium.com/@kofrathur?source=rss-91068cfdb3e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 12:06:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kofrathur/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[Pyramid Of Pain (Updated) TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@kofrathur/pyramid-of-pain-updated-tryhackme-walkthrough-ee0782b98273?source=rss-91068cfdb3e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0782b98273</guid>
            <dc:creator><![CDATA[Franck]]></dc:creator>
            <pubDate>Sun, 21 Apr 2024 21:24:33 GMT</pubDate>
            <atom:updated>2024-04-21T21:24:33.542Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Co-author:</strong> <em>danielborishounouvi@gmail.com</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngFGmLVggw8AdrfoCMxHdA.png" /></figure><p>Learn what is the Pyramid of Pain and how to utilize this model to determine the level of difficulty it will cause for an adversary to change the indicators associated with them, and their campaign.</p><p><strong>In this updated Lab, Here is the Practical Pyramid of Pain</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*9ca1q2T-g4SQW95T6QXNng.png" /><figcaption>Scroll down to see the resolved one</figcaption></figure><h3><strong>Task 1 Introduction</strong></h3><p>This well-renowned concept is being applied to cybersecurity solutions like <a href="https://gblogs.cisco.com/ca/2020/08/26/the-canadian-bacon-cisco-security-and-the-pyramid-of-pain/">Cisco Security</a>, <a href="https://www.sentinelone.com/blog/revisiting-the-pyramid-of-pain-leveraging-edr-data-to-improve-cyber-threat-intelligence/">SentinelOne</a>, and <a href="https://socradar.io/re-examining-the-pyramid-of-pain-to-use-cyber-threat-intelligence-more-effectively/">SOCRadar</a> to improve the effectiveness of CTI (Cyber Threat Intelligence), threat hunting, and incident response exercises.</p><p>Understanding the Pyramid of Pain concept as a Threat Hunter, Incident Responder, or SOC Analyst is important.</p><p>Are you ready to explore what hides inside the Pyramid of Pain?</p><p>Answer the questions below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9noMxOdJJZIAITzYaCFjw.png" /></figure><h3><strong>Task 2 Hash Values (Trivial)</strong></h3><p>As per Microsoft, the hash value is a numeric value of a fixed length that uniquely identifies data. A hash value is the result of a hashing algorithm. The following are some of the most common hashing algorithms:</p><ul><li><strong>MD5 (Message Digest, defined by </strong><a href="https://www.ietf.org/rfc/rfc1321.txt"><strong>RFC 1321</strong></a><strong>) </strong>— was designed by Ron Rivest in 1992 and is a widely used cryptographic hash function with a 128-bit hash value. MD5 hashes are <strong>NOT </strong>considered <strong>cryptographically secure</strong>. In 2011, the IETF published RFC 6151, <a href="https://datatracker.ietf.org/doc/html/rfc6151">“Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms</a>,” which mentioned a number of attacks against MD5 hashes, including the hash collision.</li><li><strong>SHA-1 (Secure Hash Algorithm 1, defined by </strong><a href="https://tools.ietf.org/html/rfc3174"><strong>RFC 3174</strong></a><strong>) </strong>— was invented by United States National Security Agency in 1995. When data is fed to SHA-1 Hashing Algorithm, SHA-1 takes an input and produces a 160-bit hash value string as a 40 digit hexadecimal number. <a href="https://csrc.nist.gov/news/2017/research-results-on-sha-1-collisions">NIST deprecated the use of SHA-1 in 2011</a> and banned its use for digital signatures at the end of 2013 based on it being susceptible to brute-force attacks. Instead, NIST recommends migrating from SHA-1 to stronger hash algorithms in the SHA-2 and SHA-3 families.</li><li><strong>The SHA-2 (Secure Hash Algorithm 2) — </strong>SHA-2 Hashing Algorithm was designed by The National Institute of Standards and Technology (NIST) and the National Security Agency (NSA) in 2001 to replace SHA-1. SHA-2 has many variants, and arguably the most common is SHA-256. The SHA-256 algorithm returns a hash value of 256-bits as a 64 digit hexadecimal number.</li></ul><p>A hash is not considered to be cryptographically secure if two files have the same hash value or digest.</p><p>Security professionals usually use the hash values to gain insight into a specific malware sample, a malicious or a suspicious file, and as a way to uniquely identify and reference the malicious artifact.</p><p>You’ve probably read ransomware reports in the past, where security researchers would provide the hashes related to the malicious or suspicious files used at the end of the report. You can check out <a href="https://thedfirreport.com/">The DFIR Report</a> and <a href="https://www.fireeye.com/blog/threat-research.html">FireEye Threat Research Blogs</a> if you’re interested in seeing an example.</p><p>Various online tools can be used to do hash lookups like <a href="https://www.virustotal.com/gui/">VirusTotal</a> and <a href="https://metadefender.opswat.com/?lang=en">Metadefender Cloud — OPSWAT</a>.</p><p><strong>VirusTotal:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKekniI_IFo66AcNAO2OpA.png" /></figure><p>Below the hash in the screenshot above, you can see the filename. In this case, it is “m_croetian.wnry”</p><p><strong>MetaDefender Cloud — OPSWAT:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zATHjs5hpmlW74gl-zzc7Q.png" /></figure><p>As you might have noticed, it is really easy to spot a malicious file if we have the hash in our arsenal. However, as an attacker, modifying a file by even a single bit is trivial, which would produce a different hash value. With so many variations and instances of known malware or ransomware, threat hunting using file hashes as the IOC (Indicators of Compromise) can become difficult.</p><p>Let’s take a look at an example of how you can change the hash value of a file by simply appending a string to the end of a file using echo: File Hash (Before Modification)</p><pre>PS C:\Users\THM\Downloads&gt; Get-FileHash .\OpenVPN_2.5.1_I601_amd64.msi -Algorithm MD5<br>Algorithm Hash                             Path                                                 <br>_________ ____                             ____                                                 <br>MD5       D1A008E3A606F24590A02B853E955CF7 C:\Users\THM\Downloads\OpenVPN_2.5.1_I601_amd64.msi</pre><p>File Hash (After Modification)</p><pre>PS C:\Users\THM\Downloads&gt; echo &quot;AppendTheHash&quot; &gt;&gt; .\OpenVPN_2.5.1_I601_amd64.msi<br>PS C:\Users\THM\Downloads&gt; Get-FileHash .\OpenVPN_2.5.1_I601_amd64.msi -Algorithm MD5<br>Algorithm Hash                             Path                                                 <br>_________ ____                             ____                                                 <br>MD5       9D52B46F5DE41B73418F8E0DACEC5E9F C:\Users\THM\Downloads\OpenVPN_2.5.1_I601_amd64.msi</pre><p>Answer the questions below</p><p><em>Analyse the report associated with the hash “b8ef959a9176aef07fdca8705254a163b50b49a17217a4ff0107487f59d4a35d” </em><a href="https://assets.tryhackme.com/additional/pyramidofpain/t3-virustotal.pdf"><em>here.</em></a><em> What is the filename of the sample?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3OULfAgh7tkyNfifcMOfIQ.png" /><figcaption><strong>Answer: Sales_Receipt 5606.xls</strong></figcaption></figure><h3><strong>Task 3 IP Address (Easy)</strong></h3><p>You may have learned the importance of an IP Address from the <a href="https://tryhackme.com/room/whatisnetworking">“What is Networking?” Room</a>.<a href="https://tryhackme.com/room/whatisnetworking"> </a>the importance of the IP Address. An IP address is used to identify any device connected to a network. These devices range from desktops, to servers and even CCTV cameras! We rely on IP addresses to send and receive the information over the network. But we are not going to get into the structure and functionality of the IP address. As a part of the Pyramid of Pain, we’ll evaluate how IP addresses are used as an indicator.</p><p>In the Pyramid of Pain, IP addresses are indicated with the color green. You might be asking why and what you can associate the green colour with?</p><p>From a defense standpoint, knowledge of the IP addresses an adversary uses can be valuable. A common defense tactic is to block, drop, or deny inbound requests from IP addresses on your parameter or external firewall. This tactic is often not bulletproof as it’s trivial for an experienced adversary to recover simply by using a new public IP address.</p><p>Malicious IP connections (<a href="https://app.any.run/tasks/a66178de-7596-4a05-945d-704dbf6b3b90">app.any.run</a>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*TmdQgy4EwPhGGATHm_1sWA.png" /></figure><p>One of the ways an adversary can make it challenging to successfully carry out IP blocking is by using Fast Flux.</p><p>According to <a href="https://blogs.akamai.com/2017/10/digging-deeper-an-in-depth-analysis-of-a-fast-flux-network-part-one.html">Akamai</a>, Fast Flux is a DNS technique used by botnets to hide phishing, web proxying, malware delivery, and malware communication activities behind compromised hosts acting as proxies. The purpose of using the Fast Flux network is to make the communication between malware and its command and control server (C&amp;C) challenging to be discovered by security professionals.</p><p>So, the primary concept of a Fast Flux network is having multiple IP addresses associated with a domain name, which is constantly changing. Palo Alto created a great fictional scenario to explain Fast Flux: <a href="https://unit42.paloaltonetworks.com/fast-flux-101/">“Fast Flux 101: How Cybercriminals Improve the Resilience of Their Infrastructure to Evade Detection and Law Enforcement Takedowns”</a></p><p><strong>Read the following report (generated from </strong><a href="https://any.run/"><strong>any.run</strong></a><strong>) for this sample </strong><a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf"><strong>here</strong></a><strong> to answer the questions below:</strong></p><p>Answer the questions below</p><p>Read the following<a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf"> report</a> to answer this question. What is the <strong>first IP address</strong> the malicious process (<strong>PID 1632</strong>) attempts to communicate with?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki4MYzh_0mgP0pIV0wsuKg.png" /><figcaption><strong>Answer: 50.87.136.52</strong></figcaption></figure><p>Read the following<a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf"> report</a> to answer this question. What is the <strong>first domain name</strong> the malicious process ((<strong>PID 1632</strong>) attempts to communicate with?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WREwL8PQy-UwO3TQyHK-Dw.png" /><figcaption><strong>Answer: craftingalegacy.com</strong></figcaption></figure><h3><strong>Task 4 Domain Names (Simple)</strong></h3><p>Let’s step up the Pyramid of Pain and move on to Domain Names. You can see the transition of colors — from green to teal.</p><p>Domain Names can be thought as simply mapping an IP address to a string of text. A domain name can contain a domain and a top-level domain (<a href="http://evilcorp.com/">evilcorp.com</a>) or a sub-domain followed by a domain and top-level domain (<a href="http://tryhackme.evilcorp.com/">tryhackme.evilcorp.com</a>). But we will not go into the details of how the Domain Name System (DNS) works. You can learn more about DNS in this <a href="https://tryhackme.com/room/dnsindetail">“DNS in Detail” Room</a>.</p><p>Domain Names can be a little more of a pain for the attacker to change as they would most likely need to purchase the domain, register it and modify DNS records. Unfortunately for defenders, many DNS providers have loose standards and provide APIs to make it even easier for the attacker to change the domain.</p><p><strong>Malicious Sodinokibi C2 (Command and Control Infrastructure) domains:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbN91mHlmteoXtYXDTqzYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*R_GGVOyYVrG8DVrmDNzQnQ.png" /></figure><p>Can you spot anything malicious in the above screenshot? Now, compare it to the legitimate website view below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*O54exwPeRYhumQlOPlUCMw.png" /></figure><p>This is one of the examples of a Punycode attack used by the attackers to redirect users to a malicious domain that seems legitimate at first glance.</p><p>What is Punycode? As per <a href="https://www.wandera.com/punycode-attacks/">Wandera</a>, “Punycode is a way of converting words that cannot be written in ASCII, into a Unicode ASCII encoding.”</p><p>What you saw in the URL above is adıdas.de which has the Punycode of <a href="http://xn--addas-o4a.de/">http://xn--addas-o4a.de/</a></p><p>Internet Explorer, Google Chrome, Microsoft Edge, and Apple Safari are now pretty good at translating the obfuscated characters into the full Punycode domain name.</p><p>To detect the malicious domains, proxy logs or web server logs can be used.</p><p>Attackers usually hide the malicious domains under <strong>URL Shorteners. </strong>A URL Shortener is a tool that creates a short and unique URL that will redirect to the specific website specified during the initial step of setting up the URL Shortener link. According to <a href="https://cofense.com/url-shorteners-fraudsters-friend/">Cofense</a>, attackers use the following URL Shortening services to generate malicious links:</p><ul><li>bit.ly</li><li>goo.gl</li><li>ow.ly</li><li>s.id</li><li>smarturl.it</li><li>tiny.pl</li><li>tinyurl.com</li><li>x.co</li></ul><p>You can see the actual website the shortened link is redirecting you to by appending “+” to it (see the examples below). Type the shortened URL in the address bar of the web browser and add the above characters to see the redirect URL.</p><p><strong>NOTE: The examples of the shortened links below are non-existent.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4c7tX4SCb4H4ELSRUpzcw.png" /></figure><p><strong>Viewing Connections in Any.run:</strong></p><p>Because Any.run is a sandboxing service that executes the sample, we can review any connections such as HTTP requests, DNS requests or processes communicating with an IP address. To do so, we can look at the “networking” tab located just below the snapshot of the machine.</p><p><em>Please note</em><strong>:</strong> you should be extremely cautious about visiting any of the IP addresses or HTTP requests made in a report. After all, these are behaviours from the malware sample — so they’re probably doing something dangerous!</p><p><strong>HTTP Requests:</strong></p><p>This tab shows the recorded HTTP requests since the detonation of the sample. This can be useful to see what resources are being retrieved from a webserver, such as a dropper or a callback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ho3BGqjf4NszcdHUPocJA.png" /></figure><p><strong>Connections:</strong></p><p>This tab shows any communications made since the detonation of the sample. This can be useful to see if a process communicates with another host. For example, this could be C2 traffic, uploading/downloading files over FTP, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pcvd3RYUVPIJhsn5ofvLug.png" /></figure><p><strong>DNS Requests:</strong></p><p>This tab shows the DNS requests made since the detonation of the sample. Malware often makes DNS requests to check for internet connectivity (I.e. if It can’t reach the internet/call home, then it’s probably being sandboxed or is useless).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhjmipvkye_q9qURf44gJA.png" /></figure><p>Answer the questions below</p><p>Go to <a href="https://app.any.run/tasks/a66178de-7596-4a05-945d-704dbf6b3b90">this report on app.any.run</a> and provide the first <strong>suspicious</strong> URL request you are seeing, you will be using this report to answer the remaining questions of this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RItnDS6N-a3SoayO8pwekg.png" /><figcaption><strong>Answer: craftingalegacy.com</strong></figcaption></figure><p>What term refers to an address used to access websites?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBR2Q9TwPRgpMpjh7lo6cQ.png" /><figcaption><strong>Answer: Domain Name</strong></figcaption></figure><p>What type of attack uses Unicode characters in the domain name to imitate the a known domain?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG7eWuRCf7HRnRQkWs2Gkw.png" /><figcaption><strong>Answer: Punnycode attack</strong></figcaption></figure><p>Provide the redirected website for the shortened URL using a preview: <a href="https://tinyurl.com/bw7t8p4u">https://tinyurl.com/bw7t8p4u</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lb3u9K5O_gV-e4GeHGFjTQ.png" /><figcaption><strong>Answer: </strong><a href="https://tryhackme.com/"><strong>https://tryhackme.com/</strong></a></figcaption></figure><h3><strong>Host Artifacts (Annoying)</strong></h3><p>Let’s take another step up to the yellow zone.</p><p>On this level, the attacker will feel a little more annoyed and frustrated if you can detect the attack. The attacker would need to circle back at this detection level and change his attack tools and methodologies. This is very time-consuming for the attacker, and probably, he will need to spend more resources on his adversary tools.</p><p>Host artifacts are the traces or observables that attackers leave on the system, such as registry values, suspicious process execution, attack patterns or IOCs (Indicators of Compromise), files dropped by malicious applications, or anything exclusive to the current threat.</p><p><strong>Suspicious process execution from Word:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*NweTRI1MtAU1mQDnid9jpw.png" /></figure><p><strong>Suspicious events followed by opening a malicious application:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccwbvAsWnUSkk-KAu2HAyA.png" /></figure><p><strong>The files modified/dropped by the malicious actor:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuYdpzkAxS7XlaTvos0wHA.png" /></figure><p>Answer the questions below</p><p>A security vendor has analysed the malicious sample for us. Review the report <a href="https://assets.tryhackme.com/additional/pyramidofpain/task5-report.pdf">here</a> to answer the following questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMBFSDpjZsuGEIofgX-j9w.png" /><figcaption><strong>No answer needed</strong></figcaption></figure><p>A process named <strong>regidle.exe</strong> makes a POST request to an IP address based in the United States (US) on <strong>port 8080</strong>. What is the IP address?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REG9st2ibwBfwL8p077AoA.png" /><figcaption><strong>Answer: 96.126.101.6</strong></figcaption></figure><p>The actor drops a malicious executable (EXE). What is the name of this executable?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJ_utx9cOnU1Pk0fhwU5-g.png" /><figcaption><strong>Answer: G_jugk.exe</strong></figcaption></figure><p>Look at this <a href="https://assets.tryhackme.com/additional/pyramidofpain/vtotal2.png">report</a> by Virustotal. How many vendors determine this host to be malicious?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPlvUFWbhQY0oa2dav15nQ.png" /><figcaption><strong>Answer: 9</strong></figcaption></figure><h3><strong>Task 6 Network Artifacts (Annoying)</strong></h3><p>Network Artifacts also belong to the yellow zone in the Pyramid of Pain. This means if you can detect and respond to the threat, the attacker would need more time to go back and change his tactics or modify the tools, which gives you more time to respond and detect the upcoming threats or remediate the existing ones.</p><p>A network artifact can be a user-agent string, C2 information, or URI patterns followed by the HTTP POST requests.An attacker might use a User-Agent string that hasn’t been observed in your environment before or seems out of the ordinary. The User-Agent is defined by <a href="https://datatracker.ietf.org/doc/html/rfc2616#page-145">RFC2616</a> as the request-header field that contains the information about the user agent originating the request.</p><p>Network artifacts can be detected in Wireshark PCAPs (file that contains the packet data of a network) by using a network protocol analyzer such as <a href="https://www.wireshark.org/docs/wsug_html_chunked/AppToolstshark.html">TShark</a> or exploring IDS (Intrusion Detection System) logging from a source such as <a href="https://www.snort.org/">Snort</a>.</p><p>HTTP POST requests containing suspicious strings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBYLPiCb6isNZfyFnhXiuA.png" /></figure><p>Let’s use TShark to filter out the User-Agent strings by using the following command: tshark --Y http.request -T fields -e http.host -e http.user_agent -r analysis_file.pcap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*npjFCmGVuNDBnDTngORyRg.png" /></figure><p>These are the most common User-Agent strings found for the <a href="https://www.mcafee.com/blogs/other-blogs/mcafee-labs/emotet-downloader-trojan-returns-in-force/">Emotet Downloader Trojan</a></p><p>If you can detect the custom User-Agent strings that the attacker is using, you might be able to block them, creating more obstacles and making their attempt to compromise the network more annoying.</p><p>Answer the questions below</p><p>What browser uses the User-Agent string shown in the screenshot above?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPez0_BczFLOCuHmFiQdKw.png" /><figcaption><strong>Answer: Internet Explorer</strong></figcaption></figure><p>How many POST requests are in the screenshot from the pcap file?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-PiuaUS_3HxTbY4uiL9QQ.png" /><figcaption><strong>Answer: 6</strong></figcaption></figure><p>Congratulations! We have made it to the challenging part for the adversaries!</p><p>At this stage, we have levelled up our detection capabilities against the artifacts. The attacker would most likely give up trying to break into your network or go back and try to create a new tool that serves the same purpose. It will be a game over for the attackers as they would need to invest some money into building a new tool (if they are capable of doing so), find the tool that has the same potential, or even gets some training to learn how to be proficient in a certain tool.</p><p>Attackers would use the utilities to create malicious macro documents (maldocs) for spearphishing attempts, a backdoor that can be used to establish <a href="https://www.varonis.com/blog/what-is-c2/">C2 (Command and Control Infrastructure)</a>, any custom .EXE, and .DLL files, payloads, or password crackers.</p><p><strong>A Trojan dropped the suspicious “Stealer.exe” in the Temp folder:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*aJFhVTRcvpWlEvzWc0dADQ.png" /></figure><p><strong>The execution of the suspicious binary:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*t5choDRSVx41_EdquwGq_g.png" /></figure><p>Antivirus signatures, detection rules, and YARA rules can be great weapons for you to use against attackers at this stage.</p><p><a href="https://bazaar.abuse.ch/">MalwareBazaar </a>and <a href="https://malshare.com/">Malshare </a>are good resources to provide you with access to the samples, malicious feeds, and YARA results — these all can be very helpful when it comes to threat hunting and incident response.</p><p>For detection rules,<a href="https://tdm.socprime.com/"> SOC Prime Threat Detection Marketplace </a>is a great platform, where security professionals share their detection rules for different kinds of threats including the latest CVE’s that are being exploited in the wild by adversaries.</p><p>Fuzzy hashing is also a strong weapon against the attacker’s tools. Fuzzy hashing helps you to perform similarity analysis — match two files with minor differences based on the fuzzy hash values. One of the examples of fuzzy hashing is the usage of <a href="https://ssdeep-project.github.io/ssdeep/index.html">SSDeep</a>; on the SSDeep official website, you can also find the complete explanation for fuzzy hashing.</p><p>Example of SSDeep from VirusTotal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sycgRFQ26s_I0hHGvD4ukQ.png" /></figure><p>Answer the questions below</p><p>Provide the method used to determine similarity between the files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwLmeoX2cKA_5Nti9A_p7w.png" /><figcaption><strong>Answer: Fuzzy Hashing</strong></figcaption></figure><p>Provide the alternative name for fuzzy hashes without the abbreviation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jc_HdTD6oCbJ-xKNhuQcmg.png" /><figcaption><strong>Answer: context triggered piecewise hashes</strong></figcaption></figure><h3><strong>Task 8 TTPs (Tough)</strong></h3><p>It is not over yet. But good news, we made it to the final stage or the apex of the Pyramid of Pain!</p><p>TTPs stands for Tactics, Techniques &amp; Procedures. This includes the whole <a href="https://attack.mitre.org/">MITRE ATT&amp;CK Matrix</a>, which means all the steps taken by an adversary to achieve his goal, starting from phishing attempts to persistence and data exfiltration.</p><p>If you can detect and respond to the TTPs quickly, you leave the adversaries almost no chance to fight back. For, example if you could detect a <a href="https://www.beyondtrust.com/resources/glossary/pass-the-hash-pth-attack">Pass-the-Hash</a> attack using Windows Event Log Monitoring and remediate it, you would be able to find the compromised host very quickly and stop the lateral movement inside your network. At this point, the attacker would have two options:</p><ol><li>Go back, do more research and training, reconfigure their custom tools</li><li>Give up and find another target</li></ol><p>Option 2 definitely sounds less time and resource-consuming.</p><p>Answer the questions below</p><p>Navigate to ATT&amp;CK Matrix webpage. How many techniques fall under the Exfiltration category?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtPbD877GZHLIaibo2HiNw.png" /><figcaption><strong>Answer: 9</strong></figcaption></figure><p>Chimera is a China-based hacking group that has been active since 2018. What is the name of the commercial, remote access tool they use for C2 beacons and data exfiltration?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1byD37IjJwSUcJWrwhaRYQ.png" /><figcaption><strong>Answer: Cobalt Strike</strong></figcaption></figure><p><strong>Task 9 Practical: The Pyramid of Pain</strong></p><p>Deploy the static site attached to this task and place the prompts into the correct tiers in the pyramid of pain!</p><p>Once you are sure, submit your answer on the static site to retrieve a flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*Gyr9oh_3kzLxlByrSmNtGA.png" /><figcaption><strong>Launch the site</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*T7jKlvLQIcl5NSbsK8z7fg.png" /><figcaption><strong>Rely statements to corresponding answers in the pyramid</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*0dXi6eqef7oVEodNZ-L0Ww.png" /><figcaption><strong>Capture the flag</strong></figcaption></figure><p>Answer the questions below</p><p>Complete the static site. What is the flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQpNdAja8_nOve5qwfAs9Q.png" /><figcaption><strong>Answer: THM{PYRAMIDS_COMPLETE}</strong></figcaption></figure><h3><strong>Task 10 Conclusion</strong></h3><p>Now you have learned the concept of the Pyramid of Pain. Maybe it is time to apply this in practice. Please, navigate to the Static Site to perform the exercise.</p><p>You can pick any APT (Advanced Persistent Threat Groups) as another exercise. A good place to look at would be <a href="https://www.fireeye.com/current-threats/apt-groups.html">FireEye Advanced Persistent Threat Groups</a>. When you have determined the APT Group you want to research — find their indicators and ask yourself: “ What can I do or what detection rules and approach can I create to detect the adversary’s activity?”, and “Where does this activity or detection fall on the Pyramid of Pain?”</p><p>As David Blanco states, “<strong><em>the amount of pain you cause an adversary depends on the types of indicators you are able to make use of</em></strong>”.</p><p>Answer the questions below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VrqGoCwo5hajbGwmLx5Ubg.png" /><figcaption><strong>No anser needed</strong></figcaption></figure><p><strong>Thanks !!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0782b98273" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>