<?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 Roy Elia on Medium]]></title>
        <description><![CDATA[Stories by Roy Elia on Medium]]></description>
        <link>https://medium.com/@roy2477?source=rss-9e332ae409f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wZyytR32T933PLBe</url>
            <title>Stories by Roy Elia on Medium</title>
            <link>https://medium.com/@roy2477?source=rss-9e332ae409f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:45:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roy2477/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[Next-Gen Security: How EDR is Transforming Cyber Defense]]></title>
            <link>https://medium.com/@roy2477/next-gen-security-how-edr-is-transforming-cyber-defense-81f28cd4a99c?source=rss-9e332ae409f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/81f28cd4a99c</guid>
            <category><![CDATA[enterprise-security]]></category>
            <category><![CDATA[edr]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[antivirus]]></category>
            <category><![CDATA[endpoint-security]]></category>
            <dc:creator><![CDATA[Roy Elia]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 08:42:25 GMT</pubDate>
            <atom:updated>2025-03-02T08:42:25.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVYCl2Ipxd25-CO8MBSTew.png" /></figure><p>As cyber threats evolve in complexity and frequency, organizations face unprecedented challenges in safeguarding their digital assets. The once-simple antivirus solutions relied on known signatures and are no longer enough to defend against today’s sophisticated threats. This article dives deep into the critical role of Endpoint Detection and Response (EDR) systems in modern cybersecurity. Whether you are a seasoned professional or exploring advanced security measures for your organization, this guide will provide a comprehensive understanding of EDR technology and its significance in protecting critical endpoints. Along the way, we’ll also explore what’s next in the evolution of security tools, such as Security Information and Event Management (SIEM) and Extended Detection and Response (XDR), and how they complement EDR to form a more robust security framework.</p><h4>The Importance of Endpoint Security in Modern Cyber Threats</h4><p>In today’s interconnected world, cyber threats have grown increasingly sophisticated, constantly evolving to exploit vulnerabilities in systems and networks. With the rise of remote work and the increasing reliance on mobile devices, endpoints — laptops, desktops, smartphones, and other devices — have become prime targets for attackers. As organizations expand their digital footprint, protecting these endpoints has become one of the most critical challenges in cybersecurity.</p><p>Endpoints represent the last line of defense, as they are often the entry points through which attackers penetrate a network. Malware, ransomware, and phishing attacks typically target individual devices, leveraging user behavior and software vulnerabilities to gain unauthorized access. Traditional security solutions like antivirus programs, while still relevant, are often insufficient against the new generation of advanced threats, which can bypass signature-based detection methods and exploit zero-day vulnerabilities.</p><p>This is where the need for advanced security mechanisms, such as Endpoint Detection and Response (EDR), comes into play. EDR provides continuous visibility into endpoint activities, enabling security teams to detect, respond to, and mitigate cyber threats in real-time.</p><h4>Introduction to Endpoint Detection and Response (EDR)</h4><p>EDR is a cybersecurity solution specifically designed to monitor and analyze activity on endpoints to detect and respond to threats as they happen. Unlike traditional antivirus software that primarily relies on identifying known malicious signatures, EDR solutions take a more proactive and comprehensive approach. They gather and analyze large amounts of endpoint data to uncover unusual or suspicious behavior that might indicate a cyberattack in progress.</p><p>EDR tools continuously monitor endpoints and provide in-depth visibility into all activities, enabling security teams to detect even the most subtle signs of malicious behavior. By leveraging advanced techniques such as behavioral analysis and machine learning, EDR can identify anomalies and suspicious patterns — such as unauthorized access, unusual file changes, or lateral movement within the network — allowing for swift incident response.</p><p>The role of EDR is not limited to detection; it also emphasizes fast response and containment. EDR solutions offer automated remediation actions, such as isolating infected devices, terminating malicious processes, and removing malicious files, thereby limiting the damage before a full investigation can be conducted. Additionally, EDR solutions retain historical endpoint data, which allows security analysts to perform forensic investigations and threat hunting to understand the full scope of an incident or ongoing attack.</p><h3>Why EDRs Are Replacing Traditional Antivirus Solutions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*uTEt_U1X1N2AMmcw7Wt7Bg.jpeg" /></figure><p>Traditional antivirus (AV) solutions have long been a staple of endpoint protection. Initially developed to detect and prevent malware, these solutions primarily relied on signature-based detection methods, which involve comparing files against a database of known virus signatures. While effective against known threats like viruses, worms, and Trojans, this approach has become less reliable as cyber threats have evolved. Today, advanced persistent threats (APTs), fileless malware, and zero-day vulnerabilities pose significant challenges that traditional antivirus software struggles to address.</p><p><strong>Limitations of Traditional Antivirus Solutions</strong></p><p>Traditional antivirus solutions excel at identifying known malware by scanning files and directories for patterns. However, their reliance on signature-based detection creates several limitations:</p><ol><li><strong>Reactive Approach</strong>: Traditional antivirus only protects against threats that have been previously identified and cataloged. As cybercriminals continuously develop new malware, AV solutions must be frequently updated. Without these updates, they become ineffective against new threats.</li><li><strong>Limited Detection Scope</strong>: Antivirus software typically fails to detect more sophisticated attacks, such as fileless malware or exploits that operate within system memory. These types of attacks often bypass signature-based detection because they don’t leave traditional malware “fingerprints.”</li><li><strong>Manual Processes</strong>: Many AV solutions require manual updates or user intervention to remove threats. While they might block or quarantine malware, they often fail to provide automated responses, leaving systems vulnerable during this delay.</li><li><strong>Lack of Real-Time Monitoring</strong>: Antivirus software often works in intervals, scanning for threats at scheduled times or when triggered by a specific event. This makes it difficult to respond to ongoing or rapidly escalating attacks in real-time.</li></ol><p><strong>Factors Driving the Shift to EDR</strong></p><p>EDR solutions emerged as a response to the evolving cybersecurity landscape. These tools address many of the shortcomings of traditional AV by taking a more proactive, real-time approach. Several key factors have driven the widespread adoption of EDR solutions:</p><ol><li><strong>Behavioral Analysis &amp; Machine Learning</strong>: Unlike traditional antivirus, which scans for known signatures, EDR solutions continuously monitor endpoint activity to detect anomalous behavior. Using machine learning and advanced analytics, EDR tools can identify unusual patterns and flag potential threats before they fully materialize.</li><li><strong>Real-Time Threat Detection &amp; Response</strong>: One of the critical advantages of EDR is its ability to provide continuous, real-time monitoring of endpoints. This allows security teams to detect threats as they happen and respond immediately. Automated responses like isolating compromised devices or blocking malicious processes further limit damage.</li><li><strong>Zero-Day and Fileless Threat Protection</strong>: EDR solutions excel at detecting sophisticated attacks such as zero-day exploits and fileless malware, which operate without traditional file signatures. By focusing on endpoint behaviors rather than files, EDR can identify suspicious activities regardless of the specific malware strain.</li><li><strong>Comprehensive Endpoint Visibility</strong>: EDR tools offer centralized control over all endpoints within an organization. Administrators can monitor and manage multiple devices simultaneously, deploying security patches, updates, and configurations remotely. This centralized visibility is critical in today’s remote work environment, where endpoints are more dispersed than ever.</li></ol><p>The rise in endpoint attacks, fueled by the proliferation of remote work and bring-your-own-device (BYOD) policies, has made traditional antivirus software less effective. Cybercriminals now employ more advanced techniques, including:</p><ul><li><strong>Fileless Attacks</strong>: Malware that operates entirely in memory, leaving no files to scan.</li><li><strong>Phishing and Social Engineering</strong>: Attacks that exploit user behavior rather than system vulnerabilities.</li><li><strong>Advanced Persistent Threats (APTs)</strong>: Long-term, stealthy attacks designed to evade detection for extended periods.</li></ul><p>As these threats grow more sophisticated, organizations increasingly need tools that offer more than just protection against known malware. EDR fills this gap by providing continuous monitoring and response capabilities, enabling security teams to detect and mitigate threats in real-time.</p><p>While traditional antivirus solutions focus on prevention, EDR adopts a more holistic approach to endpoint security. The shift from traditional antivirus to EDR solutions is a natural evolution in cybersecurity. As threats become more sophisticated and harder to detect, relying solely on signature-based detection methods is no longer sufficient. EDR’s focus on real-time monitoring, behavioral analysis, and automated response ensures that organizations are better equipped to deal with modern cyber threats. The rise of EDR reflects a growing recognition that in the ever-evolving world of cybersecurity, proactive defense mechanisms are crucial for staying one step ahead of adversaries.</p><h3>Key Features of EDR Solutions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*JfMiIL_ppRnc1aHO5ESlrg.jpeg" /></figure><h4>How EDR Works</h4><p>Endpoint Detection and Response (EDR) systems continuously monitor endpoint activities, collecting telemetry for real-time analysis to detect anomalies and potential threats. These solutions rely on advanced algorithms and machine learning models to provide proactive threat detection, enabling quick incident response and forensic investigations. Through continuous monitoring, data collection, and analysis, EDR systems create a robust defense mechanism against sophisticated cyber threats.</p><h4>Advanced Threat Detection Techniques</h4><p>EDR solutions detect advanced threats by leveraging comprehensive visibility across all endpoints. Behavioral analytics play a central role, correlating data from multiple sources, such as process executions, network traffic, and system events, to identify patterns indicative of malicious behavior. By analyzing these behaviors, EDR systems can detect threats that traditional signature-based antivirus systems might miss, including zero-day attacks, fileless malware, and advanced persistent threats (APTs).</p><p>Machine learning models in EDR platforms constantly evolve, improving their ability to distinguish between benign activities and real threats. These models are trained to reduce false positives by learning from past data and adapting to new threat patterns.</p><h4>Real-Time Analysis</h4><p>The real-time analysis capability of EDR solutions allows for continuous scrutiny of endpoint activities. As endpoints generate a massive amount of telemetry data — such as file modifications, process launches, and network connections — EDR solutions can flag suspicious behaviors almost instantly. For example, if a process starts abnormally or an endpoint attempts to access sensitive data in an unusual way, the EDR system immediately triggers alerts for further investigation.</p><p>Integration with threat intelligence feeds enhances real-time detection by incorporating known Indicators of Compromise (IoCs) and tactics, techniques, and procedures (TTPs). This enables quicker detection and response to emerging threats, both known and unknown, enhancing overall protection.</p><h4>Continuous Endpoint Data Collection</h4><p>EDR systems collect vast amounts of endpoint telemetry continuously, capturing every action, process, and file interaction. This data is essential for real-time detection as well as post-incident investigations. The collected information is stored either locally or in a centralized location, depending on the architecture, where it can be analyzed to uncover threats and identify patterns. Key telemetry sources include process executions, file and registry modifications, network connections, and user behaviors.</p><p>This granular data collection provides a comprehensive view of endpoint activity, allowing security teams to detect anomalies and investigate incidents with a detailed timeline of events.</p><h4>Behavioral Analysis and Anomaly Detection</h4><p>Unlike traditional solutions that rely on static signatures, EDR solutions focus on behavioral analysis. This involves evaluating normal endpoint behavior and detecting deviations from established baselines. Anomalies such as unauthorized lateral movement, unexpected file encryption, or unusual communication with external servers can indicate a potential threat.</p><p>Machine learning models enhance anomaly detection by learning from historical data, continuously updating their understanding of normal endpoint behavior. This reduces false positives and ensures more accurate threat detection, particularly for new and evolving threats.</p><h4>Automated Incident Response</h4><p>One of the most powerful features of modern EDR solutions is the ability to automate incident response. When an EDR system identifies a potential threat, it can automatically execute pre-defined response actions to minimize damage. Common automated responses include:</p><ul><li>Isolating compromised endpoints from the network</li><li>Terminating malicious processes</li><li>Removing or quarantining suspicious files</li><li>Restoring altered configurations or files</li></ul><p>Automation drastically reduces the time between detection and remediation, limiting the scope of damage and preventing lateral movement of attackers. Automated response workflows can also be tailored to specific threat scenarios, ensuring that EDR systems are equipped to respond effectively to various types of attacks.</p><h4>Threat Containment and Remediation</h4><p>In cases where a threat is detected, EDR solutions can quickly contain the affected endpoint, preventing further spread within the network. Quarantine measures may involve disabling network access, terminating malicious sessions, or blocking specific processes.</p><p>For remediation, EDR solutions go beyond basic containment by:</p><ul><li>Automatically removing malware</li><li>Reverting unauthorized system changes</li><li>Restoring encrypted or modified files to their previous states</li></ul><p>These remediation capabilities are crucial for minimizing downtime and ensuring rapid recovery after an attack.</p><h3>What’s Next: Emerging Trends in Endpoint Security</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*kfJjXTBuziDpOQlisjmlgw.jpeg" /></figure><p>The future of endpoint security is rapidly evolving as threat actors become more sophisticated, requiring equally advanced defenses. Emerging technologies such as Managed Detection and Response (MDR), Extended Detection and Response (XDR), and Security Information and Event Management (SIEM) are leading the charge, each addressing different aspects of modern cybersecurity challenges.</p><h4>Evolving Threat Landscape</h4><p>As cyberattacks grow more advanced and multi-faceted, endpoint security must adapt. The increasing use of automation by attackers, the rise in supply chain attacks, and the prevalence of zero-day exploits demand faster, more proactive defenses. Organizations must now adopt a multi-layered security strategy that extends beyond traditional endpoint detection to cover the entire attack surface.</p><h4>Differences Between XDR, MDR, and EDR</h4><p>EDR solutions specialize in monitoring and protecting endpoints such as laptops, servers, and mobile devices. They are designed to detect suspicious activities at the endpoint level, offering real-time visibility into potential threats. EDR collects data locally, analyzes it using behavioral analytics, and responds to attacks with automated or manual containment actions.</p><h4>XDR (Extended Detection and Response)</h4><p>XDR is the evolution of EDR, expanding detection and response capabilities beyond endpoints to include a wider range of data sources. XDR integrates logs from network traffic, cloud environments, email systems, and even third-party applications. This unification provides a more complete picture of an attack, enabling faster detection and a more coordinated response.</p><p>Key benefits of <strong>XDR</strong> include:</p><ul><li><strong>Consolidated visibility</strong>: By integrating data from multiple security tools, XDR surfaces threats that could remain hidden if examined in silos.</li><li><strong>Faster investigation</strong>: Correlating events from various sources enables teams to detect patterns and prioritize significant threats.</li><li><strong>Reduced complexity</strong>: XDR simplifies threat management by offering a unified interface, automating repetitive tasks, and minimizing the need for point solutions.</li></ul><p>In short, XDR delivers more comprehensive protection by correlating disparate events across the network, whereas EDR is limited to endpoint-level activity.</p><h4>MDR (Managed Detection and Response)</h4><p>While EDR and XDR provide organizations with detection and response capabilities, <strong>MDR</strong> takes it a step further by offering a fully managed service. MDR combines human expertise with cutting-edge technology, delivering around-the-clock monitoring, threat hunting, and incident response.</p><p>For organizations without the resources to maintain an in-house security operations center (SOC), MDR provides:</p><ul><li><strong>Expert-led incident response</strong>: Security professionals are available to investigate and remediate threats in real-time.</li><li><strong>Threat hunting</strong>: Proactive searches for potential compromises using behavioral analytics and threat intelligence.</li><li><strong>Reduced alert fatigue</strong>: MDR offloads the burden of managing and interpreting large volumes of alerts, filtering out false positives to focus on critical threats.</li></ul><p>MDR is particularly valuable for organizations that lack dedicated security teams, as it outsources the complexity of managing security infrastructure while offering rapid response and remediation.</p><h4>EDR vs. XDR vs. MDR: A Technical Comparison</h4><ul><li><strong>Scope of Detection</strong>: EDR focuses strictly on endpoints, while XDR correlates data from a variety of sources, such as network traffic, email, and cloud services. MDR, meanwhile, operates across both endpoint and extended environments but adds the benefit of expert human intervention.</li><li><strong>Automation vs. Human Expertise</strong>: EDR and XDR leverage automation and AI to detect and respond to threats at scale. MDR introduces the human element, combining automation with expert analysis, particularly useful for complex or advanced persistent threats (APTs).</li><li><strong>Complexity Management</strong>: XDR simplifies security operations by offering integrated detection across the environment. EDR often requires more manual intervention to piece together incident data from different tools. MDR removes operational complexity entirely, providing managed service with continuous oversight.</li></ul><h4>EDR vs. SIEM</h4><p>While EDR zeroes in on endpoint threats, <strong>SIEM</strong> aggregates and analyzes security events across the entire IT infrastructure, including firewalls, servers, databases, and more. SIEM systems focus on correlating log data from various sources to provide centralized visibility, which is particularly useful for compliance reporting and post-incident investigations.</p><p>Key differences:</p><ul><li><strong>Data Aggregation</strong>: EDR focuses on specific endpoint activities, while SIEM ingests data from the entire network, delivering a broader view of security events.</li><li><strong>Forensic Analysis</strong>: SIEM excels at historical log analysis, making it suitable for long-term threat analysis, whereas EDR is designed for real-time, endpoint-level visibility.</li><li><strong>Scalability</strong>: SIEM solutions are highly customizable, often involving complex configurations to suit large enterprise environments. EDR, on the other hand, offers more focused and streamlined endpoint monitoring.</li></ul><p>Ultimately, while EDR offers real-time endpoint monitoring and response, SIEM delivers broader visibility but often lacks the immediate response capabilities of EDR. Combining both is common in sophisticated security architectures.</p><h3>The Road Ahead: Future Trends in Endpoint Security</h3><h4>Integration of AI and Machine Learning</h4><p>AI and machine learning (ML) are becoming essential in advancing the capabilities of EDR, XDR, and MDR. By analyzing vast amounts of data, these technologies can detect patterns, predict attacks, and reduce false positives with greater accuracy. AI-powered automation will streamline incident response processes, allowing security teams to focus on more complex tasks.</p><h4>Zero Trust Architecture</h4><p>The rise of <strong>zero-trust</strong> frameworks is driving significant changes in endpoint security. Zero trust assumes that all network traffic, whether inside or outside the organization, is potentially malicious. EDR and XDR systems will need to adapt to this shift by integrating more granular access controls and continuous authentication checks.</p><h4>Convergence of EDR, XDR, and SIEM</h4><p>The future of endpoint security lies in the convergence of different security solutions. Unified platforms that combine the real-time response of EDR, XDR’s cross-layer correlation, and SIEM’s long-term analysis capabilities are expected to dominate the market. This convergence will allow organizations to streamline their security operations while achieving a higher level of protection.</p><p>In conclusion, endpoint security is no longer just about protecting individual devices. As threats evolve, so must the tools and technologies used to defend against them. By leveraging MDR, XDR, and SIEM in concert with EDR, organizations can build a robust, layered defense system capable of withstanding the most sophisticated attacks.</p><h3>Conclusion</h3><p>The evolution of cybersecurity is a testament to the adaptability and ingenuity of both defenders and adversaries. From the humble beginnings of traditional antivirus software to the cutting-edge capabilities of Endpoint Detection and Response (EDR), we have witnessed a seismic shift in how threats are detected and mitigated. However, as this article has highlighted, no single solution can address the multifaceted challenges posed by today’s cyber landscape.</p><p>EDR has emerged as a vital tool in the fight against sophisticated threats, offering real-time monitoring, behavioral analysis, and automated responses. Yet, as cyberattacks become more advanced, the need for integrated and comprehensive security solutions has never been more apparent. Technologies such as Extended Detection and Response (XDR) and Managed Detection and Response (MDR) are reshaping the endpoint security ecosystem, providing broader coverage and expertise that augment the capabilities of EDR. Meanwhile, Security Information and Event Management (SIEM) systems remain indispensable for their network-wide visibility and compliance support.</p><p>The road ahead is clear: the future of endpoint security lies in collaboration and convergence. Unified platforms that combine the strengths of EDR, XDR, SIEM, and MDR will offer organizations a streamlined, multi-layered defense system capable of countering both known and unknown threats. These technologies, bolstered by advances in artificial intelligence and machine learning, will drive a proactive and automated approach to security.</p><p>As cyber threats continue to evolve, so must our strategies, tools, and mindsets. By embracing innovation and fostering collaboration, we can ensure that endpoint security remains not just a line of defense, but a cornerstone of organizational resilience in an increasingly digital world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81f28cd4a99c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decrypting Android App SSL Traffic]]></title>
            <link>https://medium.com/@roy2477/decrypting-android-app-ssl-traffic-c480e2143743?source=rss-9e332ae409f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c480e2143743</guid>
            <category><![CDATA[traffic-analysis]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[security-research]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Roy Elia]]></dc:creator>
            <pubDate>Tue, 03 Jan 2023 11:43:16 GMT</pubDate>
            <atom:updated>2023-01-03T13:07:40.147Z</atom:updated>
            <content:encoded><![CDATA[<h3>Decrypting Android App SSL Traffic: A Practical Guide for Security Researchers</h3><p>This article was written in collaboration with <a href="https://medium.com/u/cccede1e9064">Omry Zur</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICJPCINO5InxfHqWvC342Q.png" /></figure><h3>Intro</h3><p>Capturing SSL (HTTPS) encrypted traffic from an Android app (APK) can be a valuable tool for security researchers. By analyzing this traffic, researchers can <strong>identify an app&#39;s potential vulnerabilities and security weaknesses</strong>. In this article, we will demonstrate, step by step, various techniques, and tools that can be used to capture SSL traffic from an Android app, from a security researcher’s perspective. These techniques can be used to conduct deep research on an app and understand the communication between the app and its server. By following the steps outlined in this article, security researchers can easily capture SSL traffic from Android apps and begin their analysis.</p><h3>SSL Traffic in Mobile Applications</h3><p><strong>SSL </strong>(Secure Sockets Layer) is a security protocol that is widely used to encrypt communication between clients and servers over the internet. It is <strong>designed to prevent third parties from intercepting and viewing sensitive data that is transmitted between the two parties</strong>. SSL is commonly used to protect financial transactions, login credentials, and other sensitive information that is transmitted online.</p><p>In the context of applications, SSL is often used to <strong>secure communication between an app and a server</strong>. This is especially important for apps that handle sensitive data, such as financial apps, health apps, and social media apps. By using SSL to encrypt communication between the app and the server, developers can protect user data from being accessed by unauthorized parties.</p><p>However, as a security researcher, you may be interested in capturing and analyzing SSL traffic from an app in order to <strong>understand how it communicates with its server(s) and identify any potential vulnerabilities</strong>. So, let’s dive in and show you how to do this in a step-by-step manner.</p><h3>Step 0 — Tooling and installations</h3><p>Before we begin our demonstration, it is important to ensure that we have the necessary tools and installations in place. In this step, we will cover the tools that are required for capturing SSL traffic from an Android app.</p><p>First, we will need a <strong>web debugging proxy</strong> such as <a href="https://www.telerik.com/fiddler"><em>Fiddler</em></a>, which can intercept and modify network traffic. This tool will allow us to capture and analyze the SSL traffic from our Android app.</p><p>Next, we will need an <strong>Android desktop emulator</strong>, such as the <em>Virtual Device Manager (AVD)</em> in <a href="https://developer.android.com/studio"><em>Android Studio</em></a>. This will allow us to run our Android app in a simulated environment on our desktop.</p><p>Additionally, we will need an <strong>APK editing tool</strong> such as <a href="https://ibotpeaches.github.io/Apktool/"><em>apktool</em></a>, which can be used to decompile and modify the app’s package file. This will allow us to make changes to the app’s configuration, such as enabling SSL debugging, which is required for capturing SSL traffic.</p><p>With these tools in place, we are ready to begin our demonstration.</p><h3>Step 1 — Download an APK from APKPure</h3><p>In this step, we will download the Android app that we want to capture SSL traffic from. There are many sources where you can download Android apps, such as the Google Play Store, or alternative app stores like <a href="https://m.apkpure.com/"><em>APKPure</em></a>. In this example, we will use APKPure to download our app.</p><p>To do this, go to the APKPure website and search for the app that you want to download.</p><figure><img alt="APKPure" src="https://cdn-images-1.medium.com/max/1024/1*ZqqQiLzXoT7x-agj7GmFcw.png" /><figcaption>Download APK from APKPure</figcaption></figure><p>After the download is complete, you will have the app’s APK file saved on your computer. In the next step, we will use this APK file to install the app on our Android emulator.</p><h3>Step 2 — Configure the emulator</h3><p>Now, let’s move on to configure our Android emulator to prepare for capturing SSL traffic from our app.</p><p>First, open Android Studio and go to the <strong>Virtual Device Manager (AVD)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*S20yi_vwByllv0yUjmmvvQ.png" /><figcaption>Virtual Device Manager (AVD)</figcaption></figure><p>In the AVD Manager, <strong>create a new virtual device</strong> by following these steps:</p><ul><li>Click the “<strong><em>Create Virtual Device</em></strong>” button to open the “Select Hardware” dialog.</li><li>In the “Select Hardware” dialog, choose the <strong>desired model of Android device </strong>and click “Next”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*ereoIYnz6Yq8mUx3kNCnYA.png" /><figcaption>Selecting Hardware Model</figcaption></figure><ul><li>In the “System Image” dialog, choose the <strong>desired Android OS version</strong> and click “Next”. It is recommended to choose a <em>recent Android</em> <em>version </em>that is compatible with the app that you are going to run.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tuIIrUtP1MNdJap6jxIUA.png" /><figcaption>Selecting Android OS Version</figcaption></figure><ul><li>Review the configuration of your virtual device and click “<strong><em>Finish</em></strong>” to create it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLP6jegqFme7xoIWKPutgQ.png" /><figcaption>Reviewing the Selected Configuration</figcaption></figure><p>Once you have created your virtual device, start it by clicking the “<strong><em>Start</em></strong>” button. This will launch the emulator and bring up the Android home screen.</p><p>Now that our emulator is set up, we are ready to install our app and begin capturing SSL traffic.</p><h3>Step 3 — Installing the APK inside our emulator</h3><p>Next on the list is installing the Android app that we want to capture SSL traffic from on our emulator. To do this, just <strong>Drag and drop the APK file onto the emulator window</strong>. This will install the app on the emulator. Once the app is installed, <strong>launch it from the emulator’s home screen</strong>.</p><p>After the app is installed and launched on the emulator, you will be able to use it just as you would on a real Android device. Up next, we will show you how to capture SSL traffic from the app.</p><h3>Step 4 — Configure the proxy to work with our emulator</h3><p>In the following section, we will <strong>configure our web debugging proxy</strong> to work with our emulator and begin capturing SSL traffic from the app.</p><p>First, we need to <strong>find out the IP address of our computer</strong>. To do this, open a command prompt and type</p><pre>&gt; ipconfig</pre><p>to display the network configuration. Look for the “<strong><em>IPv4 Address</em></strong>” field, which will show your computer’s IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*D9HtzkPAWjB48kCKJTRSsg.png" /><figcaption>ipconfig Output</figcaption></figure><p>Next, <strong><em>open Fiddler</em></strong> and go to the “<strong><em>Tools</em></strong>” menu, then select “<strong><em>Fiddler Options</em></strong>”. In the Fiddler Options window, go to the “<strong><em>Connections</em></strong>” tab and make sure that the “<strong><em>Allow remote computers to connect</em></strong>” option is checked. <strong>This will allow our emulator to connect to Fiddler and send traffic through it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*g2IuYOZtsc24BsnAwfVaBw.png" /><figcaption>Allow remote computers to connect configuration</figcaption></figure><p>In the same window, go to the “<strong><em>HTTPS</em></strong>” tab and check the “<strong><em>Decrypt HTTPS traffic</em></strong>” option. <strong>This will allow Fiddler to capture and decrypt HTTPS traffic, including SSL traffic from our app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*FdcjhrHoycGxAUmHgcHEaw.png" /><figcaption>Decrypt HTTPS traffic configuration</figcaption></figure><p>Now, we need to <strong><em>configure our emulator to use Fiddler as its proxy</em></strong>. To do this, open the emulator’s settings and go to the “<strong><em>Network</em></strong>” section. In the “Network” settings, choose “<strong><em>Manual proxy configuration</em></strong>” and enter your computer’s IP address and the default port of Fiddler’s proxy (usually 8888). <strong>This will route all network traffic from the emulator through Fiddler, allowing us to capture and analyze it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*C7tlYs3TkyQ2B43O04WRlA.png" /><figcaption>Manual proxy configuration</figcaption></figure><p>To continue, open the emulator’s<strong> <em>Wi-Fi settings</em></strong> and click on the <strong><em>gear icon</em></strong> next to the Wi-Fi network that you are connected to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*KdrqM-8I4kRnoEE7RPjvRQ.png" /><figcaption><em>Android Wi-Fi settings</em></figcaption></figure><p>In the settings for that network, choose “<strong><em>Manual</em></strong>” in the “<strong><em>Proxy</em></strong>” dropdown and <strong><em>enter the same IP address and port </em></strong>that you entered in the emulator’s proxy settings. <strong>This will ensure that all network traffic, including SSL traffic from the app, is routed through the proxy.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*tlBbd-S7MTFZpsTV319QIg.png" /><figcaption>Proxy settings</figcaption></figure><p>After configuring the proxy, you will need to <strong><em>perform a cold boot</em></strong> of the emulator to apply the changes. To do this, go to the Device Manager and click the “<strong><em>Cold Boot Now</em></strong>” button for the emulator. <strong>This will restart the emulator and apply the new proxy settings.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*jDlAujCR0frSNZmbagJc3A.png" /></figure><p>Once the emulator has restarted, launch the app and use it as you normally would. Your proxy should now be capturing the encrypted SSL traffic from the app.</p><blockquote><strong>Sanity Check: </strong>To verify that this is working, try browsing to a website from the emulator and check if the traffic is being captured by the proxy.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bf7jh3gwShOxAplsmB0StA.png" /><figcaption>The encrypted SSL traffic from the app</figcaption></figure><blockquote>The <strong>lock icon </strong>adjacent to the packet id (#) symbolizes that the traffic is encrypted by the ssl protocol. Therefore, we can only see the requests and responses but not their content (body).</blockquote><h3>Step 5 — Install Fiddler’s root certificate to see the decrypted traffic</h3><p>Our next step is to <strong>install Fiddler’s root certificate</strong> on the emulator to <strong>allow us to decrypt the SSL traffic from the app.</strong></p><p>First, <strong><em>open a web browser on the emulator</em></strong> and browse to “<a href="http://ipv4.fiddler:8888/"><strong><em>http://ipv4.fiddler:8888</em></strong></a><strong><em>”</em></strong>. This will open Fiddler’s web interface. From here, click on the “<strong><em>FiddlerRoot certificate</em></strong>” link in order to <strong>download the root certificate.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*dEvrCiasqOljsEzD1uMgjQ.png" /><figcaption>Fiddler’s web interface</figcaption></figure><p>Next, go to the emulator’s settings and search for “<strong><em>Install a certificate</em></strong>”. In the “<strong><em>Certificate Authority (CA) Certificate</em></strong>” settings, click on “<strong><em>Install Anyway</em></strong>” and <strong><em>choose the Fiddler root certificate</em></strong> that you just downloaded. <strong>This will install the certificate on the emulator, allowing it to trust SSL certificates that are issued by Fiddler.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*z31WU6BC5eagBuT88BhrrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*8pm18MuoDpHoHSWivp3S_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*9pLIvVm3tIZK-8HEqJRnJQ.png" /><figcaption><em>Install a certificate process</em></figcaption></figure><p>After installing the certificate, you should be able to see decrypted SSL traffic from the app on Fiddler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9Zkb5V7u-YGQicAUYnSWQ.png" /><figcaption>Decrypted SSL traffic</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*O7TsjLm8VDkMEQdEPvIpYg.jpeg" /><figcaption>Awesome meme</figcaption></figure><p>Unfortunately, <strong>this is not always possible</strong>, especially on newer versions of Android. Starting with Android 11, user certificates are disallowed in user-installed apps unless the app’s developers <strong>explicitly allow it</strong>. This means that even if you have installed the Fiddler root certificate on the emulator, you may not be able to see decrypted SSL traffic from the app <strong>unless the app’s developers have enabled support for user certificates.</strong></p><p>More info about those security changes in Android Nougat:</p><p><a href="https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html">Changes to Trusted Certificate Authorities in Android Nougat</a></p><h3>Step 6 — Edit the APK to accept user certificates</h3><p>In this step, we will <strong>edit the app’s APK file to allow user certificates</strong> and enable Fiddler to capture decrypted SSL traffic from the app. This process involves several actions, which are outlined below:</p><ul><li><strong>Decompile the APK</strong> using <strong><em>APKTool</em></strong>. This will extract the files and resources from the APK, allowing you to edit them.</li></ul><pre>.\apktool.bat d .\Wolt.apk</pre><ul><li><strong>Edit (or create if not exist) the “res/xml/network_security_config.xml” file</strong> to <strong><em>allow user certificates</em></strong>. This file controls the app’s network security settings, which will probably look like that:</li></ul><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;network-security-config&gt;<br>    &lt;base-config cleartextTrafficPermitted=&quot;false&quot; /&gt;<br>    &lt;domain-config&gt;<br>        &lt;domain includeSubdomains=&quot;true&quot;&gt;verygoodproxy.com&lt;/domain&gt;<br>    &lt;/domain-config&gt;<br>&lt;/network-security-config&gt;</pre><p>and you will need to add a new “<strong><em>base-config</em></strong>” element that allows user certificates. like that:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;network-security-config&gt;<br>    &lt;!--allow user certificates start--&gt;<br>    &lt;base-config&gt;<br>        &lt;trust-anchors&gt;<br>            &lt;certificates src=&quot;system&quot; /&gt;<br>            &lt;certificates src=&quot;user&quot; /&gt;<br>        &lt;/trust-anchors&gt;<br>    &lt;/base-config&gt;<br>    &lt;!--allow user certificates end--&gt;<br>    &lt;domain-config&gt;<br>        &lt;domain includeSubdomains=&quot;true&quot;&gt;verygoodproxy.com&lt;/domain&gt;<br>    &lt;/domain-config&gt;<br>&lt;/network-security-config&gt;</pre><ul><li><strong>Edit the “AndroidManifest.xml” file</strong> to <strong><em>specify that the app should use the edited “network_security_config.xml” file</em></strong>. To do this, search for the “<strong><em>&lt;application&gt;”</em></strong> tag and the “<strong><em>android:networkSecurityConfig”</em> </strong>attribute inside it (if it doesn’t exist you should add it).</li></ul><pre>&lt;application ... android:networkSecurityConfig=&quot;@null&quot; ...&gt;</pre><p>and change “@null” to the path of <em>res/xml/network_security_config.xml</em> file</p><pre>&lt;application ... android:networkSecurityConfig=&quot;@xml/network_security_config&quot; ...&gt;</pre><ul><li><strong>Re-compile the APK</strong> using APKTool. <strong>This will combine the edited files and resources into a new APK file.</strong></li></ul><pre>cd .\Wolt\<br>..\apktool.bat b -f</pre><p>The re-compiled APK is inside the <strong><em>\dist</em></strong> folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*VMlnpPIh5_w_xuQcgnImRQ.png" /><figcaption>Re-compiled APK</figcaption></figure><p>When you create or modify an Android app, it is often <strong>necessary to align and sign the resulting APK file in order to make it compatible with Android devices</strong>.</p><p>Aligning an APK file involves <strong>optimizing its internal structure and layout to make it more efficient</strong> and faster to install on an Android device. This is done using a tool called “<strong><em>zipalign</em></strong>”, which is included in the Android SDK. Aligning an APK file can improve its performance and reduce the amount of storage space it occupies on the device.</p><p>Signing an APK file, on the other hand, involves <strong>adding a digital signature to the file to verify its authenticity and integrity</strong>. This is necessary because Android requires all apps to be signed in order to be installed on a device. When you sign an APK file, you use a private key to create a signature that is embedded in the file. This signature can then be verified using the corresponding public key to ensure that the APK has not been tampered with.</p><p>More info about those procedures:</p><ul><li><a href="https://source.android.com/docs/security/features/apksigning">Application Signing | Android Open Source Project</a></li><li><a href="https://developer.android.com/about/versions/11/behavior-changes-11#app-packaging">Behavior changes: Apps targeting Android 11 | Android Developers</a></li></ul><ul><li>Use “<strong><em>zipalign</em></strong>” (usually resides in <strong><em>C:\Program Files (x86)\APK Editor Studio\tools</em></strong>) to <strong>align the new APK file</strong>.</li></ul><pre>zipalign.exe -p -v 4 .\Wolt-patched.apk Wolt-patched-aligned.apk</pre><ul><li><strong>Generate an RSA key</strong> and use it to sign the new APK file. This is necessary to install the modified APK on the emulator. Use “<strong><em>keytool</em></strong>” (usually resides in <strong><em>C:\Program Files\Android\Android Studio\jre\bin\keytool.exe</em></strong>).</li></ul><pre>cd ..<br>keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000</pre><ul><li>Sign the APK using the generated RSA key. Use “<strong><em>apksigner</em></strong>” (usually resides in <strong><em>C:\Program Files (x86)\APK Editor Studio\tools</em></strong>).</li></ul><pre>apksigner.bat sign --ks .\my-release-key.keystore --in .\Wolt-patched-aligned.apk --out .\Wolt-patched-aligned-signed.apk</pre><ul><li><strong>Install the signed APK on the emulator</strong> and launch the app.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jM_qcvF9GGfXVNvYDVft1w.png" /><figcaption>Decrypted SSL (HTTPS) Traffic</figcaption></figure><p>After completing these steps, you will be able to see decrypted SSL traffic from the app on Fiddler. This will allow you to conduct deep research on the app and understand the communication between the app and its server(s).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*0GgheTIT7aizzICRQ3T9AQ.jpeg" /><figcaption>Very Nice</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c480e2143743" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>