<?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 Yuliya Volkova on Medium]]></title>
        <description><![CDATA[Stories by Yuliya Volkova on Medium]]></description>
        <link>https://medium.com/@yuliya-volkova?source=rss-3d8b268a3c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pkikj9w2neHYIJZdv9hRlg.png</url>
            <title>Stories by Yuliya Volkova on Medium</title>
            <link>https://medium.com/@yuliya-volkova?source=rss-3d8b268a3c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:50:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuliya-volkova/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[From Threat Intel to Emulation: Automated Purple Teaming via MCP]]></title>
            <link>https://infosecwriteups.com/from-threat-intel-to-emulation-automated-purple-teaming-via-mcp-bca3c1874c45?source=rss-3d8b268a3c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bca3c1874c45</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Yuliya Volkova]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 07:41:35 GMT</pubDate>
            <atom:updated>2026-10-05T07:45:05.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3g-bYY2rGcSnux1lKtP86w.png" /></figure><p>Recently, we were prototyping an approach to orchestrate purple teaming, with the goal of moving from ad-hoc manual testing toward a fully automated, continuous validation loop. We wanted to make it work for smaller enterprises that wanted a similar purple teaming maturity but couldn’t justify onboarding expensive platforms.</p><blockquote>The main challenge was always figuring out what was actually relevant to test for. Threat intelligence is abundant and only growing in volume, but intelligence alone cannot identify gaps or validate whether security controls will hold up against a real adversary.</blockquote><p>Breach and Attack Simulation (BAS) tools solve part of this. They are highly effective at automating atomic TTP testing, provided the techniques are always updating and are already mapped to MITRE ATT&amp;CK, they can chain those atomic tests into full adversarial scenarios. In other words, BAS stitches many atomic red team tests into something that resembles a real attack path.</p><p>But getting there still depends on the hard part: making intelligence actionable. That requires client infrastructure and vendor context, connecting scattered signals, building out threat reports, extracting the relevant adversary behaviors, and translating them into executable attack scenarios that reflect real-world threats and attack paths that exist within the environment.</p><h3>Where MCP Comes In</h3><p>We exposed two systems as MCP servers. The first was BitSight, through <a href="https://github.com/TheSkeenAdvantage/mcp-bitisght">mcp-bitsight</a>, which gave the model environmental context: the external attack surface, the exposed services, the CVEs present in the environment, and the APT activity associated with that exposure. The second was CALDERA, through <a href="https://github.com/cowboy-samurai/caldera-mcp">caldera-mcp</a>, which gave the model the ability to act: to list existing abilities, create new ones, and chain them into adversary profiles and operations.</p><p>By monitoring our clients and their vendors within our BitSight license, we can pull relevant vulnerabilities, security findigs, risk vectors, and alerts and directly correlate them to CALDERA’s adversaries and abilities.</p><p>The workflow:</p><ol><li>The model pulls context from BitSight. It sees the CVEs and the adversary behavior relevant to the specific client infrastructure. Does not require any filtering.</li><li>It reasons about what that exposure actually means in attacker terms. Given this CVE or this APT, what techniques would a real adversary use against this environment, and what is the plausible attack path?</li><li>It maps those techniques to MITRE ATT&amp;CK, then checks CALDERA for abilities that already implement them.</li><li>Where an ability exists, it reuses it. Where one does not, it creates a new ability in CALDERA to cover the gap.</li><li>It chains the result into an adversary profile that reflects a coherent, real-world attack path.</li></ol><p>In this way, we can offer clients a scalable layer of risk intelligence enrichment that sits on top of their BAS. Rather than onboarding an expensive, all-in-one platform, they pay for seats within the license that cover their own domains and their vendors, and the enrichment scales with that footprint. The BAS and LLM layers are deployed inside their own infrastructure, so the intelligence never leaves their environment, and nothing about the arrangement locks them in. They can unplug at any time and keep everything that was generated along the way: the abilities, the TTPs, detection rules, and the adversary profiles built from their exposure. What they are left with is not a subscription they rent, but a library of emulation content grounded in their own attack surface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*SHLRZ5iURNrku5pfO3Fwcw.png" /></figure><p>Right now, the defensive side is something we infer rather than measure directly. The only defensive signal we get is when a control blocks a technique and the operation step fails, which tells us something stopped it but not what detected it or whether it alerted. Closing that gap means adding detection MCP servers behind the same gateway, so the model can query the client&#39;s SIEM during and after an operation and pull the alerts and telemetry each TTP generated. With that, it can correlate every executed technique to what fired and produce a real detection efficacy report: what alerted, what logged without alerting, and what passed silently. For the techniques that went undetected, the model can then write the detection rule itself, either as portable Sigma or as a native query for the client&#39;s platform.</p><h3>Vendor-Agnosticism</h3><p>Because the whole approach is held together by a connective MCP layer rather than any single product, it is vendor agnostic by design. The same pattern can be repeated with other risk intelligence sources and other BAS platforms, as long as a corresponding MCP server is built to expose them. The portability extends to the output as well. The TTPs created for CALDERA are defined in YAML, which is cross-compatible and can be carried to a different platform without restructuring. So neither the intelligence source, the execution engine, nor the generated content is tied to one vendor, which is exactly what makes this viable for smaller enterprises that need to stay flexible about what they adopt.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bca3c1874c45" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/from-threat-intel-to-emulation-automated-purple-teaming-via-mcp-bca3c1874c45">From Threat Intel to Emulation: Automated Purple Teaming via MCP</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Achieving MiTM on Apple through a Rogue DHCPv6 Server]]></title>
            <link>https://yuliya-volkova.medium.com/achieving-mitm-on-apple-through-a-rogue-dhcpv6-server-c1942cce2526?source=rss-3d8b268a3c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1942cce2526</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[dhcp]]></category>
            <dc:creator><![CDATA[Yuliya Volkova]]></dc:creator>
            <pubDate>Sun, 08 Dec 2024 22:01:25 GMT</pubDate>
            <atom:updated>2026-10-05T07:59:47.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UAI9ccsgEuob9N-yXgamEg.png" /></figure><p>Man-in-the-middle (MiTM) attacks are perhaps the first thing that comes to mind when the goal is to obtain victim data such as logins and passwords for various services, as well as transmitted information like emails, messages, and more. DNS and ARP spoofing, ICMP redirect, Evil Twin — you’ve probably already heard about these techniques.</p><p>In this article, I’ll tell you about a lesser-known way to perform a MiTM attack on a WiFi network. While not the most accessible method, it is effective.</p><h4>Disclaimer</h4><p>All information is provided for informational purposes only. The author is not responsible for any potential harm caused by the materials in this article.</p><h3>Introduction</h3><p>Rogue DHCPv6 servers offer a niche but surprisingly simple approach towards executing MiTM, particularly targeting Apple devices on WiFi networks due to an interesting feature within their DHCP client.</p><p>In this article, I explore the setup and execution of such attack, detailing the prerequisites, stages, and the specific steps involved. Through intercepting and manipulating DHCP traffic, we can control network parameters for connected or new clients, enabling a range of attacks from traffic interception to phishing attempts. This method works especially well in environments like cafes with misconfigured routers but may face limitations in more secure enterprise settings.</p><h3>Prerequisites</h3><p>A couple of prerequisites must be met in order to execute the attack:</p><ol><li>We must be connected to the target access point (AP) on one of the attached network interfaces.</li><li>We must be able to monitor broadcast traffic and intercept broadcast DHCPDISCOVER, DHCPREQUEST, and ARP requests to detect IP address conflicts in the local network.</li></ol><p>In my PoC, I have set up the following on a Kali Linux 2024.3:</p><ol><li>TP-Link Archer T9UH [Realtek RTL8812AU] — in Monitor Mode <a href="https://github.com/morrownr/8814au">(driver install</a>).</li><li>Alfa Network AWUS036ACH [Realtek RTL8814AU] — in Managed Mode, connected to AP (<a href="https://github.com/Khatcode/AWUS036ACH-Automated-Driver-Install">driver install</a>).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*BXZcuJ8hF1W05NEEtCJ0VA.png" /><figcaption>iwconfig</figcaption></figure><p>Our attack will be carried out in several stages:</p><ol><li>Execute a DHCP Starvation attack.</li><li>Send WiFi Deauthentication packets.</li><li>Intercept ARP requests from target clients and respond to them to create IP address conflicts, forcing them to send a DHCPDECLINE.</li><li>Capture DHCPDISCOVER and DHCPREQUEST queries and respond to them.</li></ol><p>I will break this process down in more detail as we go further along.</p><h3>DHCP Starvation</h3><p>It is important not to view DHCP solely as a method for obtaining remote code execution (RCE) on clients. To achieve RCE, you would need to respond faster than the legitimate DHCP server on the network, which can be done by being closer to the target client in the network and ensuring that your hardware and algorithms are faster, which is quite rare and impractical. Instead, DHCP should primarily be seen as a method for enabling MiTM attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*vNoHGZM_lkWYKbLx7j-Exg.png" /><figcaption>DHCP Connection Handshake</figcaption></figure><p>A more effective approach is to overload the server without depleting the pool of available IP addresses, which would result in a DHCP Starvation attack. This involves sending a large number of DHCPDISCOVER requests as the server is forced to process each request and respond to it with a DHCPOFFER. However, we will not be sending a DHCPREQUEST in return, which leaves server waiting, and the IP address will not be leased as the handshake was not completed.</p><p>Therefore, we will connect to the target AP and execute the DHCP Starvation attack to replenish the pool of available IP addresses with the following steps:</p><p><strong>1. </strong>We craft and send a broadcast DHCPDISCOVER request, identifying ourselves as the DHCP relay agent. In the <strong>giaddr </strong>(Relay Agent IP Address) field, we specify our IP address, 192.168.0.149. In the <strong>chaddr </strong>(Client MAC Address) field, we use a random MAC address, such as 40:24:b2:dc:54:15. At the data link layer, we set the SRC MAC field to our own MAC address, 50:c7:bf:0b:41:ec.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUUnFwWE_Q3kKXzqfi8uwg.png" /><figcaption>DHCPDISCOVER</figcaption></figure><p><strong>2.</strong> The server responds with DHCPOFFER to the relay agent (us) and offers the client MAC address 40:24:b2:dc:54:15 and the IP address 192:168:0:178.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRfxsKudtXqWBnF6ZMvukQ.png" /><figcaption>DHCPOFFER</figcaption></figure><p><strong>3. </strong>After receiving DHCPOFFER, we send a broadcast DHCPREQUEST message. In the DHCP options with code 50 (Requested IP Address), we set the IP address to192:168:0:178. It’s important that the values of the <strong>xid </strong>(Transaction ID) and <strong>chaddr </strong>(Client MAC address) in DHCPREQUEST and DHCPDISCOVER are the same; otherwise, the server will reject the request, as it will appear as a different transaction ID from the same client or as a different client with the same transaction ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtFcTrEd1sUNEne_pMDD-g.png" /><figcaption>DHCPREQUEST</figcaption></figure><p><strong>4.</strong> The server sends a DHCPACK message to the relay agent. From this point, the IP address 192:168:0:178 is considered reserved for the client with the MAC address 40:24:b2:dc:54:15 for 10 minutes. The lease times vary depending on network configuration, with some default lease times being 12 hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-amuPluyOGIh0dIbUHIZkQ.png" /><figcaption>DHCPACK</figcaption></figure><h3>WiFi Deauthentication</h3><p>The WiFi deauthentication (deauth) attack disrupts communication between a client and an access point by sending a series of deauth frames. This forces the client to disconnect from the WiFi network, creating an opportunity for a rogue DHCP server (attacker) to offer an IP address to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*bCboi9scTY0gyvgeSR3uSg.png" /><figcaption>WiFi Deauthentication (in a nutshell)</figcaption></figure><p>With the concept of the DHCP handshake and starvation in mind, we will execute WiFi deauthentication against target Apple client on the AP we are connected to with the MAC address 48:bf:6B:0b:8a:67.</p><p>Preparing our interface for WiFi deauthentication:</p><pre>ifconfig &lt;interface&gt; down # Bring chosen interface down<br>ip addr add 192.168.0.100/24 dev &lt;interface&gt; # Assign temporary IP on interface if not already set<br>ifconfig &lt;interface&gt; hw ether &quot;11:22:33:44:55:66&quot; # Assign temporary random MAC on interface if not already set<br>iwconfig &lt;interface&gt; mode monitor # Bring chosen interface to monitor mode<br>ifconfig &lt;interface&gt; up # Bring chosen interface up<br><br>ifconfig &lt;interace&gt; # Check interface IP and MAC<br>iwconfig &lt;interface&gt; # Check interface Mode</pre><p>Using the wireless interface which was set to Monitor Mode (wlan0 in my case), we probe the clients on the target network.</p><pre>airodump-ng &lt;interface&gt; --bssid &lt;bssid&gt; --channel &lt;channel&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*6Eb44NpsGIuN7XQF04ySKw.png" /><figcaption>airodump-ng</figcaption></figure><pre>aireplay-ng -0 24 -a &lt;bssid&gt; -c &lt;target_mac&gt; &lt;interface&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*Oos6-X87tO15725oN1z4Ag.png" /><figcaption>aireplay-ng</figcaption></figure><p>In parallel, we will launch bettercap to easily monitor DHCP transactions on the network using the wireless interface that is connected to the AP (wlan1 in my case).</p><pre>bettercap -I &lt;interface&gt; -X -S NONE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*eCzodkQCbnMwlb1GPmZxnQ.png" /><figcaption>bettercap (I like v1.6.2 most at the moment)</figcaption></figure><h3>DHCPDECLINE, DHCPDISCOVER and DHCPREQUEST | Rougue DHCPv6 with raw-packet</h3><p>After the client 48:bf:6B:0b:8a:67 disconnected from the access point, it is most likely that it will attempt to reconnect to the same WiFi network again and obtain an IP address via DHCP. Since it has previously connected to this network, it will only send a broadcast DHCPREQUEST.</p><p>We intercept the client’s request, but naturally, we will not be able to respond faster than the access point. As a result, the client receives the previously assigned IP address from the DHCP server. Next, the client uses the ARP protocol to check for IP address conflicts on the network. Since this request is broadcasted, we can intercept and respond to it.</p><p>After our response, the client will detect an IP address conflict and send a broadcast DHCPDECLINE message. Following the DHCPDECLINE, the client starts the IP address acquisition process from the beginning by sending a broadcast DHCPDISCOVER.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*A-HW3rWWJeqxh3ThA3uvGA.png" /><figcaption>bettercap</figcaption></figure><p>The legitimate DHCP server cannot respond to this request because the pool of available IP addresses has been exhausted due to the DHCP Starvation attack, causing a noticeable delay. Meanwhile, we can respond to the DHCPDISCOVER — offering our relay agent IP 192.168.0.149.</p><p>The client 48:bf:6B:0b:8a:67 sends a broadcast DHCPDISCOVER. To this, we will reply with a DHCPOFFER, in which we offer the client the IP address 192.168.0.178. The client, having received this offer only from us, sends a DHCPREQUEST, specifying 192.168.0.178 as the requested IP address, and we respond with a DHCPACK.</p><p>The client 48:bf:6B:0b:8a:67sends a broadcast DHCPREQUEST. We respond with a second DHCPACK. The client accepts our DHCPACK and sets our IP address, 192.168.0.149, as the default gateway and DNS server. The DHCPNACK sent by the access point two seconds later is simply ignored.</p><blockquote>Other DHCP clients on different operating systems typically ignore the second DHCPACK sent by a rogue DHCP server. However, macOS and iOS clients behave differently. They accept and utilize the second DHCPACK, effectively allowing the rogue server to configure network parameters such as the default gateway and DNS settings.</blockquote><p>To facilitate the automation of this entire process, we will be using a script from the <a href="https://github.com/raw-packet/raw-packet">raw-packet</a> project developed by Vladimir Ivanov of Digital Security when he discovered and reported this vulnerability within the DHCP client back in 2017. When Apple responded, they stated that their DHCP client operates in accordance with RFC 2131 and closed the report.</p><p>As I am only targeting Apple clients in this PoC, I will be executing apple_dhcp_server.py in parallel with the deauthentication attack against the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*b-EqpCfAomcx2mLLRcB4dA.png" /><figcaption>raw-packet / apple_dhcp_server.py</figcaption></figure><p>MiTM through a rogue DHCPv6 server has been successfully executed.</p><p>Now we can intercept network traffic from the target client. Thus, we can configure any network parameters — default gateway, DNS server, and others — for any connected or new client in the targeted WiFi network, provided that we are already connected to it and can monitor broadcast traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*mA9sV-CGH923nLyj5gAMuw.png" /><figcaption>raw-packet / apple_dhcp_server.py</figcaption></figure><p>Exploring other scripts developed by Vladimir relying on the premise of rogue DHCPv6 servers, we can repeat the same with an Apple ID phishing module apple_mitm.py to bring up a login page for the target client to gather credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*MUSAel1N_QRZXCGWqFwYzQ.png" /><figcaption>raw-packet / apple_mitm.py</figcaption></figure><h3>Countermeasures</h3><ul><li><strong>Configuring Network Equipment</strong>: limiting the number of DHCPDISCOVER and DHCPREQUEST messages from a single MAC or IP address to prevent DHCP starvation attacks. This ensures that only valid DHCP requests are processed, mitigating the risk of rogue servers.</li><li><strong>Traffic Monitoring</strong>: recording and analyzing network traffic to detect anomalies. For instance, an abnormal spike in DHCP requests during a DHCP starvation attack may indicate unauthorized activity. Typically, the number of DHCP responses should not exceed the number of requests; a sudden increase in responses could suggest a rogue DHCP server.</li><li><strong>Use of IDS, IPS, SIEM, and Network Monitoring Systems</strong>: these tools can help to detect and respond to abnormal DHCP activity, unauthorized network access, and other security threats.</li><li><strong>Static MAC-IP Binding on DHCP Server</strong>: configuring DHCP servers to bind specific MAC addresses to IP addresses to prevent unauthorized clients from connecting to the network.</li><li><strong>DHCP Snooping</strong>: switch feature designed to protect against DHCP spoofing attacks within a network. It verifies that all DHCP messages received on a trusted port originate from legitimate DHCP servers.</li><li><strong>Port Security</strong>: switch function that allows administrators to specify which MAC addresses are permitted to communicate through a port. The port will block traffic from any device that does not have an authorized MAC address.</li><li><strong>Regular Software Updates</strong>: keeping devices and network infrastructure software up-to-date to patch known vulnerabilities and prevent exploitation of outdated systems.</li></ul><h3>In the End</h3><p>While certainly fun and quite unusual, MiTM through DHCPv6 only works in the simplest wireless networks without a controller. In enterprise environments, all these vulnerabilities are covered with blocking client-to-client traffic and proxying DHCP</p><p>Although, by changing the MAC address, a DHCP Starvation attack can still be carried out. But this would just result in a DoS attack without the threat of compromising other clients.</p><p>Even though it might not work in an enterprise setting, in cafes with FreeWiFi and a misconfigured router it is very likely to succeed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1942cce2526" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DcyFS: Advanced Filesystem Architecture for Ransomware Mitigation in Shared Enterprise Environments]]></title>
            <link>https://yuliya-volkova.medium.com/dcyfs-advanced-filesystem-architecture-for-ransomware-mitigation-in-shared-enterprise-environments-cdfe5cacd87e?source=rss-3d8b268a3c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdfe5cacd87e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Yuliya Volkova]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 09:38:09 GMT</pubDate>
            <atom:updated>2026-10-05T08:02:38.127Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYf8DQu2fetkGmlrOjGccw.png" /></figure><p>As ransomware attacks are becoming increasingly prevalent within organizations, various file systems have been proposed in order to prevent or mitigate the consequences of data loss and theft.</p><p>However, most existing file systems primarily focus on keeping <strong>consistent backups, halting ransomware execution, and reverse engineering encrypted files</strong> in order to prevent and recover from ransomware attacks.</p><p>While the approach of such filesystems seems proactive, which in turn led to their wide adoption within organizations, it was revealed that when impacted by ransomware, 71% of these organizations are unable to successfully decrypt their information, while some cannot even recover it from backups [1].</p><p>Another way filesystems are able to detect ransomware attacks and take preventative measures is through the use of <strong>decoy files, canaries, and breadcrumbs</strong> which record irregular system access and modification.</p><p>However, for the decoys to be successful as a protective measure against the attacks, they must not interfere with authorized filesystem usage as to not trigger false positives, which requires the system users to be either aware of the decoys or for the decoys to be clearly recognizable by users, which essentially makes these defenses easily circumventable and difficult to maintain in shared settings.</p><blockquote>DcyFS is a Linux filesystem intended to prevent such oversights in shared environments through employing realistic but false views of the filesystem called overlays that are isolated from the base filesystem. The central aspect to DcyFS’ architecture is a stackable filesystem that unites the multiple separate filesystem views in a union, which are overlaid into a single coherent system.</blockquote><p>These overlays are deployed on a per-process and user portfolio basis, whereby specific files are completely hidden from overlays issued to certain user types. Each overlay is issued to trusted users only with the directories and files relevant to their role in the system following least privilege access principles, and ensures that they are not aware about other files existing on the base filesystem through data hiding.</p><p>This means that trusted and untrusted users and processes are operating on their own separate overlays. The base filesystem serves as the main host with root access, where administrators have the high-level transparent view of the processes and file modifications occurring in the overlay, as well as be able to configure trust-based policies and inject decoy files into the overlays as required. The base filesystem is read-only, but the overlay is read-write and is only visible to the running process being executed within it.</p><p>The below figure illustrates the architecture of DcyFS, where the base and overlay filesystems are displayed as well as the unions between certain overlays. A file or directory can easily be hidden from an overlay by marking it as deleted to prevent sensitive data leaks. Additionally, decoy files can be meticulously placed within certain overlays issued to untrusted processes and existing files can be replaced to deceive attackers, while leaving trusted overlays untouched to spare the legitimate users the confusion. Any writes made to base files from the overlay layers are written using copy-on-write to further ensure data integrity by preventing untrusted modifications in ransomware attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*xonkdFSqX3dDDgrwBoDtWQ.png" /><figcaption>DcyFS decoy filesystem layered architecture: access control denial and deception</figcaption></figure><p>DcyFS also serves as a useful tool in filesystem forensics as the untrusted overlay keeps a record of any files that are modified, created and deleted during its runtime, which allows for the administrator to observe the attacker’s actions and characterize the attributes of the malware attack occurring while the host filesystem remains safe and untouched. Such forensic work can help detect similar attacks occurring in the future and deploy more effective preventive measures to halt such attacks sooner. The ransomware attacks can also be detected through filesystem changes during the runtime of the untrusted process using binary differences, information gain and write entropy as the indicators.</p><p>Since all modifications made to files in the overlays are saved in copy-and-write, having multiple copies of different file versions enables the administrators to detect potential ransomware. Observing the binary files for binary differences is an effective way to compare two versions of the identical file to reveal any recent changes and is commonly used as a reverse-engineering technique that helps detect a ransomware attack. Additionally, examining the file size among a normal binary and a modified version of it can help determine if it has been impacted by ransomware or not if its size grows [2].</p><p>Measuring the write entropy helps determine the randomness of the information being written to files, which helps detect ransomware attacks as they attempt to overwrite or encrypt the system files. It can also be used in determining if the file contains any hidden data or embedded scripts which have been injected by the attacker [3].</p><blockquote>DcyFS is able to isolate potentially harmful processes from modifying the base files in order to prevent the loss of data integrity as well as deceive attackers through decoy files and breadcrumbs at the expense of a larger storage overhead as compared to monolithic filesystems. However, based on the security level that this filesystem offers against preventing ransomware attacks and identifying potential harmful insiders, it presents itself as one of the most secure filesystems currently available for Linux.</blockquote><p>[1] Taylor, T., et al. (2018). Hidden in plain sight: Filesystem view separation for data integrity and deception. International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, Springer.</p><p>[2] Poudyal, S., et al. (2019). <em>A Framework for Analyzing Ransomware using Machine Learning</em>. ResearchGate.</p><p>[3] IBM. (2022). Analyzing files for embedded content and malicious activity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdfe5cacd87e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>