# osquery

Query operating-system state with SQL: inspect processes, network connections, users and file hashes through an interactive shell or a scheduled monitoring daemon.

> This is the Markdown version of the osquery page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/osquery>

- **Latest version**: `5.24.1`
- **Developer**: osquery project contributors
- **Homepage**: <https://osquery.io/>
- **Categories**: [Utilities](https://opennavo.com/categories/utilities)
- **Install**: `brew install --cask osquery`
- **30-day installs**: 247
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://github.com/osquery/osquery/releases/download/5.24.1/osquery-5.24.1.pkg>
- **SHA-256**: `950cc119f68c4d292f3e9407171205633e7174e13fc14ab593f48c75d907bd4f`
- **Installer packages**: osquery-5.24.1.pkg

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "launchctl": "com.facebook.osqueryd",
          "pkgutil": [
            "com.facebook.osquery",
            "io.osquery.agent"
          ]
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "pkg": [
        "osquery-5.24.1.pkg"
      ]
    },
    "phase": "install",
    "sources": [
      "osquery-5.24.1.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "zap": []
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## About

osquery is an open-source operating-system instrumentation, monitoring and analytics framework for macOS, Linux and Windows. It exposes system information as relational tables that can be queried with SQL, rather than presenting a standalone graphical Mac application.

### Explore a Mac with SQL
Tables cover concepts such as running processes, network connections, browser plugins, hardware events and file hashes. The official README demonstrates listing users, identifying processes with deleted executables, joining processes to listening ports, and inspecting macOS LaunchDaemons. Available tables and permissions vary by operating system.

### Interactive queries and scheduled monitoring
The osqueryi shell runs standalone without communicating with a daemon. It can prototype queries and inspect the current machine; some tables return fewer results without administrator privileges. The shell supports JSON and CSV output. The osqueryd daemon schedules queries to monitor operating-system state across hosts, while extensions and APIs support integration. Third-party fleet managers are separate products and are not endorsed or tested by the osquery project.

### Installation and version scope
The Homebrew cask installs the official macOS PKG, not a GUI app bundle. This catalog's latest three recorded versions are 5.24.0, 5.23.1 and 5.23.0. Their notes preserve official upstream release content and distinguish macOS changes from Linux and Windows changes. Consult the official schema and installation documentation before deploying queries or a daemon.

### Sources
- https://github.com/osquery/osquery
- https://osquery.readthedocs.io/en/stable/introduction/using-osqueryi/
- https://osquery.io/schema/
- https://osquery.io/downloads/
- https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 5.24.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · Checked 2026-11-23
  - <https://github.com/osquery/osquery/releases/download/5.24.1/osquery-5.24.1.pkg>
  - SHA-256: `950cc119f68c4d292f3e9407171205633e7174e13fc14ab593f48c75d907bd4f`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 5.24.1 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · Checked 2026-11-23
  - <https://github.com/osquery/osquery/releases/download/5.24.1/osquery-5.24.1.pkg>
  - SHA-256: `950cc119f68c4d292f3e9407171205633e7174e13fc14ab593f48c75d907bd4f`

## Uninstall

- `brew uninstall --cask osquery`

A regular uninstall removes the app and keeps its settings and caches.

### Uninstalling also removes

- Background services (launchctl): `com.facebook.osqueryd` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · These entries come from the Homebrew definition, checked 2026-11-23. They say what it declares, not what is on your Mac.
- Installer receipts (pkgutil): `com.facebook.osquery` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · These entries come from the Homebrew definition, checked 2026-11-23. They say what it declares, not what is on your Mac.
- Installer receipts (pkgutil): `io.osquery.agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · These entries come from the Homebrew definition, checked 2026-11-23. They say what it declares, not what is on your Mac.

## Latest release notes

### 5.24.1 (2026-10-29)

Security and bug-fix release that restores BPF tables removed in 5.24.0 and hardens certificate, TLS and package handling.

osquery 5.24.1 was released on October 29, 2026. This is a security and bug-fix release that restores BPF tables removed in 5.24.0 and hardens certificate, TLS and package handling.

Security:
- Updated the Mozilla CA certificate bundle and removed eMudhra certificates.
- Added _FORTIFY_SOURCE plus CET/BTI on Linux and explicit Windows mitigations.
- Disabled TLS 1.0 and 1.1 in curl_certificate and in the OpenSSL build.
- Limited the size of decompressed JetBrains plugin metadata.
- Disabled shell command macro expansion in librpm.
- Fixed bounds checks and traversal for package BOM paths.
- Corrected the prefetch validation size check.
- Guarded against npos when joining arguments in parseProcCmdline.
- Guarded against truncated drive fields.
- Checked registry value size before decoding fixed-width types.

Bug fixes:
- Restored BPF tables removed in 5.24.0.
- Fixed chrome_extensions state for modern Chromium profiles.
- Fixed Linux Audit argument reconstruction.
- Fixed an out-of-bounds read when comparing an empty path in PathSet.
- Fixed TLS connection reuse.
- Returned the full result string from the carve() SQL function.
- Added a timeout around statfs() to handle hung filesystems.
- Kept host and instance UUIDs stable when the database is reset.
- Recorded query performance when numeric monitoring is enabled.
- Registered all foreign table specs with --enable_foreign.

[osquery 5.24.1 release](https://github.com/osquery/osquery/releases/tag/5.24.1).

## Facts and sources

- <https://opennavo.com/apps/osquery>
- <https://opennavo.com/apps/osquery/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/osquery.rb> · Checked 2026-11-23
- <https://formulae.brew.sh/cask/osquery>
