HELK
HELK copied to clipboard
Ingesting AlientVault OTX TI feeds to HELK
What is this PR for? Able to get more detection for your organization. What type of PR is it? [Feature Request]
How should this be tested?
Download and configuration file for integrating OTX Data with HELK
Install OTX python module and Download TI feeds
Install OTX python module with pip install OTXv2 (in your local server, not in docker). For more information please go, https://github.com/AlienVault-OTX/OTX-Python-SDK.
Place helkOTX.py to /HELK/docker/helk-logstash/enrichments/cti/ folder.(in your local server, not in docker). Since HELK already mounted with your local system on helk-logstash/enrichments/cti folder.
Run helkOTX.py with python helkOTX.py.
After running the python script, you will find these CSV files.
- otx_domain_.csv
- otx_ipv4_.csv
- otx_md5_.csv
- otx_sha1_.csv
- otx_sha256_.csv
Install pandas
pip install pandas
Configuring SYSMON logstash file
Replace 1531-winevent-sysmon-filter.conf in /HELK/docker/helk-logstash/pipeline/ folder.
After replacing 1531-winevent-sysmon-filter.conf file restart the helk-logstash with docker restart helk-logstash.
Then refresh the index fields in Kibana (Management -> Index pattern -> refresh) .
Then browse some ips or domains which is included in otx_domain_.csv and otx_ipv4_.csv file. After that you can search using ti.DestinationIP.otx:* or ti.Domain.otx:* .
Configuration Details
To fetch destination IP that is event id 3 with Alienvault OTX, TI feeds.
translate {
field => "[dst_ip_addr]"
destination => "[ti][DestinationIP][otx]"
dictionary_path => '/usr/share/logstash/cti/AlientVault/OTX-Python-SDK/HELK_IOC/otx_ipv4_.csv'
}
To fetch destination domain that is event id 22 with Alienvault OTX, TI feeds.
if [dns_query_name] {
translate {
field => "[dns_query_name]"
destination => "[ti][Domain][otx]"
dictionary_path => '/usr/share/logstash/cti/AlientVault/OTX-Python-SDK/test/otx_domain_.csv'
}
}
To fetch file checksum(SHA256) with Alienvault OTX, TI feeds.
if [hash_sha256] {
translate {
field => "[hash_sha256]"
destination => "[ti][SHA256][otx]"
dictionary_path => '/usr/share/logstash/cti/AlientVault/OTX-Python-SDK/HELK_IOC/otx_sha256_.csv'
}
To fetch file checksum(MD5) with Alienvault OTX, TI feeds.
if [hash_md5] {
translate {
field => "[hash_md5]"
destination => "[ti][MD5][otx]"
dictionary_path => '/usr/share/logstash/cti/AlientVault/OTX-Python-SDK/HELK_IOC/otx_md5_.csv'
}
**Questions:**
* Do the licenses files need update? No
* Are there breaking changes for older versions? No
* Does this needs documentation? Yes