<?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[magicswordio - Medium]]></title>
        <description><![CDATA[Magicsword builds advanced security tools that collect and analyze data to protect businesses from internet threats and malicious actors. - Medium]]></description>
        <link>https://medium.com/magicswordio?source=rss----350757796800---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>magicswordio - Medium</title>
            <link>https://medium.com/magicswordio?source=rss----350757796800---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:11:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/magicswordio" 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 M&S Breach: A Wake-Up Call for Teams Still Chasing Malware]]></title>
            <link>https://medium.com/magicswordio/the-m-s-breach-a-wake-up-call-for-teams-still-chasing-malware-e7cd9a74cdb3?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/e7cd9a74cdb3</guid>
            <category><![CDATA[data-breach]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[living-off-the-land]]></category>
            <category><![CDATA[ramsomware-attack]]></category>
            <dc:creator><![CDATA[Natalie Torrijos]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 22:29:43 GMT</pubDate>
            <atom:updated>2025-12-12T17:28:56.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUNVvJvnAxqzjEYyZfQoQw.png" /></figure><p>When news broke that Marks &amp; Spencer had fallen victim to a ransomware breach linked to DragonForce and the Scattered Spider group, it set off alarm bells across the cybersecurity community. But for those of us who’ve been watching this pattern unfold, it wasn’t a surprise, it was a reminder that most enterprises are still overlooking a glaring hole in their security stacks.</p><p>According to <a href="https://www.bleepingcomputer.com/news/security/marks-and-spencer-breach-linked-to-scattered-spider-ransomware-attack/">Bleeping Computer</a>, the attackers tricked the M&amp;S IT helpdesk into resetting credentials, a classic case of social engineering. They then used <strong>SimpleHelp</strong>, a legitimate remote management tool (RMM), to deploy ransomware on VMware ESXi hosts. SimpleHelp is one of many legitimate tools increasingly abused in recent attacks. It’s also listed on <a href="http://lolrmm.io/">lolrmm.io</a>, an open-source tracker of RMMs exploited in the wild.</p><p>This is the type of pattern defenders need to anticipate and prevent, before ransomware starts.</p><p>Instead of reacting to an ever-growing list of malware variants, it’s time to flip the model: stop the predictable abuse of <strong>legitimate tools</strong> like TeamViewer, AnyDesk, and SimpleHelp that threat actors consistently weaponize after gaining initial access.</p><h3>What Makes This Attack So Concerning?</h3><p>This breach wasn’t the result of a zero-day exploit or advanced evasion technique. It was simple:</p><ul><li>Human manipulation of the helpdesk.</li><li>Abuse of trusted software tools already allowed in most environments.</li></ul><p>This tactic is known as a <strong>Living-off-the-Land (LOTL) attack</strong>. It doesn’t rely on malware. It uses the software companies already trust. It doesn’t need custom malware, no zero-days, no clever evasion techniques. Just stolen credentials and tools the company already trusted. Attackers are not bringing anything new, they are using what you’ve already got, because you won’t see it as a threat until it’s too late.</p><p>If your stack doesn’t specifically account for LOTL threats, <strong>you’re vulnerable</strong>, even if you have top-tier EDR, antivirus, or SIEM solutions in place.</p><h3>The RMM Blind Spot</h3><p>Recently, we’ve seen a rise in the weaponization of:</p><ul><li>SimpleHelp</li><li>TeamViewer</li><li>AnyDesk</li><li>ScreenConnect</li><li>RemotePC</li></ul><p>These tools are designed for support, but in the wrong hands, they’re digital crowbars. If your current stack doesn’t control or monitor their use tightly, your endpoints are exposed.</p><p>The <strong>Marks &amp; Spencer breach</strong> is not an isolated event, it’s a symptom of a broader blind spot in modern cybersecurity. If your organization is still relying on traditional defenses and assuming trusted software is safe by default, <strong>you’re overdue for a strategy shift</strong>.</p><p>We believe the future of endpoint security lies in controlling what’s already on your machine, not just chasing what’s new.</p><h3>Helping the Broader Cybersecurity Community</h3><p>Check out <a href="https://magicsword.io/">magicsword.io</a> for other projects from our team, including <a href="https://loldrivers.io/">loldrivers.io</a>, used by major cybersecurity vendors to detect abused drivers, a common method attackers use to disable security agents and EDRs. It’s part of our mission to empower defenders and outpace attackers at the infrastructure level.</p><h4><strong>Is your organization’s application security leaving you exposed?</strong></h4><p>Here’s a quick assessment to see if application control could strengthen your defenses:</p><ul><li><strong>Unauthorized remote access tools:</strong> Are unknown or unapproved RMM tools like TeamViewer, AnyDesk, or SimpleHelp able to run on your systems without detection or blocking?</li><li><strong>Uncontrolled application execution: </strong>Can users or attackers run unauthorized executables, scripts, or portable applications that bypass your security controls?</li><li><strong>Living-off-the-land attacks:</strong> Are legitimate system tools and applications being misused for malicious purposes without proper monitoring or restrictions?</li><li><strong>Endpoint application visibility: </strong>Do you have complete visibility and control over what applications are running across all your endpoints, including workstations and servers?</li><li><strong>Policy enforcement gaps: </strong>Are there inconsistent application policies between different system types (endpoints vs. servers vs. virtual infrastructure) that create security blind spots?</li></ul><p><strong>Want more intel like this? Visit the </strong><a href="https://portal.magicsword.io/blog"><strong>MagicSword Blog</strong></a><strong>. Real breaches, new attack tricks, no fluff.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7cd9a74cdb3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/the-m-s-breach-a-wake-up-call-for-teams-still-chasing-malware-e7cd9a74cdb3">The M&amp;S Breach: A Wake-Up Call for Teams Still Chasing Malware</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing LOLRMM: A Unified Approach to RMM Software Tracking]]></title>
            <link>https://medium.com/magicswordio/announcing-lolrmm-a-unified-approach-to-rmm-software-tracking-992197d7f2c9?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/992197d7f2c9</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[lolrmm]]></category>
            <category><![CDATA[remote-monitoring]]></category>
            <category><![CDATA[rmm]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 17:40:09 GMT</pubDate>
            <atom:updated>2024-10-04T11:48:12.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aH6q0StrTvXLNbNh0qgAJQ.png" /><figcaption>lolrmm.io</figcaption></figure><p>Today, we are thrilled to announce the launch of the Living Off The Land Remote Monitoring and Management (LOLRMM) software project. This groundbreaking initiative aims to revolutionize how we track and manage Remote Monitoring and Management (RMM) utilities in cybersecurity.</p><blockquote>Check it out now: <a href="https://lolrmm.io/">https://lolrmm.io</a></blockquote><p>Looking for the API? We got you:<br><a href="https://lolrmm.io/api/rmm_tools.json">JSON</a>, <a href="https://lolrmm.io/api/rmm_tools.csv">CSV</a></p><h3>What is LOLRMM?</h3><p>LOLRMM is a centralized platform designed to help defenders identify and remediate RMM software within their environments proactively. By consolidating information about various RMM tools, we’re empowering organizations to enhance their security posture and mitigate potential risks associated with these powerful utilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uoiw8cPu-6HiOxk59WhuLQ.png" /><figcaption><a href="https://thedfirreport.com/2024/06/10/icedid-brings-screenconnect-and-csharp-streamer-to-alphv-ransomware-deployment/">https://thedfirreport.com/2024/06/10/icedid-brings-screenconnect-and-csharp-streamer-to-alphv-ransomware-deployment/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5FXplntBdJC8K12QfR5Ijg.png" /><figcaption><a href="https://www.lolrmm.io/tools/anydesk">https://www.lolrmm.io/tools/anydesk</a></figcaption></figure><h3>Why LOLRMM Matters</h3><p>Remote Monitoring and Management software plays a crucial role in IT operations, but it can also be exploited by threat actors for malicious purposes. LOLRMM addresses this challenge by:</p><ol><li>Providing a comprehensive database of RMM software</li><li>Offering insights and artifacts of various RMM software</li><li>Facilitating proactive identification and remediation strategies</li><li>Fostering collaboration within the cybersecurity community</li></ol><h3>Standing on the Shoulders of Giants</h3><p>LOLRMM wouldn’t be possible without the invaluable contributions made by numerous projects and individuals in the cybersecurity industry. We’d like to acknowledge the following projects that have paved the way for LOLRMM:</p><ul><li><a href="https://github.com/nterl0k">Steven Dick</a> — Splunk <a href="https://github.com/splunk/security_content/blob/develop/lookups/remote_access_software20240726.csv">Lookup</a></li><li><a href="https://www.twitter.com/phillmoore">phillmoore</a> -&gt; <a href="https://github.com/Ruler-Project/ruler-project">Ruler Project</a></li><li><a href="https://x.com/mthcht">Mthcht</a> — <a href="https://github.com/mthcht/awesome-lists/tree/main/Lists/RMM">RMM</a></li><li><a href="https://x.com/CyberSpooon">CyberSpoon</a> — <a href="https://github.com/0x706972686f/RMM-Catalogue">RMM-Catalogue</a></li><li><a href="https://x.com/br0k3ns0und">Justin Ibarra</a> — <a href="https://gist.github.com/brokensound77/6d8a1e480e65ff20e151099c98267b14">Gist</a></li><li>Red Canary -<a href="https://github.com/redcanaryco/surveyor/blob/master/definitions/remote-admin.json">Surveyor</a></li></ul><p>We want to also thank our founding contributors:</p><ul><li><a href="https://medium.com/u/13421cb5a77c">Kostas</a> — <a href="https://x.com/Kostastsale">X</a></li><li><a href="https://medium.com/u/aad5aaf11bbb">Nasreddine Bencherchali</a> — X</li><li><a href="https://x.com/cyb3rbuff"><strong>Hare Sudhan</strong></a></li></ul><h3>Community-Driven Development</h3><p>The strength of LOLRMM lies in its community. We’re not just launching a project; we’re initiating a movement. Here’s how you can contribute:</p><ul><li><strong>Share Your Knowledge</strong>: Have experience with a particular RMM tool? Contribute your insights to our database.</li><li><strong>Report Findings</strong>: Encountered an RMM tool in the wild? Help us keep our information up-to-date.</li><li><strong>Develop Detection Rules</strong>: Create and share Sigma rules for various security platforms.</li><li><strong>Improve Documentation</strong>: Help us make LOLRMM more accessible to defenders of all skill levels.</li></ul><p>We’re here to facilitate and engage the community, ensuring LOLRMM remains the most detailed and centralized resource for all things RMM.</p><h3>What’s Next?</h3><p>As we embark on this journey, we have exciting plans for the future of LOLRMM:</p><ol><li>Expanding our database of RMM software</li><li>Developing integrations with popular security tools</li><li>Creating comprehensive guides for RMM identification and remediation</li></ol><h3>Join the LOLRMM Community</h3><p>We invite you to be part of this exciting initiative. Whether you’re a seasoned security professional or just starting your journey in cybersecurity, there’s a place for you in the LOLRMM community.</p><p>Visit our GitHub repository <a href="https://github.com/magicsword-io/LOLRMM">https://github.com/magicsword-io/LOLRMM</a> to get started.</p><p>Together, we can build a more secure digital landscape by mastering the art of RMM software management.</p><p>Let’s make LOLRMM the go-to resource for all things RMM in cybersecurity!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=992197d7f2c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/announcing-lolrmm-a-unified-approach-to-rmm-software-tracking-992197d7f2c9">Announcing LOLRMM: A Unified Approach to RMM Software Tracking</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOLDrivers and HVCI]]></title>
            <link>https://medium.com/magicswordio/loldrivers-and-hvci-87ecbde0c4b4?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/87ecbde0c4b4</guid>
            <category><![CDATA[loldrivers]]></category>
            <category><![CDATA[byovd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hvci]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 13:56:57 GMT</pubDate>
            <atom:updated>2023-12-22T14:13:55.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOUAbyB8tYaWHRepvdubBA.jpeg" /></figure><p>Friends, we meet again for another behind-the-scenes look at the LOLDrivers project. Lurking in our backlog for some time was the integration of Trail of Bits’ <a href="https://github.com/trailofbits/HVCI-loldrivers-check/blob/main/check_allowed_drivers.ps1">HVCI LOLDrivers Check script</a> into the project. Our main goal was two-fold: first, to add a new tag in the YAML indicating whether a driver loads with HVCI enabled or not; and second, to generate files based on this information. This is crucial because it pinpoints a set of drivers that may still load by default in Windows. By incorporating this into the project and creating new files for these drivers, we aim to highlight a smaller, yet more potent set of drivers with potential for abuse. This addition will aid defenders in narrowing down the scope of hashes to block, names to track, and deploying new features more effectively.</p><h3>First — what is HVCI and why does this matter?</h3><p>What exactly is HVCI? To quote directly from <a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/device-guard-and-credential-guard">Microsoft</a>: “Memory integrity is a virtualization-based security (VBS) feature available in Windows 10, Windows 11, and Windows Server 2016 and later. Memory integrity and VBS improve the threat model of Windows by offering stronger protections against malware that tries to exploit the Windows kernel. VBS uses the Windows hypervisor to create an isolated virtual environment, establishing a root of trust for the OS under the assumption that the kernel can be compromised. Memory integrity is a key component that safeguards and fortifies Windows by executing kernel mode code integrity checks within the secure, isolated VBS environment. It also limits kernel memory allocations that could be leveraged to compromise the system, ensuring that kernel memory pages are executable only after passing code integrity checks in the secure runtime environment. Additionally, executable pages are never writable.”</p><p>Incorporating this feature into our project underscores a select group of drivers that can <em>potentially</em> bypass HVCI checks. Does this mean a driver in the project is actively being abused in the wild? Not necessarily. Does it mean these are the ones adversaries will use next? Maybe? However, it does identify a group of drivers that should be on your radar. Naturally, if you have HVCI and other Windows controls in place, keeping an eye on these drivers is advisable.</p><h3>Trail of Bits HVCI LOLDrivers Check</h3><p>For this endeavor, we ran the <a href="https://github.com/trailofbits/HVCI-loldrivers-check/blob/main/check_allowed_drivers.ps1">script</a> in it’s current state and received the following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*915GTyvztXEdiLq4WnpsrQ.png" /></figure><p>Now to automate this a bit more, we modified the script to output to CSV and tag each line as allowed or blocked — based on the HVCI response. Now the output looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*Cpw4MIK4J9_OjhIQq2Z3sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*1Juphewve-S7QrWgHo93ew.png" /></figure><p>CSV version is here <a href="https://gist.github.com/MHaggis/8d6de45b883b338e47de08b3cb4c9819">https://gist.github.com/MHaggis/8d6de45b883b338e47de08b3cb4c9819</a></p><p>Now we have a CSV of drivers that possibly load with HVCI enabled.</p><p>CSV: <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/bin/hvci_drivers.csv">https://github.com/magicsword-io/LOLDrivers/blob/main/bin/hvci_drivers.csv</a></p><h3>New Tags, Who Dis?</h3><p>Now, we know we’ll need to modify every yaml file in the project with a new tag — LoadsDespiteHVCI — TRUE or FALSE.</p><p>We crafted a simple Python script that reads the CSV and recursively goes through the yaml directory matches hashes and adding tags.</p><p>Or as <a href="https://medium.com/u/aad5aaf11bbb">Nasreddine Bencherchali</a> put it:</p><ul><li>Loop through the files in the yaml folder</li><li>Open it and read as dict with yaml lib</li><li>Loop through the knownvulnsamples using the enumerate to get the index as well</li><li>Check with the content of CSV</li><li>Update the dict accordingly</li><li>Re-write the new dict as yaml</li></ul><pre>import csv<br>import os<br>import re<br>import yaml<br><br>yaml_directory = &#39;../yaml&#39;<br>csv_file_path = &#39;hvci_drivers.csv&#39;<br>paths = [&quot;../yaml&quot;]<br><br>class NoAliasDumper(yaml.Dumper):<br>    def ignore_aliases(self, data):<br>        return True<br><br>def get_hashes_from_csv(csv_file_path):<br><br>    allowed_drivers = []<br>    disallowed_drivers = []<br><br>    with open(csv_file_path, mode=&#39;r&#39;, newline=&#39;&#39;, encoding=&#39;utf-8&#39;) as file:<br>        csv_reader = csv.DictReader(file)<br>        for row in csv_reader:<br>            if row[&#39;Status&#39;] == &quot;Allowed&quot;:<br>                row.pop(&#39;Status&#39;, None)<br>                allowed_drivers += [x for x in list(row.values()) if x]<br>            else:<br>                row.pop(&#39;Status&#39;, None)<br>                disallowed_drivers += [x for x in list(row.values()) if x]<br>            <br>    return allowed_drivers, disallowed_drivers<br><br>allowed_drivers, disallowed_drivers = get_hashes_from_csv(csv_file_path)<br><br>def yield_yaml_file(path_to_yaml_folder: list) -&gt; str:<br>        for path_ in path_to_yaml_folder:<br>            for root, _, files in os.walk(path_):<br>                for file in files:<br>                    if file.endswith(&quot;.yaml&quot;):<br>                        yield os.path.join(root, file)<br><br>for file in yield_yaml_file(paths):<br>    with open(file, encoding=&quot;utf-8&quot;) as f:<br>        data = yaml.safe_load(f)<br>    vuln_samples = data[&#39;KnownVulnerableSamples&#39;]<br>    for index, sample in enumerate(vuln_samples):<br>        # We get the hashes of the sample<br>        md5 = sample.get(&#39;MD5&#39;) or &#39;&#39;<br>        sha1 = sample.get(&#39;SHA1&#39;) or &#39;&#39;<br>        sha256 = sample.get(&#39;SHA256&#39;) or &#39;&#39;<br><br>        if md5:<br>            if md5 in allowed_drivers:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;TRUE&#39;<br>            else:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;FALSE&#39;<br>        elif sha1:<br>            if sha1 in allowed_drivers:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;TRUE&#39;<br>            else:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;FALSE&#39;<br>        elif sha256:<br>            if sha256 in allowed_drivers:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;TRUE&#39;<br>            else:<br>                data[&#39;KnownVulnerableSamples&#39;][index][&#39;LoadsDespiteHVCI&#39;] = &#39;FALSE&#39;<br>    with open(file, &#39;w&#39;) as outfile:<br>            yaml.dump(data, outfile, default_flow_style=False, sort_keys=False, Dumper=NoAliasDumper)<br><br>print(&quot;For better or for worse. THe script has finished executing :feels-good:&quot;)</pre><p>Now — run it:</p><pre>python hvcitag.py <br><br>For better or for worse. THe script has finished executing :feels-good:</pre><p>Too easy!</p><p>Now all the files have a tag for each individual known vulnerable sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*oPjb4zM0tHTwA5b3A2EV2g.png" /></figure><p>In this instance, albeit in the same yaml file, one will load and another will not. This provides granular visibility that we didn’t have before.</p><h3>Generate Files</h3><p>Another great script in our back pocket produced by <a href="https://medium.com/u/fd370d6594d9">Jose E Hernandez</a> and <a href="https://medium.com/u/aad5aaf11bbb">Nasreddine Bencherchali</a>, is our <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/bin/gen-files.py">gen-files.py</a>. This script manages all our detection files — Sysmon, Sigma, hash lists, ClamAV, and so forth. LOTS of files.</p><p>We now want to generate similar files but for the drivers that load despite HVCI being enabled — based on our new tag.</p><pre>def gen_loadsdespitehvci_lists(category_):<br>    &quot;&quot;&quot;<br>        Generates lists of hashes for LoadsDespiteHVCI being TRUE<br>    &quot;&quot;&quot;<br>    md5_list = []<br>    sha1_list = []<br>    sha256_list = []<br>    imphash_list = []<br>    for file in yield_next_rule_file_path(path_to_yml):<br>        category = get_yaml_part(file_path=file, part_name=&quot;Category&quot;)<br>        if category_.lower() == category.lower():<br>            known_vuln_samples = get_yaml_part(file_path=file, part_name=&quot;KnownVulnerableSamples&quot;)<br>            if known_vuln_samples:<br>                for i in known_vuln_samples:<br>                    loads_despite_hvci = i.get(&#39;LoadsDespiteHVCI&#39;, &#39;FALSE&#39;)<br>                    if loads_despite_hvci == &#39;TRUE&#39;:<br>                        if &#39;MD5&#39; in i and i[&#39;MD5&#39;] != &quot;-&quot;:<br>                            md5_list.append(i[&#39;MD5&#39;])<br>                        if &#39;SHA1&#39; in i and i[&#39;SHA1&#39;] != &quot;-&quot;:<br>                            sha1_list.append(i[&#39;SHA1&#39;])<br>                        if &#39;SHA256&#39; in i and i[&#39;SHA256&#39;] != &quot;-&quot;:<br>                            sha256_list.append(i[&#39;SHA256&#39;])<br>                        if &#39;Imphash&#39; in i and i[&#39;Imphash&#39;] != &quot;-&quot;:<br>                            imphash_list.append(i[&#39;Imphash&#39;])<br><br>    md5_list = list(filter(None,list(set([i.lstrip().strip().lower() for i in md5_list]))))<br>    sha1_list = list(filter(None,list(set([i.lstrip().strip().lower() for i in sha1_list]))))<br>    sha256_list = list(filter(None,list(set([i.lstrip().strip().lower() for i in sha256_list]))))<br>    imphash_list = list(filter(None,list(set([i.lstrip().strip().lower() for i in imphash_list]))))<br><br>    return md5_list, sha1_list, sha256_list, imphash_list<br><br><br>def gen_loadsdespitehvci_authentihash_lists(category_):<br>    &quot;&quot;&quot;<br>        Generates lists of authentihash of samples that load despite hvci<br>    &quot;&quot;&quot;<br>    authentihash_md5_list = []<br>    authentihash_sha1_list = []<br>    authentihash_sha256_list = []<br>    for file in yield_next_rule_file_path(path_to_yml):<br>        known_vuln_samples = get_yaml_part(file_path=file, part_name=&quot;KnownVulnerableSamples&quot;)<br>        category = get_yaml_part(file_path=file, part_name=&quot;Category&quot;)<br>        if category_.lower() == category.lower():<br>            if known_vuln_samples:<br>                for i in known_vuln_samples:<br>                    loads_despite_hvci = i.get(&#39;LoadsDespiteHVCI&#39;, &#39;FALSE&#39;)<br>                    if loads_despite_hvci == &#39;TRUE&#39;:<br>                        if &#39;Authentihash&#39; in i:<br>                            for key, value in i[&#39;Authentihash&#39;].items():<br>                                if key == &quot;MD5&quot; and value != &quot;-&quot;:<br>                                    authentihash_md5_list.append(value)<br>                                if key == &quot;SHA1&quot; and value != &quot;-&quot;:<br>                                    if i[&#39;SHA1&#39;] != &quot;-&quot;:<br>                                        authentihash_sha1_list.append(value)<br>                                if key == &quot;SHA256&quot; and value != &quot;-&quot;:<br>                                    if i[&#39;SHA256&#39;] != &quot;-&quot;:<br>                                        authentihash_sha256_list.append(value)<br>    <br>    # Remove leading and trailing spaces as well as any duplicates<br>    authentihash_md5_list = list(set([i.lstrip().strip().lower() for i in authentihash_md5_list]))<br>    authentihash_sha1_list = list(set([i.lstrip().strip().lower() for i in authentihash_sha1_list]))<br>    authentihash_sha256_list = list(set([i.lstrip().strip().lower() for i in authentihash_sha256_list]))<br><br>    return authentihash_md5_list, authentihash_sha1_list, authentihash_sha256_list</pre><p>Alright — so now we can generate new files based on TRUE for loading with HVCI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*PCcoZxafN0LVeA4rysdW0w.png" /></figure><p>and sigma, and Sysmon, and hash lists… :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*Tp3j64Fbj0V9uv4BPyHW_Q.png" /></figure><p>A sampling of updated pages:</p><ul><li><a href="https://www.loldrivers.io/drivers/b759adfa-b353-4ca3-9dfb-8fadf7a437eb/">https://www.loldrivers.io/drivers/b759adfa-b353-4ca3-9dfb-8fadf7a437eb/</a></li><li><a href="https://www.loldrivers.io/drivers/93740202-930c-4ab4-8603-8ec9532c5415/">https://www.loldrivers.io/drivers/93740202-930c-4ab4-8603-8ec9532c5415/</a></li><li><a href="https://www.loldrivers.io/drivers/b32d8d7d-0dc2-4d09-a306-8efc4caf1839/">https://www.loldrivers.io/drivers/b32d8d7d-0dc2-4d09-a306-8efc4caf1839/</a></li><li><a href="https://www.loldrivers.io/drivers/1ff757df-9a40-4f78-a28a-64830440abf7/">https://www.loldrivers.io/drivers/1ff757df-9a40-4f78-a28a-64830440abf7/</a></li></ul><h3>In Summary</h3><p>Thanks to the team at Trail of Bits for crafting this utility! We are excited to share more narrow detection content and help teams scope where to start. As mentioned by Trail of Bits in their initial release — take it for what you want. Is this 100%? Maybe. Is this narrowing LOLDrivers down to ones that may load right now in your environment? Possibly.</p><p>Feedback? Questions? Assistance? Open a Git Issue or hit us up on DM.</p><p>Happy Hunting!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*9FNPU3RgzooBGAosVClaxA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87ecbde0c4b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/loldrivers-and-hvci-87ecbde0c4b4">LOLDrivers and HVCI</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining LOLDrivers Contributions Via Streamlit]]></title>
            <link>https://medium.com/magicswordio/streamlining-loldrivers-contributions-via-streamlit-ee801177ff00?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/ee801177ff00</guid>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[loldrivers]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[byod]]></category>
            <dc:creator><![CDATA[Nasreddine Bencherchali]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 21:20:06 GMT</pubDate>
            <atom:updated>2023-11-10T21:20:06.097Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Floldrivers.streamlit.app%2F%3Fembed%3Dtrue&amp;display_name=Streamlit&amp;url=https%3A%2F%2Floldrivers.streamlit.app&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fs4a-prod-share-preview%2Fdefault%2Fst_app_screenshot_image%2F40c9435d-035d-4f5f-9b80-5012cdc9d37a%2FHome_Page.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=streamlit" width="560" height="630" frameborder="0" scrolling="no"><a href="https://medium.com/media/23f649e1e4afb088e517c148fc0d5cd2/href">https://medium.com/media/23f649e1e4afb088e517c148fc0d5cd2/href</a></iframe><p>Since its inception last year the LOLDrivers project has seen mass adoption through out the community, from users to vendors and all in between.</p><p>With the simple but powerful mission to shine a light on the obscure topic that is living of the land drivers abuse. Our aim was always to make the information accessible and actionable.</p><p>A couple of months my esteemed colleague and maintainer here at LOLDriver <a href="https://twitter.com/m_haggis/">Michael Haag</a> secretly announced the LOLDriver streamlit app in <a href="https://www.youtube.com/live/N9c0EsyvKps?si=ZRC8j2Bfq6sN0peP&amp;t=1091">Splunk’s Coffee Talk with SURGe</a>.</p><p>This app aims to help contributors and maintainers alike to ease the process of adding new drivers and YAML descriptors.</p><p>Today we’re happy to announce a couple new features that make this process even easier and welcome hopefully more contributors.</p><p>Let’s get started.</p><h3>Uploading Your Driver</h3><p>The first new update is probably the coolest quality of life that was added. It streamlines the contribution process completely by allowing users to upload a driver and enriching the YAML with all its juicy metadata on the fly with the click of a button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*Dt0R5-Fwk3k_Hc7TXYayMw.png" /><figcaption>New LOLDriver App Upload Feature</figcaption></figure><p>In the background this uses the same enrichment script that’s used internally by the LOLDrivers repository. It collects all the info that’s required and by the end you’re left with a YAML that’s ready to be submitted in a PR :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*mDJIk7g0UrQkbmK6pxqaKg.png" /><figcaption>Enriched YAML Output</figcaption></figure><h3>Download Drivers Via VT</h3><p>The second feature is even more streamlined and it doesn’t even require you to have the driver downloaded.</p><p>Say you reading a report and that report happens to be talking about some driver abuse, such as the “AuKill” EDR killer malware reported by <a href="https://news.sophos.com/en-us/2023/04/19/aukill-edr-killer-malware-abuses-process-explorer-driver/">sophos</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mh0RqTZNCteb7UvuR-Lwew.png" /><figcaption><a href="https://news.sophos.com/en-us/2023/04/19/aukill-edr-killer-malware-abuses-process-explorer-driver/">https://news.sophos.com/en-us/2023/04/19/aukill-edr-killer-malware-abuses-process-explorer-driver/</a></figcaption></figure><p>This malware leverage a vulnerable process explorer driver and if we scroll down to the IOC list we can get a its hash.</p><pre>cdfbe62ef515546f1728189260d0bdf77167063b6dbb77f1db6ed8b61145a2bc</pre><p>With a simple VT search we can find the file there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*segQify7w1bd3WGCpTkP4Q.png" /><figcaption><a href="https://www.virustotal.com/gui/file/cdfbe62ef515546f1728189260d0bdf77167063b6dbb77f1db6ed8b61145a2bc">https://www.virustotal.com/gui/file/cdfbe62ef515546f1728189260d0bdf77167063b6dbb77f1db6ed8b61145a2bc</a></figcaption></figure><p>If you wanna contribute the file to LOLDrivers. The traditional approach would be</p><ul><li>Download the file</li><li>Create YAML</li><li>Execute enrichment script on it</li><li>Submit PR</li></ul><p>That’s a little bit too long for some, including us at LOLDrivers HQ. Using the new streamlit app feature, you’ll only need to provide your API key and a list of hashes and the magic is applied for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*KpQGqo-Wc8xh2ZbWeAwwZQ.png" /><figcaption>That’s Not a Valid API Key.</figcaption></figure><h3>Conclusion</h3><p>Hope this new features raised your excitement as it did for us and we hope to see even more contributions for the community.</p><p>Happy hunting ⚔️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee801177ff00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/streamlining-loldrivers-contributions-via-streamlit-ee801177ff00">Streamlining LOLDrivers Contributions Via Streamlit</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Behind-the-Scenes Look at Creating LOLDrivers]]></title>
            <link>https://medium.com/magicswordio/a-behind-the-scenes-look-at-creating-loldrivers-4acf566e6373?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/4acf566e6373</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[loldrivers]]></category>
            <category><![CDATA[vulnerable-driver]]></category>
            <category><![CDATA[kernel-driver]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 17:33:44 GMT</pubDate>
            <atom:updated>2023-11-04T02:19:56.981Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IrMIGttGdCEPyS-Y8MthOw.png" /></figure><p>On October 31, 2023, our esteemed colleague, <a href="https://blogs.vmware.com/security/author/takahiro-haruyama">Takahiro Haruyam</a>a of the Carbon Black Threat Analysis Unit (TAU), unveiled groundbreaking <a href="https://blogs.vmware.com/security/2023/10/hunting-vulnerable-kernel-drivers.html">research</a> that shed light on a critical vulnerability landscape. Haruyama’s team identified 34 distinct drivers, comprising 237 unique file hashes, that were susceptible to unauthorized firmware access. What’s more alarming is that six of these drivers granted kernel memory access, offering unmitigated control over devices to users without administrative privileges. This vulnerability presents a stark reality: attackers with basic access could potentially modify or delete firmware, paving the way for privilege escalation and a multitude of security breaches.</p><blockquote>First, we highly recommend checking out the blog for all the details <a href="https://blogs.vmware.com/security/2023/10/hunting-vulnerable-kernel-drivers.html">https://blogs.vmware.com/security/2023/10/hunting-vulnerable-kernel-drivers.html</a></blockquote><p>This blog aims to peel back the curtain and reveal the process the maintainer team employs to import and enrich a vast collection of drivers for LOLDrivers. It’s an inside look into the nuts and bolts of operational cybersecurity — how what seems like a daunting task can be streamlined through the power of automation and strategic tooling.</p><h3>Gather The Hash</h3><p>Streamlining Driver Contributions with Automation</p><p>For modest contributions involving fewer than five new drivers, our <a href="https://loldrivers.streamlit.app/">LOLDrivers Streamlit App</a> should suffice. However, when faced with the task of adding over 200+ hashes, automation becomes a necessity.</p><p>Previously, we’ve relied on converting CSVs into YAML to handle large batches — a method that served us well during the initial stages of LOLDrivers. This time, we are scaling up the process. Our starting point is extracting hashes from the <a href="https://blogs.vmware.com/security/2023/10/hunting-vulnerable-kernel-drivers.html">blog</a>, where each link points to a VirusTotal (VT) page or a VT Collection. From there, we can download the samples and collect the MD5 hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ep_zNBsvVHuZ9EyB-khJ2Q.png" /></figure><p>We structure our data into a CSV with two columns: md5 and tag. The tag corresponds either to the driver&#39;s name (like stdcdrv64.sys) or to the Tags value in the YAML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*dAomQUkvJ0mYRtnvhC5DcQ.png" /></figure><p>Before generating the YAML, we set some prerequisites. To establish a baseline, we manually created the initial YAML files using the LOLDrivers platform, which then served as templates for automation.</p><p>Our automation effort led to the development of a basic Python script that performs the following functions:</p><ol><li>Loads the CSV and generates a new YAML file for each unique tag.</li><li>Aggregates multiple hashes under a single YAML if they share the same tag.</li><li>Populates the md5 field under knownvulnerablesamples in each YAML file.</li></ol><p>Here is the script that automated the YAML generation process:</p><pre>import csv<br>import yaml<br>import uuid<br>from collections import defaultdict<br>from pathlib import Path<br><br>csv_file_path = &#39;list.csv&#39;<br>tag_to_md5s = defaultdict(list)<br><br>with open(csv_file_path, mode=&#39;r&#39;, newline=&#39;&#39;, encoding=&#39;utf-8&#39;) as csvfile:<br>    reader = csv.DictReader(csvfile)<br>    for row in reader:<br>        tag_to_md5s[row[&#39;tag&#39;]].append(row[&#39;md5&#39;])<br><br>for tag, md5s in tag_to_md5s.items():<br>    id_guid = str(uuid.uuid4())<br><br>    service_name = &#39;&#39;.join(char for char in tag if char.isalnum() or char in (&#39; &#39;, &#39;-&#39;, &#39;_&#39;)).rstrip()<br>    service_filename = f&quot;{service_name}.sys&quot;<br><br>    yaml_template = {<br>        &#39;Id&#39;: id_guid,<br>        &#39;Author&#39;: &#39;Takahiro Haruyama&#39;,<br>        &#39;Created&#39;: &#39;2023-11-02&#39;,<br>        &#39;MitreID&#39;: &#39;T1068&#39;,<br>        &#39;Category&#39;: &#39;vulnerable driver&#39;,<br>        &#39;Verified&#39;: &#39;TRUE&#39;,<br>        &#39;Commands&#39;: {<br>            &#39;Command&#39;: f&#39;sc.exe create {service_name} binPath= C:\\windows\\temp\\{service_filename} type=kernel &amp;&amp; sc.exe start {service_name}&#39;,<br>            &#39;Description&#39;: &#39;The Carbon Black Threat Analysis Unit (TAU) discovered 34 unique vulnerable drivers (237 file hashes) accepting firmware access. Six allow kernel memory access. All give full control of the devices to non-admin users. By exploiting the vulnerable drivers, an attacker without the system privilege may erase/alter firmware, and/or elevate privileges. As of the time of writing in October 2023, the filenames of the vulnerable drivers have not been made public until now.&#39;,<br>            &#39;Usecase&#39;: &#39;Elevate privileges&#39;,<br>            &#39;Privileges&#39;: &#39;kernel&#39;,<br>            &#39;OperatingSystem&#39;: &#39;Windows 10&#39;,<br>        },<br>        &#39;Resources&#39;: [<br>            &#39;https://blogs.vmware.com/security/2023/10/hunting-vulnerable-kernel-drivers.html&#39;<br>        ],<br>        &#39;Acknowledgement&#39;: {<br>            &#39;Person&#39;: &#39;&#39;,<br>            &#39;Handle&#39;: &#39;&#39;,<br>        },<br>        &#39;Detection&#39;: [],<br>        &#39;KnownVulnerableSamples&#39;: [<br>            {<br>                &#39;Filename&#39;: &#39;&#39;,<br>                &#39;MD5&#39;: md5,<br>                &#39;SHA1&#39;: &#39;&#39;,<br>                &#39;SHA256&#39;: &#39;&#39;,<br>                &#39;Signature&#39;: &#39;&#39;,<br>                &#39;Date&#39;: &#39;&#39;,<br>                &#39;Publisher&#39;: &#39;&#39;,<br>                &#39;Company&#39;: &#39;&#39;,<br>                &#39;Description&#39;: &#39;&#39;,<br>                &#39;Product&#39;: &#39;&#39;,<br>                &#39;ProductVersion&#39;: &#39;&#39;,<br>                &#39;FileVersion&#39;: &#39;&#39;,<br>                &#39;MachineType&#39;: &#39;&#39;,<br>                &#39;OriginalFilename&#39;: &#39;&#39;<br>            }<br>            for md5 in md5s<br>        ],<br>        &#39;Tags&#39;: [tag]<br>    }<br><br>    output_filename = f&quot;{id_guid}.yaml&quot;<br>    with open(output_filename, &#39;w&#39;, encoding=&#39;utf-8&#39;) as yamlfile:<br>        yaml.dump(yaml_template, yamlfile, default_flow_style=False)<br><br>print(&quot;YAML files have been generated based on tags.&quot;)</pre><p>After running the script, it successfully generated all the YAML files, including those with multiple MD5 hashes as required into a single YAML file.</p><h3>Sidebar: Standardizing File Names</h3><p>During the process, we had to rename all samples in the project drivers directory to a standardized naming convention — md5.bin. This was accomplished using another Python script that recalculated MD5 hashes for each file and renamed them accordingly.</p><pre>import os<br>import hashlib<br>from pathlib import Path<br><br>directory_path = &#39;../drivers&#39;<br><br>def calculate_md5(filename, block_size=4096):<br>    &quot;&quot;&quot; Calculate the MD5 hash of a file. &quot;&quot;&quot;<br>    md5 = hashlib.md5()<br>    with open(filename, &#39;rb&#39;) as f:<br>        for block in iter(lambda: f.read(block_size), b&#39;&#39;):<br>            md5.update(block)<br>    return md5.hexdigest()<br><br>for filename in os.listdir(directory_path):<br>    file_path = os.path.join(directory_path, filename)<br>    if os.path.isdir(file_path):<br>        continue<br>    file_md5 = calculate_md5(file_path)<br>    new_file_name = file_md5 + &#39;.bin&#39;<br>    new_file_path = os.path.join(directory_path, new_file_name)<br>    # Rename the file<br>    os.rename(file_path, new_file_path)<br>    print(f&quot;Renamed {filename} to {new_file_name}&quot;)<br><br>print(&quot;All files have been renamed to their MD5 hash with a .bin extension.&quot;)</pre><p>The process was straightforward: the script renamed each file from its original name to an MD5 hash with a .bin extension.</p><h3>From Hash to Metadata Enrichment</h3><p>With the YAML files ready, we leveraged an exceptional script, originally contributed by <a href="https://medium.com/u/aad5aaf11bbb">Nasreddine Bencherchali</a>, named metadata-extractor.py. This script performs the remarkable task of enriching the metadata visible within the YAML files or the user interface. The script works by getting the MD5 from the yaml and finding the .bin matching. It then loads it up using <a href="https://lief-project.github.io/">lief</a> and we then extract <em>everything.. well mostly </em>(i’m sure we’re missing some things).</p><p>Execution is as simple as running the following command:</p><pre>python3 bin/metadata-extractor.py -y yaml -d drivers</pre><p>stdout:</p><pre>    [*] NOTICE - The File yaml/dbb58de1-a1e5-4c7f-8fe0-4033502b1c63.yaml Was Enriched<br>    [*] NOTICE - The File yaml/3aa6e630-59be-4a15-a30c-aaed4c1edaf0.yaml Was Enriched<br>    [*] NOTICE - The File yaml/ebdde780-e142-44e7-a998-504c516f4695.yaml Was Enriched<br>    [*] NOTICE - The File yaml/b759adfa-b353-4ca3-9dfb-8fadf7a437eb.yaml Was Enriched<br>    [*] NOTICE - The File yaml/0c0198a3-5c63-4a9b-abe9-88a810602329.yaml Was Enriched<br>    [*] NOTICE - The File yaml/1aeb1205-8b02-42b6-a563-b953ea337c19.yaml Was Enriched<br>    [*] NOTICE - The File yaml/babe348d-f160-41ec-9db9-2413b989c1f0.yaml Was Enriched<br>    [*] NOTICE - The File yaml/5f70bde4-9f81-44a8-9d3e-c6c7cf65bfae.yaml Was Enriched<br>    [*] NOTICE - The File yaml/a08ee79f-801d-4b98-996f-55f6a72ac5f7.yaml Was Enriched<br>    [*] NOTICE - No enrichment was performed on yaml/d05a0a6c-c037-4647-99ac-c41593190223.yaml<br>    [*] NOTICE - The File yaml/e368efc7-cf69-47ae-8204-f69dac000b22.yaml Was Enriched<br>    [*] NOTICE - No enrichment was performed on yaml/7196366e-04f0-4aaf-9184-ed0a0d21a75f.yaml<br>    [*] NOTICE - The File yaml/6356d7d9-3b82-4731-9d5f-cc9bc37558fc.yaml Was Enriched<br>......</pre><p>Now the MD5 in the yaml is completely enriched —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i64goBbAMjLeLODMJjEwOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuzbgZy17wfhIiPG06sdPw.png" /></figure><p>Now with enriched metadata, our next step is to incorporate YARA rules and update all detections accordingly.</p><h3>YARA Generator and Enrichment</h3><p>Having extracted the metadata and enriched the YAML files, our subsequent action is to augment this data with YARA rules. The yara-generator.py script creates YARA rules based on the drivers and YAML files and outputs them to the detection directory. Our good friend <a href="https://medium.com/u/2fdc032a69b3">Florian Roth</a> contributed this and it works awesome!</p><p>Make your way to bin/<a href="https://github.com/magicsword-io/LOLDrivers/tree/main/bin/yara-generator">yara-generator</a> and run a simple command to generate the Yara rules:</p><pre>python3 yara-generator.py -d ../../drivers -y ../../yaml -o ../../detections/yara</pre><p>This will read the drivers+yaml and output to the yara detection directory. When this runs, it looks like this:</p><pre>[INFO ] [+] Processing 1 driver folders<br>[&#39;../../drivers&#39;]<br>[INFO ] [+] Processing 1 YAML folders<br>[INFO ] [+] Processing 1821 sample files<br>....</pre><p>and then it goes brrrrrrrrrr ripping through the binaries and outputs to the detections/yara directory.</p><p>Following YARA generation, we employ enrich_with_yara to embed the YARA rule URLs within the YAML files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rq3DTCWQdT5dbIJGZC8W2Q.png" /></figure><h3>Generate Site</h3><p>To ensure everything is in order, we execute a site generation script that builds the site data, typically run as a validation step before merging a PR. The script compiles CSV and JSON files for the API, markdown files for the website, and all related content, successfully populating the <a href="https://loldrivers.io/">LOLDrivers.io</a> site.</p><pre>python3 bin/site.py<br><br>site_gen.py wrote 430 drivers markdown to: loldrivers.io/content/drivers/<br>site_gen.py wrote drivers CSV to: loldrivers.io/content/api/drivers.csv<br>site_gen.py wrote drivers JSON to: loldrivers.io/content/api/drivers.json<br>site_gen.py wrote drivers table to: loldrivers.io/content/drivers_table.csv<br>site_gen.py wrote drivers publishers to: loldrivers.io/content/drivers_top_n_publishers.csv<br>site_gen.py wrote drivers products to: loldrivers.io/content/drivers_top_n_products.csv<br>finished successfully!</pre><p>This generates the csv and json for the API, all the markdown files for the site and everything related to the LOLDrivers.io site.</p><h3>Final Result</h3><p>In the end, we have a PR ready to be merged:</p><p><a href="https://github.com/magicsword-io/LOLDrivers/pull/149">Vmware + Meta Updates by MHaggis · Pull Request #149 · magicsword-io/LOLDrivers</a></p><p>Now merged, we have the new pages:</p><pre>https://www.loldrivers.io/drivers/0f749d4e-145e-4b8e-bea6-47003d228043<br>https://www.loldrivers.io/drivers/2a7a59c1-35b8-42b6-a560-2fbf4247a584<br>https://www.loldrivers.io/drivers/2b918b1a-badb-4a85-9214-961607b21219<br>https://www.loldrivers.io/drivers/36227ce7-2bf6-4963-bfae-c399000a1079<br>https://www.loldrivers.io/drivers/3aa6e630-59be-4a15-a30c-aaed4c1edaf0<br>https://www.loldrivers.io/drivers/3d7da79b-fe34-45cd-a0c9-d4432d40611c<br>https://www.loldrivers.io/drivers/4f0a65a7-9a01-40cb-8d95-0844515103e6<br>https://www.loldrivers.io/drivers/4f47c65e-2e73-4855-813a-5a823ae845a8<br>https://www.loldrivers.io/drivers/5901421f-7929-487d-87bd-632f29290352<br>https://www.loldrivers.io/drivers/62f76f62-ef82-49ea-a26f-36e5727e8d83<br>https://www.loldrivers.io/drivers/7bb4d807-9a66-48ff-9fb7-82780f3b015e<br>https://www.loldrivers.io/drivers/837ad058-65f4-4b75-8f21-b842e48db8a5<br>https://www.loldrivers.io/drivers/8ecc8439-0554-40d0-9130-c02941deadbe<br>https://www.loldrivers.io/drivers/933f5671-e995-4976-8392-52d34dcd4e05<br>https://www.loldrivers.io/drivers/942f58d2-1300-4957-98a0-5f8d601bf55b<br>https://www.loldrivers.io/drivers/9543c507-9b10-4de8-89b9-42a4f24c99ec<br>https://www.loldrivers.io/drivers/97ed6c7b-be4c-4f60-9157-c788a555ca9f<br>https://www.loldrivers.io/drivers/9bf033e4-7295-4b63-8772-638b76851741<br>https://www.loldrivers.io/drivers/a08ee79f-801d-4b98-996f-55f6a72ac5f7<br>https://www.loldrivers.io/drivers/a3c52cbe-90ca-432c-9520-761b60e7d9cb<br>https://www.loldrivers.io/drivers/a4795ab6-d908-44cf-9ebf-a47db367d385<br>https://www.loldrivers.io/drivers/b0dedc3f-6e4b-497a-aade-390cbf4beebb<br>https://www.loldrivers.io/drivers/b8339454-0e84-4a5b-92d0-6a626ced6677<br>https://www.loldrivers.io/drivers/c08c03ff-a7b7-4282-a9fc-265ae88dc244<br>https://www.loldrivers.io/drivers/c4eab0c0-caf2-42b9-84f1-b4690d3db0d4<br>https://www.loldrivers.io/drivers/cf805b21-4611-4983-a8b6-271373a45057<br>https://www.loldrivers.io/drivers/dc3fdbd3-601a-4d2a-bf34-d2e84c6ff1d3<br>https://www.loldrivers.io/drivers/e769d1f6-8a38-426f-b5e7-447241204ee1<br>https://www.loldrivers.io/drivers/f16f82de-1ad0-47d8-a869-2c10ed25d9f1<br>https://www.loldrivers.io/drivers/f33c2e80-7b01-416b-821a-ed06db4b6511<br>https://www.loldrivers.io/drivers/f92f4c60-b39c-4726-ba74-dcab7f653ae2<br>https://www.loldrivers.io/drivers/fa612342-5ae0-4e69-ad9c-14d574d9fb1e<br>https://www.loldrivers.io/drivers/fb783760-cb3f-4cf4-b4ac-8edb756b9821<br>https://www.loldrivers.io/drivers/fda3ff67-12dc-488c-a4c2-603f5bf420bd<br>https://www.loldrivers.io/drivers/fded7e63-0470-40fe-97ed-aa83fd027bad```</pre><h3><strong>Thank You</strong></h3><p>We trust this blog has shed light on the diverse automation techniques the LOLDrivers.io maintainers employ to handle a voluminous set of data efficiently. Bringing our narrative to a culmination, it’s pivotal to recognize the evolution of our processes. The journey we’ve undertaken has seen the transformation of meticulous manual tasks into a seamless operation, a confluence of scripts working in unison to compile hashes, generate YAMLs, rename binaries, and enrich metadata.</p><blockquote>We want to also thank all of the Carbon Black Threat Analysis Unit (TAU) team and <a href="https://blogs.vmware.com/security/author/takahiro-haruyama">Takahiro Haruyam</a>.</blockquote><p>This transition has not only accelerated our workflow but has also underscored our dedication to enhancing LOLDrivers.io. As we look towards the horizon, our resolve to refine and advance our capabilities is unyielding. We warmly extend an invitation to the community to partake in this endeavor — to contribute, to collaborate, and to collectively elevate the safety and integrity of drivers everywhere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4acf566e6373" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/a-behind-the-scenes-look-at-creating-loldrivers-4acf566e6373">A Behind-the-Scenes Look at Creating LOLDrivers</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing sigconverter.io: The Community-Driven Sigma Translation Tool]]></title>
            <link>https://medium.com/magicswordio/introducing-sigconverter-io-the-community-driven-sigma-translation-tool-f7b6822e55b4?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/f7b6822e55b4</guid>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 15:11:47 GMT</pubDate>
            <atom:updated>2023-08-31T15:40:50.842Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>In the ever-evolving landscape of cybersecurity, the need for effective and accessible tools has never been greater. That’s why we’ve developed<a href="https://sigconverter.io/"> sigconverter.io</a>, a community-driven, free online Sigma translation tool designed to address the gaps in accessibility and privacy found in similar third-party services. The source code is hosted on <a href="https://github.com/magicsword-io/sigconverter.io">GitHub</a>, our tool not only aims to simplify the process of writing, validating, and sharing Sigma rules but also keeps your activities private. Offering an easy-to-use interface for Sigma rule conversion, support for multiple backends through pySigma, and continuous updates to stay in sync with <a href="https://github.com/SigmaHQ/pySigma">pySigma</a>, this tool is a game-changer. In this blog post, we’ll delve into why this tool is essential, how it was built, its capabilities, and what lies ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rVWs6RS7AoY26YRY" /></figure><h3>Why Do We Need a Community-Run and Open Source Conversion UI? 🤔</h3><h3>🤝 Community-Driven, Always Free and Open Source</h3><p>The power of community-driven initiatives lies in the collective expertise and passion for making things better. By keeping <a href="https://sigconverter.io/">sigconverter.io</a> open source and free, we ensure that it remains a tool for the community, by the community. This approach guarantees that the tool will always be up-to-date, incorporating the latest features and improvements.</p><h3>🔒Privacy and Protecting Individual Data</h3><p>In a world where data is the new oil, protecting individual privacy is paramount. <a href="https://sigconverter.io/">sigconverter.io</a> is designed with privacy as a core value. We don’t monetize user data or subject it to ongoing monitoring. Your activities on the platform remain your own, safeguarded from commercial exploitation.</p><h3>🛠️ New Features and Maintenance by Researchers</h3><p>The tool is not just a one-off project but a continually evolving platform. Maintained by researchers like us, it will keep incorporating new features and improvements, ensuring it remains a relevant and effective tool for the cybersecurity community.</p><h3>How We Built This Converter 🏗️</h3><p>Inspired by <a href="https://uncoder.io/">uncoder.io</a>, <a href="https://sigconverter.io/">sigconverter.io</a> is built on top of pySigma and leverages Python Flask as its web server under the hood. This project was completely based on <a href="https://github.com/M3NIX/sigmaio">sigmaio</a> by <a href="https://twitter.com/m3nixx">Julian Ortel</a>. Special thanks to the author Julian for laying the groundwork. The tool is hosted as a Cloud Run project under Google Cloud, ensuring both reliability and availability. We take your privacy seriously. Rest assured, we will never collect individual user data or any personal information like emails. While we plan to implement Google Analytics for understanding web traffic and planning scalability, this will not compromise your personal data in any way.</p><h3>What Can It Do and What Does the Future Look Like? 🌟</h3><p>Currently, <a href="https://sigconverter.io/">sigconverter.io</a> supports the conversion of Sigma rules to various SIEM query languages. We have big plans for the future, including rule validation, sharing capabilities, bulk rule conversion and support for even more SIEM platforms.</p><h3>📣 Your Feedback Matters</h3><p>We’re always looking to improve and expand the tool’s capabilities. If you have suggestions for new features or encounter any bugs, please create a GitHub <a href="https://github.com/magicsword-io/sigconverter.io/issues">issue</a> on our repository. Your feedback is invaluable in making <a href="https://sigconverter.io/">sigconverter.io</a> a better tool for everyone.</p><h3>How Does The Conversion Work 📝</h3><p>As stated at the start the tool leverages the latest and greatest pySigma library for converting sigma rules into the different backend’s queries. In practice the app leverages the Sigma “Backend” class and the different backends and pipelines published in the sigma plugin <a href="https://github.com/SigmaHQ/pySigma-plugin-directory/blob/main/pySigma-plugins-v1.json">directory</a>, all of which is made accessible via the interface.</p><p>This flexibility also means that in case you have a custom or private backend, you can still make use of the app by simply installing your backend on the same system.</p><h3>Examples</h3><p>Here are some rules that can be converted to a couple different backends, to give you a taste of what the tool can do:</p><ul><li><a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_curl_download_susp_file_sharing_domains.yml">sigma/rules/windows/process_creation/proc_creation_win_curl_download_susp_file_sharing_domains.yml at master · SigmaHQ/sigma</a></li><li><a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_susp_local_system_owner_account_discovery.yml">sigma/rules/windows/process_creation/proc_creation_win_susp_local_system_owner_account_discovery.yml at master · SigmaHQ/sigma</a></li></ul><h3>What’s Next? 🚀</h3><p>The journey is just beginning. We’re excited about the roadmap for <a href="https://sigconverter.io/">sigconverter.io </a>and are eager for your feedback. Currently, the project is maintained by:</p><ul><li><a href="https://twitter.com/m3nixx">Julian Ortel</a></li><li><a href="https://twitter.com/nas_bench">Nasreddine Bencherchali</a></li><li><a href="https://twitter.com/Kostastsale">Kostas</a></li><li><a href="https://twitter.com/M_haggis">Michael Haag</a></li><li><a href="https://twitter.com/_josehelps">Jose Enrique Hernandez</a></li></ul><p>We’re always looking for more contributors, so if you’re interested, please join us!</p><p>Kudos to Florian Roth (<a href="https://github.com/Neo23x0">GitHub</a>), Thomas Patzke (<a href="https://github.com/thomaspatzke">GitHub</a>), and the entire<a href="https://github.com/SigmaHQ/sigma"> Sigma community</a> for the immense value they provide by building community detections.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b6822e55b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/introducing-sigconverter-io-the-community-driven-sigma-translation-tool-f7b6822e55b4">Introducing sigconverter.io: The Community-Driven Sigma Translation Tool</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unmasking Malicious Bootloaders with Bootloaders.io]]></title>
            <link>https://medium.com/magicswordio/unmasking-malicious-bootloaders-with-bootloaders-io-d01912507286?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/d01912507286</guid>
            <category><![CDATA[bootloader]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Thu, 03 Aug 2023 17:02:27 GMT</pubDate>
            <atom:updated>2023-08-03T18:20:53.139Z</atom:updated>
            <content:encoded><![CDATA[<p>In the intricate battleground of cybersecurity, the defense against malicious bootloaders, or bootkits, has always been a relentless game of cat and mouse. As defenders work tirelessly to understand, identify, and revoke these concealed threats, adversaries continue to exploit and advance their craft. Enter <a href="https://www.bootloaders.io/">Bootloaders.io</a>, a monumental stride exposing bootkits!</p><p>For organizations striving to safeguard their systems, this initiative is here to shine a light on a topic that is shrouded in mystique. To start, we leveraged the full gambit of Revoked Bootloaders from the UEFI <a href="https://uefi.org/revocationlistfile">revocation list</a>, <a href="https://www.bootloaders.io/">Bootloaders.io</a> offers an open-source project with an extensive and well-organized collection of known malicious Bootloaders across various operating systems. But this triumph doesn’t merely stand as a beacon for defenders; it serves as a critical reminder that the process of revoking, identifying, and responding to bootkits is fraught with challenges and demands time.</p><p>This isn’t just an update on security measures; it’s a battle cry for all who champion the cause of a secure environment. Whether you’re a defender or IT professional, join us as we delve into the heart of <a href="https://www.bootloaders.io/">Bootloaders.io</a>, where we’ll shine a light on the darkness and identify malicious bootloaders together. We’ll explore the complexities of the cyber landscape, understand how adversaries exploit these avenues, and uncover how Bootloaders.io arms you with the tools and knowledge to fight back.</p><p>Welcome to a new era of proactive defense and knowledge empowerment. Welcome to <a href="https://www.bootloaders.io/">Bootloaders.io.</a></p><h3><strong>Why Bootloaders?</strong></h3><p>Similar to drivers, bootloaders — including malicious bootloaders or bootkits — represent a shadowy area that many defenders may be unaware of. In an era where we rely on Anti-Virus (AV) or Endpoint Detection and Response (EDR) products to uncover these low-level threats, the detection is not always foolproof. Consider the recent exposure of Black Lotus, a bootkit that hit mainstream attention in <a href="https://www.welivesecurity.com/2023/03/01/blacklotus-uefi-bootkit-myth-confirmed/">March</a> 2023 but had actually been lurking since October 2022.</p><p>It wasn’t until May 2023 that UEFI revoked the compromised bootloaders, leaving computers vulnerable to this threat for eight months. Although Microsoft issued a patch and there were various methods to force an update to the DBX, implementing these solutions across 50,000 or even 200,000 endpoints is a daunting task.</p><p>Enter Bootloaders.io, a project focused on revoked bootloaders. When we first embarked on this mission, our initial step was to cross-reference <a href="https://www.virustotal.com/gui/collection/7f72958f4e7bead5301e48c0c15b57b683df929331da5c386ea86f9fe34cba76/iocs">VirusTotal</a> with all the hashes listed in the <a href="https://uefi.org/revocationlistfile">CSV</a>. Surprisingly, when the BlackLotus hashes were added, we found only 137 bootkits listed on VirusTotal.</p><blockquote>137 out of 520 revoked bootloaders are available on VT.</blockquote><p>As a defender within an organization of any size, it’s crucial to understand how to search for and recognize bootkit behavior. While tasks such as x and y must be performed, and likely require Administrator privileges, it’s essential to not overlook this area. Adversaries continue to exploit these vulnerabilities, and there is a pressing need for us to enhance our understanding of how to detect and prevent these threats effectively.</p><h3>What about the known knowns of Bootkits?</h3><p>We wanted to begin with the largest collection of bootkits available, and now that the project is public, we will start backfilling the known instances out there.</p><p>Similar to the LOLDrivers.io project, the site follows the same schema and style.</p><p>If a bootloader is available, you can download it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dq-jEyBCEy-V7B52t0wOvw.png" /></figure><p>Or, we provided a oneliner to replace your current bootloader with the… ahem — evil one.</p><p>We work to provide as much detection out of the box as possible. Bootloaders are a smidge different then drivers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rfCI9o7766Ei3_adaqj0XQ.png" /></figure><p>A hash list may never work based on how a bootloader is loaded, but hey — we’ll try!</p><p>In addition, based on the UEFI revocation list, we added the CVE’s:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/184/1*f3yOdzYOQfOKI3bf8uN0Bg.png" /></figure><p>Which you can click on and view the full details.</p><p>Again, bootloaders are different from drivers regarding metadata, we attempted to extract as much as possible and presented it on the page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*iMSO4qLKS0osPCr6o5NkJw.png" /></figure><p>Below the table will include any and all imports/exports, signatures and certificates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*s3tN5-2I6k3soy4F7zC_kg.png" /></figure><h3>The Boots</h3><p>As I have worked on understanding how to detect bootloader abuse, I produced a simple tool to goof off with the registry keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*jXxubfXlQO0KmdHHKvuXSQ.png" /></figure><p><a href="https://github.com/MHaggis/notes/blob/master/utilities/theBoots.ps1"><strong>https://github.com/MHaggis/notes/blob/master/utilities/theBoots.ps1</strong></a></p><p>In addition, the one liner on the pages will plant the bootloader properly for testing purposes.</p><pre>bcdedit /copy &quot;{current}&quot; /d &quot;LOLDrivers&quot; | {% if ($_ -match &#39;{\S+}&#39;) { bcdedit /set $matches[0] path \windows\temp\bootmgfw.efi } }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*E9xdmBiPE6ExHsG5o919OA.png" /></figure><p>Be careful out there! More to come on testing.</p><h3>StreamLit App</h3><p>Similar to LOLDrivers, we created a simple Streamlit App to help with easy contributions.</p><p>Check it out here: <a href="https://theboots.streamlit.app/">https://theboots.streamlit.app/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*C21mb3RhgpzW7RLqdFkvfw.png" /></figure><p>The workflow may be:</p><ul><li>Create a yaml on the app</li><li>fork the project, add your yaml to the yaml directory as a new file (using UUID as the filename (UUID.yaml))</li><li>Submit PR.</li><li>You are now a contributor to Bootloaders!</li></ul><p>In addition, feel free to drop a Git Issue with the yaml and we’ll merge it in with your name :)</p><h4>Booting Up a New Era of Defense with Bootloaders.io</h4><p>The Bootloaders.io project heralds a significant step forward in recognizing, understanding, and fighting against these concealed threats.</p><p>By assembling the largest known collection of revoked bootloaders and offering it publicly, Bootloaders.io not only illuminates this shadowy area but also provides tangible tools for defense. The project enables organizations of all sizes to enhance their detection and prevention strategies, regardless of the unique challenges bootloaders present.</p><p>With the ability to download and analyze bootloaders, review associated CVE details, and explore extensive metadata, Bootloaders.io stands as a robust resource for defenders. It’s not merely a repository but a collaborative platform where knowledge and action unite against a common enemy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d01912507286" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/unmasking-malicious-bootloaders-with-bootloaders-io-d01912507286">Unmasking Malicious Bootloaders with Bootloaders.io</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOLDrivers 2.0: Pioneering Progress]]></title>
            <link>https://medium.com/magicswordio/loldrivers-2-0-pioneering-progress-c3b487f80489?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/c3b487f80489</guid>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[living-off-the-land]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[loldrivers]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Mon, 31 Jul 2023 15:06:23 GMT</pubDate>
            <atom:updated>2023-07-31T15:26:15.243Z</atom:updated>
            <content:encoded><![CDATA[<p>Introducing LOLDrivers 2.0: A significant milestone that refines the user experience and expands upon our comprehensive threat detection capabilities. The landing page is now more accessible with the addition of categories and individual download buttons for each hash, and despite a brief hiatus, the search function is back by popular demand. Notably, we’ve integrated Florian Roth’s innovative Yara Generator, an exciting development that allows for the creation of dynamic yara rules with every merge. It efficiently processes input samples, extracts ‘VersionInfo’ from the driver’s PE headers, and generates highly versatile YARA rules. With this enhancement, the detection of even the most cleverly concealed drivers has never been more achievable.</p><p>Aiming to broaden our database, we delved into the Microsoft Driver block list and are thrilled to introduce an impressive roster of 750+ new drivers, achieved with a combination of ingenuity, diligence, and yes, plenty of coffee. Furthermore, LOLDrivers 2.0 now supports WDAC policies on the fly, CVE enrichment for pages with known CVEs, Sysmon 15 updates, Sigma Rule changes, and Yara for efficient detections and preventions.</p><p>Our VirusTotal collections are growing, encompassing both LOLDrivers and Revoked Bootloaders (more on this project next time!). There’s also a PowerShell Scanner and a range of variations to explore.</p><p>Check it all out here: <a href="https://www.loldrivers.io/">LOLDrivers.io </a>!</p><h3>Community Contributions</h3><p>To those that contributed or assisted us for 2.0 — Thank you!</p><ul><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Aissue+author%3Agoosvorbook">goosvorbook</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Aissue+author%3AHotCakeX">HotCakeX</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Aissue+author%3ASanesecurity">Sanesecurity</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Aissue+author%3Awdormann">wdormann</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Aissue+author%3AViralmaniar">Viralmaniar</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Apr+author%3Ah4x5p4c3">h4x5p4c3</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Apr+author%3AWhanos">Whanos</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Apr+author%3Aolafhartong">olafhartong</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Apr+author%3ANeo23x0">Neo23x0</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers/issues?q=is%3Apr+author%3Azwclose">zwclose</a></li><li><a href="https://github.com/Harvester57">Harvester57</a></li><li><a href="https://twitter.com/yarden_shafir">Yarden Shafir</a></li><li><a href="https://github.com/xalicex">xalicex</a></li></ul><h3><strong>Updated Landing Page</strong></h3><ul><li>added categories</li><li>download button for each individual hash</li><li>Removed Search</li><li>Re-added Search</li></ul><h3>Yara Generator</h3><p>The Yara Generator, courtesy of <a href="https://medium.com/u/2fdc032a69b3">Florian Roth</a>, offers an innovative way to generate Yara rules on the fly. With each merge, we can now enrich the yaml file with a Yara rule. This generator processes the input samples and extracts specific ‘VersionInfo’ values from the driver’s PE headers, such as the company name, file version, product version, and description. It then creates YARA rules that detect these specific values even if they’re embedded in another file or loaded into memory.</p><h4>How does it work?</h4><p>The generator processes the input samples and extract specific ‘VersionInfo’ values from the driver’s PE headers. This includes e.g., the company name, file version, product version, description and other values. It then creates YARA rules that look for these specific values and uses a condition that’s very permissive (all of them). This allows us to detect the drivers even if they are embedded in another file or loaded into memory.</p><p>Check it out <a href="https://github.com/magicsword-io/LOLDrivers/tree/main/bin/yara-generator">here</a> for more details.</p><h3>750+ New Drivers</h3><p>In an effort to expand our database, we dug into the Microsoft Driver block list and are excited to announce the addition of more than 750 new drivers. This substantial update was made possible through a combination of hard work, creativity, and yes, an abundance of coffee.</p><p>This is a massive add. It may not seem like pages were added (although many were) but the depth of many prior yaml’s were extended. We’re talking, a yaml going from 200 lines to over 2000 lines. HUGE.</p><p><strong>Not everything is perfect </strong>— there is a lot of data here that we are still working to perfect. If you find something incorrect — please open a PR/Issue and we’ll get it cleaned up. A single reference was used in some cases, but in reality many are first party found via hunting on VT. Everything should be aligned with the Microsoft blocklist, but we may have found some more along the way. References will be updated as we go through them.</p><h3>ClamAV</h3><p>Our first add to the AV industry, we now produce a fresh ClamAV hash database every PR.</p><p>Get it here: <a href="https://github.com/magicsword-io/LOLDrivers/tree/main/detections/av">https://github.com/magicsword-io/LOLDrivers/tree/main/detections/av</a></p><p>Thank you Sanesecurity for the <a href="https://github.com/magicsword-io/LOLDrivers/issues/75">feedback</a>!</p><h3>WDAC on the fly</h3><ul><li>G<a href="https://github.com/magicsword-io/LOLDrivers/actions/workflows/wdac.yml">it Action Workflow</a></li></ul><p>We created a self hosted runner with Git Actions to produce a WDAC policy for this release. We will provide a deny WDAC policy of ALL the drivers every release. Test it out in a lab, it is most likely not production ready.</p><p><strong>NOTE: We are not able to offer support on this, this is provided freely without support. If you brick a system — revert!</strong></p><p>We want to thank <a href="https://github.com/magicsword-io/LOLDrivers/issues/77">everyone</a> who <a href="https://github.com/magicsword-io/LOLDrivers/issues/34">assisted</a> with showcasing this can be done.</p><p>If you are looking to merge this config with another, check out this thread <a href="https://twitter.com/Harvesterify/status/1684908642904989697?s=20">here</a> with <a href="https://twitter.com/Harvesterify">Harvesterify</a>.</p><h3>StreamLit Update</h3><p>We recently upgraded our StreamLit site to generate the GUID/ID needed on the fly, which simplifies the PR process. Visit our updated site:</p><p><a href="https://loldrivers.streamlit.app/">https://loldrivers.streamlit.app/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*3QFc6TrlyzjUTv2G9JqBXg.png" /><figcaption>LOLDrivers Output</figcaption></figure><h3>CVE Enrichment</h3><p>We expanded the schema to include a cve: tag and include it on the pages that have a known CVE. We will do our best to maintain it.</p><h3>Enrichment</h3><p>New adds to enrichment including:</p><ul><li>TBS Hashes</li><li>RichPEHeader hashes</li></ul><p>The enrichment is very rich (:badpundog:) now, we recommend reviewing it. The JSON file is over 11mb with all this data.</p><h3>Detections — Prevention</h3><p>Yara button, Sysmon and Sigma Rule — OH MY</p><p>We now provide a dropdown for each item we produce for every driver we have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otgFiVDYivFY73LTk6Az9A.png" /></figure><p>Speaking of Sysmon — <a href="https://medium.com/u/5ca7329adb2b">Olaf Hartong</a> kindly committed back the new Sysmon 15 FileExecutableDetected to the project <a href="https://github.com/magicsword-io/LOLDrivers/pull/110">here</a> and the <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/detections/sysmon/sysmon_config_vulnerable_hashes_exe_detect.xml">config</a> will generate upon each PR.</p><h3>VirusTotal Collections</h3><p>We have created a collection of all the drivers involved in the project. This might be the most comprehensive list available.</p><ul><li><a href="https://www.virustotal.com/gui/collection/06818046399c5674eeb31f66e8eda0265a4f8bb4d4cc00b2da3f5955ac171458">https://www.virustotal.com/gui/collection/06818046399c5674eeb31f66e8eda0265a4f8bb4d4cc00b2da3f5955ac171458</a></li></ul><h3>LOLDriver Scanners</h3><p>We saw lots of scanners go by!</p><p><a href="https://github.com/FourCoreLabs/loldriverscan">GitHub - FourCoreLabs/LolDriverScan: LolDriverScan scans vulnerable driver on Windows Sytems using loldrivers.io</a></p><h3>Oddvar Moe on Twitter: &quot;I created this quick and dirty Powershell script to check your current system drivers against the awesome https://t.co/qBnmhTK4wT list from @M_haggis @_josehelps @nas_benchHope you find it useful https://t.co/HTX301hRiq pic.twitter.com/8n8JpF67by / Twitter&quot;</h3><p>I created this quick and dirty Powershell script to check your current system drivers against the awesome https://t.co/qBnmhTK4wT list from @M_haggis @_josehelps @nas_benchHope you find it useful https://t.co/HTX301hRiq pic.twitter.com/8n8JpF67by</p><p>some variations —</p><p><a href="https://gist.github.com/gioxx/c487cc5036241b7b5e7e0905b7f2d348">https://gist.github.com/gioxx/c487cc5036241b7b5e7e0905b7f2d348</a></p><p><a href="https://github.com/Ekitji/Files/blob/main/LOLDriverScanner.ps1">Files/LOLDriverScanner.ps1 at main · Ekitji/Files</a></p><p><a href="https://twitter.com/jsecurity101/status/1684254154288517121?s=20">https://twitter.com/jsecurity101/status/1684254154288517121?s=20</a></p><h3>Microsoft Testing</h3><p><a href="https://medium.com/u/1370d270628a">Yarden Shafir</a> shared some analysis back in May regarding which drivers still load. At the time, 170 of them were able to load with the latest HVCI driver blocklist.</p><h3>Yarden Shafir on Twitter: &quot;170 of the https://t.co/cuxvuUJrrz drivers load with the most recent HVCI driver blocklist. Do with this information what you will. pic.twitter.com/G4cCcnIX9Z / Twitter&quot;</h3><p>170 of the https://t.co/cuxvuUJrrz drivers load with the most recent HVCI driver blocklist. Do with this information what you will. pic.twitter.com/G4cCcnIX9Z</p><p>The gist is here: <a href="https://gist.github.com/yardenshafir/048a957e7e52978b32e43a7e4e1e72bb">https://gist.github.com/yardenshafir/048a957e7e52978b32e43a7e4e1e72bb</a></p><p><strong>Milestones</strong></p><p>we hit our LFS limit — <a href="https://twitter.com/wdormann/status/1661006812932628480?s=20">https://twitter.com/wdormann/status/1661006812932628480?s=20</a></p><p><strong>Honerable Mentions out there</strong></p><ul><li><a href="https://www.binarydefense.com/resources/blog/threadsleeper-suspending-threads-via-gmer64-driver/">https://www.binarydefense.com/resources/blog/threadsleeper-suspending-threads-via-gmer64-driver/</a></li><li><a href="https://www.bleepingcomputer.com/news/security/terminator-antivirus-killer-is-a-vulnerable-windows-driver-in-disguise/">https://www.bleepingcomputer.com/news/security/terminator-antivirus-killer-is-a-vulnerable-windows-driver-in-disguise/</a><br>SpyBoy — <a href="https://twitter.com/S0ufi4n3/status/1663059373352943616">https://twitter.com/S0ufi4n3/status/1663059373352943616</a></li><li><a href="https://github.com/ZeroMemoryEx/Terminator">https://github.com/ZeroMemoryEx/Terminator</a></li><li><a href="https://github.com/mertdas/SharpTerminator">https://github.com/mertdas/SharpTerminator</a></li><li><a href="https://github.com/ZeroMemoryEx/Overlord">https://github.com/ZeroMemoryEx/Overlord</a></li><li><a href="https://github.com/Helixo32/NimBlackout">https://github.com/Helixo32/NimBlackout</a></li><li><a href="https://ioctl.fail/echo-ac-writeup/">https://ioctl.fail/echo-ac-writeup/</a></li></ul><p>Neat shares:</p><ul><li><a href="https://twitter.com/0gtweet/status/1666461106104090629?s=20">https://twitter.com/0gtweet/status/1666461106104090629?s=20</a></li><li><a href="https://twitter.com/xorjosh/status/1665338153849311232?s=46&amp;t=-dkNDSDHEzyAagaVN0SDgA">https://twitter.com/xorjosh/status/1665338153849311232?s=46&amp;t=-dkNDSDHEzyAagaVN0SDgA</a></li></ul><h3>Looking Ahead</h3><p>We want to help and share more. To that end, we’ve created a Premium option, mainly to generate interest.</p><p><a href="https://www.loldrivers.io/premium/">LOLDrivers Premium</a></p><p>The core idea is, we can provide a specific WDAC policy of known LOLDrivers that still load. We can help with rapid response, SIEM integration and much more. If you are interested, please let us know <a href="https://forms.gle/SvxoLCEZ133U3e5C8">here</a>.</p><p>We also want to acknowledge this thread:</p><h3>Dodge This Security on Twitter: &quot;Is there going to be categories or drivers added so we can select drivers specifically that are known to be abused in campaigns?Sysmon last I heard starts having major performance issues at around 60,000 rules or so. Given the rate at which these are being added. / Twitter&quot;</h3><p>Is there going to be categories or drivers added so we can select drivers specifically that are known to be abused in campaigns?Sysmon last I heard starts having major performance issues at around 60,000 rules or so. Given the rate at which these are being added.</p><p>We’ve started on adding to the schema to expand on known vulnerable drivers being abused in the wild now. Think of it as a Release 2.1 :)</p><h3><strong>LOLDrivers 3.0 — “Prove it” edition</strong></h3><p>As we look ahead, our goal for LOLDrivers 3.0 is to demonstrate how a driver is vulnerable. This ambitious project will involve significant work as the methodology for reversing and finding functions is complex. The release of 3.0 won’t happen overnight. But rest assured, this extensive release will incorporate both dynamic and static validation and automation, making it worth the wait.</p><h3>Feedback</h3><p>We rely on you, the community, for feedback! If you have questions, comments, requests — please do not hesitate to reach out!</p><p>Thank you all for a great release!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3b487f80489" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/loldrivers-2-0-pioneering-progress-c3b487f80489">LOLDrivers 2.0: Pioneering Progress</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Living Off The Land Drivers 1.0 Release]]></title>
            <link>https://medium.com/magicswordio/living-off-the-land-drivers-1-0-release-95af7d59fb89?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/95af7d59fb89</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[loldrivers]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Mon, 08 May 2023 14:34:46 GMT</pubDate>
            <atom:updated>2023-05-08T15:19:06.947Z</atom:updated>
            <content:encoded><![CDATA[<h3>Living Off The Land Drivers 1.0 Release: New Features, Enrichments, and Community Contributions</h3><blockquote><strong>First — We want to thank everyone for the feedback and comments! We really appreciate it.</strong></blockquote><h3>Introduction</h3><p>Since its inception, the Living Off The Land Drivers (LOLDrivers) project has seen tremendous growth and success. As a reminder, the project aims to provide a comprehensive and well-maintained repository of drivers with known vulnerabilities or malicious behaviors. With the 1.0 release, we are excited to introduce several new features, driver enrichment and updates that make it even more valuable for analysts and researchers. In this blog post, we’ll walk you through these enhancements and celebrate some of the milestones that the project has achieved. If you haven’t already, we recommend reading the<a href="https://haggis-m.medium.com/living-off-the-land-drivers-a5d74d45e77a"> original blog post</a> announcing the project for more context on its purpose and goals.</p><h3>Project Milestones</h3><p>Our <a href="https://github.com/magicsword-io/LOLDrivers/pull/17">first contribution</a> came less than 24 hours after announcing the project, thanks to the efforts of <a href="https://twitter.com/_RastaMouse">Rastamouse</a>. Since then, the LOLDrivers website has seen <strong>4.8k new users</strong>, with the <a href="https://www.loldrivers.io/drivers/81a73e57-2e92-4d21-97d3-1c21eb4c3aea/">LenovoDiagnosticsDriver</a>.sys being the most visited driver. In the last 30 days alone, 13 new drivers were added to the repository by contributors. We are thrilled with the community’s response and grateful for the continued contributions that help make the project even better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVnlHRs8gcuNXjEuptd29w.png" /></figure><h3>Community</h3><p>Before diving into the list of release items, we’d like to highlight the community’s response. This includes tweets, publications, projects, and other instances where the LOLDrivers project has been utilized or mentioned.</p><p><strong>A LOLDrivers Client</strong></p><pre>LOLDrivers-client.exe -m [MODE] [OPTIONS]<br><br>Modes:<br>    online    Download the newest driver set (default)<br>    local     Use a local drivers.json file (requires &#39;-f&#39;)<br>    internal  Use the built-in driver set (can be outdated)<br><br>Options:<br>    -d Directory to scan for drivers (default: Windows Default)<br>    -f File path to &#39;drivers.json&#39; for mode &#39;local&#39;<br>    -t Number of threads to spawn (default: 20)<br>    -v Print verbose messages (default: false)<br>    -h Shows this text</pre><ul><li><a href="https://github.com/rtfmkiesel/loldrivers-client">https://github.com/rtfmkiesel/loldrivers-client</a></li></ul><p><strong>Thor and Loki</strong></p><h3>Florian Roth on Twitter: &quot;We&#39;ve integrated the hashes of the vuln/mal drivers maintained in the LOLDrivers project by @M_haggis @_josehelps in the rule set used by the FREE THOR LiteHash IOCs https://t.co/xwF688RhqPLOLDrivershttps://t.co/EpG9IpWejV pic.twitter.com/t7aphpdZ41 / Twitter&quot;</h3><p>We&#39;ve integrated the hashes of the vuln/mal drivers maintained in the LOLDrivers project by @M_haggis @_josehelps in the rule set used by the FREE THOR LiteHash IOCs https://t.co/xwF688RhqPLOLDrivershttps://t.co/EpG9IpWejV pic.twitter.com/t7aphpdZ41</p><ul><li><a href="https://github.com/Neo23x0/signature-base/blob/master/iocs/hash-iocs.txt#L10827">https://github.com/Neo23x0/signature-base/blob/master/iocs/hash-iocs.txt#L10827</a></li><li><a href="https://github.com/Neo23x0/Loki/releases">https://github.com/Neo23x0/Loki/releases</a></li></ul><p><strong>KQL</strong></p><h3>JxD on Twitter: &quot;In case you don&#39;t want to maintain all #loldrivers hashes by hand in your #MDE Custom Detection Rule, this is a simple way to fetch and use a fresh copy of all listed SHA256 hashes from github:https://t.co/lRfTO80f69@M_haggis @nas_bench / Twitter&quot;</h3><p>In case you don&#39;t want to maintain all #loldrivers hashes by hand in your #MDE Custom Detection Rule, this is a simple way to fetch and use a fresh copy of all listed SHA256 hashes from github:https://t.co/lRfTO80f69@M_haggis @nas_bench</p><ul><li><a href="https://github.com/0xjxd/KQL-Hunting/blob/main/MDE-LOLDRIVERS.kql">https://github.com/0xjxd/KQL-Hunting/blob/main/MDE-LOLDRIVERS.kql</a></li></ul><p><strong>Velociraptor</strong></p><h3>Matthew Green 🌻 on Twitter: &quot;For Velociraptor users, I just wrote an artifact to bulk hunt the loldrivers project. The artifact uses AMCache to check any entries in the project with a SHA1. https://t.co/E2txy4l2ojDefinitely been giving some interesting historical hits so far @M_haggis @velocidex pic.twitter.com/eRYZ2tHnrv / Twitter&quot;</h3><p>For Velociraptor users, I just wrote an artifact to bulk hunt the loldrivers project. The artifact uses AMCache to check any entries in the project with a SHA1. https://t.co/E2txy4l2ojDefinitely been giving some interesting historical hits so far @M_haggis @velocidex pic.twitter.com/eRYZ2tHnrv</p><ul><li><a href="https://github.com/mgreen27/DetectRaptor/blob/master/vql/LolDrivers.yaml">https://github.com/mgreen27/DetectRaptor/blob/master/vql/LolDrivers.yaml</a></li></ul><p><strong>PowerShell Scan for LOLDrivers</strong></p><ul><li><a href="https://github.com/rweijnen/Posh-Snippets/blob/master/ScanLolDrivers.ps1">https://github.com/rweijnen/Posh-Snippets/blob/master/ScanLolDrivers.ps1</a></li></ul><p><strong>Awesome-Malware-Techniques</strong></p><ul><li><a href="https://github.com/fr0gger/Awesome_Malware_Techniques">https://github.com/fr0gger/Awesome_Malware_Techniques</a></li></ul><h3>Thomas Roccia 🤘 on Twitter: &quot;Just added LOLDrivers to the Awesome Malware Techniques repo 👇#infosec #malware https://t.co/TvuD91LZRO https://t.co/rWN0pTQjKe pic.twitter.com/cgOwrN3ou8 / Twitter&quot;</h3><p>Just added LOLDrivers to the Awesome Malware Techniques repo 👇#infosec #malware https://t.co/TvuD91LZRO https://t.co/rWN0pTQjKe pic.twitter.com/cgOwrN3ou8</p><p><strong>Detection Engineering Weekly</strong></p><h3>Zack Allen on Twitter: &quot;Issue #19 of Detection Engineering Weekly is LIVE! https://t.co/1wMLAfgwXj* 💎 of a post by @TrustedSec Leo Bastidas on getting into DE* @M_haggis and @_josehelps drop the LOLdrivers project * 100 Days of Yara recap by @shellcromancer and much more! / Twitter&quot;</h3><p>Issue #19 of Detection Engineering Weekly is LIVE! https://t.co/1wMLAfgwXj* 💎 of a post by @TrustedSec Leo Bastidas on getting into DE* @M_haggis and @_josehelps drop the LOLdrivers project * 100 Days of Yara recap by @shellcromancer and much more!</p><p><strong>SANS Internet Storm Center</strong></p><h3>SANS.edu Internet Storm Center on Twitter: &quot;Malicious SFX Files; loldrivers; Trellix Priv Esc; HP LasterJet Vuln https://t.co/7HzA7SccPK pic.twitter.com/p9nheUsCTf / Twitter&quot;</h3><p>Malicious SFX Files; loldrivers; Trellix Priv Esc; HP LasterJet Vuln https://t.co/7HzA7SccPK pic.twitter.com/p9nheUsCTf</p><ul><li><a href="https://isc.sans.edu/podcastdetail.html?id=8444">https://isc.sans.edu/podcastdetail.html?id=8444</a></li></ul><p><strong>#100daysofyara</strong></p><h3>Super Sheep (@qutluch@infosec.exchange) on Twitter: &quot;With day 100 of #100DaysOfYara approaching I couldn&#39;t let it slip by without some last dash contribution at the end before the holiday weekend. So here&#39;s 248 yara rules looking for LOLDrivers in PE resources https://t.co/GH0PEMKlwH / Twitter&quot;</h3><p>With day 100 of #100DaysOfYara approaching I couldn&#39;t let it slip by without some last dash contribution at the end before the holiday weekend. So here&#39;s 248 yara rules looking for LOLDrivers in PE resources https://t.co/GH0PEMKlwH</p><ul><li><a href="https://gist.github.com/schrodyn/45eab4f9229f116e2cfd2c427a84fdd6">https://gist.github.com/schrodyn/45eab4f9229f116e2cfd2c427a84fdd6</a></li></ul><h3>1.0 Release Highlights</h3><h3>1. New Driver Enrichments</h3><p>In this release, we have added a new section for each driver that includes all the extremely valuable <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/YML-Template.yml">driver metadata</a> utilizing our new <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/bin/metadata-extractor.py">metadata-extractor</a>. For example, the addition of the Authentihash provides an efficient way to uniquely identify and validate files. Other metadata fields include file hashes (MD5, SHA1, and SHA256), signature, date, publisher, company, description, product, product version, file version, machine type, original filename, internal name, copyright, imports, exported functions, and PDB path. These enrichments help analysts and researchers better understand and investigate the drivers in our repository.</p><p>The <a href="https://www.loldrivers.io/api/drivers.json">JSON</a> and <a href="https://www.loldrivers.io/api/drivers.csv">CSV</a> files now include all the new attributes. If you want the raw YAML head on over here <a href="https://github.com/magicsword-io/LOLDrivers/tree/main/yaml">YAML</a>.</p><p>We also added a a list of all Authentihashes collected <a href="https://github.com/magicsword-io/LOLDrivers/tree/main/detections/hashes">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*MixXteiIvuQCPht_87vArQ.png" /><figcaption>All the Options</figcaption></figure><p>First you now notice each driver has all the metadata added</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dshMXS-WEWI8fvk3nHCA0g.png" /></figure><p>As you scroll down on the driver page, you will now see driver imports, exports and all the signature information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQSVOSjQBJlo9DjY787DqQ.png" /></figure><p>The raw YAML contains every attribute:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EW5TRpa_3VlE-SZmE-gow.png" /></figure><h3>2. Driver Binaries under the drivers/ directory</h3><p>We have begun using Git LFS to store the drivers in the <em>drivers/</em> directory. Each release will now feature a <a href="https://github.com/magicsword-io/LOLDrivers/releases/download/v1.0.0/drivers.zip">drivers.zip</a> file containing all of these binaries. This enables analysts to conveniently download and analyze all of the drivers within the project. The binaries are named according to the &lt;md5&gt;.bin format of the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VAmjYFKx2DaolHU4C_ooAQ.png" /></figure><h3>3. Changed to UUID instead of Driver Names</h3><p>While working with the repository and reviewing the sigma rule based on driver names, we recognized that duplicate names might occur as the project expands over time. We decided to modify the scheme by adopting UUIDs and assigning driver names as tags. This update allows for an infinite set of drivers. Moreover, if the original driver name is unknown, we will utilize the original file name attribute.</p><p>The main difference is the URLs will be based on the UUID — <a href="https://www.loldrivers.io/drivers/275c80c5-a67c-4536-b29e-4e481242cb01/">https://www.loldrivers.io/drivers/275c80c5-a67c-4536-b29e-4e481242cb01/</a></p><h3>4. Elastic Drivers Add</h3><p>Nasreddine took a deep dive into the Elastic driver yara set and was able to produce a spreadsheet totaling 740+ total drivers. We used a VTI query to gather all the metadata and produce a csv output and then followed that up with downloading all the drivers and adding to the project!</p><p>VirusTotal Enrichment Script: <a href="https://gist.github.com/nasbench/93b55c1fbe01d8341b7c9ed80a80ebbc">https://gist.github.com/nasbench/93b55c1fbe01d8341b7c9ed80a80ebbc</a></p><p>Enriched data spreadsheet: <a href="https://docs.google.com/spreadsheets/d/1lTNqD2t9UbFOLQbNWeLVbN8XCK8Dd72XavEQrkvtZVY/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1lTNqD2t9UbFOLQbNWeLVbN8XCK8Dd72XavEQrkvtZVY/edit?usp=sharing</a></p><p>Nasreddine then provided a massive PR with the driver binaries and a full set of new yaml files.</p><ul><li><a href="https://github.com/magicsword-io/LOLDrivers/pull/63">https://github.com/magicsword-io/LOLDrivers/pull/63</a></li></ul><h3>5. Updated loldrivers.io</h3><p>The LOLDrivers website has been updated to include new metadata and links to the latest binaries. The landing page now displays the SHA256 hashes of the drivers, further simplifying navigation and information retrieval for users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvP60dWDvKlQ41rzbhiYZg.png" /></figure><h3>6. Updated Validation CI Job with a YAML Spec</h3><p>To maintain consistency and automatically validate/report on any YAML construction issues, we have updated the validation CI job with a <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/bin/spec/drivers.spec.json">jsonschema spec</a>. This improvement helps streamline the process when a PR is created by someone in the community. We appreciate and welcome all community contributions!</p><h3>7. Added Release CI Job</h3><p>We have added a release CI job to create project <a href="https://github.com/magicsword-io/LOLDrivers/releases/tag/v1.0.0"><strong>releases</strong></a>. This allows us to have snapshot-in-time builds as we improve the project. The CI job also creates the driver.zip file and includes release notes, making it even easier to stay informed about the project’s progress.</p><h3>8. New Drivers Added via Community Contributions</h3><p>The community has been actively contributing to the project, and we’d like to highlight some of the new drivers added:</p><p>- <a href="https://www.loldrivers.io/drivers/b1dd91b1-9ba3-4d68-a2d1-919039e18430">dcr.sys</a></p><p>- <a href="https://www.loldrivers.io/drivers/c854b612-0b9f-4fc3-a7b8-a93bed7a291e">SSPORT.sys</a></p><p>- <a href="https://www.loldrivers.io/drivers/2c3884d3-9e4f-4519-b18b-0969612621bc">LgCoreTemp.sys</a></p><p>- <a href="https://www.loldrivers.io/drivers/db666d40-c9fa-4039-bfac-a5d7afd61b67">bedaisy.sys</a></p><p>- <a href="https://www.loldrivers.io/drivers/e32bc3da-4db1-4858-a62c-6fbe4db6afbd">RTCore64.sys</a> (New Hashes)</p><p>- <a href="https://www.loldrivers.io/drivers/2d7c96d3-2d6c-44cd-a8a1-5239f571a24a">hw.sys</a> (New Hashes)</p><p>- <a href="https://www.loldrivers.io/drivers/9c3c6e89-3916-498f-81e5-da057ab3ed42">windbg.sys</a></p><p>- Add Hash to <a href="https://www.loldrivers.io/drivers/70acea34-7ed2-42d5-885c-eca3c2de640c">Sense5Ext.sys</a></p><p>- Add <a href="https://www.loldrivers.io/drivers/5261cacf-380c-4573-85ff-a643cbdf009a">KApcHelper_x64.sys</a></p><p>- Add <a href="https://www.loldrivers.io/drivers/412f4aaf-5525-458c-b87e-311e504b856d">mJj0ge.sys</a></p><p>- Add <a href="https://www.loldrivers.io/drivers/6fe10a55-7fb8-4a9d-9ebc-1b27b6e5b833">prokiller64.sys</a></p><p>- Add <a href="https://www.loldrivers.io/drivers/c1265ee4-aed4-4e65-ac54-c64deb5e3b28">fur.sys</a></p><p>- <a href="https://www.loldrivers.io/drivers/a4e31604-3b53-4173-87c3-bf4f52ca9295">procexp152.sys</a></p><p>Thank you to all the contributors who have helped expand the scope of the LOLDrivers project!</p><h3>Conclusion</h3><p>The 1.0 release of the Living Off The Land Drivers project brings numerous enhancements and updates, making it an even more valuable resource for analysts and researchers. We are grateful for the community’s ongoing support.</p><p>A Huge Thank You to Our Community and Maintainers!</p><p>We would like to extend our heartfelt thanks to the community members who have contributed to the project: <a href="https://github.com/goosvorbook">goosvorbook</a>, <a href="https://github.com/hRun">hRun</a>, <a href="https://github.com/VoidSec">VoidSec</a>, <a href="https://github.com/Wack0">Wack0</a>, <a href="https://github.com/x90e">X90e</a>, <a href="https://github.com/hfiref0x">hfiref0x</a> and <a href="https://github.com/BlureL">BlureL</a>. Your dedication and effort have been instrumental in the growth and success of LOLDrivers. We also want to recognize the invaluable work of the project maintainers: Nas, Mike, and Jose. Their commitment and hard work continue to drive the project forward and make it an essential resource for the security community.</p><p>Thank you all for your contributions, and we look forward to seeing the project continue to grow and evolve with your support!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95af7d59fb89" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/living-off-the-land-drivers-1-0-release-95af7d59fb89">Living Off The Land Drivers 1.0 Release</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Living Off The Land Drivers]]></title>
            <link>https://medium.com/magicswordio/living-off-the-land-drivers-a5d74d45e77a?source=rss----350757796800---4</link>
            <guid isPermaLink="false">https://medium.com/p/a5d74d45e77a</guid>
            <dc:creator><![CDATA[Michael Haag]]></dc:creator>
            <pubDate>Mon, 08 May 2023 00:41:16 GMT</pubDate>
            <atom:updated>2023-05-12T15:07:15.305Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, we are excited to announce the release of the Living Off The Land Drivers project. This project aims to consolidate as many vulnerable and malicious drivers as possible into a single location, making it accessible for everyone to find and learn from. This invaluable resource empowers organizations to better understand and mitigate driver-related security risks. Drivers are an integral part of a computer’s operation, and vulnerabilities or malicious drivers can pose significant security risks. Monitoring drivers enables you to detect potential threats early, allowing you to take prompt action to address vulnerabilities, remove malicious drivers, and minimize the risk of exploitation.</p><p>Additional background on this topic may be found in my SANS DFIR Summit talk titled <a href="https://www.youtube.com/watch?v=5CEfkOg8rXU">Hunting Windows U-Boats with Cyber Depth Charges</a>.</p><h3>Introducing — LOLDrivers.io</h3><p><a href="https://loldrivers.io/">Site</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pv7OLWy3nbXiKpUqBcnKIA.png" /><figcaption>loldrivers.io</figcaption></figure><p>Visiting <a href="https://loldrivers.io/">loldrivers.io</a> will present you with the landing page and the ability to filter on drivers within the table below or you can search at the top right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sVgI42YmPJndZNE1P1N2g.png" /><figcaption>Filter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*8DKWV788HLUdYrx2_xTyMQ.png" /><figcaption>search</figcaption></figure><p>In addition, you have the ability to grab a <a href="https://loldrivers.io/api/drivers.csv">CSV</a>, <a href="https://loldrivers.io/api/drivers.json">JSON</a>, <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/detections/sysmon/sysmon_config_vulnerable_hashes.xml">Sysmon</a> configuration file and a <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/detections/sigma/driver_load_win_vuln_drivers.yml">Sigma</a> rule.</p><h3>Why is this important?</h3><p>The Living Off The Land Drivers (LOLDrivers) project is a game-changer in the world of cybersecurity and system stability for several reasons:</p><ol><li><strong>Centralized resource:</strong> LOLDrivers brings together vulnerable and malicious drivers in one convenient location, making it easier than ever for security professionals, researchers, and organizations to identify and learn about driver-related threats.</li><li><strong>Enhanced awareness:</strong> This project shines a light on the importance of driver-related security risks, emphasizing the need for organizations to be proactive in monitoring and addressing potential vulnerabilities in their systems.</li><li><strong>Risk mitigation:</strong> LOLDrivers equips organizations with valuable insights into driver vulnerabilities and malicious drivers, enabling them to understand the risks they face and implement effective measures to mitigate them, ultimately reducing the likelihood of successful exploitation by threat actors.</li><li><strong>Improved security posture:</strong> With the knowledge provided by LOLDrivers, organizations can bolster their overall cybersecurity posture by proactively addressing driver-related risks.</li><li><strong>Community-driven:</strong> The project fosters a spirit of collaboration and knowledge sharing within the cybersecurity community, encouraging a united effort to stay one step ahead of emerging threats and vulnerabilities related to drivers.</li></ol><p>In a nutshell, the LOLDrivers project is an optimistic force for change, centralizing information on driver-related risks, raising awareness, facilitating risk mitigation, enhancing security posture, and promoting collaboration within the cybersecurity community.</p><h3>Tell us more!</h3><h4>Verified, Not Verified</h4><p>While working with the <a href="https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-driver-block-rules">Microsoft Block List</a>, some hashes are not present on VirusTotal or Google. Therefore, we created the verified True|False key in the YAML. If a hash is available on VirusTotal, mark the field as TRUE, else mark it as FALSE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*bnmgYvkcEwRktxqoYRrfpg.png" /><figcaption>Verified</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*hLKaxzIyRmzeJJx2rnPjKQ.png" /><figcaption>Not Verified</figcaption></figure><h3>Categories</h3><p>Categories was introduced as a way to track different types of drivers. We plan to add more categories as we progress.</p><p><strong>Vulnerable driver:</strong></p><p>A vulnerable driver is a software component that manages the communication between a computer’s operating system and its hardware devices but contains weaknesses or flaws that can be exploited by malicious actors. These vulnerabilities may arise from programming errors, insufficient input validation, or improper security measures, among other factors.</p><p>Examples include <a href="https://www.loldrivers.io/drivers/b51c441a-12c7-407d-9517-559cc0030cf6/">capcom.sys</a> and <a href="https://www.loldrivers.io/drivers/0258df5c-c3c1-4ed5-ba8f-846d91526ffe/">asrdrv10.sys</a>.</p><p><strong>Malicious driver:</strong></p><p>A malicious driver is a software component designed to manage communication between a computer’s operating system and its hardware devices, but with a hidden, harmful intent. Unlike vulnerable drivers, which contain unintentional flaws or weaknesses, malicious drivers are intentionally crafted by threat actors to compromise systems, steal sensitive information, or perform other malicious activities.</p><p>We see this consistently with campaigns like <a href="https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/daxin-backdoor-espionage">Daxin</a> or other <a href="https://www.sentinelone.com/labs/driving-through-defenses-targeted-attacks-leverage-signed-malicious-microsoft-drivers/">targeted attack</a>s. Examples include: <a href="https://www.loldrivers.io/drivers/0fc0563c-de9f-41d8-806a-748e04d57365">gtfkyj64.sys</a> and <a href="https://www.loldrivers.io/drivers/892292f9-b87c-40a5-80e5-8c9b02914e8b/">wantd.sys</a>.</p><p>Other categories as we grow include</p><ul><li>Experimental Drivers</li><li>Compromised Certificates</li></ul><h3>Contributing</h3><p>We’ve collected the vast majority of known drivers that are vulnerable, but we need your help in curating the rest that may be out there lurking in the shadows.</p><p>Contributions are easy! We have a YAML <a href="https://github.com/magicsword-io/LOLDrivers/blob/main/YML-Template.yml">template</a> that is direct and easy to follow. YAML is designed to be easily readable and writable, making it a user-friendly choice for various applications. To further simplify the process, we’ve developed a straightforward <a href="https://loldrivers.streamlit.app/">Streamlit App</a> that enables you to create YAML files quickly and effortlessly, promoting seamless contributions to the project.</p><pre>Name: blacklotus_driver.sys<br>Author: Michael Haag<br>Created: &#39;2023-04-05&#39;<br>MitreID: T1068<br>Category: malicious<br>Verified: &#39;TRUE&#39;<br>Commands:<br>  Command: &#39;sc.exe create blacklotus_driver.sys binPath=C:\windows\temp\blacklotus_driver.sys type=kernel <br><br>    sc.exe start blacklotus_driver.sys&#39;<br>  Description: The first in-the-wild UEFI bootkit bypassing UEFI Secure Boot on fully updated UEFI systems is now a reality. Once the persistence is configured, the BlackLotus bootkit is executed on every system start. The bootkits goal is to deploy a kernel driver and a final user-mode component.<br>  Usecase: Elevate privileges<br>  Privileges: kernel<br>  OperatingSystem: Windows 10<br>Resources:<br>- https://www.welivesecurity.com/2023/03/01/blacklotus-uefi-bootkit-myth-confirmed/<br>Acknowledgement:<br>  Person: &#39;Martin Smolár, ESET&#39;<br>  Handle: &#39;&#39;<br>Detection: []<br>KnownVulnerableSamples:<br>- Filename: 0x3440_blacklotus_v2_driver.sys<br>  MD5: &#39;4ad8fd9e83d7200bd7f8d0d4a9abfb11&#39;<br>  SHA1: &#39;17fa047c1f979b180644906fe9265f21af5b0509&#39;<br>  SHA256: &#39;749b0e8c8c8b7dda8c2063c708047cfe95afa0a4d86886b31a12f3018396e67c&#39;<br>  Signature:<br>  - &#39;-&#39;<br>  Date: &#39;&#39;<br>  Publisher: &#39;&#39;<br>  Company: &#39;&#39;<br>  Description: &#39;&#39;<br>  Product: &#39;&#39;<br>  ProductVersion: &#39;&#39;<br>  FileVersion: &#39;&#39;<br>  MachineType: &#39;&#39;<br>  OriginalFilename: &#39;&#39;<br>- Filename: 0x3040_blacklotus_beta_driver.sys<br>  MD5: a42249a046182aaaf3a7a7db98bfa69d<br>  SHA1: 1f3799fed3cf43254fe30dcdfdb8dc02d82e662b<br>  SHA256: f8236fc01d4efaa48f032e301be2ebba4036b2cd945982a29046eca03944d2ae<br>  Signature:<br>  - &#39;-&#39;<br>  Date: &#39;&#39;<br>  Publisher: &#39;&#39;<br>  Company: &#39;&#39;<br>  Description: &#39;&#39;<br>  Product: &#39;&#39;<br>  ProductVersion: &#39;&#39;<br>  FileVersion: &#39;&#39;<br>  MachineType: &#39;&#39;<br>  OriginalFilename: &#39;&#39;</pre><h3>Thank You</h3><p>First and foremost I want to thank <a href="https://medium.com/u/fd370d6594d9">Jose E Hernandez</a> for assisting me with getting the project to where it is today. <a href="https://medium.com/u/a37d33161cb2">Patrick Bareiss</a> for listening and creating the first pass of CSV to YAML generation — the core of LOLDrivers. <a href="https://twitter.com/mattnotmax">Matt</a> for having the same idea and assisting in review and code. <a href="https://twitter.com/bohops">Bohops</a> For listening to the original pitch and shining a light on the path forward.<br><a href="https://medium.com/u/2fdc032a69b3">Florian Roth</a> and <a href="https://medium.com/u/aad5aaf11bbb">Nasreddine Bencherchali</a> with the ultimate assists with adding Sigma, enrichment and getting things in line!</p><h3>Links of Interest</h3><ul><li><a href="https://loldrivers.io/">LOLDrivers.io</a></li><li><a href="https://github.com/magicsword-io/LOLDrivers">GitHub Repo</a></li><li><a href="https://loldrivers.streamlit.app/">Generate YAML</a> with StreamLit App</li></ul><h4>Near term items we want to complete</h4><ul><li>Add more Binary Metadata with additional reporting</li><li>A location with all of the drivers from the project. One stop shop.</li><li>Edit YAMLs on the <a href="https://loldrivers.streamlit.app/">Streamlit app</a>.</li><li>Detailed driver descriptions.</li></ul><h3>Q&amp;A</h3><h4>Why LOLDrivers and not BYOVD?</h4><p>Matt Graeber and I had started a collection of vulnerable drivers 2–3 years ago and I really like the name LOLDrivers that we coined. It happened to just stick. Don’t worry, they can be used synonymously.</p><h4>Why did it take so long to get this done?</h4><p>Time! And we probably rebuilt it 3 times.</p><h4><strong>A driver is missing!</strong></h4><p>Yes — that is why you are here! Ship a <a href="https://github.com/magicsword-io/LOLDrivers/">PR</a>, or open a <a href="https://github.com/magicsword-io/LOLDrivers/issues">GitHub Issue</a> and we will get it added!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5d74d45e77a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/living-off-the-land-drivers-a5d74d45e77a">Living Off The Land Drivers</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>