How socfortress/wazuh-rules works
This repository is a collection of Wazuh detection rules and integration scripts, not a standalone service. Its primary workflow is for a Wazuh deployment to use the rule files to detect events in ingested logs; selected integration scripts also query external security or threat-intelligence APIs and send enriched events to Wazuh. The README documents these roles, while sampled scripts show specific API and event-queue behavior. Relationships among unsampled rule families and integrations are therefore kept broad rather than inferred.
Main entry points: defender_for_endpoint_alerts.py Defender integration · custom-misp.py MISP enrichment · custom-opencti.py OpenCTI enrichment · custom-abuseipdb.py AbuseIPDB enrichment
Components 22
Detection rules
- Windows Sysmon rules
Windows_Sysmon - Linux Sysmon rules
Sysmon Linux - Chainsaw rules
Windows Chainsaw - Other detection rules
Yara
Endpoint integrations
- Osquery integration
Osquery - Defender integration
Office Defender/defender_for_endpoint_alerts.py - Trend Micro integration
Trend Micro/trendmicro.py - Active response scripts
Active Response/Windows
Threat intelligence
- MISP enrichment
MISP/custom-misp.py - OpenCTI enrichment
OpenCTI/custom-opencti.py - AbuseIPDB enrichment
AbuseIPDB/custom-abuseipdb.py - Domain statistics
Domain Stats/custom-dnsstats.py
Cloud and network
- Office 365 integration
Office 365/office_365.py - Suricata rules
Suricata - Packetbeat rules
Packetbeat - Network scanning
Nmap/nmap_scan.py
Other components
- Wazuh manager
- Security event sources
- Microsoft security APIs
- Threat intelligence APIs
- Trend Micro API
- DNS statistics service
Connections 23
- Security event sources → Wazuh manager: ingests events
README.md - Wazuh manager → Windows Sysmon rules: uses rules
README.md - Wazuh manager → Linux Sysmon rules: uses rules
README.md - Wazuh manager → Chainsaw rules: uses rules
README.md - Wazuh manager → Other detection rules: uses rules
README.md - Wazuh manager → Suricata rules: uses rules
README.md - Wazuh manager → Packetbeat rules: uses rules
README.md - Office 365 integration → Microsoft security APIs: requests activity
Office 365/office_365.py - Office 365 integration → Wazuh manager: sends events
Office 365/office_365.py - Defender integration → Microsoft security APIs: requests data
Office Defender/defender_for_endpoint_alerts.py - Defender integration → Wazuh manager: sends events
Office Defender/defender_for_endpoint_alerts.py - MISP enrichment → Threat intelligence APIs: queries indicators
MISP/custom-misp.py - MISP enrichment → Wazuh manager: sends enriched events
MISP/custom-misp.py - OpenCTI enrichment → Threat intelligence APIs: queries observables
OpenCTI/custom-opencti.py - OpenCTI enrichment → Wazuh manager: sends enriched events
OpenCTI/custom-opencti.py - AbuseIPDB enrichment → Threat intelligence APIs: checks IPs
AbuseIPDB/custom-abuseipdb.py - AbuseIPDB enrichment → Wazuh manager: sends enriched events
AbuseIPDB/custom-abuseipdb.py - Domain statistics → DNS statistics service: queries domains
Domain Stats/custom-dnsstats.py - Domain statistics → Wazuh manager: sends enriched events
Domain Stats/custom-dnsstats.py - Trend Micro integration → Trend Micro API: fetches alerts
Trend Micro/trendmicro.py - Network scanning → Wazuh manager: writes scan results
Nmap/nmap_scan.py - Osquery integration → Wazuh manager: provides integration
README.md - Active response scripts → Wazuh manager: provides responses
README.md