<?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 Supragya Karki on Medium]]></title>
        <description><![CDATA[Stories by Supragya Karki on Medium]]></description>
        <link>https://medium.com/@supragya-karki?source=rss-f8fb95fb821e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dxYltaRyGnImYchh</url>
            <title>Stories by Supragya Karki on Medium</title>
            <link>https://medium.com/@supragya-karki?source=rss-f8fb95fb821e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:38:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@supragya-karki/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[Cyber Kill Chain —  Offensive and Defensive Approach]]></title>
            <link>https://medium.com/cryptogennepal/cyber-kill-chain-offensive-and-defensive-approach-22033e37a340?source=rss-f8fb95fb821e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22033e37a340</guid>
            <category><![CDATA[made4security]]></category>
            <category><![CDATA[cyberdéfense]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-kill-chain]]></category>
            <category><![CDATA[cryptogennepal]]></category>
            <dc:creator><![CDATA[Supragya Karki]]></dc:creator>
            <pubDate>Sun, 05 Sep 2021 17:26:46 GMT</pubDate>
            <atom:updated>2021-09-12T09:36:14.254Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Cyber Kill Chain — Offensive and Defensive Approach</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XGpoWSXiHHeMq5OM.jpeg" /></figure><p>This is the follow-up blog of the previous one: <em>‘</em><a href="https://medium.com/cryptogennepal/eli5-explain-like-im-five-cyber-kill-chain-f572180cdc2c"><strong><em>ELI5: Explain like I’m Five — Cyber Kill Chain</em></strong></a><strong><em>’. C</em></strong>heck it out if you haven’t already. While the previous blog was to provide clear concept and insight on the topic<em> </em><strong>Cyber Kill Chain</strong>, this particular blog is more focused on the <strong><em>Offensive and Defensive Approaches </em></strong>of this framework. Let me start with a short background.</p><p>The term ‘kill chain’ originates from the military and defines the steps an enemy uses to attack a target. In 2011, Lockheed Martin took this military model and used it to define the steps used in today’s cyber-attacks. Since, the idea of interrupting the adversaries’ attack activity or strategy is considered as an act of defense, the Cyber kill chain concept was introduced by Mr. Martin as a cybersecurity framework that offers a defensive method to deal with the intrusions in cyber space.</p><p>Since it first emerged, various versions of the cyber kill chain have been released, including AT&amp;T’s <a href="https://www.alienvault.com/blogs/security-essentials/the-internal-cyber-kill-chain-model"><em>Internal Cyber Kill Chain Model</em></a> and the <a href="https://sgros-students.blogspot.com/2019/01/mitre-att-and-unified-kill-chain.html"><em>Unified Kill Chain</em></a>, which was developed to overcome common critiques against the traditional cyber kill chain, by uniting and extending Lockheed Martin’s kill chain and MITRE’s ATT&amp;CK framework. However, Lockheed Martin’s model continues to be the most widely used till date. It also has evolved significantly in order to anticipate and recognize insider threats much better, detect various other attack techniques like advanced ransomware, APTs and social engineering.</p><p>As stated in the previous blog, the Kill Chain Model is designed in 7 different stages starting from reconnaissance and reaching to the action on objective. Stopping the adversaries at any stage breaks the chain of the attack which is an actual goal of cyber defenders. The figure below portrays the 7 stages of kill chain framework with brief description of each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*l9ccExnOaaC5PBWW_myW9w.png" /></figure><p>Mapping with the figure above, the further section now points out the objective (Goal) of an attacker (adversary) in each stages followed by their different approaches (Offensive approach). Also, some of the possible defensive approaches which can help in the breaking of cyber kill chain are listed for each.</p><h3><strong>Cyber Kill-Chain: Offensive and Defensive Approach</strong></h3><blockquote><strong><em>Stage 1: Reconnaissance</em></strong></blockquote><blockquote><strong>Goal: </strong>To identify the target’s weakness and gather information actively and passively.</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Planning phase of their operation.</li><li>Conduct passive research through social media, company websites, conference, WHOIS, Google, Shodan, other internet facing servers</li><li>Active recon through Nmap, port scanning, banner grabbing and other vulnerability scanners.</li><li>Provides knowledge about the potential target which helps them understand which targets will enable them to meet their objectives so that they can plan further.</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Limit Public Information</li><li>Use social media to the acceptable level exposing limited information</li><li>Remove and modify public server error messages</li><li>Disable unused ports and services to reduce the entry points for attackers</li><li>Use of Honeypots, Firewalls, IPS, TOR and 3rd party VPN</li><li>Monitor for suspicious network traffic</li><li>Detecting reconnaissance when it happens can be difficult, but when the defenders discover the recon attacks, it can reveal the intent of the adversaries.</li></ul><blockquote><strong><em>Stage 2: Weaponization</em></strong></blockquote><blockquote><strong>Goal: </strong>To prepare the operation by designing a backdoor and a penetration plan to exploit the weakness.</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Preparation and staging phase of their operation.</li><li>Use of automated tools like Metasploit, Veil Framework, Social engineering Toolkit, Exploit-DB, Burpsuit, Aircrack, SQLMAP, Wapiti, etc.</li><li>Generate malware, create deliverable payloads, select the backdoor implant and appropriate command and control infrastructure for operation.</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Administrative control like Patch Management</li><li>Disable office macros, Browser plugins and Java script to reduce vulnerability exposure</li><li>End point security, Antivirus and IDS for protection against exploit attempts</li><li>Email security like antivirus and anti-spam</li><li>Audit logging and monitoring</li><li>Though weaponization can’t be detected as it happens, they can be inferred by collecting and analyzing malware artifacts which is the most durable &amp; resilient defenses.</li></ul><blockquote><strong><em>Stage 3: Delivery</em></strong></blockquote><blockquote><strong>Goal: </strong>Launch the operation by transmitting weapon to the target</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Convey the malware to the target through various mediums and interactions like social engineering techniques, malicious websites, malicious email attachments, USB stick, social media interactions, watering hole websites or direct web servers.</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>The first opportunity for defenders to block the operation or reduce the effectiveness of intrusion attempts.</li><li>User awareness on good security practices</li><li>Anti-social engineering campaigns</li><li>Endpoint security, Intrusion prevention and detection systems</li><li>Email authentication methods like DKIM and SPF to detect spoof emails</li><li>Web filtering and DNS filtering</li><li>No provision of ‘Admin’ right to the users</li><li>Disabling USB by administrator</li></ul><blockquote><strong><em>Stage 4: Exploitation</em></strong></blockquote><blockquote><strong>Goal: </strong>Attack execution to gain access to the targeted system or network</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Takes an advantage of weakness in an application or a system</li><li>Buffer overflow, SQL injection and JAVA script hijacking</li><li>Trigger the program code of malware to exploit the target’s vulnerability</li><li>The phrase “zero day” refers to the exploit code used in just this step.</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Hardening endpoint devices</li><li>Data execution prevention feature in both software and hardware systems</li><li>Anti-exploit feature in anti-virus solutions</li><li>Regular vulnerability scanning and penetration testing, user awareness training, secure coding training, etc. to stop zero-day exploits at this stage.</li><li>Use of sandbox as a post-infection tools to detect exploit after execution. It helps to find the first point of infection (Patient zero) and then block the malicious file to protect rest of the users and devices in the network.</li></ul><blockquote><strong><em>Stage 5: Installation</em></strong></blockquote><blockquote><strong>Goal: </strong>To gain Persistence access</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Installs a persistent backdoor like a web shell on a web server or implant in the victim environment to maintain access for an extended time period</li><li>DLL Hijacking, injecting Meterpreter and similar payloads</li><li>Install Remote access tools (RATs)</li><li>Execute PowerShell commands and perform Registry changes</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Use CHROOT in Linux based system to isolate processes</li><li>Disable PowerShell when not required</li><li>Maintain Endpoint instrumentation like UBA and EDR to detect and log the installation of any unauthorized program as well as monitor any changes to registries and system processes.</li><li>Follow the Incident response SOPs such as severity identification, infected system isolation, wiping out infected devices from the network, making changes to the credentials used, etc. after the detection of adversary installation.</li><li>Perform malware analysis and look at the installation process to come up with new endpoint mitigations</li><li>Restore the system to the good state after responding to the incident</li></ul><blockquote><strong><em>Stage 6: Command and control (C&amp;C)</em></strong></blockquote><blockquote><strong>Goal: </strong>Remote control of the system by the attacker</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Malware opens a two-way communications channel to C2 infrastructure and enables the adversary to give remote covert instructions to the compromised devices.</li><li>C2 server acts as the place where all the data can be exfiltrated</li><li>Most common C2 channels are over web, DNS, and email protocols</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Limiting the possible damage with Network segmentation and Micro segmentation as it makes it harder for adversarial lateral movements, makes it easy to detect using audit logs and isolate the infected user until verified as clean and authenticated</li><li>C2 infrastructure discovery thorough malware analysis</li><li>Customizing blocks of C2 protocols on web proxies, DNS sink holing, etc. can assist in blocking the channel.</li><li>Look for known bad C&amp;C servers in NGFW database and Threat Intelligence platform</li><li>Use of layer 7 Application control firewall to block commonly known remote access tools like telnet, SSH, PowerShell, netcat, RDP, and other protocols.</li><li>For post-detection, observe IOCs collected from endpoint devices or SIEM devices with an IOC feeds</li><li>This stage is the defender’s last best chance to block the operation by blocking the C2 channel. Defenders can avoid the impact if adversaries are unable to issue commands.</li></ul><blockquote><strong><em>Stage 7: Actions on Objective</em></strong></blockquote><blockquote><strong>Goal: </strong>To execute the action for achieving the desired goal</blockquote><p><strong>Adversarial Approach:</strong></p><ul><li>Take an action to fulfill their mission’s purpose</li><li>Might be sensitive data exfiltration, Encryption for ransom, Internal reconnaissance, political reasons, lateral movement to go after more important system in the network or even data destruction.</li></ul><p><strong>Defensive Approach:</strong></p><ul><li>Detect this stage as quickly as possible by using forensic evidence and incident response playbook</li><li>Immediate analyst response to all cyber kill chain alerts and network packet captures for damage assessment.</li><li>Use of Endpoint tools like Data Leakage Prevention (DLP) and User Behavior Analysis (UBA) as they have complementary features to detect and prevent specific files from moving off the network</li><li>Network segmentation is important to make it harder for lateral movement in the internal network</li><li>Follow the ‘Zero Trust Security Model’ and treat everyone as untrusted until proven otherwise. This is very effective at detecting infected machine, further assessment, control, and recovery operations.</li></ul><h3>Conclusion</h3><p>The kill chain teaches us that, whereas the adversaries must complete all steps in order to succeed, we need to simply break the chain at any point to stop them. Mostly, endpoints allow attackers to gain access to an organization’s most valuable assets remotely from their homes. Thus, blocking attackers at the endpoint dramatically reduces the chances of any cyber attack succeeding. Also, security awareness is one of the most important security controls, up there with the likes of encryption, secure passwords, data loss prevention, anti-virus, intrusion detection and prevention systems, vendor risk management, attack surface management and so on.</p><p>By understanding the goal of attackers and their techniques through seven stages of the cyber kill chain, we can set forward the defensive approaches as mentioned above which can help prevent the insider threats, data breaches, privilege escalation, exploitation of vulnerabilities, phishing, denial of service, social engineering, malware, ransomware, and a diverse of other cyber threats.</p><blockquote><strong><em>Link to my previous blog:</em></strong> <a href="https://medium.com/cryptogennepal/eli5-explain-like-im-five-cyber-kill-chain-f572180cdc2c">https://medium.com/cryptogennepal/eli5-explain-like-im-five-cyber-kill-chain-f572180cdc2c</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22033e37a340" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/cyber-kill-chain-offensive-and-defensive-approach-22033e37a340">Cyber Kill Chain —  Offensive and Defensive Approach</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ELI5: Explain like I’m Five —  Cyber Kill Chain]]></title>
            <link>https://medium.com/cryptogennepal/eli5-explain-like-im-five-cyber-kill-chain-f572180cdc2c?source=rss-f8fb95fb821e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f572180cdc2c</guid>
            <category><![CDATA[defense]]></category>
            <category><![CDATA[cryptogennepal]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-kill-chain]]></category>
            <category><![CDATA[eli5]]></category>
            <dc:creator><![CDATA[Supragya Karki]]></dc:creator>
            <pubDate>Sat, 07 Aug 2021 09:40:09 GMT</pubDate>
            <atom:updated>2021-09-05T17:36:07.030Z</atom:updated>
            <content:encoded><![CDATA[<h3>ELI5: Explain like I’m Five — <strong>Cyber Kill Chain</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*qagauzO__-Jn2wyk.jpg" /></figure><p>In the Cyber security field, one must be aware of the methods and strategies used by cybercriminals in order to protect, detect attacks and fight against them with appropriate countermeasures. This is where <a href="https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html"><strong><em>Cyber Kill Chain</em></strong></a><strong><em> </em></strong>framework by Lockheed Martin comes into play. In this short blog, I have given a simple explanation to the Cyber Kill Chain concept based upon the phrase <strong><em>“Explain Like I’m 5”,</em></strong> such that anyone without the knowledge of related field can also get the sense of this concept.</p><blockquote><strong>ELI5: Explain Like I’m 5 — Here it goes….</strong></blockquote><p>When a robber decides to rob a house, he can’t just get inside the house through front door and take everything he wants and return. It’s not that simple! He will be caught easily by anyone around. Thus, in order to rob the house without being caught, he plans for it first. He gathers information of everyone in the house, number of people, their occupation, what time might be suitable for robbery, what are the things to rob, etc. He does preparation of things he need while getting inside the house like face mask, bag, mobile to communicate his partners, rope to climb, weapon just in case of need to threaten, etc. Then in a suitable time of a day or night, he gets inside the house through any means like window, chimney, back door or rooftop. After getting in, he moves laterally inside every room to locate his desired assets to take or he might coordinate with some one of his partners via phone or message and do accordingly. Finally, as per the plan, he will rob the house, take the items he wanted like cash, jewelries, tech devices, etc. and get out safely without being caught. This whole process is what we call kill-chain model for robbery.</p><p>Now, when this robbery kill-chain model is given to the police or people of that house prior to such incidents, what will happen? They will definitely harden the security of the house, blocks every possible entrance except for one they need, keep security cameras, keep the cash and jewelries in the safe vault or in the bank, police will search and look for robbers every night and put them into prison if found. Even if the robbers manage to get inside the house, they will get caught in short time as the family members already have the idea of kill-chain as well as the possible next step. So, this makes the life of robbers very difficult. This is what we call breaking the Kill-chain or defensive approach.</p><p>So, basically a Kill Chain is the continuous process or steps for completing any unethical task or a malicious mission successfully. And, when this concept is associated with the Cyber security, it is called to be the<strong> <em>Cyber Kill Chain</em></strong>.</p><p>The Cyber Kill Chain is a model for describing the steps an attacker must complete to carry a successful attack. This model provides the better understanding of adversarial tactics, procedures and techniques applied within the seven stages of cyberattack and identifies their best exploiting strategies that they might execute for achieving their goal. The theory is that by understanding the different stages of an attack process, security teams will have a better chance of stopping them or forcing them to make enough noise to be easily detected. Note that Cyber kill chain model is not made to help attackers, rather it is designed to assist the cyber defenders, blue teams, and purple teams to fight against the malicious actors and intruders.</p><p>The following chain diagram portrays the seven stages of Cyber Kill Chain by Lockheed Martin where I have mapped each stages with the steps of Robbery kill chain (ELI5 example explained above). Rectangular box denotes the example part for corresponding stages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qavXAOKyYOzCaaQR_OjLIA.png" /><figcaption>Mapping the ELI5 example of Robbery Kill Chain with Cyber Kill Chain Model</figcaption></figure><p>In the next blog, I have focused particularly on the Cyber Kill Chain model in detail along with the <strong><em>Offensive and Defensive Approaches</em>.</strong></p><blockquote><strong><em>Link to my Next blog:</em> </strong><a href="https://supragya-karki.medium.com/cyber-kill-chain-offensive-and-defensive-approach-22033e37a340">https://supragya-karki.medium.com/cyber-kill-chain-offensive-and-defensive-approach-22033e37a340</a></blockquote><p>Know more about us on <a href="https://www.cryptogennepal.com/">our website.</a></p><p>#PowerShell #Made4Security #StaySayCure #PurpleTeam #CyberSecurity #infosec #InformationSecurity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f572180cdc2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/eli5-explain-like-im-five-cyber-kill-chain-f572180cdc2c">ELI5: Explain like I’m Five —  Cyber Kill Chain</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SIEM Basics: EPS and MPS for Selecting Suitable EDR Solution]]></title>
            <link>https://medium.com/cryptogennepal/eps-and-mps-for-selecting-suitable-edr-solution-b383ae132f66?source=rss-f8fb95fb821e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b383ae132f66</guid>
            <category><![CDATA[endpoint-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[messagepersecond]]></category>
            <category><![CDATA[eventspersecond]]></category>
            <category><![CDATA[cryptogennepal]]></category>
            <dc:creator><![CDATA[Supragya Karki]]></dc:creator>
            <pubDate>Sat, 26 Jun 2021 13:46:07 GMT</pubDate>
            <atom:updated>2021-06-27T05:06:01.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtZ_YQXaCHXB9fqBtjVzng.png" /></figure><p>In this blog, I’m going to specifically write on <strong>Events Per Second (EPS)</strong> and <strong>Message Per Second (MPS)</strong> factors along with their prime importance in selecting the <strong>Endpoint Detection and Response Solution (EDR)</strong>. The purpose of this article is to impart my knowledge to everyone thinking of purchasing any EDR tool, in order to assist them in tool evaluation and decision-making process.</p><blockquote><strong>What Does Events Per Second (EPS) mean?</strong></blockquote><p><strong>EPS is to security what miles per hour is to a sports car.</strong></p><p>In network security, Events Per Second (EPS) is a measurement that is used to convey how fast a network generates data from its security devices like firewalls, Intrusion Prevention Systems (IPS) Intrusion Detection Systems (IDS), servers, routers, etc. as well as how fast an EDR (Endpoint Detection and Response) product can correlate data from those devices. It states the number of events, activities or processes that occur on any IT appliance in a certain time period.</p><p>EPS is an easy concept to grasp since, in the context of EDR devices, it’s simply a number used to quantify the results that can be produced by a complex real-time correlation process. Networks and their security devices generate a certain number of logs or events per second, such that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*OBAiSHuQ3S-aFdbSQjyMtQ.png" /></figure><p>It is essential to match the EPS generated by our network with the EPS that can be correlated by our EDR purchase. The bottom line is that EDR products with higher EPS numbers at each of the relevant transition points (reception, normalization, correlation, and display) are more likely to meet the expectations and performance requirements of most networks. So, EPS can be taken as a method to review and evaluate the usability statistics of a hardware device, software application, network medium, Internet application or a security device.</p><blockquote><strong>EPS in Wazuh</strong></blockquote><p><a href="https://wazuh.com/"><em>Wazuh</em></a> is an EDR product, an Open Source Host and Endpoint Security System, which provides new detection and compliance capabilities, extending the core functionality of <a href="https://www.ossec.net/"><em>OSSEC (Open Source Host-based Intrusion Detection System Security)</em></a> that includes log analysis, integrity checking, registry monitoring, rootkit detection, time-based alerting, and active response. In Wazuh, Events Per Second (EPS) is the maximum rate at which events are pulled from the agent’s buffer and transmitted to its manager. Generally, Wazuh can generate up to 1000 events per second.</p><p>In order to set the desired value, we need to edit the <em>&lt;client_buffer&gt;</em> section that is found in the configuration file of Wazuh agents. Below is the respective path to the ossec.conf file:</p><p><em>Linux agent:</em> /var/ossec/etc/ossec.conf</p><p><em>Windows agent:</em> C:\Program Files (x86)\ossec-agent\ossec.conf</p><p>As shown in the figure below, the default is a generous 500 EPS, but this should be set with consideration of the capacity of the network and the number of agents a manager is serving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*MIVzAO5su7499h-UQ3BWQg.png" /><figcaption><em>Default configuration of client_buffer</em> section in ossec.conf file</figcaption></figure><p>For more details, refer to the <a href="https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/client_buffer.html"><em>client_buffer</em></a> section of Wazuh official documentation.</p><blockquote><strong>What Does Message Per Second (MPS) mean?</strong></blockquote><p>On the surface, it sounds simple. If we have an application that sends 100 messages to another application and it takes one second for that, then it is 100 messages per second. Virtually, all messaging benchmarks work this way; some number of messages pass from one application to another through a messaging system. However, not all real-world applications work this way.</p><p>If we have a SMS Gateway infrastructure capable of sending and receiving a volume of 5 million messages per second, it means it has the message sending and receiving capacity of 5 million. It is a message per second capacity of the SMS gateway. i.e. 5 million per second. This showcases the scalability and capacity of the SMS gateway to handle large volume of messages within a second.</p><p>Here, the message throughput is the broader term which is defined as the number or quantity of messages processed over a given interval of time. SMS throughput is the measurement of data transfer between the connections measured by message per second. So, sending a message per second means 3600 messages per hour. The higher the throughput the more messages we can send in a timely manner.</p><p>The actual throughput speed we get depends on a couple of things:</p><p>— The connection speed to our provider</p><p>— The processing speed of our provider</p><p>— The speed and connection speed to our message database</p><p>— The CPU speed of our server</p><h3><strong>Conclusion</strong></h3><p>For every organization, EPS/MPS is an important approach for sizing their EDR as well as SIEM solution accurate and operating it efficiently. Using EPS/MPS helps to scope and determine an appropriate EDR device eliminating the risk of oversizing (paying too much) or under sizing (losing data) the solution. Also, understanding the EPS/MPS will better allow us to plan the log data storage requirements and helps in daily storage management so that we can avoid spending more money for storage than we have to and prevent running out of storage as well.</p><p>Using EPS/MPS factor for selecting the EDR or SIEM solution is a common one. If you are concerned about the uncertainty of EPS/MPS based licensing models for a solution, then you can, alternatively, evaluate products that license based on the number of nodes that are monitored. Node based licensing will offer a more predictable cost without having to go through the exercise of approximating or estimating log volume.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b383ae132f66" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/eps-and-mps-for-selecting-suitable-edr-solution-b383ae132f66">SIEM Basics: EPS and MPS for Selecting Suitable EDR Solution</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malicious PowerShell Analysis —Blue Team Labs Online Walkthrough]]></title>
            <link>https://medium.com/cryptogennepal/malicious-powershell-analysis-blue-team-labs-online-walkthrough-c4c0b97eb91?source=rss-f8fb95fb821e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4c0b97eb91</guid>
            <category><![CDATA[btlo]]></category>
            <category><![CDATA[powershell-script]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[malicious-code]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Supragya Karki]]></dc:creator>
            <pubDate>Fri, 28 May 2021 06:05:17 GMT</pubDate>
            <atom:updated>2021-05-28T07:06:44.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8m1AnUcij509FjfffrQ4w.png" /></figure><p>The <strong><em>Malicious PowerShell Analysis</em></strong> challenge from <a href="https://blueteamlabs.online/"><strong><em>Blue Team Labs Online</em></strong></a> has already been retired. This challenge was mainly about clarifying the obfuscated PowerShell code and analyzing it. So, this article is for those security enthuiasts who are interested in this type of challenges and wants to know and understand how I was able to answer all the questions.</p><blockquote><strong>Background Scenario of the Challenge</strong></blockquote><p>Recently a networks of a large company named GothamLegend were compromised after an employee opened a phishing email containing malware. The damage caused was critical and resulted in business-wide disruption. GothamLegend had a reach out to a third-party incident response team to assist with the investigation. You are a member of the IR team- all you have is an encoded PowerShell script. Can you decode it and identify what malware is responsible for this attack?</p><blockquote><strong>Process of Solving</strong></blockquote><p><strong>1.</strong> <strong>Examine the Script</strong></p><p>First, let’s open the sample file in a text editor and have a look at the encoded PowerShell script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wtwcbZthGjelKCgAuQ4oQ.png" /><figcaption>Figure 1: Sample: Encoded PowerShell script</figcaption></figure><p>Here, ‘POwersheLL -w hidden -ENCOD’ can be seen at the starting of the script. Since PowerShell input is not case-sensitive, we can just disregard the odd capitalization in this section and focus on what it’s directing PowerShell to do. -w hidden directs to opens a hidden PowerShell window that is invisible to the user and -ENCOD is basically a short for encoded. Rest of them is just a lengthy encoded script which needs to be decoded.</p><p><strong>1.</strong> <strong>Decode the Script</strong></p><p>As suggested in the hint, let’s use the <a href="https://gchq.github.io/CyberChef/"><strong><em>CyberChef</em></strong></a><strong><em> </em></strong>tool for decoding the script. It is an online app for encryption, encoding, compression and data analysis with lots of useful features (called ingredients). The script is copied to the input section of the CyberChef tool and next we will be adding the required recipes for decoding process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yj5QAqWykt3uyQpamTNzqA.png" /><figcaption>Figure 2: CyberChef, copy &amp; paste PowerShell script as input</figcaption></figure><p>Since we don’t know what algorithm is used for encoding the script, we use the feature ‘Magic’ which assumes about the type of input and what format it is. We just have to drag and drop the ingredient from operation section to the Recipe section which automatically gives out the possible output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzJxYhi1Ep5RBQCOLPQfjw.png" /><figcaption>Figure 3: Using ‘Magic’ feature, CyberChef</figcaption></figure><p>Here, the suggested encoder is base64 with UTF-16LE(1200) so let’s just click in one of them and add to the recipe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hU1oGleXQd68SbdAYBQOYQ.png" /><figcaption>Figure 4: Decoding the Script using Base64 and UTF-16LE decoders</figcaption></figure><p>As seen in the screenshot above, the PowerShell script has been decoded but still obfuscated. We can see in the script that there are many filter characters and symbols which can be removed to make the script short. So, let’s add some other ingredients for de-obfuscating process.</p><p><strong>1.</strong> <strong>De-obfuscate the Script</strong></p><p>Now, the ‘find’ ingredient is added to the recipe and all the characters which seems useless are mentioned as [“”+()`’’,{}] in the find field. After adding them, all those characters were removed making the script short and clearer than before. Now, we can read and understand some of the lines clearly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WBT49j-z90Pk8tjI2R9qng.png" /><figcaption>Figure 5: Removing filter characters using ‘find’ feature, CyberChef</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DbOW8W5awat1a-L-4CFXng.png" /><figcaption>Figure 6: Filter characters</figcaption></figure><p>As highlighted in the screenshot above, ‘]anw[3’ is mostly present before ‘//’ followed by some type of links (.com). So, we again use the feature ‘find’ where we add ‘]anw[3’ and ‘replace’ it will ‘http’. Now, it makes some sense in here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rl_zt6fhXkny_Nhnnusccw.png" /><figcaption>Figure 7: Using ‘Find’ and ‘Replace’ feature, CyberChef</figcaption></figure><p>The script looks little compact, so in order to make it clearer to understand, we need to use another feature of the tool ‘Split’ for breaking the lines into paragraphs. As there are many semicolons, let’s split the line from each place where semicolon is given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TADP8ybzAL8BQnoVqx1vIA.png" /><figcaption>Figure 8: Filter characters</figcaption></figure><p>Finally, the script looks like a normal text. As highlighted in the screenshot above, that particular line looks like a directory path because it starts with ‘/$HOME/’. So, by using the ‘find’ feature again, we need to replace ‘UOH’ with ‘/’ in order to make this a meaningful sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J0rOFBjONa6axb-MaW1yOQ.png" /><figcaption>Figure 9: Replaced ‘UOH’ with ‘/’</figcaption></figure><p>Now, as we have finely de-obfuscated the encoded PowerShell script, let’s copy it to the text editor for a clear vision, and then answer all the questions that are asked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6cFLAfJ5LiSCZaUC0Txnug.png" /><figcaption>Figure 10: De-obfuscated PowerShell script</figcaption></figure><blockquote><strong>Questions — 1</strong></blockquote><blockquote><strong>What security protocol is being used for the communication with a malicious domain?</strong></blockquote><p>Here, it’s asking about protocols like SSL, TLS, etc. which is used by the malicious domain for communication. Let’s look at the 8th line, we can see:</p><p>vARiaBLe mbu -VAlueoN ::sEcuRITYproTocol = <strong>Tls12</strong></p><p>We know that, TLS is one of the fairly secure protocol with version 1.2. So, with the above information and some common knowledge, we got this answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*f3IPi0nVgMLq01cNYGxYCQ.png" /><figcaption>Answer — 1</figcaption></figure><blockquote><strong>Questions — 2</strong></blockquote><blockquote><strong>What directory does the obfuscated PowerShell create? (Starting from \HOME\)</strong></blockquote><p>We already know that \HOME\ is going to be in our answer. So, without any confusion, let’s look at the 12th line, the directory path can be seen clearly that starts with \HOME\.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*Jo4ODEHfOpwhWyDWKzpwbw.png" /><figcaption>Answer — 2</figcaption></figure><blockquote><strong>Questions — 3</strong></blockquote><blockquote><strong>What file is being downloaded (full name)?</strong></blockquote><p>We have got the directory created by the malware which is followed by ‘.Replace’, then another concatenation ending with ‘.dll’. While looking at the 9th, 10th and 11th lines,</p><p>9th $F35I=I4_B</p><p>10th $Swrp6tc = A69S</p><p>11th $X27H=C33O</p><p>We can see 3 variable declarations from which one is reused in the 12th line later, written as ‘$Swrp6tc.dll’. So, we can say this should be a file name. Let’s pull the value ‘A69S’ from 10th line variable and replace its value. We get, A69S.dll which is the name of downloaded file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*49lYIDuR9YI285Caud7bRg.png" /><figcaption>Answer — 3</figcaption></figure><blockquote><strong>Questions — 4</strong></blockquote><blockquote><strong>What is used to execute the downloaded file?</strong></blockquote><p>In the 18th line, we can see a ‘foreach’ loop which iterated through $B9fhbyv (list of URIs) and attempts to download the file, then save it to A69S.dll file (discussed in above question). Below that line, we see the script checking its downloaded file size. In 20th line, we see the ‘if condition’ where it denoted if the size is valid, it endures by executing rundll32, pointing at the newly downloaded DLL. Since we know, Rundll32.exe is a program used to run program code in DLL files, we got the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*e_sgXCwkEL0MFuHUo83JCQ.png" /><figcaption>Answer — 4</figcaption></figure><blockquote><strong>Questions — 5</strong></blockquote><blockquote><strong>What is the domain name of the URI ending in ‘/6F2gd’?</strong></blockquote><p>In the 14th, 15th and 16th line, we can see a list of URIs. Since the question is asking for the URI ending with ‘/6F2gd/’, we get the required answer from the list itself (16th line).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*PB-fR6MUeyjGwoVgD17UQg.png" /><figcaption>Answer — 5</figcaption></figure><blockquote><strong>Questions — 6</strong></blockquote><blockquote><strong>Based on the analysis of the obfuscated code, what is the name of the malware?</strong></blockquote><p>This answer can’t be found in the script itself. However, we can use Google as OSINT for finding information of this type of malware by searching some of the artifact names like /Db_bh30/Yf5be5g/, A69S.dll or wm.mcdevelop.net. We can get our answer ‘Emotet’ from any source like MalwareBazzar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfHA9ikoO2yVZbON7fRudQ.png" /><figcaption>Figure 11: MalwareBazaar Database</figcaption></figure><p><a href="https://bazaar.abuse.ch/sample/23be1cb22c94fe77cea5f8e7fef6710eeef5a23e7e7eb9b9dd53f56d1b954269/"><em>MalwareBazaar | SHA256 23be1cb22c94fe77cea5f8e7fef6710eeef5a23e7e7eb9b9dd53f56d1b954269 (Heodo)</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*f9GM9n9x-pWpqRNZBtrH2Q.png" /><figcaption>Answer — 6</figcaption></figure><blockquote><strong>Challenge — All Answers</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*zy2Ccyk2nA-x6Or0nJ-8KQ.png" /><figcaption>Figure 12: BTLO Challenge: Malicious PowerShell Analysis</figcaption></figure><h3><strong>Conclusion</strong></h3><p>This is how we can solve and clarify the obfuscated PowerShell by using a single tool. I hope that was clear enough to understand each steps and to some extent interesting too. This type of challenges teaches us to be as crafty and perceptive as possible in extracting enough information from totally obfuscated data via tiniest hints. In near future, I will publish solutions for some more retired labs from BTLO as well as other online Blue Team challenges.</p><p>You can find more of our blogs here: <a href="https://medium.com/cryptogennepal">CryptoGen Nepal Blogs</a></p><p>CryptoGen Nepal consists of professional team member who are experienced and certified with the the ability to provide professional grade cyber security solution. CryptoGen Nepal team have been assisting clients from various domains in National and International cyber space.</p><p>Know more about us on <a href="https://www.cryptogennepal.com/">our website.</a></p><p>#PowerShell #Made4Security #StaySayCure #PurpleTeam #CyberSecurity #infosec #InformationSecurity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4c0b97eb91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptogennepal/malicious-powershell-analysis-blue-team-labs-online-walkthrough-c4c0b97eb91">Malicious PowerShell Analysis —Blue Team Labs Online Walkthrough</a> was originally published in <a href="https://medium.com/cryptogennepal">CryptoGen Nepal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>