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

add vmware inventory pack #155

Merged
merged 2 commits into from
Jul 23, 2024
Merged
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
101 changes: 101 additions & 0 deletions core/mondoo-vmware-inventory.mql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1

packs:
- uid: mondoo-vmware-asset-inventory
name: VMware Asset Inventory Pack
version: 1.0.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
email: hello@mondoo.com
tags:
mondoo.com/platform: vmware,vmware-esxi
mondoo.com/category: security
docs:
desc: |
## Overview

VMware vCenter Asset Inventory Pack by Mondoo retrieves data about vCenter and its ESXi hosts.

### Run query pack

To run this query pack against VMware vCenter:

```bash
cnquery scan vsphere user@domain.local@192.168.5.24 --ask-pass -f core/mondoo-vmware-inventory.mql.yaml
```

## Join the community!

Our goal is to build policies that are simple to deploy, accurate, and actionable.

If you have any suggestions for improving this policy, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
filters: asset.platform == "vmware-esxi" || asset.platform == "vmware-vsphere"
queries:
- uid: mondoo-vmware-asset-inventory-vcenter-datacenters
title: VMware vSphere Datacenters
filters: asset.platform == "vmware-vsphere"
mql: |
vsphere.datacenters { name }
- uid: mondoo-vmware-asset-inventory-vcenter-clusters
title: VMware vSphere Clusters per Datacenter
filters: asset.platform == "vmware-vsphere"
mql: |
vsphere.datacenters { clusters }
- uid: mondoo-vmware-asset-inventory-vcenter-vms
title: VMware vSphere VMs per Datacenters
filters: asset.platform == "vmware-vsphere"
mql: |
vsphere.datacenters { vms }
- uid: mondoo-vmware-asset-inventory-esxi-kernel-modules
title: VMware ESXi Kernel modules
filters: asset.platform == "vmware-esxi"
mql: |
vsphere.host.kernelModules
- uid: mondoo-vmware-asset-inventory-esxi-installed-packages
title: VMware ESXi Installed packages
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.packages
- uid: mondoo-vmware-asset-inventory-esxi-services
title: VMware ESXi Services
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.services
- uid: mondoo-vmware-asset-inventory-esxi-acceptance-level
title: VMware ESXi Acceptance Level
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.acceptanceLevel
- uid: mondoo-vmware-asset-inventory-esxi-ntp-server
title: VMware ESXi NTP servers
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.ntp.server
- uid: mondoo-vmware-asset-inventory-esxi-ntp-config
title: VMware ESXi NTP configuration
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.ntp.config
- uid: mondoo-vmware-asset-inventory-esxi-fileSystemVolume
title: VMware ESXi File System Volume
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.properties["config"]["fileSystemVolume"]
- uid: mondoo-vmware-asset-inventory-esxi-firewall
title: VMware ESXi Firewall
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.properties["config"]["firewall"]
- uid: mondoo-vmware-asset-inventory-esxi-adapters
title: VMware ESXi Physical Adapters
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.adapters
- uid: mondoo-vmware-asset-inventory-esxi-standardSwitch
title: VMware ESXi Standard vSwitch
filters: asset.platform == "vmware-esxi"
mql: |
esxi.host.standardSwitch

Loading