<?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 Carlos Minda on Medium]]></title>
        <description><![CDATA[Stories by Carlos Minda on Medium]]></description>
        <link>https://medium.com/@cminda?source=rss-e5c04a67d540------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*j9EvIvL5TEw3XarUI0vR3Q.png</url>
            <title>Stories by Carlos Minda on Medium</title>
            <link>https://medium.com/@cminda?source=rss-e5c04a67d540------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:43:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cminda/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[Building a Malware Analysis Lab: FLARE-VM, REMnux & INetSim]]></title>
            <link>https://medium.com/@cminda/building-a-malware-analysis-lab-flare-vm-remnux-inetsim-b76de8f85de0?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/b76de8f85de0</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[labs]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 20:16:37 GMT</pubDate>
            <atom:updated>2026-08-15T20:16:37.323Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever wondered how malware analysts safely execute and investigate suspicious files, this is a quick walkthrough of how to build a basic malware analysis lab from scratch.</p><p>The goal is simple: create an isolated environment where we can execute malware, observe its behavior, and analyze its network activity without allowing it to communicate with the real Internet.</p><p>For this lab, we’ll use two virtual machines:</p><ul><li><strong>FLARE-VM</strong> — our Windows malware analysis workstation</li><li><strong>REMnux</strong> — our Linux analysis and network simulation server</li></ul><p>The two machines will communicate through a dedicated isolated virtual network.</p><p>Our addressing scheme will be:</p><ul><li>REMnux: 192.168.47.10</li><li>FLARE-VM: 192.168.47.20</li></ul><p>These are the static IP addresses we’ll use for our isolated virtual network. During the installation phase, the VMs may use different addresses provided by DHCP. We’ll assign these static addresses later, once we switch the VMs to our isolated VMware network.</p><p>We’ll use 192.168.47.10 as the planned address for REMnux throughout the configuration. This is also the address we’ll use when configuring INetSim to listen on the malware-analysis network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*OYE__1lEf_0LY4bA2bQiOQ.png" /></figure><p>REMnux will provide simulated Internet services through INetSim, while FLARE-VM will be our Windows analysis machine.</p><p>This gives us a controlled environment where malware can make network requests without reaching the actual Internet.</p><h4>FLARE-VM</h4><p>FLARE-VM is a Windows-based distribution maintained by Mandiant and designed specifically for malware analysis and reverse engineering.</p><p>For this lab, we’ll start with a Windows 10 installation and then install FLARE-VM using the installation scripts provided in the project’s official <a href="https://github.com/mandiant/flare-vm">GitHub repository</a>.</p><p>We won’t go through the FLARE-VM installation itself because the project already provides detailed documentation.</p><h4>REMnux</h4><p><a href="https://remnux.org/">REMnux</a> is a Linux distribution built specifically for malware analysis.</p><p>It comes with a large collection of tools for analyzing malicious files, reverse engineering, network traffic, and other malware-related artifacts.</p><p>For this lab, we’ll use the provided REMnux virtual machine image rather than performing a manual installation.</p><p>Again, the installation process is already well documented, so we’ll focus on the part that matters for our lab: network isolation.</p><p>Keep in mind that both VMs will require Internet access during installation. Once the required software is installed, we’ll remove that connectivity and move the VMs onto our isolated analysis network.</p><h4>Cutting the cord: Building the Isolated Network</h4><p>For this lab, I’m using VMware Workstation Pro.</p><p>Open:</p><p><strong>Edit → Virtual Network Editor</strong></p><p>Create a dedicated virtual network for the malware-analysis lab.</p><p>The important part here is isolation.</p><p>We don’t want our malware-analysis machines to have a path to the physical network or the Internet. We also want to be careful about host connectivity. VMware’s standard <strong>Host-only</strong> configuration can provide communication between the VMs and the host, so make sure your configuration matches the level of isolation you actually require.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*P9Kxzp9sx6gcc6ELfDkhNw.png" /></figure><p>Once the virtual network is created, edit the network adapter settings for both VMs.</p><p>Under:</p><p><strong>Virtual Machine Settings → Network Adapter → Custom</strong></p><p>Select the virtual network we just created.</p><p>Do this for both machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*bfWj23dK4t16ttkjM-ABCA.png" /></figure><h4>Configuring Remnux</h4><p>First let’s confirm our machine’s network adapter with command</p><p>ip a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*GUasEzRnm4IHhZZIUBKL1A.png" /></figure><p>In my case the interface is named ens33.</p><p>We’ll configure the static IP through netplan. To do so, we’ll modify the existing configuration under /etc/netplan/.</p><p>Using your preferred editor, modify the configuration for the interface. In my case, the configuration looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*R-rfjF_hN4Fu4r5HU5VlFA.png" /></figure><p>Once this is updated save the file and apply the changes using</p><p>sudo netplan apply</p><p>Then confirm interface has right ip address using ip a show ens33</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*0YvVMuKHujLHkt14XvTxtw.png" /></figure><h4>Configuring INetSim</h4><p>Now we get to one of the more interesting parts of the lab.</p><p>When malware executes, it may attempt to contact domains, download additional files, communicate with command-and-control infrastructure, or interact with other Internet services.</p><p>We don’t want those requests reaching the real Internet.</p><p>This is where <strong>INetSim</strong> comes in.</p><p>INetSim simulates common Internet services, allowing us to observe how malware behaves when it believes it is communicating with external services.</p><p>Open the INetSim configuration file:</p><pre>/etc/inetsim/inetsim.conf</pre><p>Using your preferred editor, locate the DNS service configuration and enable it:</p><pre>start_service dns</pre><p>We also want to specify the address on which INetSim should listen.</p><p>Locate:</p><pre>service_bind_address</pre><p>Instead of binding the service to every interface with 0.0.0.0, we&#39;ll bind it specifically to our analysis interface:</p><pre>service_bind_address 192.168.47.10</pre><p>This ensures that INetSim is listening on the interface dedicated to our malware-analysis network.</p><p>The final config file should look like this when we are finished:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*MjX4RiJMrmVLXBBKme6twQ.png" /></figure><h4>Running INetSim as a Service</h4><p>We could manually start INetSim every time we boot the lab, but there’s no reason to make ourselves do that.</p><p>Let’s create a systemd service:</p><p>sudo nano /etc/systemd/system/inetsim.service</p><p>Add:</p><pre>[Unit]<br>Description=INetSim Internet Services Simulation Suite<br>After=network.target<br>[Service]<br>Type=simple<br>ExecStart=/usr/bin/inetsim<br>Restart=always<br>User=root<br>[Install]<br>WantedBy=multi-user.target</pre><p>Save the file and reload systemd:</p><pre>sudo systemctl daemon-reload</pre><p>Enable the service:</p><pre>sudo systemctl enable inetsim.service</pre><p>Then start it:</p><pre>sudo systemctl start inetsim.service</pre><p>Finally, verify that it is running:</p><pre>sudo systemctl status inetsim.service</pre><p>We can confirm iNetSim is listening on the expected ports with</p><p>ss -tulpn</p><p>The image shows our expected output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*PkNAHXg2hGnaQbW7etZ3iQ.png" /></figure><p><strong>Troubleshooting INetSim DNS</strong></p><p>While setting up this environment, I ran into an issue getting the INetSim DNS service to start.If you encounter the same issue, we’ll need to temporarily provide Internet access to REMnux. The safest way to do this is to add a <strong>secondary network adapter configured for NAT</strong>, leaving the malware-analysis interface connected only to the isolated network.</p><p><strong>Important:</strong> Only use the NAT adapter temporarily to install the required dependencies. Do not use it while executing or analyzing malware.</p><p>The following workaround requires Internet access to install the required dependencies.</p><p>I applied the fix described in this <a href="https://www.reddit.com/r/MalwareAnalysis/comments/1iise7n/inetsim_set_up/">Reddit discussion</a>, which involved downgrading the DNS module.</p><p>I had to update some dependencies:</p><pre>sudo apt-get update &amp;&amp; sudo apt-get install -y libidn2-dev libidn2–0-dev</pre><p>And also disable the systemd-resolved to avoid conflicts with port 53</p><pre>sudo systemctl stop systemd-resolved<br>sudo systemctl disable systemd-resolved</pre><p>Once the troubleshooting is complete, remove the secondary NAT adapter and verify that only the isolated virtual network adapter remains connected.</p><h3>Configuring FLARE-VM</h3><p>Now let&#39;s configure the Windows side.</p><p>First, identify the network adapter:</p><pre>Get-NetAdapter | Select-Object Name, InterfaceIndex, Status</pre><p>Find the interface connected to our isolated VMware network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_VrwVicsT5XY1Z88lIYtIg.png" /></figure><p>We&#39;ll then assign the static IP:</p><pre>New-NetIPAddress -InterfaceIndex 4 -IPAddress 192.168.47.20 -PrefixLength 24 -DefaultGateway 192.168.47.10</pre><p>Here:</p><ul><li>192.168.47.20 is the FLARE-VM address.</li><li>/24 defines our subnet.</li><li>192.168.47.10 is the REMnux machine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*UPujOBXqdXoDCGMxBnV-dg.png" /></figure><p>Finally, we&#39;ll configure REMnux as our DNS server:</p><pre>Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 192.168.47.10</pre><h3>Verify setup</h3><p>To verify our setup, we can perform a few basic tests from PowerShell. Try performing DNS lookups, pinging different addresses, and making HTTP requests to different endpoints. The goal is to confirm that network requests from FLARE-VM are being routed through REMnux and handled by INetSim rather than reaching the real Internet.</p><p>Keep in mind that browser navigation may not work as expected. Modern browsers enforce strict certificate validation and may reject connections when valid certificates are not presented. This does not necessarily indicate a problem with the lab and should not affect our malware analysis.</p><p>With the lab now configured, we have a controlled environment for analyzing malware and observing its network behavior without allowing it to communicate with the real Internet.</p><p>I’ll be using this environment for a series of malware analysis articles, so stay tuned for upcoming analyses and walkthroughs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76de8f85de0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Quick Look Under the Hood: Analyzing Traffic Patterns for Well-Known Nmap Scans]]></title>
            <link>https://systemweakness.com/a-quick-look-under-the-hood-analyzing-traffic-patterns-for-well-known-nmap-scans-80972546bc95?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/80972546bc95</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[defensive-security]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 04:25:16 GMT</pubDate>
            <atom:updated>2026-08-18T13:56:58.729Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s always good to brush up on the fundamentals. While thinking about this, I realized something: most of us are used to firing up our machines and running Nmap against a target to gather information, but do we really know what this looks like on the network?</p><p>For this short demonstration, I used two virtual machines. One was our “attacker,” a VM running Kali Linux, while the other was a Metasploitable VM. They were connected to an isolated virtual network so we could capture and analyze the generated traffic without interference from other devices.</p><p><strong>Attacker IP:</strong> 192.168.160.103<br><strong>Victim IP:</strong> 192.168.160.101</p><ol><li>Ping Scan/Host discovery</li></ol><pre>nmap -sn 192.168.160.0/24</pre><p>A very basic command primarily used to detect available targets. On a local Ethernet network, Nmap can use ARP to determine whether hosts are reachable.</p><p>If we look at this traffic in Wireshark, we will see ARP requests being sent for the IP addresses within the defined range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*AfzAgycgXlN4jmJXK6gipw.png" /></figure><p>The request includes the sender’s IP address and MAC address, as well as the target IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*GdJvW-pT08jhtAlXO9PXWw.png" /></figure><p>The response follows a similar structure, but the sender IP and MAC address now belong to the targeted host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*pHL2BS9z-An3FoNu2BM6aw.png" /></figure><p>2. TCP Connect Scan</p><pre>nmap -sT 192.168.1.1</pre><p>This scan performs a complete TCP three-way handshake on the target’s ports.</p><p>The flow is straightforward: the attacker sends a SYN, waits for a SYN-ACK, and responds with an ACK, establishing the connection. Completion of the handshake indicates that the port is open, no response would mean the port is closed or the packet didn’t reach the designated port.</p><p>In a packet capture, we will see multiple SYN packets being sent to the target across different ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*yirLPXi2OU9T-hBYmD-aFw.png" /></figure><p>As mentioned, an established connection will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*AbMWr2BGFaRBE-scYQXlOg.png" /></figure><p>Another useful way to confirm that an IP address is scanning multiple ports is by using Wireshark’s built-in Statistics tools. We can perform an analysis based on Destination Ports.</p><p>A count of three packets will typically correspond to a completed TCP three-way handshake, and we can also see all the ports that were targeted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*X2GrHAL1GRBnqm53nVZiKg.png" /></figure><p>In the example above, we have applied a display filter based on our known attacker IP to narrow the capture down to packets originating from this source, making it easier to identify this type of activity.</p><p>3. SYN Scan</p><p>A SYN scan performs an incomplete TCP handshake. It starts the communication by sending a SYN packet and determines the port state based on the response.</p><p>If a SYN-ACK response is received, the port is considered open. If a RST is received, the port is considered closed. No response, or an ICMP error indicating that the traffic is blocked, generally means the port is filtered.</p><p>Once Nmap receives a response indicating that the port is open, it cuts the communication short by sending a RST packet, as seen in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*8MkrhSGRx4ngK6564emMwQ.png" /></figure><p>A closed port response will look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*-q4_46zAqS2FEKx9UTwmCw.png" /></figure><p>4. UDP Scan</p><pre>nmap -sU 192.168.160.101  </pre><p>This scan is primarily used to detect UDP ports. Nmap sends UDP packets to the targeted ports and determines their state based on the responses.</p><ul><li>An ICMP Port Unreachable message (Type 3, Code 3) indicates that the port is closed.</li><li>No response generally means the port is open|filtered. Since UDP does not require a response, the lack of one could mean that the port is open or that a firewall is dropping the packet.</li><li>Some UDP services will respond to the probe, allowing Nmap to confirm that the port is open.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*D9xjKzw4KE7sf1nNzqBv6w.png" /></figure><p>There is not as much to analyze in a packet capture for this type of scan because, depending on the target, you will primarily see UDP probes being sent to the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*1SWZB2dK9KRBAB3mAga_3w.png" /></figure><p>5. ACK Scan</p><pre>nmap -sA 192.168.160.101</pre><p>Similar to the previous scans, an ACK scan is used to determine how packets are handled by the target and, in particular, whether ports are filtered by a firewall.</p><p>Under normal TCP communication, a SYN is sent first, followed by a SYN-ACK, and then an ACK. An ACK scan skips the initial handshake and sends an ACK packet directly.</p><p>Based on how the target or an intermediate firewall responds, Nmap can determine whether the port is filtered.</p><ul><li>If a RST is returned, the port is considered <strong>unfiltered</strong> because the packet was allowed through to the target.</li><li>If there is no response, or an appropriate ICMP unreachable error is received, the port is considered <strong>filtered</strong>.</li></ul><p>An important distinction here is that an ACK scan <strong>does not determine whether a port is open or closed</strong>. Its purpose is to determine whether the port is filtered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*YiY4M7Bwl4Xv1GUwWzNT2g.png" /></figure><p>In our capture, the RST response therefore tells us that the probe reached the target and the port is unfiltered.</p><p>6. Version Detection</p><pre>nmap -sV --version-intensity 5 192.168.160.101</pre><p>During the reconnaissance phase, being able to identify not only available ports and services, but also the specific versions running on those services, allows us to better understand what vulnerabilities or exploits may be relevant to the target.</p><p>To determine the service and version, Nmap sends known probes to the identified ports and compares the responses against its service detection database, nmap-service-probes.</p><p>We can see this in the following screenshot. The initial TCP scan sends a SYN packet until the TCP flow is established, after which we see application-level traffic directed at the identified service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*iV58ke2-MC3G0OpvyOOhTg.png" /></figure><p>For this scenario, our PCAP shows two stages of detection: the initial port scanning we discussed during the TCP scan, followed by the actual service probing once Nmap has determined that a port is available.</p><p>To properly see the traffic generated by these probes, we can focus on the following Wireshark filter:</p><pre>ip.addr == 192.168.160.101 &amp;&amp; tcp.len &gt; 0</pre><p>This allows us to visualize TCP traffic carrying application data while excluding packets that contain only TCP control information.</p><p>Let’s take a look at a few of the probes used by Nmap.</p><p>For example, we can examine the HTTP server probe for port 80. I’ll narrow down the filter to focus only on traffic sent by our attacker IP, 192.168.160.103, to port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*PMwRPRWbQ82_T7ixBGtxcg.png" /></figure><p>We can see it uses multiple GET and POST request to different endpoints expecting a response. In this for example we can see the server information is included in the server response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*RPA1HC8GB_mUK1KR3SX7uw.png" /></figure><p>We can see that Nmap uses multiple HTTP requests, including GET and POST requests to different endpoints, and analyzes the responses it receives.</p><p>In this example, information about the server is included in the HTTP response, providing Nmap with additional information that can be used for service identification.</p><p>We can see similar behavior with FTP. After the successful TCP SYN-ACK exchange, Nmap sends application-level traffic and can obtain information about the FTP service from the server&#39;s response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*7lDGzMEazY7b2UZFxF--bw.png" /></figure><p>The same concept can also be seen with SMB traffic on port 445. The request includes supported SMB dialects, and the response indicates which dialect was ultimately negotiated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*0rozg2eW18a4adUd4bUL9A.png" /></figure><p>7. OS Detection</p><pre>nmap -O --osscan-guess 192.168.1.1</pre><p>Detecting the target’s operating system allows us to better understand the environment and identify the tools and techniques that may be applicable. But how exactly does Nmap determine the operating system from a network scan?</p><p>This is done through <strong>TCP/IP fingerprinting</strong>.</p><p>Once Nmap detects available ports, it sends a series of specially crafted probes and analyzes characteristics of the responses it receives. These probes can manipulate different TCP header fields, flags, window sizes, sequence numbers, and other parameters.</p><p>Nmap then compares the resulting fingerprint against its collection of known operating-system fingerprints.</p><p>We can see an example of this in the capture. One packet includes multiple flags:</p><p>SYN, ECE, CWR, Reserved</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*h6ZIxVKf9MjszbszZTSMpw.png" /></figure><p>The target generates a response to this probe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*ejfNGAHDEnHQQEUh5t2LrA.png" /></figure><p>To demonstrate some of the other probes generated during OS detection, we can also look at a packet that contains no TCP flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*mqjulGbqqDrEEwiaXs-BsQ.png" /></figure><p>We can also see another unusual probe containing:</p><p>FIN, SYN, PSH, URG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*0LYHkE90L5tEeup63J6qPg.png" /></figure><p>This particular probe does not generate a response. However, that is also useful information to Nmap. OS fingerprinting is not based solely on whether a target responds; the presence, absence, and characteristics of responses across a series of different probes all contribute to the final fingerprint.</p><h3>Conclusion</h3><p>Running an Nmap scan is easy. Understanding what that scan actually looks like on the wire is a different skill.</p><p>By looking at these scans through Wireshark, we can move beyond simply knowing what an Nmap option does and start understanding the network behavior behind it. A SYN scan, an ACK scan, a UDP scan, and OS detection all generate very different traffic patterns, and those differences are visible in a packet capture.</p><p>This is also where tools such as Wireshark become valuable from a defensive perspective. The same traffic generated during reconnaissance can potentially be identified by monitoring unusual connection attempts, repeated probes against multiple ports, malformed or unusual TCP packets, and service-specific requests.</p><p>For security analysts, understanding these patterns is useful not only when performing reconnaissance ourselves, but also when investigating whether someone else is doing it against our infrastructure.</p><p>Nmap gives us the high-level result. Wireshark lets us look underneath the hood and understand how that result was obtained.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80972546bc95" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/a-quick-look-under-the-hood-analyzing-traffic-patterns-for-well-known-nmap-scans-80972546bc95">A Quick Look Under the Hood: Analyzing Traffic Patterns for Well-Known Nmap Scans</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Edge Loads Saved Passwords Into Memory in Cleartext]]></title>
            <link>https://medium.com/@cminda/microsoft-edge-loads-saved-passwords-into-memory-in-cleartext-1a7df8100277?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7df8100277</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[passwords]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Thu, 07 May 2026 15:34:20 GMT</pubDate>
            <atom:updated>2026-05-07T15:34:20.450Z</atom:updated>
            <content:encoded><![CDATA[<p>If you use Microsoft Edge as your default browser, this behavior is worth understanding.</p><p>Recent discussions have shown that performing a memory dump of the Edge browser process can reveal saved credentials in readable form. I decided to validate this myself using Microsoft Edge Version 147.0.3912.98 (Official Build, 64-bit).</p><p>Since I do not normally use Edge, I first created several fake login credentials within the browser password manager.</p><p>Normally, viewing saved passwords through the browser settings requires user authentication, which helps ensure only authorized users can access them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*iIWEpvyxhLdjMFk2HV3J3g.png" /></figure><p>However, after restarting the system and simply launching Edge (without visiting any website), I performed the following steps:</p><ul><li>Open Task Manager</li><li>Expand Microsoft Edge processes</li><li>Right-click the “Browser” process</li><li>Select <strong>Create memory dump</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbp5ONzfz6vNA9rWtg26Xw.png" /></figure><p>Windows saves the dump file under:</p><p>C:\Users\&lt;User&gt;\AppData\Local\Temp</p><p>After reviewing the dump with common tools such as strings and grep, the saved test credentials were recoverable in plaintext.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*0AxqLkbjAbaspMwri6HFRg.png" /></figure><p>Microsoft has reportedly stated this is expected behavior, as browsers may access password data in memory to help users sign in quickly.</p><p>While this may present lower risk on personal devices, the concern increases in shared systems, enterprise environments, or systems already compromised by malware. In those scenarios, credentials stored in browser memory could become an easy target.</p><p>This is not a remote exploit, but it is a meaningful post-compromise security consideration.</p><h3>Comparative Test: Brave Browser</h3><p>My daily browser of choice is Brave, so I repeated the same steps under similar conditions.</p><p>I opened Brave, created a memory dump through Task Manager, and reviewed the dump file. No saved logins were visible in the output.</p><p>I then logged into a website with stored credentials, created a second dump, and again did not observe readable credentials.</p><p>This suggests Brave may handle credential exposure in memory differently than Microsoft Edge under these test conditions.</p><p>Further in-depth testing is required to better understand how other browsers handle this same scenario.</p><p>To summarize, while the overall risk to individual home users may be limited, shared or corporate environments that rely on Microsoft Edge should ensure their endpoints are properly secured, as post-compromise credential exposure could present a meaningful risk.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7df8100277" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decrypting TLS Traffic Without a Private Key Using SSLKEYLOGFILE (Client-Side Key Export)]]></title>
            <link>https://medium.com/@cminda/decrypting-tls-traffic-without-a-private-key-using-sslkeylogfile-client-side-key-export-c60ff6cce567?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/c60ff6cce567</guid>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tls]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 17:01:00 GMT</pubDate>
            <atom:updated>2026-03-25T17:01:00.977Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A practical guide to capturing TLS session keys from Chrome or Firefox and decrypting HTTPS traffic in Wireshark.</em></p><p>TLS (Transport Layer Security) protects most of the internet’s traffic today. It secures communication between clients and servers, ensuring that data cannot easily be intercepted or read by third parties.</p><p>Because of this, many people assume that TLS traffic cannot be inspected once it is encrypted. However, there are legitimate scenarios — such as debugging or traffic analysis — where decrypting TLS traffic is not only possible, but necessary.</p><p>In this article, I’ll demonstrate how TLS traffic can be decrypted <strong>without access to the server’s private key</strong> using the SSLKeyLogFile feature supported by many modern browsers, including Chrome and Firefox.</p><p>But first, let’s start with a quick explanation of what TLS is.</p><h4>Transport Layer Security</h4><p>TLS is a protocol used to secure communication between endpoints. Its most notable implementation is HTTPS, securing connections between clients and servers.<br>TLS provides security in three main ways:</p><ul><li>Encryption: The data exchanged between client and server is encrypted while in transit.</li><li>Integrity: TLS ensures that transmitted data cannot be modified in transit without detection.</li><li>Authentication: TLS provides a mechanism for endpoints to verify the identity of the other party. In the case of HTTPS, the <strong>server authenticates itself to the client</strong> using a digital certificate.</li></ul><p>Today, most websites use HTTPS as it provides a secure communication context. According to an article from <a href="https://www.networksolutions.com/blog/ssl-tsl-trends/">Network Solutions</a> 88% of websites in 2026 use SSL/TLS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*wQQzRr3s8b7uluEYrFOFEw.png" /><figcaption>You can typically identify HTTPS connections by the <strong>lock icon displayed in the browser’s address bar.</strong></figcaption></figure><h4>TLS Handshake</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*xdvDfFyIaWcWkHWu.png" /><figcaption>Client and Server TLS Handshake. Image acquired from: <a href="https://www.cloudflare.com/learning/ssl/what-happens-in-a-tls-handshake/">https://www.cloudflare.com/learning/ssl/what-happens-in-a-tls-handshake/</a></figcaption></figure><p>Before encrypted communication can begin, the client and server perform a <strong>TLS handshake</strong>.</p><p>During this process, both parties exchange messages to agree on the parameters required for secure communication. If any steps fail, the connection is terminated and no data is exchanged.</p><p>The handshake needs to establish the following:</p><ul><li>TLS protocol version to use.</li><li>The cryptographic algorithms (cipher suites).</li><li>Authentication of the server via digital certificates.</li><li>A shared secret key used for symmetric encryption.</li></ul><p>You can read more in depth information of the process on this <a href="https://www.ibm.com/docs/en/ibm-mq/9.3.x?topic=tls-overview-ssltls-handshake">IBM’s documentation</a>.</p><p>The handshake can be summarized as follows:</p><ol><li><strong>Client Hello</strong><br>Client sends a “Client Hello” message. This includes:<br>- Supported TLS version in order of preference.<br>- Supported Cipher suites<br>- A random byte string known as the Client Random.</li><li><strong>Server Hello<br></strong>Server responds with a “Server Hello” message containing:<br>- Selected cipher suite.<br>- A Session ID<br>- A random byte string known as the Server Random.<br>- The server’s digital certificate</li><li><strong>Certificate Verification</strong><br>The client verifies the server’s certificate against its trusted certificate authorities</li><li><strong>Key Exchange</strong><br>The client and server perform a key exchange (commonly <strong>ECDHE</strong>) to derive a shared secret.</li><li><strong>Handshake Completion</strong><br>Both sides send <strong>Finished</strong> messages to confirm the handshake was successful.<br>Once the handshake is complete, all subsequent communication is <strong>encrypted using the shared symmetric session key</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*_S3JdlMZdQW12FcN__FTsQ.png" /></figure><p>Due to modern TLS implementations using ephemeral key exchanges such as ECDHE, capturing traffic alone is not enough to decrypt it later — even if the server’s private key is available. With ECDHE (Ephemeral Diffie-Hellman), session keys are generated per session and are not derivable from the server’s private key, which is why traditional passive decryption no longer works.</p><p>However, browsers such as Chrome and Firefox provide a debugging mechanism that allows TLS session keys to be exported during runtime. This feature is known as SSLKEYLOGFILE, and it allows tools like Wireshark to decrypt HTTPS traffic.</p><h4><strong>What is SSLKEYLOGFILE</strong></h4><p>SSLKEYLOGFILE is an environment variable supported by several TLS client implementations (notably those based on NSS and Chromium/BoringSSL) that instructs the application to export TLS session secrets to a specified log file. The logged secrets follow the <strong>NSS Key Log Format</strong>, which includes values such as CLIENT_RANDOM and the corresponding master or traffic secrets derived during the TLS handshake.</p><p>When this variable is set, the client writes the negotiated session secrets to the file in real time as TLS handshakes occur. Network analysis tools such as Wireshark or tshark can then load this key log file to derive the symmetric encryption keys and decrypt captured TLS traffic, provided the capture contains the corresponding handshake messages.</p><p>This mechanism enables passive decryption of TLS traffic without requiring access to the server’s private key and works even with modern cipher suites that use ephemeral key exchange (e.g., ECDHE), since the secrets are exported directly from the client during the handshake.</p><p><em>⚠️ </em><strong><em>Security Note</em></strong><em><br> This method requires access to the client device and explicit configuration of the SSLKEYLOGFILE variable. It does not allow third parties to decrypt arbitrary TLS traffic captured from external networks.</em></p><p>To enable this on Firefox or Chrome, we simply need to set the environment variable, the process will vary depending on your operating system.</p><p>If using a linux based system it is set with:</p><pre>export SSLKEYLOGFILE={path_to_file}</pre><p>and we can confirm it set using</p><pre>echo $SSLKEYLOGFILE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*gs_ch2QpGiHYhNTDaW1qew.png" /></figure><p>After setting it we just need to start, or restart if it is already open, the web browser.</p><p>If we would like to simply start a specific instance of our browser with it we can run</p><pre>sslkeylogfile=/tmp/ssl.log chromium</pre><p>With SSLKEYLOGFILE environment variable set and our browser started, we can start a packet capture.</p><h4>Capturing traffic</h4><p>There’s different tools that can be used to start a packet capture, for ease I use tshark. We can start a capture by:</p><pre>tshark -i eth0 -w ssl.pcap -a duration=300</pre><p>Quick review of the command parameters:</p><ul><li>-i We set the interface on which we will capture.</li><li>-w set the filename of the capture</li><li>-a use to set different parameters, in this case we use duration so the pcap stops after the designated time in seconds.</li></ul><h4>Verifying SSLKEYLOGFILE contents</h4><p>To verify that session keys are being stored, simply open the log file and inspect its contents.</p><pre># SSL/TLS secrets log file, generated by NSS<br>CLIENT_RANDOM 6186a2ea61beba3a5fad81a10d11a357f80e0fa66c6419b73932fbb000261f8e 2832680f3cafc4f0d2101a1a12ed8d3ba6b5f70a9ccee3aa476e117b3851ed2e8335592f577dc8febc38906a467e210b<br>CLIENT_RANDOM a761a4174e4e967c1200f202b7a668ea98096d207bdf26a101f247bd0320a5df be1a76537e8fa984a3dd3f6b007e0d44a5910d351eb356f09e2da681d0c547d9be14efce84109c491e82a686c09cd0e2<br>CLIENT_HANDSHAKE_TRAFFIC_SECRET 16e8af74b24a2afd30f7f994c869ea96e84af0f26850ab567e5d254542c6c396 12f8960ec03c072a6df71ffcc1820206dd32bd699db52ecd8e3ec883c3fffa6a<br>SERVER_HANDSHAKE_TRAFFIC_SECRET 16e8af74b24a2afd30f7f994c869ea96e84af0f26850ab567e5d254542c6c396 0d442e5f02c2719d2bf0244467b63b5ef745986473062f7da742712129a9cdfc<br>CLIENT_TRAFFIC_SECRET_0 16e8af74b24a2afd30f7f994c869ea96e84af0f26850ab567e5d254542c6c396 c5bc3f29ab7fce04b0ff8663fcda651c2b68f9dc6f45e11f4741ebf245020bb6<br>SERVER_TRAFFIC_SECRET_0 16e8af74b24a2afd30f7f994c869ea96e84af0f26850ab567e5d254542c6c396 c392d3a631b63e386cedd7d141cc5353d2cf138202b618891f0cbb011ddb742e<br>EXPORTER_SECRET 16e8af74b24a2afd30f7f994c869ea96e84af0f26850ab567e5d254542c6c396 824a48189e4fea8184df6643bb61c4dbff7292e5e7d5c02031636c5c2be60558</pre><h4>Viewing Traffic in Wireshark</h4><p>For traffic analysis we would use Wireshark this time. Once the file is opened we can visualize our normal encrypted traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VO7cHWardukep1KsdZBFIA.png" /></figure><p>In order to be able to view this traffic we need to load our ssl.log file that contains the session keys stored when the environment variable was set. To do so go to Edit &gt; Preference &gt; Protocols &gt; TLS &gt; Pre-Shared Key and browse the file on the path that was set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*MnO13g2jw6oL5rKPQF2oKg.png" /></figure><p>Once the session keys are loaded our packet capture will show decrypted traffic. Decryption will only work for sessions whose keys are present in the log file and whose handshake is included in the capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCszeTA_9w8APxADpf2ldg.png" /></figure><p>This time we won’t delve too much into what information we can gather from the traffic, but if we simply have a quick look we can now see the different request methods being utilized, different headers and session cookies. With the unencrypted traffic it is even possible to recover objects during the capture, if we go to File &gt; Export &gt; Objects. As stated, analyzing the contents of the capture is not the scope of this article but this just goes to show how much visibility you can gain from it.</p><p>This approach is commonly used in debugging, malware analysis, and reverse engineering scenarios where visibility into encrypted traffic is required.</p><h4>Conclusion</h4><p>TLS is mostly linked to “Security” and the base minimum for protecting information in transit. This does not break TLS encryption itself, but demonstrates that if an endpoint is compromised or configured to log session secrets, encrypted traffic can be decrypted, which is why it is important to not rely on TLS as our ONLY security measure to protect our apps communication. The need for avoiding sending credentials in plain text or hashing important content during the communication is still needed. This also highlights the risks of using public or untrusted computers, as we can never trust that devices that are not owned by us may not have the SSLKEYLOGFILE environment variable set, or if this can be set via malware to a target computer facilitating spying on traffic.</p><p>On the bright side, the use of this feature can also serve as an advantage if you ever need to troubleshoot communications using HTTPS as it will allow you to view traffic in cases where you may not have access to client logs.</p><p>TLS remains a robust and secure protocol when endpoints are trusted. However, as demonstrated, control over the client environment fundamentally changes the security model. Features like SSLKEYLOGFILE are invaluable for debugging and analysis, but they also highlight the importance of endpoint security. Encryption protects data in transit — but not from the systems that legitimately handle it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c60ff6cce567" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Wi-Fi (802.11): Practical Wireless Traffic Analysis with Tshark]]></title>
            <link>https://medium.com/@cminda/understanding-wi-fi-802-11-practical-wireless-traffic-analysis-with-tshark-7a107b859db8?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a107b859db8</guid>
            <category><![CDATA[cybersecurity-training]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[tshark]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 18:47:50 GMT</pubDate>
            <atom:updated>2026-03-07T18:47:50.918Z</atom:updated>
            <content:encoded><![CDATA[<p>At some point you may need to analyze wireless traffic — whether for troubleshooting connectivity issues, validating security controls, or simply understanding how Wi-Fi works internally.</p><p>Wi-Fi (IEEE 802.11) is one of the most widely used networking technologies today, and understanding how it behaves at the frame level is a foundational skill for networking and security professionals.</p><p>In this article we will capture real 802.11 traffic using <strong>monitor mode</strong> and analyze it to understand:</p><ul><li>How Wi-Fi communication works at the frame level<br> • What normal wireless traffic looks like in a packet capture<br> • How suspicious or malicious activity may appear in wireless traffic</li></ul><p><strong>TShark</strong> is the command-line version of Wireshark, the widely used graphical packet analyzer. While Wireshark provides an interactive GUI for inspecting packets, TShark allows engineers to automate analysis, filter traffic quickly, and extract structured data directly from packet captures.</p><h3>Lab Setup</h3><p>To capture raw 802.11 frames, we need a wireless adapter that supports <strong>monitor mode</strong>.</p><p>For this lab, I am using:</p><p><strong>TP-Link TL-WN721N (Qualcomm Atheros AR9271 chipset)</strong></p><p>This adapter is widely used in wireless security labs and penetration testing environments. <strong>AR9271 </strong>chipset fully supports monitor mode under Linux.</p><p>You can verify that your adapter is detected using:</p><pre>lsusb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*fH4KgTg7a60afuDdKYP7ug.png" /></figure><h4>Identifying the Interface</h4><p>Next, we need to identify the name of our wireless interface.</p><p>Running the following command displays all network interfaces on the system:</p><pre>ip link</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkLL6UEJNRb-bYjycfy5pQ.png" /></figure><p>In my case the adapter corresponds to:</p><pre>wlxf8d11162b94a</pre><p>Now that we have identified our interface, it can be configured for <strong>monitor mode</strong>.</p><h4>Enabling Monitor Mode</h4><p>Monitor mode allows a wireless interface to capture <strong>all nearby wireless frames</strong>, even if the device is not connected to a specific network.</p><p>First, disable the interface:</p><pre>sudo ip link set wlxf8d11162b94a down</pre><p>Then enable monitor mode:</p><pre>sudo iw dev wlxf8d11162b94a set type monitor</pre><p>Finally bring the interface up:</p><pre>sudo ip link set wlxf8d11162b94a up</pre><p>At this point, the adapter can capture raw 802.11 traffic including:</p><p>• beacon frames<br> • probe requests<br> • authentication attempts<br> • encrypted data frames</p><p>To confirm that the interface is running in monitor mode, the following commands can be used:</p><pre>ip link show</pre><p>In monitor mode, captured frames typically include a Radiotap header, which provides metadata such as signal strength, channel, and data rate.</p><p>Another useful command is:</p><pre>iw dev &lt;interface name&gt; info</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IU0CH6CMx0ffop1UJW8X9A.png" /></figure><p>With the interface configured in monitor mode, we are now ready to capture some wireless traffic.</p><h4>Capturing Traffic</h4><p>To collect sample data, we will perform a 15-minute capture using tcpdump. A longer capture helps ensure we observe normal network behavior such as beacon intervals, probe activity, and client associations.</p><p>Using timeout ensures the capture automatically stops after 900 seconds:</p><pre>sudo timeout 900 tcpdump -i wlxf8d11162b94a -w 80211_capture.pcap</pre><h3>Analyzing the Traffic: How WiFi Connections Actually Work</h3><h4>Frames</h4><p>Wireless communication in 802.11 networks is organized into <strong>frames</strong>.<br> Each frame contains information required for communication between wireless devices.</p><p>802.11 frames fall into three main categories:</p><ul><li><strong>Management Frames</strong><br> Used for network discovery and connection management.<br> Examples include Beacon, Probe Request, Authentication, and Association frames.</li><li><strong>Control Frames</strong><br> Used to coordinate access to the wireless medium and maintain reliable communication.<br> Examples include RTS, CTS, and ACK frames.</li><li><strong>Data Frames</strong><br> Carry the actual user traffic such as IP packets.</li></ul><h4>Frames Subtypes</h4><p>There are many frame subtypes, but for the purpose of this article we will focus primarily on <strong>beacon frames</strong> and <strong>deauthentication frames</strong>. Here is a mapping of the subtypes and mappings that will come in handy in understanding our filters later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9YaCzMv1SHky7rfNSXseg.png" /></figure><p>We can generate a frame distribution statistic by running:</p><pre>tshark -r 80211_capture.pcap -q -z io,phs</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*zd2Lfjh-P70uXlEgqP61qA.png" /></figure><p>The io,phs statistic groups packets by protocol hierarchy and gives us a high-level view of what types of frames dominate the capture.</p><p>Most of the distribution consists of management frames, which is common behavior in Wi-Fi networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9YaCzMv1SHky7rfNSXseg.png" /></figure><h4>Beacons</h4><p><strong>Beacon frames</strong> are how Wi-Fi networks advertise their presence.</p><p>Access points typically transmit beacon frames <strong>about 10 times per second</strong> (approximately every 100 milliseconds).</p><p>Because of this constant broadcast behavior, beacon frames usually make up a large portion of any wireless packet capture.</p><p>The number of beacon frames observed in a capture is therefore strongly influenced by how many access points are within range.</p><p>To determine a baseline of how many beacon frames are transmitted per second, we first need to count the total number of beacon frames in our capture.</p><pre>tshark -r 80211_capture.pcap -Y &quot;wlan.fc.type_subtype == 0x08&quot; | wc -l</pre><p>Notice that we are using the 0x08 subtype to filter for beacon just as we saw on the table before.</p><p>For this 900 seconds capture there is 6410 beacon frames, which results in an average of 6410/900 = 7.122 packets/s</p><h4>Identifying SSID</h4><p>A <strong>Service Set Identifier (SSID)</strong> is the name used to identify a wireless network in Wi-Fi environments. It allows devices such as laptops, phones, and IoT devices to discover and connect to a specific network among many available nearby. Access points broadcast the SSID in beacon frames so clients can see and select the network from a list. Some networks choose to disable SSID broadcasting, creating what are commonly called <strong>hidden networks</strong>, which require users to manually enter the network name to connect. While hiding the SSID may reduce casual visibility, it does not provide strong security on its own.</p><p>Let’s determine how many SSIDs appear in our capture:</p><pre>tshark -r 80211_capture.pcap -Y &quot;wlan.fc.type_subtype == 0x08&quot; -T fields -e wlan.ssid | sort -u</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*4b8Nn-c7U1qA3TE8mJ36ZA.png" /></figure><p>This command displays every unique SSID observed in the capture. TShark may output SSIDs in hexadecimal format depending on how the bytes are represented in the capture. If we were viewing the capture in Wireshark, the SSID would typically appear decoded as ASCII.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aI0Q_SxHccxv0Awv_996zw.png" /></figure><p>In order to get a direct output from our command we can use the following command chain:</p><pre>tshark -r 80211_capture.pcap -Y &quot;wlan.fc.type_subtype == 0x08 &amp;&amp; wlan.ssid&quot; -T fields -e wlan.ssid \<br>| sort -u \<br>| while read -r ssid; do echo &quot;$ssid&quot; | xxd -r -p; echo; done</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*IMsPCpJh0RxbEsMjWKKORg.png" /></figure><h4>Identifying Access Points (BSSID)</h4><p>While the SSID represents the name of a wireless network, it does not uniquely identify a specific access point.<br>The actual identifier used by Wi-Fi devices is the BSSID.</p><p>A BSSID (Basic Service Set Identifier) is the MAC address of the wireless interface that is broadcasting the network. Each access point has its own BSSID, even if multiple devices broadcast the same SSID.</p><p>This is common in environments where several access points provide coverage for the same network name. For example, in offices, campuses, or apartment buildings, multiple access points may broadcast the same SSID to provide better coverage and roaming between devices.</p><p>To extract the BSSID and SSID from beacon frames in our capture we can use:</p><pre>tshark -r 80211_capture.pcap \<br>-Y &quot;wlan.fc.type_subtype == 0x08&quot; \<br>-T fields \<br>-e wlan.bssid \<br>-e wlan.ssid</pre><p>This allows us to see which access points are advertising each wireless network.</p><p>If the SSID appears encoded in hexadecimal format, we can decode it by adding the following to our command:</p><pre><br>| sort -u \<br>| grep -v “&lt;” \<br>| awk ‘{printf “%s “, $1; system(“echo “$2” | xxd -r -p”); printf “\n”}’</pre><p>Understanding the relationship between SSID and BSSID is important when analyzing wireless captures, because it allows us to distinguish between different physical access points that belong to the same network.</p><p>For example, the same SSID may appear multiple times in a capture each associated with a different BSSID for example:</p><pre>00:11:22:33:44:55 CoffeeShopWiFi<br>AA:BB:CC:DD:EE:FF CoffeeShopWiFi</pre><p>In this case, two separate access points are broadcasting the same network name.<br>From our output this is not the case on our analyzed capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*ua5Fi_IyxH_jKqtnhJ1Oqw.png" /></figure><p>The process of connecting to a Wi-Fi network involves several management frame exchanges between the client device and the access point. After discovering available networks, the client begins communication to establish a connection and become part of the wireless network. This process includes network discovery, authentication, and association steps that allow the device to join the access point and begin transmitting data. The diagram below illustrates the sequence of these messages and the direction in which they are exchanged between the client and the access point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtL7FnDt1En9HI1AzaEwOg.png" /></figure><h4>Discovering Client Devices</h4><p>An essential section of our analysis is to determine what clients are actively attempting to connect to our Wi-Fi network.</p><p>Client devices discover networks by sending <strong>probe request frames</strong>.</p><p>These frames are broadcast periodically while a device searches for available Wi-Fi networks.</p><p>Historically, probe requests often contained the names of previously connected networks.<br> This behavior raised privacy concerns because observers could identify networks a device had joined before.</p><p>Modern operating systems mitigate this risk by using <strong>MAC address randomization</strong> and limiting identifying information in probe requests.</p><p>To filter probe requests we can use the corresponding subtype value: <strong>0x04</strong></p><pre>tshark -r 80211_capture.pcap -Y &quot;wlan.fc.type_subtype == 0x04&quot;</pre><p>You will see on your output the MAC addresses of devices probing for networks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWpLBj4F5iSuQVKlbzW-PQ.png" /></figure><p>Nowadays most operating systems and devices randomize your MAC addresses during this process to better protect your privacy but this wasn’t always the case.</p><h4>Suspicious Wi-Fi Activity</h4><p>One practical use of wireless traffic analysis is identifying potential <strong>denial-of-service attacks</strong>.</p><p>Two indicators that may suggest suspicious wireless activity are:</p><p>• bursts of <strong>deauthentication frames</strong>, which may indicate a deauthentication attack<br> • unusually high numbers of <strong>probe requests from a single device</strong></p><p>We’ve already seen how to get a general statistic of management frames in our capture, and how to filter for probe requests. Let’s dive into filtering for this. For our filter we will use the corresponding 0x0c subtype if we mainly want to see the packets</p><pre>tshark -r 80211_capture.pcap -Y &quot;wlan.fc.type_subtype == 0x0c&quot;</pre><p>This will display any deauthentication frames present in the capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*Xo06x6m3Tbq9D5IS9Iq2zg.png" /></figure><p>Since our test setup does not include any malicious activity, it is expected that we do not observe anything unusual during our 15-minute capture.</p><p>At last, if we just quickly want to view a quick statistic of management frames subtypes and their count, we can get this with:</p><pre>tshark -r 80211_capture.pcap \<br>-Y &quot;wlan.fc.type == 0&quot; \<br>-T fields -e wlan.fc.type_subtype \<br>| sort | uniq -c | sort -nr</pre><p>We will get a quick overview of our different packets and their subtype</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*uFBTPV701TmnY5V2eb7ivA.png" /></figure><p>So here we can quickly identify, our total 6410 beacon frames, 224 probe request, and the 2 deauth packets. As expected, these values correspond to a normal and healthy Wi-Fi environment.</p><h4>Conclusion</h4><p>In this article we explored the fundamentals of Wi-Fi traffic analysis using real packet captures. By examining beacon frames, probe requests, and management frame statistics, we gained insight into how wireless networks behave under normal conditions.</p><p>Tools such as <strong>tshark</strong> allow analysts to extract meaningful insights directly from packet captures and are extremely useful when troubleshooting wireless connectivity or investigating potential security incidents.</p><p>Understanding these fundamentals provides a strong foundation for deeper exploration of wireless networking and security analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a107b859db8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Certificate validation, some quick tips.]]></title>
            <link>https://medium.com/@cminda/certificate-validation-some-quick-tips-3c47d0582c9b?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c47d0582c9b</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 18:03:48 GMT</pubDate>
            <atom:updated>2026-01-25T01:04:39.626Z</atom:updated>
            <content:encoded><![CDATA[<h3>SSL certificate issues, here’s some quick tips.</h3><p>Installing a certificate on your server can be troublesome at times. If you are having issues here’s a quick guide to hopefully help you find where your issue lies plus some recomendations to some tools that may aid in your endeavours.</p><p>First let’s do a quick recap of what files you should have before proceeding with an install. We won’t go into the details of generating a Certificate Signing Request (CSR) for that you can check out <a href="https://www.keyfactor.com/blog/what-is-a-certificate-signing-request-csr/">https://www.keyfactor.com/blog/what-is-a-certificate-signing-request-csr/</a></p><p>The importanT thing from your CSR generation process is that you will end up with two important files: your CSR request which includes your public key and your private key (which as the name implies, is to remain private and safely stored!). Once you submit your CSR request to a Certificate Authority (CA) you will receive your certificate, and now we can go to our quick sanity check list.</p><h3>Certificate and Private Key</h3><p>First things to check is that our private key and x509 are the right pair. This is done via a hash checksum.</p><p>If you, like me, are using a linux computer, you can check this via the command line. Should be the same if you are on Windows and have Openssl installed.</p><p>To generate the hash from your private key simply run: <br><em>openssl pkey -in server.key -pubout -outform pem | sha256sum</em></p><p>And a similar command for your certificate:<br><em>openssl x509 -in server.crt -pubkey -noout -outform pem | sha256sum</em></p><p>The hash output from this two commands have to match, if they don’t, it means we are not using the right pair.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*RvtwzwSvP5_NpTrviQauxQ.png" /><figcaption>Output of what we should expect to see.</figcaption></figure><p>If you are not comfortable using the CLI you may check your key and cert on <a href="https://www.sslshopper.com/certificate-key-matcher.html">SSL Shopper</a></p><h3>Certificate chain</h3><p>As you may know, intermediate certificates are the middle man for trusting a certificate. In order to preserve a chain of trust Certificate Authorities don’t usually sign end certificates directly, they issue certificates to a “sub CA” which then signs the end certificate, so when uploading a cert you may need to upload as well the intermediate chain so browsers trust the certificate.</p><p>There are some interesting sites you can use to build your certificate chain, from personal use I recommend both <a href="https://whatsmychaincert.com/">What’s my cert chain</a> or <a href="https://tools.keycdn.com/certificate-chain">Certificate Chain Composer</a></p><p>If you don’t have access to this sites or simply like me, enjoy using more of the cli. This is what works best for me.</p><p>We would need to check the “issuer” for our cert and make sure it matches with the “subject” of our intermediate. To demonstrate I’m using googles cert and certificate chain. And the manual process would be as follow:</p><ol><li>Let’s verify our certificate subject and issuer:</li></ol><p><em>openssl x509 -in leaf.pem -noout -issuer -subject</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*E9OsMG6AkEWovg3q1KcbRg.png" /></figure><p>We can see the subject of this cert is a wildcard certificate *.google.com and sign by WR2. What we will expect is our intermediate to have the subject as WR2 and the issuer will be the root. There might be cases that more than 2 certificates are part of the chain.</p><p>2. We check our intermediate certificate running the same command as above but specifying the intermediate file as the input.</p><p><em>openssl x509 -in intermediate.pem -noout -issuer -subject</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*iHuwlbUIKCprv19f1Ih_cw.png" /></figure><p>And here we can confirm for this cert the subject is WR2 as expected and we have the issues as GTS Root R1.</p><p>3. To finish up we confirm we have the right CA once again running the same command but with our CA file as the input:</p><p><em>openssl x509 -in ca-noout -issuer -subject</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*e-mm9Yn9YaviQ2ImAkMyBQ.png" /></figure><p>This way we can confirm the files we have. As seen this are signed by GlobalSign ROOT CA. This root CA’s are usually bundle in our OS so we need not to add the files for this.</p><p>At last we now we have manually confirmed we have a certificate chain, we can use openssl once more to confirm the validation will be successful.</p><p>We can verify using the following command:</p><p><em>openssl verify -CAfile root.pem -untrusted intermediate.pem leaf.pem</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*AAsU6I0iDVQbFCYZQkrIKA.png" /></figure><p>Just so you have an idea, if you were to use a non-matching intermediate you would receive an error as follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*xXe3PWqtkQMa9wUWIMS4Ow.png" /></figure><p>You can also find a certificate checker like the ones recommended on this blog but at the end of the day they all perform this same steps on the backend so it’s good to know this commands when on a pinch.</p><p>This is a first post on a series of related tech and cybersecurity issues I plan (and hope) to start doing. Please give a like and feel free to recommend any topics to discuss! You can follow me at my twitter (X, sorry force of habit) @CMinda</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c47d0582c9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybershield Ecuador 2025: Estado de Ciberseguridad en Ecuador]]></title>
            <link>https://medium.com/@cminda/cybershield-ecuador-2025-estado-de-ciberseguridad-en-ecuador-68b61f044ddc?source=rss-e5c04a67d540------2</link>
            <guid isPermaLink="false">https://medium.com/p/68b61f044ddc</guid>
            <category><![CDATA[ciberseguridad]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[ecuador]]></category>
            <category><![CDATA[educación]]></category>
            <dc:creator><![CDATA[Carlos Minda]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 02:51:39 GMT</pubDate>
            <atom:updated>2025-07-07T02:51:39.147Z</atom:updated>
            <content:encoded><![CDATA[<p>Este 2 y 3 de Julio se realizó el evento internacional de Ciberseguridad Cybershield 2025 en la ciudad de Guayaquil. Tuvimos la oportunidad de asistir a este evento el cúal nos permitió conocer más del panorama actual en torno a la ciberseguridad y ciberdefensa en nuestro país.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ejEJAGYD0wCNiCvA" /><figcaption>Poster Promocional de la conferencia</figcaption></figure><h4><strong>Contexto Actual en materia de Ciberseguridad</strong></h4><p>Se estima que para el 2025 el cibercrimen se convierta en la tercerda economía mundial con un aproximado de 10.5 billones de dólares, tomando lugar por debajo de China. Esto demuestra como a nivel mundial la defensa del ciberespacio es una prioridad para cualquier país del mundo, pero como se encuentra Ecuador actualmente en este aspecto? Pues esto es lo que hemos podido aprender en este ámbito de los diferentes ponentes.</p><p>En la actualidad el Ecuador tiene alrededor del 83.51% de su población siendo usuarios activos de internet, con el 74% de la población siendo usuarios de redes sociales, lo cúal indica una alto porcentaje de la población que podría ser víctimas de ciberdelitos u otros delitos como estafas llevadas a cabo por medio de canales tecnológicos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JyFaK00u30cxe3BivDj41g.png" /></figure><p>En base a la información presentada por Fortinet, en el ranking de países<br>de Sur America, Ecuador se encuentre en el puesto 3 de países que son victímas de más ciber ataques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*fMYa2BFW_6TqmrUhMe-9CQ.png" /><figcaption>Índice de crimen organizado referente a Ecuador. Fuente: <a href="https://ocindex.net/country/ecuador">https://ocindex.net/country/ecuador</a></figcaption></figure><p>En la actualidad se han registrado alrededor de 20 000 ataques detectados, de los cuales alrededor de 11 833 han sido propiamente denunciados.</p><p>En cuanto a los tipos de ataques que predominan en el país, siguen la tendencia global de ser víctimas de ataques de phishing o spear phising y ransomware. A nivel de las Americas los principales actores atacantes corresponden a los grupos UNC5267,UNC5221 y UNC2565.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1FUwgNbkRnJtLZj88ey9xg.jpeg" /></figure><p>Esto nos lleva al siguiente tema, como se encuentra el nivel de ciberdefensa en el país, que eventos han influenciado en su desarrollo y las acciones que se estan ejecutando.</p><h4>Cronología de la Ciberseguridad en Ecuador</h4><p>Lo que se observo dentro de las distintas charlas es que el Ecuador lleva alrededor de 11 años actualmente trabajando e invirtiendo recursos en el mejoramiento de procesos y herramientas en el aspecto de ciberseguridad. Los eventos más destacados se pueden definir como los siguiente:</p><p><strong>2013:</strong></p><ul><li><em>Implementación del Esquema Gubernamental Seguridad de la Información (EGSI) por la Secretaria Nacional de Administración Pública (SNAP).</em></li></ul><p><strong>2014:</strong></p><ul><li><em>Creación de </em><a href="https://www.ecucert.gob.ec/centro-de-respuesta-a-incidentes-informaticos-del-ecuador/#:~:text=El%20EcuCERT%20es%20el%20Centro,de%20las%20Telecomunicaciones%20del%20Ecuador."><em>EcuCERT</em></a><em>, primer centro de respuesta de incidentes informáticos, miembro de FIRST (Forum of Incident Responser and Security Teams).</em></li><li><em>Creación del Sistema de Ciberdefensa del Ministerio de Defensa Nacional y del Comando de Ciberdefensa (AM 281).</em></li></ul><p><strong>2018:</strong></p><ul><li><em>ARCOTEL, expide “</em><a href="https://www.gob.ec/regulaciones/arcotel-2018-0652-norma-tecnica-coordinar-gestion-incidentes-vulnerabilidad-afecten-seguridad-redes-servicios-telecomunicaciones"><em>Norma Técnica para coordinar la Gestión de Incidentes y Vulnerabilidads que afectan a la seguridad de servicios de Telecomunicaciones</em></a><em>”.</em></li></ul><p><strong>2020:</strong></p><ul><li><em>Ministerio de Telecomunicaciones (MINTEL) emite EGSI versión 2.0</em></li><li><em>30 de Marzo Ecuador es invitado por el Consejo de Europa para unirse al Convenio de Budapest</em></li></ul><p><strong>2021:</strong></p><ul><li><em>MINTEL emite Política Nacional de Ciberseguridad.</em></li><li><em>MIDENA crea Estrategia de Ciberdefensa, Guía Político-Estratégica de Ciberdefensa.</em></li><li><em>Reforma del Comando de Ciberdefensa (AM 281)</em></li><li><em>CNT sufre ataque de Ransomware.</em></li></ul><p><strong>2022:</strong></p><ul><li><em>Creación CSIRT-ECUADOR</em></li><li><em>Desarrollo de la Estrategia y Plan Nacional de Ciberseguridad 2022–2025</em></li></ul><p><strong>2023:</strong></p><ul><li><em>Publicación de la </em><a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;opi=89978449&amp;url=https://www.finanzaspopulares.gob.ec/wp-content/uploads/2021/07/ley_organica_de_proteccion_de_datos_personales.pdf&amp;ved=2ahUKEwiTpsSE6aiOAxUTRzABHUVtHbkQFnoECB4QAQ&amp;usg=AOvVaw14qxux2y-WUfOEm4XhNx-r"><em>Ley Orgánica de Protección de Datos Personales</em></a><em>.</em></li><li><a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;opi=89978449&amp;url=https://www.sri.gob.ec/o/sri-portlet-biblioteca-alfresco-internet/descargar/a1612281-0dc5-4cbc-a6c6-f486d3c34639/Ley_organica_transformacion_digital_audiovisual_2023.pdf&amp;ved=2ahUKEwjLzLyY6aiOAxUJTDABHcb8CvgQFnoECA0QAQ&amp;usg=AOvVaw0EwGGQ2uAiL6cPhd4Nw1Bf"><em>Ley Orgánica de Tranformación Digital y Audiovisual</em></a></li><li><em>Registro Oficial Suplemento N. 236</em></li><li><em>Catalogación ICD de la Defensa.</em></li></ul><p><strong>2024:</strong></p><ul><li><em>MINTEL emite </em><a href="https://www.gobiernoelectronico.gob.ec/egsi-v2/"><em>EGSI versión 3.0</em></a></li><li><em>Integración del Ecuador al Convenio de Budapest sobre Ciberdelitos con 85 votos a favor en Asamblea Nacional. (4 de Julio)</em></li><li><em>Se crea formalmente el Comité Nacional de Ciberseguridad con el Decreto Ejecutivo 464.</em></li><li><em>12 de Diciembre se deposita oficialmente el instrumento de adhesión en Estrasburgo oficializando unión al convenio de Budapest como el país #77.</em></li></ul><p><strong>2025:</strong></p><ul><li><em>Segundo Debate a la Ley de Seguridad Digital en la Asamblea Nacional.</em></li><li><em>Catalogación ICD del Estado.</em></li><li><em>10 de Enero: CiberPOL se designa como punto 24/7 (PoC)</em></li></ul><p>Se puede apreciar que ha existido un gran avance en el campo al menos dentro del desarrollo de políticas y leyes en busqueda de facilitar y mejorar el desarrollo de las instituciones que tienen como tarea principal llevar acabo la defensa y monitoreo del ciberespacio ecuatoriano. Al momento, al menos de las estadísticas e información presentada no se ha verificado un gran inversión en cuanto a inversiones de infraestructura tecnológica. A[un asi se puede observar un gran crecimiento en el Global Cibersecurity Index (GCI) correspondiente al país el cual subi[o en 60 puntos en un periódo de 4 años todo gracias a cooperación internacional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjlsHox-DHEEFzGnNgCm_w.png" /></figure><p>El GCI es un índice determinado por la ITU, al obtener un ranking de 87,18 Ecuador se encuentra entre los primeros países de Sur America. Este ranking se debe a la reciente integración al Convenio de Budapest y al desarrollo de políticas en torno al desarrollo de la Ciberseguridad en el país y la implementación de CIRST locales.</p><h4>CiberPOL</h4><p>La CiberPol, es como entidad también mostro mucho de las actividades que han llegado a desarrollar en los últimos años.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7aHhOklQBIw0WWseFtYuA.png" /></figure><p>Entre sus actividades también reportan tener un 90% de efectividad en la resolución de las denuncias de ciberdelitos que se generan. Adicional, ahora Ecuador cuenta con un departamento en Fiscalía específico para el proceso de ciberdelitos, la Unidad Nacional Especializada en Investigación de Ciberdelitos.</p><p>En medida a un resumen, como resultado del seminario se dio a entender que el panorama de la ciberseguridad en Ecuador se encuentra bien encaminado, aunque aún hay mucho por hacer, pero el desarrollo experimentado se debe a algunos elementos básicos:</p><ul><li>Cooperación Internacional</li><li>Promover y desarollar políticas y leyes internas.</li><li>Trabajo multidisciplinario dentro de las instituciones gubernamentales.</li></ul><p>Al fin y al cabo la ciberseguridad es un tema que nos afecta a todos, y por lo mismo, es un tema que requiere de cooperación y capacitación en todas las ramas: público, privada y la participación civil también.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68b61f044ddc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>