For the lastest installation instructions for this repo please see this blog post: IR TALES: THE QUEST FOR THE HOLY SIEM: ELASTIC STACK + SYSMON + OSQUERY
WARNING
This Ansible playbook will allocate half of the systems memory to Elasticsearch. For example, if a machine has 16GBs of memory, 8GBs of memory will be allocated to Elasticsearch.
WARNING
vim macos-workshop/ChooseYourSIEMAdventure/hosts.ini
and add the Elastic server IP address under[elastic]
vim macos-workshop/ChooseYourSIEMAdventure/group_vars/all.yml
and set:base_domain
–<external_domain - group_vars/all.yml>
timezone
– OPTIONAL – The default timezone is UTC+0siem_username
– Ignore this settingsiem_password
– Ignore this settingvim macos-workshop/ChooseYourSIEMAdventure/group_vars/elastic.yml
and set:hostname
– Set the desired hostname for the serverelastic_repo_version
– Change the repo version to install the Elastic stack – best to leave as defaultelastic_version
– Set the version of the Elastic stack to install
- SSH into Elastic EC2 instance
sudo su
apt install certbot python3-certbot-nginx -y
certbot --nginx -d elastic.<external domain>
- Enter the e-mail for the admin of the domain
- Enter
A
for Terms of Service - Enter
N
to share e-mail with EFF - Enter
2
to redirect HTTP traffic to HTTPS - Review NGINX config:
/etc/nginx/conf.d/kibana.conf
systemctl restart nginx
- Open browser to
https://elastic.<external domain>
and login - Enter
elastic
for username - Enter
<ealstic user password generated during Ansible playbook - cat /tmp/elasticsearch-setup-passwords.txt>
- Settings > Management > Stack Management
- Security > Users
- Select "Create user" in the top-right
- Enter
threathunter
into username - Enter
threathunter
into full name - Leave e-mail blank
- Enter a password for the user
- Select
viewer
for roles - Select "Create user"
- Open browser to
https://elastic.<external domain>
and login - Enter
elastic
for username - Enter
<ealstic user password generated during Ansible playbook - cat /tmp/elasticsearch-setup-passwords.txt>
- Settings > Management > Stack Management
- Kibana > Index patterns
- Select "Create index patterns" in the top-right
- Define an index pattern
1. Enter
osquery-*
into index pattern name 1. - Configure settings
1. Select
@timestamp
for Time field - Select "Create index pattern"
- Repeat for
sysmon
andtest