SEC‐350 Project 1 OSQuery - ConnorEast/Tech-Journal GitHub Wiki
- Explain OSQuery from a high level
- Install OSQuery [Linux &OR Windows]
- Intergrate OSQuery and Wazuh
- Demonstrate live intergration between Wazuh and OSQuery
- Pros & Cons of Tool Intergration
System | Command | Purpose / image |
---|---|---|
[FW01](configure) | delete firewall name DMZ-to-WAN rule 999 disable | |
[WEB01](cli) | yum install yum-utils | |
[WEB01](cli) | curl -L https://pkg.osquery.io/rpm/GPG | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-osquery | |
[WEB01](cli) | sudo yum-config-manager --add-repo https://pkg.osquery.io/rpm/osquery-s3-rpm.repo | |
[WEB01](cli) | sudo yum-config-manager --enable osquery-s3-rpm-repo | |
[WEB01](cli) | sudo yum install osquery | |
[FW01](configure) | set firewall name DMZ-to-WAN rule 999 disable | |
[WEB01](cli) | sudo cp /opt/osquery/share/osquery/osquery.example.conf /etc/osquery.conf | |
[WEB01](cli) | sudo systemctl start osqueryd | |
[WEB01](cli) | sudo systemctl status osqueryd |

System | Command | Purpose / image |
---|---|---|
[Web01](osquery>) | osqueryi --verbose | |
[Web01](osquery>) | Select Distinct |
![]() |
[Web01](osquery>) | Select * From Uptime |
![]() |
[Web01](osquery>) | select count(*) from users; |
![]() |
[Web01](osquery>) |
|
![]() |
[Web01](osquery>) |
|
![]() |
Device | Command | Purpose / Image |
---|---|---|
[Web01](CLI) | systemctl enable osqueryd | |
[Wazuh](WT) |
|
![]() |
Add the following contents to the agent.conf file |
![]() |
|
[Web01](CLI) | vi /etc/osquery/osquery.conf |
![]() |
- https://osquery.io/downloads/official/5.15.0
- https://osquery.readthedocs.io/en/stable/installation/install-linux/
- Osquery commands testing
- Raj Bhatta Linkedin