OSQuery is an open-source endpoint security tool that allows users to query their operating systems using SQL-like syntax. It provides a unified interface to gather insights into various aspects of system information, logs, and configuration. OSQuery is commonly used for security monitoring, compliance, and investigative purposes across different operating systems, including Linux, macOS, and Windows.