Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust query lsblk and crypsetup to get better output #166

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/mondoo-linux-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packs:
- uid: mondoo-linux-inventory
name: Linux Inventory Pack
version: 1.6.1
version: 1.7.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
Expand Down Expand Up @@ -152,14 +152,14 @@ packs:
asset.family.contains('linux')
packages.where(name == /xorg|xserver|wayland/i).any(installed)
mql: |
lsblk.list.where(fstype == /crypt/) {command('cryptsetup luksDump /dev/' + name).stdout}
lsblk.list.where(fstype == /crypt/) {parse.json(content: command('cryptsetup --dump-json-metadata luksDump /dev/' + name).stdout).params}
- uid: mondoo-linux-workstation-security-disk-encryption-metadata
title: Disk encryption metadata
filters: |
asset.family.contains('linux')
packages.where(name == /xorg|xserver|wayland/i).any(installed)
mql: |
command('lsblk').stdout
parse.json(content: command('lsblk --json').stdout).params
- uid: mondoo-linux-logged-in-users
title: Logged-in users
mql: command('users').stdout
mql: command('w -h').stdout
4 changes: 2 additions & 2 deletions core/mondoo-macos-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packs:
- uid: mondoo-macos-inventory
name: macOS Inventory Pack
version: 1.5.0
version: 1.6.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
Expand Down Expand Up @@ -131,7 +131,7 @@ packs:
parse.json(content: command('system_profiler SPConfigurationProfileDataType -json').stdout).params
- uid: mondoo-macos-logged-in-users
title: Logged-in users
mql: command('users').stdout
mql: command('w -h').stdout
- uid: mondoo-macos-system-extensions
title: macOS System Extensions
mql: macos.systemExtensions { active enabled identifier state version }
Loading