TO test this deployment on a local VM and ingest logs into the SIEMS you NEED
to ensure that host machine is connected to jumpbox/VM. If you jsut want to test the logging locally then you can skip setting up the VPN.
- Copy OpenVPN to VM
brew install openvpn-connect
- Open OpenVPN connect app
- Import OpenVPN config
- Enter OpenVPN client password from Google sheet
- Run Ansible playbook
aws ec2 allocate-hosts --instance-type mac1.metal --availability-zone <availabilityZone - terraform/variables.tf> --auto-placement on --quantity 3 --region <availabilityZone - terraform/variables.tf - leave AZ off>
vim terraform/variables.tf
scroll down tomacos_dedicated_hosts
section
git clone git@github.com:OTRF/macos-workshop
cd macos-workshop
vim host.ini
and append the macOS IP address under[macos_clients]
ansible-playbook -i hosts.ini deploy_macos_clients.yml -u threathunter -K
- Enter password
- Open Finder
- Select "GO" at the top then "Go to Folder..."
- Enter
/usr/local/bin
- Find
osqueryd
binary
- Enter
- Open System preference panel
- Security & privacy > Prinvacy > Full Disk Access
launchctl unload /Library/LaunchDaemons/com.facebook.osqueryd.plist
- Stop Osqueryd service
launchctl load /Library/LaunchDaemons/com.facebook.osqueryd.plist
- Start Osqueryd service
filebeat test output -c /etc/filebeat/filebeat.yml
kafkacat -C -b 172.16.50.10:9092 -t osquery -C
- SSH into machine as
ec2-user
sudo su
sudo /usr/bin/dscl . -passwd /Users/<username> <password>
sudo rm -r /Users/<username>/Library/Keychains/*
- Avoid Ansible command warning
- Create target directory when extracting tarball
- Mac OS/X won't let me mkdir /usr/share/tomcat6, even as root
- Deploying Filebeat on MacOS X
- Filebeat quick start: installation and configuration
- Directory layout
- community.general.launchd – Manage macOS services
- IMPLEMENTING LOGSTASH AND FILEBEAT WITH MUTUAL TLS (MTLS)
- Filebeat - test command
- Github - palantir/osquery-configuration
- OPERATION CLEANUP: ERADICATING MALWARE WITH OSQUERY AND KOLIDE
- Installing .pkg with terminal ?
- Auditing with osquery: Part Two — Configuration and Implementation
- community.general.launchd – Manage macOS services
- osquery-configuration/Classic/Endpoints/MacOS/osquery_no_tls.flags
- Installing on macOS
- Deploying Osquery Part 2 - The basics, cont.
- osquery-configuration/Classic/Servers/Linux/osquery.flags