Track Awesome Malware Persistence Updates Daily
A curated list of awesome malware persistence tools and resources.
🏠 Home · 🔍 Search · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 Karneades/awesome-malware-persistence · ⭐ 188 · 🏷️ Security
Dec 03, 2024
Techniques / Linux
- Linux LKM Persistence - Rootkit leveraging Linux loadable kernel module (LKM).
Detection Testing / Linux
- Diamorphine (⭐1.9k) - A loadable kernel module (LKM) rootkit for Linux Kernels (x86/x86_64 and ARM64).
Aug 26, 2024
Techniques / Linux
- PANIX - Persistence Against *NIX - Features (⭐448) - List of persistence techniques.
- Linux Detection Engineering - A primer on persistence mechanisms - List of Linux persistence mechanisms.
Techniques / Cloud
- Persisting on Entra ID applications and User Managed Identities with Federated Credentials - Persist on Entra ID applications and User Managed Identities with Federated Credentials.
Detection Testing / Linux
- PANIX (⭐448) - A highly customizable Linux persistence tool. Perform various persistence techniques against Linux systems, among others Debian and RHEL.
Jul 11, 2024
Techniques / Cloud
- Shadow Linking: The Persistence Vector of SaaS Identity Threat - Abuse of additional identity providers to persist in an environment.
Mar 19, 2023
Collection / Linux
- Linux Security and Monitoring Scripts (⭐318) - Security and monitoring scripts you can use to monitor your Linux installation for security-related events or for an investigation. Among other finding systemd unit files used for malware persistence.
Mar 06, 2023
Techniques / Linux
- Linux Persistence Techniques - List of persistence techniques.
- Linux Red Team Persistence Techniques - List of persistence techniques.
- ebpfkit (⭐764) - Rootkit leveraging eBPF.
- TripleCross (⭐1.8k) - Rootkit leveraging eBPF.
Feb 19, 2023
Techniques / macOS
- PoisonApple (⭐221) - Learn about various macOS persistence techniques by looking at the source code of PoisonApple.
Feb 16, 2023
Detection Testing / macOS
- PoisonApple (⭐221) - Perform various persistence techniques on macOS.
Jan 26, 2023
Collection / Windows
- PersistenceSniper (⭐1.9k) - Powershell module to hunt for persistence implanted in Windows machines.
Feb 16, 2022
Techniques / Firmware
- MoonBounce: the dark side of UEFI firmware - An in-depth write up about one particular UEFI bootkit.
Feb 15, 2022
Techniques / Generic
- forensic artifact repository (⭐1.1k) - Forensic artifact repository covers persistence techniques in their artifacts.
Techniques / macOS
- theevilbit's series "Beyond the good ol' LaunchAgents" - List of macOS persistence beyond just the LaunchDaemons or LaunchAgents.
- KnockKnock (⭐458) - A persistence detection tool for macOS to scan for persistence mechanisms on macOS. Specific persistence locations are found in the plugins (⭐458) folder, e.g. LaunchItems (⭐458) or StartupScripts (⭐458).
- How malware persists on macOS - List of macOS persistence mechanisms.
Techniques / Windows
- Hexacorn's blog - Hexacorn's blog category for persistence category including the series "Beyond good ol' Run key".
- Autoruns - You can learn which Windows persistence mechanisms are checked by looking at the output of Autoruns on your own client. Categories and the different locations where things were found are seen in the output. A disassembly of Autoruns lists a subset of the entries which are scanned.
- PowerShell implementation of Autoruns (⭐257) - Another way to find Windows persistence locations is to look at the source code of the PowerShell version of Autoruns. Bonus: A history of the covered persistence locations for each Autoruns version is found at the end of the module file too, which is so awesome!
- Common malware persistence mechanisms - Different persistence mechanisms for different vectors are described.
- Malware persistence techniques - Good summary of multiple persistence mechanisms, ranging from multiple registry keys to more advanced one, like COM hijacking.
- Detecting & Removing an Attacker's WMI Persistence - Blog post about detecting and removing WMI persistence.
- Untangling Kovter's persistence methods - Blog post about Kovter's persistens methos, among others, hiding in registry. Another one is Threat Spotlight: Kovter Malware Fileless Persistence Mechanism.
Detection Testing / Windows
- hasherezade persistence demos (⭐219) - Various (also non standard) persistence methods used by malware for testing own detection, among others COM hijacking demo is found in the repo.
Prevention / macOS
- BlockBlock (⭐647) - A tool which provides continual protection by monitoring persistence locations and protects them accordingly. Similar to KnockKnock but for blocking.
Collection / macOS
- KnockKnock - A tool to uncover persistently installed software in order to generically reveal such malware. See GitHub repository too for the source code (⭐458).
- Dylib Hijack Scanner or DHS - A simple utility that will scan your computer for applications that are either susceptible to dylib hijacking or have been hijacked. See GitHub repository too for the source code (⭐82).
Collection / Windows
- Autoruns - A powerful persistence collection tool on Windows is Autoruns. It collects different categories and persistence information from a live system and in limited ways from offline images. There is a UI and a command line program and the output format can be set to CSV which can then be imported into your log collection system of choice.
- AutorunsToWinEventLog.ps1 (⭐1.2k) - Instead of using CSV output and copy these file to the server, you can use the AutorunsToWinEventLog script to convert the Autoruns output to Windows event logs and rely on standard Windows event log forwarding.
- RegRipper - Extracts various persistence mechanisms from the registry files directly.
- RECmd (⭐133) - Extract various persistence mechanisms, e.g. by using the config file UserClassesASEPs (⭐133) to extract user's CLSID information.
Feb 14, 2022
Techniques / Generic
- MITRE ATT&CK tactic "TA0003 - Persistence" - MITRE ATT&CK tactic "TA0003 - Persistence".
- Sigma rules (⭐8.4k) - Sigma rules which covers persistence techniques. You can even use filters such as
--filter tag=attack.persistence
or specifically for one techniquetag=attack.t1084
.
Techniques / Linux
- Linux Malware Persistence with Cron - Blog post about linux persistence using cron jobs.
Techniques / Windows
- Windows Persistence using WinLogon - Blog post about abusing WinLogon.
- Persistence using GlobalFlags in Image File Execution Options – Hidden from Autoruns.exe - Blog post about abusing GlobalFlag for process execution.
- Uncovering a MyKings Variant With Bootloader Persistence via Managed Detection and Response - Blog post about bootloader persistence.
- Various blog posts about COM/CLSID hijacking
- Hunting for persistence via Microsoft Exchange Server or Outlook - Blog post about Microsoft Exchange server persistence.
Persistence Removal / Generic
- Awesome Incident Response (⭐7.7k) - Use the tools and resources for security incident response, aimed to help security analysts and DFIR teams.
Persistence Removal / Windows
- PowerSponse (⭐38) - PowerSponse includes various commands for cleanup of persistence mechanisms.
- Removing Backdoors – Powershell Empire Edition - Various blog posts handle the removal of WMI implants.
- RegDelNull - Removal of registry keys with null bytes - used e.g. in run keys for evasion.
Detection Testing / Generic
- Atomic Red Team (⭐9.8k) - Atomic Red Team supports also the MITRE ATT&CK persistence techniques, see e.g. T1044 "File System Permissions Weakness" (⭐9.8k).
Collection / Generic
- Awesome Forensics (⭐4k) - Use the tools from this list which includes awesome free (mostly open source) forensic analysis tools and resources. They help collecting the persistence mechanisms at scale, e.g. by using remote forensics tools.
- osquery - Query persistence mechanisms on clients.
- OSSEC (⭐4.5k) - Use rules and logs from the HIDS to detection configuration changes.
Collection / Windows
- PowerShell Autoruns (⭐257) - A PowerShell version of Autoruns.
- KAPE - The tool allows collecting various predefined artifactgs using targets and modules, see KapeFiles (⭐662) which include persistence mechanisms, among others there's a collection of LNK files (⭐662), scheduled task files (⭐662) and scheduled task listing (⭐662) or a WMI repository auditing (⭐662) module.