Alien Parser is a powerful CLI tool designed for DFIR analysts and threat hunters to extract YARA match results from THOR JSON logs and convert them into clean, filterable CSV files for enhanced analysis and reporting.
- ✨ Extract YARA matches from THOR JSON logs
- 📊 Convert to CSV format for easy analysis in Excel/tools
- 🎯 Filter by score threshold to focus on high-priority matches
- 🔍 Filter by rule name for targeted investigation
- 📈 Generate summary reports with host statistics
- 🛡️ DFIR workflow optimized for incident response teams
Clean, intuitive command-line interface with helpful examples
-
Clone the repository:
git clone https://github.com/mzalzahrani/Alien-parser.git cd Alien-parser -
Requirements:
- Python 3.7 or higher
- Standard libraries only (json, csv, argparse)
python yaraconvert.py -i thor_log.json -o results.csv# Filter by minimum score
python yaraconvert.py -i thor_log.json -o high_priority.csv --min-score 80
# Filter by specific rule
python yaraconvert.py -i thor_log.json -o apt_matches.csv --rule-name "APT_Malware_Rule"
# Combine filters
python yaraconvert.py -i thor_log.json -o critical.csv --min-score 90 --rule-name "Critical_Rule"| Option | Description | Example |
|---|---|---|
-i, --input |
Input THOR JSON log file | -i malware_scan.json |
-o, --output |
Output CSV file path | -o results.csv |
--min-score |
Minimum rule score (0-100) | --min-score 75 |
--rule-name |
Filter by specific rule name | --rule-name "Backdoor_Detection" |
Clean, structured CSV with columns:
- Temporal data: Timestamp, hostname, scan ID
- File information: Path, hash values, metadata
- YARA details: Rule name, score, matched data
- Context: File permissions, owner, creation time
{
"hosts_count": 15,
"matches_count": 247,
"alert_lines": 1834,
"unique_hosts": ["workstation-01", "server-02", ...]
}- Incident Response: Quickly analyze THOR scan results
- Threat Hunting: Filter and correlate YARA matches
- Malware Analysis: Extract IOCs from detection logs
- Compliance Reporting: Generate clean reports for stakeholders
- Security Operations: Integrate with SIEM/SOAR platforms
- Run THOR scan on target systems
- Collect JSON logs from multiple hosts
- Process with Alien Parser to extract YARA matches
- Import CSV into analysis tools (Excel, Splunk, etc.)
- Investigate high-priority matches
- Generate reports for incident documentation
Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest enhancements.
This project is licensed under the MIT License - see the LICENSE file for details.
Mohamed Alzahrani
*Cybersecurity Recearher
🔗 Connect with me:
⭐ If this tool helps your DFIR workflow, please give it a star!
🛡️ Happy Hunting!
