<?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 Laurent Delosieres on Medium]]></title>
        <description><![CDATA[Stories by Laurent Delosieres on Medium]]></description>
        <link>https://medium.com/@laurent.delosieres?source=rss-35458e5cfc06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*59IIUGPr2Y7p6FdL5QIykQ.png</url>
            <title>Stories by Laurent Delosieres on Medium</title>
            <link>https://medium.com/@laurent.delosieres?source=rss-35458e5cfc06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:10:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laurent.delosieres/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[How do we secure ManoMano applications with our DIY pipeline ?]]></title>
            <link>https://medium.com/manomano-tech/how-do-we-secure-manomano-applications-with-our-diy-pipeline-56dce76914de?source=rss-35458e5cfc06------2</link>
            <guid isPermaLink="false">https://medium.com/p/56dce76914de</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Laurent Delosieres]]></dc:creator>
            <pubDate>Mon, 30 Aug 2021 12:48:43 GMT</pubDate>
            <atom:updated>2021-08-30T12:48:43.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>How do we secure ManoMano applications with our DIY pipeline ?</h3><p>Securing ManoMano applications before they get delivered to the production environment is of utmost importance. <strong>Due to the whopping number of micro-services, automation of security checks is a crucial need for us</strong>. Many companies have adopted commercial tools to enforce the security compliancy; however, <strong>at ManoMano, we prefer doing it in our way</strong>. In this article, we will <strong>present our DIY security pipeline that relies exclusively on open source tools</strong>. In the first section, we will make an overview of our monitoring architecture, then we will review the different security components that are required by each ManoMano project to be security compliant, in the third section we will present how we managed to integrate the security checks in the CI/CD, and in the last section we will see how do we enforce the security checks.</p><h3>Overview of the monitoring infrastructure</h3><p>At ManoMano, we rely on the Gitlab CI/CD — Continuous Integration and Continuous Delivery (CI/CD) — to lint, test, and release out the code to the production environment in an automated way. What a better place to integrate the security components than in the pipeline itself as shown in Figure 1. Whenever a git push is triggered by a developer <strong>(1)</strong>, a CI/CD pipeline gets executed along with its security components <strong>(2)</strong>, namely gitleaks for detecting hard-coded secrets, Gemnasium for scanning dependencies, SonarQube for reviewing the code quality and finally Trivy for performing a scan of the Docker images. A detailed overview of the tools will be provided in the next section. Upon execution, the security components will issue a report in the CI/CD itself and upload the logs on our logging platform (DataDog) that houses all our security logs <strong>(3)</strong>. In order to upload this information on DataDog, each tool has been slightly updated to integrate a component that interacts with the DataDog collector. The DataDog monitors will trigger and send the alerts to our SIEM <strong>(4), </strong>which based on the criticality will forward the alerts to the Defect Management System (DMS). A SIEM is a security monitoring platform where all the security events are collected and processed (see <a href="https://medium.com/manomano-tech/how-manomano-manages-and-respond-to-millions-of-security-events-a-do-it-yourself-spirit-and-495bd7c1246c">our article</a> for more information). Eventually, the DMS will create and assign JIRA tickets to the corresponding team <strong>(6) and (7)</strong>.</p><p>It is worth noting that adding the security checks to the pipelines allows us to embed the project name, team name, and domain name in the logs and later on design security dashboards customized per domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wz-lY_ZUmAuiFr65yG4pEQ.png" /><figcaption>Figure 1 — Architecture of the CI/CD Application Monitoring</figcaption></figure><h3>Security requirements</h3><p>A security check in the CI/CD pipeline monitors a given stage of the software development and ensures that any security issue is prevented and reported to the security team as well as the developer before the code goes to production — in a nutshell <strong>the objective is to minimize the security risks</strong>. Whenever a security check is added to the CI/CD pipeline, beforehand we ascertain the efficiency of the tool based on the false positive and true positive metrics so we feel confident that the tool best suits the company needs both now and in the future. Our DIY security pipeline is composed of the following tools:</p><ul><li><strong>Software Composition Analysis Tool (SCA)</strong></li></ul><p>The SCA <strong>analyzes the dependencies of the projects and makes sure those dependencies are not vulnerable</strong>. The tool parses dependency files, e.g. composer.lock for PHP projects, extracts the list of dependencies along with their version, and verifies if a given version matches their vulnerability database. At ManoMano, we rely on a modified version of <a href="https://gitlab.com/gitlab-org/security-products/analyzers/gemnasium">Gemnasium</a> for scanning the dependencies. In Figure 2, we present an excerpt of a Gemnasium report featuring the severity of the vulnerability, the CVE identifier, the report URL for further information, the vulnerability scanner, a short description of the issue, the affected package and its version, the solution if found, the path to the vulnerable library, and the file where the dependency has been found. In addition to the normal Gemnasium report, we do highlight the path from the parent library symfony/framework-bundleto the vulnerable library symfony/http-foundation. This path sheds the light on the parent library that needs to be updated or upgraded. It is worth noting that all the vulnerabilities are sorted out by criticality ranging from Critical to Unknown for sake of clarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJe6AMHY9j05W3tQ97b0Ew.png" /><figcaption>Figure 2— Excerpt of a Gemnasium report displayed in a Gitlab job</figcaption></figure><ul><li><strong>Static Application Security Testing (SAST)</strong></li></ul><p>The SAST <strong>reviews the code quality and spots the security best practices violations</strong>. For instance, using the hashing function “MD5” instead of “SHA256” might cause a hash collision or setting up an endpoint without restricting the origin might hide a potential vulnerability underneath. At ManoMano, we opted for a light code analyzer (SonarQube) as complex SASTs turned out be inaccurate, see our <a href="https://medium.com/manomano-tech/how-to-detect-vulnerabilities-in-your-web-applications-43ed07f3be88">previous article</a> for further information. A tool that provides too many false positives loses credibility to the developer’s eyes. We also think that training developers <strong>based on our human first strategy</strong> is more beneficial — developers spot vulnerabilities more easily but also avoid introducing them. To this end, all the ManoMano developers are enrolled in a training course related to the OWASP top 10 with practical exercises.</p><ul><li><strong>Docker image vulnerability scanner</strong></li></ul><p>Most of ManoMano code is running in containers, except for the legacy code which represents a tiny part of our code. Relying on containers also implies using a distribution and thus tracking and updating vulnerable packages becomes necessary. To this end, a vulnerability scanner of Docker images based on a modified version of <a href="https://github.com/aquasecurity/trivy">Aquasec Trivy tool</a> has been embedded into our CI/CD pipeline, which <strong>performs a scan of all the freshly built Docker images</strong> and reports any vulnerable packages. In addition to scanning packages, trivy also addresses the distroless distribution by e.g. analyzing the libraries found inside Go like program. Nevertheless, the tool is not able to scan Java / PHP / Node.js standalone executables yet. <a href="https://github.com/aquasecurity/trivy/issues/1064">An issue and a pull request</a> were opened a few weeks ago.</p><ul><li><strong>Detect secrets in source code</strong></li></ul><p><strong>Secrets hard-coded in the source is something prohibited at ManoMano no matter the environments including integration and sandbox environment</strong>. By using <a href="https://github.com/zricethezav/gitleaks">Gitleaks tool</a> — a SAST tool for detecting hardcoded secrets like passwords, API keys, and tokens in git repos — we easily spot developers’ sins. The tool is composed of two types of profile that are composed of regular expressions: one profile for parsing source code files, e.g. Java files and another profile for parsing the markdown and configuration files, e.g. YAML file. Splitting the configuration into two profiles allowed us to cut out the false positives and at the same occasion improve the accuracy. Whenever a false positive is reported, the commit associated with is whitelisted; and on the contrary, developers are required to clean up their project.</p><h3>How did we integrate the security check in our CI/CD ?</h3><p>Every project embeds a file named “.gitlab-ci.yml” at its root folder that contains the different Gitlab CI/CD jobs. The “.gitlab-ci.yml” file inherits from a core template, which defines the different jobs that will be executed by the CI and the CD. Using core templates allows us to standardize all the pipelines, i.e., same nomenclature, same stages, etc. It is worth noting that the “.gitlab-ci.yml” file requires a code owner approval before merging the updates to the main/master branch, preventing a malicious developer to disable permanently the security checks. In Figure 3, we took an example of a Python project’s .gitlab-ci.yml that inherits from the core template “python.gitlab-ci.yml”, which itself depends on <strong>(1) “python/ci-init.yml</strong>” for downloading the dependencies, <strong>(2) “python/ci-build-test.yml</strong>” for linting and testing the application, and <strong>(3) “security/ci-python.yml</strong>” for running the security checks. For sake of simplicity, the CD jobs are not present in Figure 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWXXODSQcPUAa89VuA-yxw.png" /><figcaption>Figure 3— .gitlab-ci.yml file of a Python project</figcaption></figure><h3>How do we enforce the security checks?</h3><p>Blocking the pipelines of projects that are not security compliant is a tricky question. When we were envisaging this possibility, we faced a strong <strong>no go</strong> from developers’ side. One of the issues that were raised — if we need to release out a hotfix urgently in the production environment and one of the security checks fails because there is no security patch that can address a security issue, how shall we proceed ? To this end, we provided to the developers both an environment variable SKIP_SECURITY_JOBS and a commit message pattern to allow them to disable the security steps. Although we strongly discourage the use of such variables, we were afraid that it would become a bad habit and that by default all the pipelines would skip the security jobs. To tackle this problem, we made the decision of not blocking the pipelines but instead making developers, IT leads, and engineering managers aware of the security issues along with their criticality via defects. However, some IT leads have decided to enforce the blocking mode. In our case, whenever a vulnerability with a severity critical or high is detected, a defect is created and passed on to the corresponding team. We leveraged the DMS that is used for tracking the bugs to also pass on the vulnerabilities. Figure 4 displays a graph representing the evolution of number of defects per week by means of candles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ol5pXs0KV0foHI0S_XMVg.png" /><figcaption>Figure 4— Security defects statistics using candles</figcaption></figure><p>In addition to integrating security tools, we are also cooperating with developers to get their feedback in the aim of improving the tools. Whenever Gemnasium and Trivy identify vulnerable packages, it does not systematically imply that the vulnerable components will pose a security threat, e.g. if the vulnerable functions are not called. When dealing with a few projects, the security engineers have the time to delve into the code; however, it is unthinkable to verify over 200 micro-services manually. As a matter of fact, only critical vulnerabilities will be reported via defects in the first hand and then in the second hand security issues with severity high will be included.</p><p>Last but not the least, we also need to (1) ensure that all the new projects run the security checks and (2) track down the projects that skipped the security checks. To this end, all the jobs executed in the CI/CD are forwarded via a Gitlab webhook to a micro-service that verifies whether or not the security checks have been disabled. All the projects that omitted the security checks are reported in the DataDog security dashboards.</p><h3>Conclusions</h3><p>We presented you our extensible and scalable DIY pipeline framework. The goal is always the same — <strong>bring value to find the right balance between security and agility for developers</strong>. If you would like to share your insights about your security pipeline, do not hesitate to post a comment below this article. We also invite you to watch our Youtube <a href="https://www.youtube.com/watch?v=nAwwVMVGoGk">Video</a> about our CI/CD strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56dce76914de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manomano-tech/how-do-we-secure-manomano-applications-with-our-diy-pipeline-56dce76914de">How do we secure ManoMano applications with our DIY pipeline ?</a> was originally published in <a href="https://medium.com/manomano-tech">ManoMano Tech team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Red Team Operation Leveraging a zero-day vulnerability in Zoom]]></title>
            <link>https://medium.com/manomano-tech/a-red-team-operation-leveraging-a-zero-day-vulnerability-in-zoom-80f57fb0822e?source=rss-35458e5cfc06------2</link>
            <guid isPermaLink="false">https://medium.com/p/80f57fb0822e</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[zoom]]></category>
            <category><![CDATA[zero-day-vulnerability]]></category>
            <dc:creator><![CDATA[Laurent Delosieres]]></dc:creator>
            <pubDate>Wed, 26 May 2021 07:37:56 GMT</pubDate>
            <atom:updated>2021-05-26T07:37:56.312Z</atom:updated>
            <content:encoded><![CDATA[<p>ManoMano’s employees — Manas &amp; Manos — play a key role in the protection of the organization and constitute our first barrier. At ManoMano, our utmost paradigm is <strong>human first </strong>and in this context,<strong> </strong>we prefer investing time into<strong> training them</strong>. We regularly perform red team operations and security traps to prepare our Manas &amp; Manos to <strong>real attacks, </strong>e.g. USB keys attacks, phishing attacks, etc. Red team operations are becoming popular amongst industries in which the red team plays the role of evil characters that attempt to look for breaches in the company to e.g. exfiltrating confidential data, ciphering files, asking for a ransom, etc. while the blue team — usually known as the <strong>SOC (Security Operations Center) — </strong>is here to protect the company. Those operations require a lot of creativity and a <strong>Do-it-yourself</strong> approach that combined together add a real value to ManoMano while bringing some fun as well ! Before each operation,<strong> </strong>we always ask ourselves the following questions. <strong>Will they recognize the attack? How will they react ? Will they contact the security team ?</strong></p><p>In this article, we will share with you <strong>a real attack </strong>carried out by the security team. All the steps of the preparation with <strong>a special emphasize on a Zoom zero-day vulnerability </strong>will be described. The results of the attack will be of course kept confidential but the operation was a success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_zq6O54XH4Z1XBPM.jpg" /><figcaption>Taken from <a href="https://bloggeek.me/zoom-app-vulnerability-shows-why-webrtc-is-important/">https://bloggeek.me/</a></figcaption></figure><p>In all the red team operations, preparation is a paramount step for an operation to be successful. During the preparation, we define an <strong>objective</strong>, <strong>a</strong> <strong>target </strong>(what/who we want to target), <strong>an</strong> <strong>attack vector </strong>(how do we want to reach the victim)<strong>, and an attack scenario</strong>. Although the red team operations are carried out by the security team itself, we are trying to adopt a black-box approach, i.e., as if we were real attackers with no prior knowledge about the company and their employees.</p><h3>Red Team Operation Phases</h3><p>During this red team operation, <strong>we targeted the managers</strong> at the C-level and below. The objective defined by the CISO (Chief Information Security Officer) and accredited by a member of the C-level — in our case the CTO itself — <strong>consisted in trapping the managers and accessing to their computers remotely without being blocked by the security controls including the Antivirus itself</strong>. Only the CTO was kept up to date about the operation but also of any problems that might have arisen. Once the objective and the target were defined, we were able to move on to the <strong>attack vector</strong>.</p><p>Due to the COVID-19, we shifted from physical meetings to virtual meetings using Zoom and so do attacks related to web conference tools as highlighted by <a href="https://blog.zoom.us/a-message-to-our-users/">Zoom itself</a>. Because of this trend, <strong>we decided it was a suitable moment to trap ManoMano employees with attacks related to Zoom.</strong> Well, if attackers do succeed, why should not we leverage the famous Zoom web conference tool to launch our attack. Instead of spending time on finding a vulnerability on the victim’s browser, <strong>it was easier to leverage the human weakness using social engineering and we did so with a whaling attack by spoofing the CISO identity and asking the employees to update their Zoom software urgently</strong>.</p><p>Our attack scenario is as follows: (1) the security team <strong>sends phishing emails to the ManoMano managers</strong> asking them to <strong>update their Zoom urgently</strong>, (2) the managers click on the malicious link that points to the spoofed Zoom website, (3) <strong>the managers download, uncompress</strong> <strong>the Zoom ZIP archive, and click on the legitimate Zoom installer</strong>, (4) the reverse shell included in the Zoom ZIP connects to the security team’s server without being stopped by the Next-Gen Antivirus, and (5) <strong>the security team gains control over the managers’ laptops</strong>. In the next sections, we will describe how we built up the spoofed website, the Zoom ZIP including the reverse shell, and the server to communicate with the infected laptops. The whole attack scenario is summarized in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWN-I3soHa0VpldKN03KnQ.png" /><figcaption>Figure 1 — Zoom Attack Workflow</figcaption></figure><h3>Preparation — website</h3><p>First of all, we needed to mimic the Zoom web page. To this end, we launched the <a href="https://www.httrack.com/">HTTrack</a> tool that copies a real website locally. As you can notice in Figure 2, the website looks quite legitimate although it is spoofed. To avoid any suspicions, we registered a domain with a valid SSL certificate to look even more real; however, we updated the Zoom links to make them point to our Zoom binaries and bumped the Zoom versions up as well (version 5.1.3 instead of 5.1.2 when the attack was launched).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GC0XFDbPlOFyDJU39mgKQ.png" /><figcaption>Figure 2— Spoofed Zoom webpage</figcaption></figure><h3>Preparation — Zoom</h3><p>The Zoom ZIP file contains two binaries — “Install.exe” signed by Zoom and “Zoom.msi” . We wanted to keep an original version of Zoom to not raise any suspicions, so when the manager clicks on the installer, a genuine version of Zoom will be installed plus our reverse shell. To this end, we extracted from “Install.exe” and “Zoom.msi” from a genuine Zoom installer, but we modified the latter file to embed our reverse shell. Zoom.msi, as shown in Figure 3, is a 7-zip archive that contains a list of DLLs, executables, etc. During the analysis of this archive, one specific file drew our attention: “ZoomInstall.xml”. What is the purpose of the file ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwXgolG7OF_xsI6diSQI1A.png" /><figcaption>Figure 3 — Files contained in Zoom.msi</figcaption></figure><p>As depicted in Figure 4, the XML file contains instructions parsed by Installer.exe to set up Zoom on the system, i.e., the registries to create, the binaries to copy, the DLLs to extract, the processes to kill, the shortcuts and directories to make, etc. For instance, in the excerpt of the Figure 4, the libraries “reslib.dll” and “XmppDll.dll” are copied to a destination folder. But before carrying on, we needed to check the properties of Zoom.msi, in particular whether or not the archive was signed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzOUSSwUuDnD9dWvOOlXLA.png" /><figcaption>Figure 4 — ZoomInstall.xml</figcaption></figure><p>When looking at the properties of both binaries, we noticed that Installer.exe is signed by a valid Zoom signature and thus cannot be updated while Zoom.msi is not signed at all (see Figure 5). Seeing this window wide open, the possibility to embed our reverse shell and create an entry in the Windows registry to launch our reverse shell while using the genuine Installer.exe of Zoom were not discarded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*QgILFV5_hJ7ky82JAyBYqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*EfjNFQuAk9wSHPbJM62imQ.png" /><figcaption>Figure 5 — Installer.exe and Zoom.msi properties</figcaption></figure><p>We first tried to include our own reverse shell in an executable, but without any success. We investigated this issue and to this end we reversed Installer.exe by means of the Ghidra disassembler. We deduced that the installer (1) initializes the system by creating a destination directory, (2) uncompresses Zoom.msi (7-zip archive) in the temporary folder “zoom_install_dir”, (3) parses the configuration file “ZoomInstall.xml”, and (4) copies the files from “zoom_install_dir” to the “bin” directory. However, during the last step, Zoom performs a couple of checks before copying the files. For all the files contents that start with the string “MZ” (i.e. executable file) and have the IMAGE_NT_HEADER’s signature set to 0x4550 (i.e. PE signature), Zoom checks their content’s signature by means of the “WinVerifyTrust” function of the Wintrust.lib library. In a nutshell, Zoom only checks the signature of executables and libraries, but what about script files, e.g. bat or PowerShell? Well, there is no check and this <strong>constitutes a major vulnerability</strong> as we are able to ship our own reverse shell using a legitimate Zoom installer. This modus operandi allowed us to bypass many antivirus engines including next-generation antivirus that base their detection upon user’s behavior. <strong>This vulnerability was reported to Zoom on December 22nd, 2020</strong> and is supposedly fixed in Zoom version <a href="https://support.zoom.us/hc/en-us/articles/201361953">5.5.4</a>.</p><p>Now that we were able to embed our reverse shell in the Zoom.msi, we needed a way to launch this reverse shell automatically. By default, Windows does not allow us to run PowerShell script (Zoom.ps1) from the Windows hive “<strong>HKCU\Software\Microsoft\Windows\CurrentVersion\Run” </strong>when Windows boots up<strong>. </strong>Instead, we used a trampoline Zoom.bat that calls our PowerShell script (Zoom.ps1). Both Zoom.ps1 and Zoom.bat were embedded in Zoom.msi as shown in Figure 6. One more detail to fix, Windows by default prohibits the execution of remote Windows PowerShells that are not signed. This detail was solved by setting the Windows hive “<strong>Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\ExecutionPolicy</strong>” to the “<strong>Unrestricted</strong>” mode by creating a registry operation (regop) in the “ZoomInstall.xml” file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPJ7b3fdCeUcT2SGzAfbwg.png" /><figcaption>Figure 6 — Zoom.ps1 and Zoom.bat embedded in Zoom.msi</figcaption></figure><p>Later, we implemented a simple reverse shell in PowerShell to evade AntiVirus detections. However, Windows defends itself against malicious PowerShell scripts and we needed a way to bypass it. By default, Windows raises an exception when the “<strong>System.Net.Sockets.TCPClient</strong>” class followed by a domain or IP address is detected. It is worth mentioning that this class is used to initiate a TCP connection with a server and is used very often by malware. This was bypassed using the open source obfuscater “<a href="https://github.com/3NC0D/Powershell-Obfuscator/blob/master/PS.py">PowerShell-Obfuscator</a>”. You can notice the difference between an unobfuscated reverse shell depicted in Figure 7 and the corresponding obfuscated version displayed in Figure 8.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/adf82b2c8c3cde2785138844e75f5b79/href">https://medium.com/media/adf82b2c8c3cde2785138844e75f5b79/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0accf36ce90cb26f0e5b0bd99e748de/href">https://medium.com/media/e0accf36ce90cb26f0e5b0bd99e748de/href</a></iframe><p>We also created some scripts to disinfect the computers. To this end, a tracker was embedded into all the Zoom installers to keep track of all the infected computers.</p><h3>Preparation — server</h3><p>Before launching the campaign, we needed to set up a server on which the reverse shells will connect. To this end, we deployed a metasploit server that allowed us to easily communicate with the infected computers and to bootstrap even faster the whole infrastructure Docker containers were deployed temporarily during the campaign (see Figure 9).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7ad276b3816ae8bea0f37c606098760/href">https://medium.com/media/d7ad276b3816ae8bea0f37c606098760/href</a></iframe><p><strong>And finally, we were done with the preparation. On the D-Day, the mails were sent out to the ManoMano managers…</strong></p><h4><strong>Conclusions</strong></h4><p>This Red Team operation required us a month of preparation to make sure that everything ran smoothly during the D-Day. After each operation, a debriefing is organized with all the ManoMano stakeholders. This kind of operation is a right way to monitor the employees’s behaviors in case of a security incident in terms of detection, reaction, communication, etc. ManoMano’s employees are now better trained and prepared for the next trap ;-)</p><h4>Vulnerability disclosure</h4><pre>2020/12/22 - Vendor contacted via HackerOne with the vulnerability details.<br>2020/12/22 - HackerOne received the vulnerability details<br>2020/12/23 - HackerOne is starting the triage<br>2021/02/03 - HackerOne is done with the triage<br>2021/02/12 - Vendor has confirmed the vulnerability.<br>2021/03/02 - Vendor supposedly fixed the vulnerability in version 5.5.4</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80f57fb0822e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manomano-tech/a-red-team-operation-leveraging-a-zero-day-vulnerability-in-zoom-80f57fb0822e">A Red Team Operation Leveraging a zero-day vulnerability in Zoom</a> was originally published in <a href="https://medium.com/manomano-tech">ManoMano Tech team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to detect vulnerabilities in your Web Applications?]]></title>
            <link>https://medium.com/manomano-tech/how-to-detect-vulnerabilities-in-your-web-applications-43ed07f3be88?source=rss-35458e5cfc06------2</link>
            <guid isPermaLink="false">https://medium.com/p/43ed07f3be88</guid>
            <category><![CDATA[sqreen]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[waf]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[rasp]]></category>
            <dc:creator><![CDATA[Laurent Delosieres]]></dc:creator>
            <pubDate>Wed, 16 Sep 2020 13:27:14 GMT</pubDate>
            <atom:updated>2020-09-16T13:27:14.915Z</atom:updated>
            <content:encoded><![CDATA[<h3>How do we detect vulnerabilities in our Web Applications?</h3><p>Spotting vulnerabilities in your Web App before they get exploited by an attacker is definitely a complex problem. Different technologies have been introduced in the market to ease the work of security software engineers - <strong>SAST</strong>, <strong>DAST</strong>, and <strong>RASP</strong>. Those tools intervene in different states of the pipelines, and run different checks, but they all share the same purpose: detecting security vulnerabilities while minimizing the number of false positives. Minimizing the false positives is an important criteria in order to prevent the tool from being rejected by the developers. In this article, we will share with you our insights about the three technologies (pitfalls and pros) before revealing what ManoMano has opted for.</p><h3><strong>SAST</strong>, <strong>DAST</strong>, and <strong>RASP: what are they</strong> ?</h3><h4>SAST or Static Application Security Testing</h4><p>The <strong>SAST</strong> or Static Application Security Testing parses the source code of a project and outputs all the security violations (e.g. deprecated hashing functions, etc). Depending on the maturity of the tool, the SAST can also identify the parameters that can be controlled by an attacker, but this method results in many false positives or false negatives. To determine if an attacker- controlled parameter can be injected into a vulnerable function, the SAST will first need to taint the input variables that are passed by the attacker (e.g. GET parameters). Those functions are called <strong>source</strong> functions because they are producing the tagged variables. If a tagged parameter reaches a <strong>sink</strong>, e.g., the “query()” function of a database, a critical path has been identified and there is potentially an exploitable vulnerability. Whenever a tainted variable passes through a <strong>sanitizing</strong> function, the resulting variable is untainted.</p><p>Figure 1 shows an excerpt of a SonarQube check linking the source “<strong>$_GET[“id”]</strong>” to the sink “<strong>$mysqli-&gt;query($sql)</strong>”. Since a path exists between the source and the sink, an SQL injection can be exploited by an attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vTYAlix-YPPYBntj" /><figcaption>Figure 1 — SonarQube excerpt highlighting an SQL injection</figcaption></figure><p>However, the SAST has some limitations:</p><ul><li>the non exhaustive list of sources / sinks / sanitizers</li><li>the timing performance</li><li>the wrong inference between tagged variables</li><li>bad assumptions of the sanitizers</li></ul><p>The first limitation that we stumbled upon was the incomplete lists of sources / sinks / sanitizers. Some SQL injections were not identified due to the sources not being calibrated to our framework. For open source tools, those lists can be adjusted, but for closed source tools, it is out of the control. Additionally, calibrating the tool requires some heavily tests of the framework.</p><p>The second limitation comes from the timing performances. Analyzing the whole code, i.e. transforming it into an Intermediate Language, tagging the variables, and building up paths between sources and sinks is a tedious task that can take up to several hours. In a nutshell, this is a process that cannot be easily embedded in the CI except if the tagging feature is disabled or only operates on the new code, but again this does not guarantee the soundness of the checks.</p><p>The third limitation is due to the bad inferences between input and output variables when handling string concatenations. Many false positives were triggered due to the concatenation between a hard-coded string and a tagged variable. For the SAST tools, it is not trivial to know whether a concatenation of strings will still be exploitable by an attacker or not. If the developer explicitly calls the sanitizing functions, the tool will correctly interpret the results. But this is not always the case, especially with the legacy code, which becomes a nightmare for the security software engineer that needs to sort out the tremendous number of false positives.</p><p>The last limitation stems from the sanitizing functions themselves. In some SAST tools, when a tagged variable passes through a sanitizing function, the outcome variable is untagged, but this is not always true. For instance, a sanitizing function might sanitize a variable against XSS (Cross-Site Scripting) attacks but not against Path Traversal attacks. It would be too naive to make this assumption.</p><h4><strong>DAST</strong> or Dynamic Application Security Testing</h4><p>The <strong>DAST</strong> or Dynamic Application Security Testing as its name suggests requires performing the tests on a running instance, meaning those checks cannot be performed in the CI pipeline but only in the CD pipeline. A battery of tests are launched against the new instance, and the tool determines whether or not e.g. a parameter is subject to SQL injections. Launching those tests usually take some minutes up to some hours before getting the results. However, those tests do not generate so many false positives like the SAST tool. In a nutshell, when a parameter is injectable, a pen-tester can easily confirm and exploit the vulnerability. Unlike the SAST tool, the DAST does not need to know what is beneath the web application, e.g., framework, programming language, etc. However, the engineer is required to list all the endpoints along with the accepted parameters to be able to build up an exhaustive list of tests. In Figure 2, the DAST is discovering an SQL injection in the framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6L061suiZdlwC8Fnib2OA.png" /><figcaption>Figure 2 — DAST detecting an SQL injection</figcaption></figure><h4><strong>RASP </strong>or Runtime Application Self-Protection</h4><p>The <strong>RASP </strong>or Runtime Application Self-Protection is a new technology, which is not very well known but very efficient. The paradigm consists in considering that no security tests are exhaustive enough. Instead of launching several tests in the CI/CD pipeline, the <strong>critical</strong> functions, i.e., <strong>sinks</strong> functions are protected in real time. When the parameters contain malicious content, the RASP achieves two functionalities: it <strong>(1)</strong> <strong>blocks</strong> the request before it reaches the <strong>sink </strong>and<strong> (2) alerts </strong>the security team that a sanitizing function is missing. The <strong>WAF</strong> or Web Application Firewall is slightly different, as it analyzes the HTTP requests and not the parameters passed over to the functions. This implies that the WAF usually generates more false positives, and thus forces the engineer to spend more time during the calibration phase before enabling the blocking mode.</p><p>The RASP comes with an extension which is loaded by the framework. During its first instantiation, the extension will look for the critical functions of the framework and hook them. Whenever a critical function is called upon, the hook will be executed first and will test the parameters against a set of rules. If there are no matches, this implies that the parameters are not controlled by an attacker and thus, the parameters can be safely handed over to the critical functions. Most of the time, those rules are coded using regular expressions. To speed up the compilation of those regular expressions, the compilation of the regular expressions are occurring at the first instantiation using the native functions of the framework. For instance, a PHP module will <strong>(1) locate the regex function</strong> of the PHP framework, <strong>(2) compile the regular expressions</strong>, and <strong>(3) re-use the compiled versions.</strong></p><p><strong>RASP and WAF are very similar</strong> in the way they are checking the parameters, but since the checks are performed at different levels, the performances differ. Indeed, the WAF will verify any malicious content inside an HTTP request whereas the RASP will check the presence of any malicious contents in the parameters passed to a critical function. Since the parameters are decoded, the RASP is less subject to false positives. This can easily illustrated with the following examples.</p><p><strong>Example:</strong> “query” parameter in an encoded URL analyzed by the WAF</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b43fb3e2e6c001ec686ab76efb05de85/href">https://medium.com/media/b43fb3e2e6c001ec686ab76efb05de85/href</a></iframe><p><strong>Example:</strong> same “query” parameter analyzed by the RASP</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/661be4a52eea3b44ebec55efa46b4518/href">https://medium.com/media/661be4a52eea3b44ebec55efa46b4518/href</a></iframe><p>Furthermore, when a URL contains a blacklisted keyword such as “index.php?query=select product”, a WAF will very likely trigger a false alert due to the presence of the keyword “select” although the request is legitimate. Unlike the WAF, some RASPs embed a semantic SQL analyzer which benefit from a higher context, i.e. the analyzer knows the database model, the full SQL query, the stack trace, and the decoded parameters. By combining the context plus the semantic of all the SQL parameters, the analyzer is able to detect SQL injections with a better accuracy.</p><p>However, the RASP presents some drawbacks: (1) to be efficient, the sink functions of all the existing drivers / frameworks (e.g. MySQL, Symfony, etc.) need to be hooked and (2) hooking a sink function is harder than just adding a regular expression in the WAF. And this is where the framework Sqreen comes in by combining the strength of both the WAF and RASP — when the WAF does not catch the attack, the RASP does and vice versa.</p><h3>Sqreen</h3><p>Instead of adding an external WAF, Sqreen provides its own In-App WAF which is based on a set of regular expressions that protects the app from the easiest attacks besides the RASP that blocks the most complex attacks. By finding the right balance between the attacks that are blocked by the In-App WAF and the RASP, Sqreen achieves very good performances in terms of detection rate versus false positive rate. See Figure 3 for the list of attacks covered by each module (In-App WAF and RASP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yOPOKZdkqV8m-c0CxmJz6Q.png" /><figcaption>Figure 3 — list of attacks covered by each module</figcaption></figure><p>Nevertheless, Sqreen is more than just an InApp-WAF + RASP, it also enables the security engineer to tweak Content Security Policy and Security Headers up dynamically by updating HTTP headers on the fly such as anti Click-jacking, MIME sniffing, XSS protection, and Application Referrers to the HTTP headers and implements a User Monitoring. In a nutshell, Sqreen is a defense in depth framework with several layers of protections as shown in Figure 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o4EcxvW3E3Rr3NzTEl7DBw.png" /><figcaption>Figure 4 — Sqreen’s defense in depth</figcaption></figure><p>When most of the commercial solutions offer to ban malicious actors by their IP, Sqreen proposes both IP banning and User banning based on a list of Playbooks. Thanks to its SDK, the engineer has the possibility to track the actions of their customers on their WebApp, e.g. login, checkout, and block them if their behavior is abnormal based on a playbook. For instance, a user IP stemming from the TOR network might be suspicious, or a takeover of an account should trigger an alarm. When a playbook is triggered, the user can be blacklisted for a limited / unlimited duration from the application.</p><p>During the check of the presence of malicious content inside a parameter, Sqreen might take some time depending on how big the list of regular expression is. To control the response time of the web application, Sqreen monitors the time spent in each module (RASP + In-App WAF). Additionally, it allows the security engineer to bound the analysis time by fixing a time capping per request. If it exceeds a certain threshold, the request will be marked as partially analyzed in the dashboard.</p><h3><strong>Conclusions</strong></h3><p>At ManoMano, we always prefer embedding innovative technologies than just copying everyone’s else security frameworks. We are wondering which technology you are using to detect vulnerabilities and if you had any previous experience with a RASP.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43ed07f3be88" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manomano-tech/how-to-detect-vulnerabilities-in-your-web-applications-43ed07f3be88">How to detect vulnerabilities in your Web Applications?</a> was originally published in <a href="https://medium.com/manomano-tech">ManoMano Tech team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ManoMano Faces Security Threats]]></title>
            <link>https://medium.com/manomano-tech/how-manomano-faces-security-threats-951f7d221cf8?source=rss-35458e5cfc06------2</link>
            <guid isPermaLink="false">https://medium.com/p/951f7d221cf8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Laurent Delosieres]]></dc:creator>
            <pubDate>Thu, 30 Apr 2020 10:51:43 GMT</pubDate>
            <atom:updated>2020-04-30T10:51:43.509Z</atom:updated>
            <content:encoded><![CDATA[<h3>How ManoMano Faces Security Threats <strong>with </strong>Our Do-It-Yourself Mindset?</h3><p>E-commerce is a sector of the industry which is growing at an unprecedented rate all over the world due to the overwhelming majority of websites and apps focusing on e-commerce. With e-commerce, people can discover unique goods they will not find in big-box retail chains. Along with the rise of e-commerce business, attacks have skyrocketed against the e-commerce industry and this is particularly true as the business becomes more famous. Every private and public organization is taking e-commerce security seriously more than ever because any attack can have an impact in their business and in cyber confidence with their customers and sellers. This is especially the case in ManoMano where the security will always be our top priority. The job of the security team is to <strong>know the enemy, </strong>find <strong>threats</strong>, and <strong>remediate them with excellence.</strong></p><p>In this article, we will highlight the top security threats that an e-commerce company faces before diving into the dark corners of the web — the Genesis Store. Then, we will show you how Genesis malware extracts all the credentials from your favorite browser and eventually<strong> we will describe how the ManoMano security team discovers the security issues and tackles them.</strong></p><p><strong>What are our top-4 security threats ?</strong></p><p>The top attack that e-commerce industries are suffering from is the <strong>Distributed Denial-of-Service attack (DDoS)</strong>, which consists in flooding the servers with requests from thousands of untraceable IP addresses, making the service unavailable for several minutes or several hours. This can have devastating consequences for the business, especially during peak hours or special days like Black Friday. Before performing this attack, the attacker needs to build up a botnet, i.e. a set of infected computers or servers from which requests are sent out. The bigger the botnet, the bigger the impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*wf2PG8tiDAelLJ8eOUuvpQ.png" /><figcaption>Figure 1 — our top-4 security threats</figcaption></figure><p><strong>Secondly comes credit card fraud</strong>, the old classic remains one of the most common security threats faced by e-commerce websites. Some crucial indicators to detect the frauds: a shipment address that is different from the billing address, many consecutive unsuccessful orders, customer address different from the billing address. Failure to correctly detect frauds leads to a high number of chargebacks to the provider or client and impacts the trust between the provider, customer, and the e-commerce industry.</p><p><strong>Thirdly ranks the infection by malware or malicious software</strong>, i.e., any piece of software that is designed by criminals in order to spy, eavesdrop communication, gain otherwise restricted access, or cause damage. Although many malware infections are carried over by emails containing infected documents, direct drive-by downloads should not be underestimated. One malware family is particularly aggressive like ransomware, which ciphers all the computer files and asks for a ransom. If the ransomware is using an asymmetric encryption, recovering the files is not a simple process unless a correct backup system has been set up prior to the infection. If there was no backup, the files are irremediably lost. It is worth noting that if the computer is synchronized with Google Drive using e.g. File Stream, all the files in the cloud will also be ciphered. And believe us, people are ready to plug infected USB keys to their computer, which turn out to cipher their Google Drive and ask for a ransom.</p><p><strong>The last security threat in this top 4 stems from the bots</strong>, which are utilized to crawl web pages of an e-commerce website and scrap prices of the competitors, which subsequently allow the attacker to check pricing strategy and marketing plans. This is something that we noticed at ManoMano. Bots are also programmed to verify the validity of stolen credentials of the victims and stolen credit card numbers along with the CVV. If the credentials or credit card numbers are valid, the attacker can make a purchase on behalf of the victim or monetize the credentials by selling them on the web. The theft and selling of the login details is a leading industry in the darker sides of the web. We will be focusing on this threat as this is rarely a high priority in a security team and under-considered. To illustrate this, ManoMano will share a unique experience: a special focus will be given to the Genesis Store.</p><p><strong>What is the Genesis Store ?</strong></p><p>Genesis Store market (Genesis Store Login in Figure 2) is a forum that comprises a whopping 260 000 bots for sale as of writing where only invited people can join the market. A Genesis Store bot is a computer that has been compromised and whose digital browser fingerprints, e.g. website credentials, are for sale. In other words, a person that purchases a bot, gets the list of credentials associated with that bot, which can subsequently allow him to e.g. access to companies’ BackOffice. Once a bot has been acquired, the buyer has the exclusivity on it, i.e. no one else is able to buy the same bot. Depending on the privileges of the compromised accounts, an attacker might retrieve confidential information of the company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*wKbii6NGKwsRng-06Ugbzg.png" /><figcaption>Figure 2 — Genesis Store Login</figcaption></figure><p>Each bot comes with a unique Bot ID, Operating System, language, browser version, IP address, machine model, infection time, update time, stolen cookies, logins, country, and list of compromised domains (see Figure 3). To facilitate the use of stolen digital browser fingerprints, Genesis Store provides a Chrome extension that automatically preloads logins, cookies, browser profile, etc. By mimicking the same browser profile as the victim, the attacker is able to bypass the security mechanisms of the platform, which base their user identification on the browser fingerprint. But where does Genesis get the credentials from ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J0K3-l1fS1Y3Bvsb" /><figcaption>Figure 3 — List of bots for sale on Genesis Store</figcaption></figure><p><strong>Where does Genesis Store get the credentials from ?</strong></p><p>Genesis Store is fed with stolen digital fingerprints stemming from bots, i.e infected computers. Digital fingerprints, e.g. credentials, credits cards, etc. are obtained either using form grabbers or a crawler to extract the credentials stored in the built-in browser password managers. To infect the hosts, attackers run malware campaigns by e.g. sending infected email attachments to the victims. According to <a href="https://ke-la.com/exploring-the-genesis-supply-chain-for-fun-and-profit/">Raveed Laeb</a>, Product Manager at KELA most infections are carried over by the AZORult malware, which encompasses 90% of all the infections.</p><p>Form grabbers are pieces of software that sneak into the browser and detect login information as it is being entered into a form, along with other identifying information that will help the software masquerade as a customer. It can be seen as an extension, which can intercept browser requests, parse the request’s payload, extract the credentials if any, and send them to the attacker.</p><p>Browser password managers keep track of the saved credentials of all visited websites. Whenever a user logs in on a website, the browser will ask to save the username and passwords in its local database, and next time the user visits that website, the user will be automatically logged in using these saved credentials (see Figure 4). It is a security best practice to pick one password per website, which prevents the attacker from logging in on other platforms if one of the victim credentials got stolen. However, this has a major pitfall if the computer gets infected by a malware, the malware can thieve all the credentials contained inside the password manager. But how easy is it to steal credentials ? To answer this question, we dissected the Google Chrome Password Manager for the Windows platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*omEvvWo1U3CJj4phKGXfEw.png" /><figcaption>Figure 4 — Save password form in Google Chrome</figcaption></figure><p><strong>How does Google Chrome Manage Credentials ?</strong></p><p>Google Chrome stores all the ciphered credentials in a local SQLite database on the user session. Depending on the version, the way that Google Chrome ciphers and deciphers credentials at runtime differs.</p><p>Before version 80, Google Chrome was solely relying on the DPAPI (Data Protection API) to encrypt and decrypt passwords in their local SQLite database. DPAPI allows the user to encrypt data using information from the current user account or computer. It is used to alleviate the difficult problem of explicitly generating and storing a cryptographic key. The major pitfall is that anyone logged on the same session can pull out the list of credentials and decrypt the passwords, i.e., any malicious software is able to steal the list of credentials. An example is provided in the Python script in Figure 5. This script <strong>(1)</strong> connects to the local SQLite database stored in “AppData\Local\Google\Chrome\User Data\Default”, <strong>(2)</strong> makes a SQL request to request the encrypted credentials, <strong>(3)</strong> iterates over the credentials, and eventually <strong>(4)</strong> for each credential, decrypts the password using the “CryptUnprotectData()” function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5e12816f1eef5f67b2694847a9b118f/href">https://medium.com/media/a5e12816f1eef5f67b2694847a9b118f/href</a></iframe><p>From Chrome 80, Google decided to change the way passwords are stored in their local SQLite database. Instead of solely using the Windows encrypting function, Google is also relying on the algorithm AES256-GCM (Galois/Counter Mode) with a key, which has been encrypted using the DPAPI and stored in a JSON file. An example is provided in the Python script in Figure 6. This script <strong>(1)</strong> retrieves the ciphered key from the JSON file, <strong>(2)</strong> decodes the cipher key using base64 encoding, <strong>(3)</strong> ignores the first 5 characters, <strong>(4)</strong> decrypts the key by means of the “CryptUnprotectData()” function, <strong>(5)</strong> connects to the local SQLite database stored in “AppData\Local\Google\Chrome\User Data\Default”, <strong>(6)</strong> makes a SQL request to request the credentials, <strong>(7)</strong> iterates over the credentials,<strong> (8)</strong> and for each credential, extracts the signature version, the nonce, the ciphertext, and the MAC tag, <strong>(9)</strong> initializes the AES algorithm with the ciphered key, the mode, and the nonce, and eventually <strong>(10)</strong> decrypts the password and validates it using the provided MAC tag. It is worth noting that the MAC tag makes sure the message has been decrypted using the right key and no modification has taken place in transit. If the MAC tag is wrong, the entire message should not be trusted.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11ec4f03c0d582ac54a0018a6b4d4c57/href">https://medium.com/media/11ec4f03c0d582ac54a0018a6b4d4c57/href</a></iframe><p>Although anyone logged on the same session is still able to decipher the passwords, this compels the malware author to update their source code, which makes the malware inactive for a while. Nevertheless, after updating to version 80 or later, we noticed that only new saved credentials were stored in a safer way, old passwords were still stored in the old fashioned way. After knowing the modus operandi of the attackers, we were eager to know if one of our internal computers was compromised or if one of our sellers was impacted.</p><p><strong>Investigation on a real case</strong></p><p>The signing up process of the Genesis Store was not a cup of tea as an invitation code was required. Unless we knew an existing member, who could send us out an invitation, the other option consisted in buying it on a dark web forum. We decided to crawl the dark web, looking for the right site to get the invitation, knowing that many dark web sites are just scams. After some minutes of investigation, one website turned out to be genuine and for a few dollars via a BitCoin transfer we were able to get the code. Once the code was in our hands, we were finally able to create an account and have access to a whopping 260k bots.</p><p>Searching for any internal compromised computers was our first reflex, but to our relief, the result was negative; however, six of our sellers were compromised. Since a relationship with our sellers is essential, we bought those accounts and informed the respective sellers of their security issues. To facilitate the malware removal, clear instructions were emailed to them and after a week, all the computers were disinfected. And now the question is how can e-commerce monitor those credentials leaks in the whole dark web and forums ? Did you hear about Threat Intelligence Tools ?</p><p><strong>Threat Intelligence Tools: what are they ?</strong></p><p>Threat Intelligence Tool is a tool that identifies and anticipates the cyber threats but also catches up the most recent attacks. Interesting findings are for instance: what is the current security trend in 2020 or which type of attacks are mostly carried over. The tool can be seen as a huge collector of logs sent by different sensors, e.g website crawlers. Later, the collected data is processed by a natural language processor to identify the semantics, translate the texts, aggregate, and correlate the results. This data can be enriched by different sources like indicators of compromise, IP addresses, domain names, etc. Based on a list of filters, the analyst will receive alerts and will have a clear view of what is occurring. See Figure 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nI3-E3X70MQJDq5amnl-DQ.png" /><figcaption>Figure 7: Threat Intelligence Tool</figcaption></figure><p>One interesting use case consists in detecting vulnerable components of an e-commerce infrastructure. Being a step ahead allows e-commerce industry to patch the most vulnerable components of its infrastructures. Because of zero day vulnerabilities regularly popping up, it might be judicious to track the sensitive components and prevent attacks from occurring after the publication of zero day vulnerabilities. For instance during the COVID-19, employees are compelled to work from home, in which case the accent is stressed on the VPN technology and visio conference tools. Making sure the VPN and visio conferences tools are up to date is a mandatory step at ManoMano.</p><p>As mentioned in the previous section, monitoring the data exfiltration is a paramount step in a company. Being aware of which account or computer has been compromised in a responsive way allows to reduce the risk as much as possible. Being reactive makes a huge difference in terms of security impact. If the e-commerce company alerts a seller that their computer has been infected and needs to be disinfected as soon as possible, the e-commerce company achieves two goals: (1) protect the seller and thus its industry, and (2) increase the trust between seller and the industry.</p><p>Nevertheless, one of the pitfalls of the intelligence tools is the overwhelming quantity of information it provides. It might be handy to narrow down the search and tune the monitors to only receive alerts on specific categories. In other words, the main challenge consists in finding the right balance between the alerts to keep false positives as low as possible while keeping true negatives very high. For instance when setting up monitors on Genesis Store, we selected only domains that are critical to us, e.g., ManoMano’s back-office URLs. Checking the cyber attacks mentioned on Twitter was definitely too verbose for us, and in the end, the analyst will stop watching the alerts because they are not reliable anymore.</p><p>ManoMano would love to hear your experience on how you are handling security threats and know your feedback about threat intelligence tools, e.g., how you make the most of it. Please leave a comment below this article if you feel like it ;)</p><h3>Acknowledgements</h3><p>Thanks to Fabien Lemarchand, Grégoire Paris, and Pierre Fournier for many corrections and suggestions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=951f7d221cf8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manomano-tech/how-manomano-faces-security-threats-951f7d221cf8">How ManoMano Faces Security Threats</a> was originally published in <a href="https://medium.com/manomano-tech">ManoMano Tech team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>