LogGuardian is a command-line tool designed to help blue teams analyze logs and configuration files for security events and misconfigurations. It aims to provide quick insights into potential threats and insecure settings, helping to reduce the time to detection and mitigation.
- Analyze .exe, .dll, .bin, .elf, and other formats.
- Extract headers, strings, hashes (MD5, SHA1, SHA256).
- Enrich results with VirusTotal (optional), YARA, and known malware signatures.
- Supports log formats: syslog, auth.log, Windows Event Logs (EVTX), Apache/Nginx access logs, and custom JSON.
- Regex and rule-based parsing.
- Custom rules for detecting brute force, privilege escalation, and suspicious behavior.
- Integrates with threat feeds like AbuseIPDB, AlienVault OTX, and custom TI sources.
- Auto-correlates IPs, hashes, domains found in logs/binaries.
- IOC hunting with local cache for offline use.
- Real-time tailing and monitoring of logs.
- Alerts with color-coded output in CLI.
- Optional webhook/Slack notification integration.
- Recursively monitors directories for file changes.
- Detects added/modified binaries with signature mismatches.
- Supports custom scan policies for file integrity checks.
- Supports output formats: table, json, csv, html.
- Generates summary reports for each analysis session.
- Option to export reports to PDF (via CLI flag).
-
Clone the repository:
git clone [https://github.com/ubxroot/LogGuardian.git] cd logguardian pip install -r requirements.txt
-
Install dependencies:
pip install typer pip install -r requirements.txt
python logguardian.py analyze /var/log/auth.log --output-format table
python logguardian.py scan /samples/malware.exe --verbose
python logguardian.py analyze /logs/web.log --enable-ti
python logguardian.py monitor /var/log --rules rules.json
- logguardian/
- 🗂 core/ # Main engine modules
- 🗂 rules/ # Predefined and custom rule sets
- 🗂 reports/ # Output report files
- 🗂 examples/ # Sample logs and binaries
- 🗂 utils/ # Helper functions
- 🔍 logguardian.py # Entry point CLI
- 🔍 README.md
Platform
Supported
- Linux ✅
- Windows ✅
- MacOS ✅
- 📘 Full Wiki Documentation
- 📖 CLI Reference
- 🧪 Testing Scenarios
- LogGuardian is licensed under the MIT License. See the LICENSE file for more details.