From ff988fcb4897ff266916c5176ca6b74fb42253c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88nch?= Date: Sat, 20 Jan 2024 22:15:39 +0100 Subject: [PATCH] add azure asset count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick Münch --- extra/mondoo-asset-count.mql.yaml | 116 ++++++++++++++++++++++++++++-- 1 file changed, 112 insertions(+), 4 deletions(-) diff --git a/extra/mondoo-asset-count.mql.yaml b/extra/mondoo-asset-count.mql.yaml index 35acf34..2b4d145 100644 --- a/extra/mondoo-asset-count.mql.yaml +++ b/extra/mondoo-asset-count.mql.yaml @@ -4,7 +4,7 @@ packs: - uid: mondoo-asset-count name: Asset Count Query Pack - version: 1.1.0 + version: 1.2.0 license: BUSL-1.1 authors: - name: Mondoo, Inc @@ -24,7 +24,25 @@ packs: - title: Azure asset counts filters: asset.platform == 'azure' queries: - - uid: mondoo-asset-count-on-azure + - uid: mondoo-asset-count-azure-reource-groups + - uid: mondoo-asset-count-azure-vms + - uid: mondoo-asset-count-azure-subscription-name + - uid: mondoo-asset-count-azure-cosmosdb-accounts + - uid: mondoo-asset-count-azure-vaults + - uid: mondoo-asset-count-azure-mariaDb-servers + - uid: mondoo-asset-count-azure-mySql-servers + - uid: mondoo-asset-count-azure-postgreSql-servers + - uid: mondoo-asset-count-azure-application-gateways + - uid: mondoo-asset-count-azure-bastion-hosts + - uid: mondoo-asset-count-azure-firewalls + - uid: mondoo-asset-count-azure-loadbalancers + - uid: mondoo-asset-count-azure-natgateways + - uid: mondoo-asset-count-azure-public-addresses + - uid: mondoo-asset-count-azure-security-groups + - uid: mondoo-asset-count-azure-virtual-network-gateways + - uid: mondoo-asset-count-azure-virtual-networks + - uid: mondoo-asset-count-azure-aks-clusters + - uid: mondoo-asset-count-azure-aks-agent-pools - title: Windows Active Directory asset counts filters: asset.platform == "windows" queries: @@ -106,10 +124,100 @@ queries: mql: | vsphere.datacenters { vms.length } - - uid: mondoo-asset-count-on-azure + - uid: mondoo-asset-count-azure-reource-groups + title: Azure Resource Groups count + mql: | + azure.subscription.resourceGroups.length + + - uid: mondoo-asset-count-azure-vms title: Azure virtual machine count mql: | - azure.subscription.compute.vms.length + azure.subscription.computeService.vms.length + + - uid: mondoo-asset-count-azure-subscription-name + title: Azure subscription name + mql: | + azure.subscription.name + + - uid: mondoo-asset-count-azure-cosmosdb-accounts + title: Azure cosmosDB accounts + mql: | + azure.subscription.cosmosDb.accounts.length + + - uid: mondoo-asset-count-azure-vaults + title: Azure key vaults + mql: | + azure.subscription.keyVault.vaults.length + + - uid: mondoo-asset-count-azure-mariaDb-servers + title: Azure MariaDB servers + mql: | + azure.subscription.mariaDb.servers.length + + - uid: mondoo-asset-count-azure-mySql-servers + title: Azure MySQL servers + mql: | + azure.subscription.mySql.servers.length + + - uid: mondoo-asset-count-azure-postgreSql-servers + title: Azure PostgreSQL servers + mql: | + azure.subscription.postgreSql.servers.length + + - uid: mondoo-asset-count-azure-application-gateways + title: Azure Application Gateways + mql: | + azure.subscription.network.applicationGateways.length + + - uid: mondoo-asset-count-azure-bastion-hosts + title: Azure Bastion Hosts + mql: | + azure.subscription.network.bastionHosts.length + + - uid: mondoo-asset-count-azure-firewalls + title: Azure Firewalls + mql: | + azure.subscription.network.firewalls.length + + - uid: mondoo-asset-count-azure-loadbalancers + title: Azure Load Balancers + mql: | + azure.subscription.network.loadBalancers.length + + - uid: mondoo-asset-count-azure-natgateways + title: Azure NAT Gateways + mql: | + azure.subscription.network.natGateways.length + + - uid: mondoo-asset-count-azure-public-addresses + title: Azure Public Addresses + mql: | + azure.subscription.network.publicIpAddresses.length + + - uid: mondoo-asset-count-azure-security-groups + title: Azure Security Groups + mql: | + azure.subscription.network.securityGroups.length + + - uid: mondoo-asset-count-azure-virtual-network-gateways + title: Azure virtual Network Security Gateways + mql: | + azure.subscription.network.virtualNetworkGateways.length + + - uid: mondoo-asset-count-azure-virtual-networks + title: Azure virtual Networks + mql: | + azure.subscription.network.virtualNetworks.length + + - uid: mondoo-asset-count-azure-aks-clusters + title: Azure AKS Clusters + mql: | + azure.subscription.aks.clusters.length + + - uid: mondoo-asset-count-azure-aks-agent-pools + title: Azure AKS Cluster Agent Pool Count + mql: | + azure.subscription.aks.clusters { agentPoolProfiles.length } - uid: mondoo-count-users-in-entra-id title: Entra ID user count