Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apophis-Detection

A repository of YARA rules and configuration extractors for detecting and analyzing malware families.

About

This project provides detection signatures and config-parsing tools to help defenders, DFIR analysts, and threat researchers identify and extract configuration data from known malware families.

Each malware family lives in its own directory containing a YARA rule and, where available, a Python configuration extractor with sample output.

Covered Malware Families

Family YARA Rule Config Extractor Notes
44CALIBER 44caliber.yara .NET credential stealer with Discord webhook exfiltration
AlmondRAT almondrat.yara .NET RAT with system-info collection and file exfiltration
ArrowRAT ArrowRAT.yara RAT with hVNC (hidden desktop) capability
gh0stRAT gh0stRAT.yara Classic C++ RAT; rule covers multiple variants
LimeRAT LimeRAT.yara limeRAT_config.py .NET RAT; extractor decrypts the AES-encrypted config (sample output)
RunningRAT runningrat.yara RAT using reversed API strings for obfuscation
SparkRAT sparkrat.yara sparkrat_config.py Go-based cross-platform RAT; extractor decrypts the AES-CTR config blob

Every rule includes a SHA-256 reference hash of the sample it was written against in its meta section.

Usage

Scanning with YARA

Install YARA, then scan a file or directory:

# Scan with a single rule
# Scan a directory recursively with all rules

Config Extractors

The extractors decrypt and parse the embedded C2 configuration from unpacked samples.

Malware_family:

python malware_config.py <unpacked_sample>

Repository Structure

<family>/
├── <family>.yara          # YARA detection rule
├── <family>_config.py     # Config extractor (where available)
└── config_poc.*           # Example extractor output (where available)

Contributing

Contributions are welcome. When adding a new family, please:

  1. Create a directory named after the family.
  2. Include a YARA rule with description, Reference (sample SHA-256), author, and date in the meta section.
  3. Test the rule against known samples to minimize false positives.
  4. Optionally include a config extractor and proof-of-concept output.

Disclaimer

This repository is intended for detection engineering, threat research, and defensive purposes only. It does not host functional malware samples. Users are responsible for complying with applicable laws and their organization's policies when using these signatures and tools.

License

MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Repository of Yara Rules & Config Extractors

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages