Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Psychology Of Color In UX Design And Digital Products

      August 15, 2025

      This week in AI dev tools: Claude Sonnet 4’s larger context window, ChatGPT updates, and more (August 15, 2025)

      August 15, 2025

      Sentry launches MCP monitoring tool

      August 14, 2025

      10 Benefits of Hiring a React.js Development Company (2025–2026 Edition)

      August 13, 2025

      14 secret phone codes that unlock hidden features on your Android and iPhone

      August 17, 2025

      Stop using AI for these 9 work tasks – here’s why

      August 17, 2025

      A smart sensor assessed my home’s risk of electrical fires, and I was impressed

      August 17, 2025

      I brought Samsung’s rugged Galaxy tablet on a hiking trip, and it weathered everything

      August 17, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      AI’s Hidden Thirst: The Water Behind Tech

      August 16, 2025
      Recent

      AI’s Hidden Thirst: The Water Behind Tech

      August 16, 2025

      Minesweeper game in 100 lines of pure JavaScript – easy tutorial

      August 16, 2025

      Maintaining Data Consistency with Laravel Database Transactions

      August 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      5 Best VPN for Lenovo Laptops to Enjoy the Web Safely

      August 16, 2025
      Recent

      5 Best VPN for Lenovo Laptops to Enjoy the Web Safely

      August 16, 2025

      3 Best Antivirus and Malware Protection Software

      August 16, 2025

      11 Best Antivirus Without Ads

      August 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Hunting Fileless Malware

    Hunting Fileless Malware

    July 1, 2025

    I ran across Manuel Arrieta‘s Hunting Fileless Malware in the Windows Registry article recently, and found it to be an interesting read.

    Let me start by saying that the term “fileless malware”, for me, is like finger nails dragged down a chalkboard. Part of this is due to the DarkWatchman write-up, where the authors stated that some parts of the malware were “…written to the Registry to avoid writing to disk.” That kind of distinction has always just rubbed me the wrong way. However, regardless of what we call it, I do “get” the concept behind the turn of phrase, and why folks tend to feel that this sort of thing is more difficult to detect than malware that actually writes a file to disk. I’m not sure why they feel that way…maybe it’s because this code that downloads the malware and injects it directly into memory (in some cases) can reside anywhere on the system, and within any Registry value. However, the key is that this somehow needs to remain persistent, which limits the number of locations for the code that initiates the download, accesses the shellcode, or performs whichever initiating function. 

    In his article, Manuel discusses the use of LOLBins to write information to the Registry, and how this can be used for detection. He references several LOLBins, and something that we have to keep in mind is that there’s often more to these detections than just what we see on the surface. For example, is PowerShell used extensively within your infrastructure to create Registry values; if not then just the use of PowerShell in that manner would make for a good hunt, or even a good detection opportunity. The same is true for other LOLBins, including reg.exe, rundll32.exe, etc. If these are not something that you usually ‘see’ within your infrastructure, then those instances that you do see would need to be investigated.

    Manuel’s article discusses a number of interesting approaches for creating detections for “fileless” malware that’s written to the Registry, and anyone involved with detection engineering should strongly consider giving it a good, solid read, and seeing how it can be applied to their environment. 

    I’d like to take the opportunity to add to Manuel’s work by presenting means for detecting this type of malware from a triage or “dead box” perspective. For example, Manuel mentions looking for LOLBins writing Registry values of suspicious lengths. I like this approach, because I’d taken a similar approach in 2015 when I originally wrote the RegRipper sizes.pl plugin. This plugin walks through a Registry hive and looks for all values over a specific $min_size, which is set to 5000 bytes (you can easily change this by opening the plugin in Notepad and changing the size value). Now, you’re going to have legitimate Registry values that contain a lot of data, and that’s to be expected; it’s normal. However, a way to extend this is to look to publicly available threat intel based on actual incident data, see what different threat actors are placing in Registry values, and tailor your approach. 

    Almost 2 yrs ago, I announced that I’d found a way to integrate Yara into RegRipper v4.0, so any Yara rule that looks for indications of “fileless” malware or shellcode within a file can be run against Registry values, through RegRipper. This can include rules that look for base64-encoded strings, or that begin with some variation of “powershell” (i.e., mixed-case, carets between the letters, etc.).

    The findexes.pl plugin, which looks for strings beginning with “MZ” in Registry values, was originally written in 2009, based off an engagement that Don Weber worked while he was a member of the IBM ISS X-Force ERS team. Don found that, during the engagement, the threat actor had written a PE file to a Registry value, and then rather than reaching out to a network resource to download the malware, it was simply extracted from the Registry value. I found this very interesting at the time, because several years prior, while working on network exploitation research for the military, I’d theorized something similar happening, and actually created a working demo. Jump forward several years, and Don was showing me that this was actually being used in the wild. This findexes.pl plugin is one approach, and using Yara rules is another.

    Examples
    Here’s an example of a persistence mechanism in the Registry pointing to a value that contains a base64-encoded string.

    Here’s an example from Splunk; scroll down to the section called “Fileless Execution Through Registry”; this one creates a Run key value that creates Javascript code to run calc.exe, so it’s clearly not “fileless”, per se, but it does serve as a harmless example you can use to test dead-box detections.

    Here are some practical examples from Securonix; unfortunately, some of the examples are in screen captures, so you can’t get specifics about them, such as the length of the value data, but you can use these example to round out your detections.

    Source: Read More 

    windows
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleNVIDIA confirms final driver support for GTX 900 and 1000 series cards
    Next Article Accelerating scientific discovery with AI

    Related Posts

    Operating Systems

    5 Best VPN for Lenovo Laptops to Enjoy the Web Safely

    August 16, 2025
    Operating Systems

    3 Best Antivirus and Malware Protection Software

    August 16, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-47651 – Infility Global SQL Injection

    Common Vulnerabilities and Exposures (CVEs)

    27 College Fonts for Creating Academic-Inspired Designs (2025)

    Web Development

    TES4: Oblivion Remastered is getting new difficulty settings in patch 1.2 — but I’m happier to see a fix for this major issue

    News & Updates

    CVE-2025-55188 – 7-Zip Symbolic Link Extraction Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    News & Updates

    As Microsoft posts $75B in Azure revenue, UK’s CMA says “competition is not working well”

    August 1, 2025

    Azure’s $75B revenue marks a milestone for Microsoft, but UK regulators say the cloud market…

    Roblox FPS Unlocker: What It Is, Safety & How to Use It in 2025

    July 15, 2025

    Microsoft Reportedly Hires More AI Talent from Google DeepMind

    July 24, 2025

    Hackers Use Facebook Ads to Spread JSCEAL Malware via Fake Cryptocurrency Trading Apps

    July 31, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.