Skip to content

Instantly share code, notes, and snippets.

@jamesspi
Created March 30, 2024 21:18
Show Gist options
  • Save jamesspi/5cb060b5e0e2d43222a71c876b56daab to your computer and use it in GitHub Desktop.
Save jamesspi/5cb060b5e0e2d43222a71c876b56daab to your computer and use it in GitHub Desktop.
OSQuery To Check for XZ and liblzma - macOS
SELECT 'Homebrew Package' AS source, name, version,
CASE
WHEN version LIKE '5.6.0%' OR version LIKE '5.6.1%' THEN 'Potentially Vulnerable'
ELSE 'Most likely not vulnerable'
END AS status
FROM homebrew_packages
WHERE name = 'xz' OR name = 'liblzma';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment