Skip to main content

What Is osquery?

osquery is an open-source endpoint telemetry framework originally developed by Facebook (Meta). It exposes operating system data as SQL tables, allowing security teams to query running processes, network connections, file hashes, and system configurations using standard SQL syntax.

Use Cases

SQL-based endpoint telemetry collection, threat hunting, and compliance auditing across fleet endpoints.

Strengths and Limitations

Strengths

  • +SQL-based queries explore operating system data such as users, processes, and listening ports.
  • +Cross-platform support for Linux, macOS, and Windows from a single agent.
  • +Fleet management projects such as Fleet and Zentral build on osquery.

Limitations

  • -Most tables are generated at query time; continuous event auditing must be enabled per source and can affect host performance.
  • -Fleet-wide distributed queries require a separate server that implements the remote settings API, such as Fleet or Zentral.

Defensive Use

Fleet-wide endpoint visibility, threat hunting, and configuration compliance auditing via SQL queries.

osquery Alternatives

3 tools
ToolPricing
Fleet

Open device management and osquery fleet platform for querying and managing endpoints.

Free / Commercial
Velociraptor

Endpoint visibility and digital forensics tool using VQL queries to collect system artifacts and hunt threats across hosts.

Open Source
Wazuh

Open-source SIEM and XDR platform providing endpoint monitoring, log analysis, file integrity checks, and threat detection.

Free / Commercial

Frequently Asked Questions

What is osquery?→

osquery is an open-source endpoint telemetry framework originally developed by Facebook (Meta). It exposes operating system data as SQL tables, allowing security teams to query running processes, network connections, file hashes, and system configurations using standard SQL syntax.

What is osquery used for?→

SQL-based endpoint telemetry collection, threat hunting, and compliance auditing across fleet endpoints.

What are the strengths of osquery?→
  • +SQL-based queries explore operating system data such as users, processes, and listening ports.
  • +Cross-platform support for Linux, macOS, and Windows from a single agent.
  • +Fleet management projects such as Fleet and Zentral build on osquery.
What are the limitations of osquery?→
  • +Most tables are generated at query time; continuous event auditing must be enabled per source and can affect host performance.
  • +Fleet-wide distributed queries require a separate server that implements the remote settings API, such as Fleet or Zentral.
How is osquery used defensively?→

Fleet-wide endpoint visibility, threat hunting, and configuration compliance auditing via SQL queries.