Skip to content

Commit

Permalink
🧹 Lint the yaml and markdown files (#107)
Browse files Browse the repository at this point in the history
Minor linting from prettier

Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 authored Oct 12, 2023
1 parent 035dae0 commit 7e304df
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 85 deletions.
2 changes: 1 addition & 1 deletion community/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Community policies are primarily maintained by the community with support of the

## Contributing

We welcome all contributions. For more information on contributing to cnquery-packs, see our [Contributing](https://github.com/mondoohq/.github/blob/master/CONTRIBUTING.md) guide.
We welcome all contributions. For more information on contributing to cnquery-packs, see our [Contributing](https://github.com/mondoohq/.github/blob/master/CONTRIBUTING.md) guide.

### Join the community!

Expand Down
8 changes: 4 additions & 4 deletions core/mondoo-aws-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ packs:
mql: |
aws.account.id
- uid: mondoo-incident-response-aws-enabled-regions
title: Retrieve all regions enabled in the AWS account
docs:
title: Retrieve all regions enabled in the AWS account
docs:
desc: |
This query retrieves all AWS regions enabled in the account
mql: aws { regions }
Expand Down Expand Up @@ -158,7 +158,7 @@ packs:
}
- uid: mondoo-incident-response-aws-ec2-instances-without-tags
title: Retrieve EC2 instances that do not have tags configured
docs:
docs:
desc: |
This query retrieves all EC2 instances that do not have tags configured, along with the following fields:
Expand Down Expand Up @@ -205,4 +205,4 @@ packs:
encryption
tags
policy
}
}
8 changes: 4 additions & 4 deletions core/mondoo-aws-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ packs:
mql: |
aws.account.id
- uid: mondoo-asset-inventory-aws-enabled-regions
title: Retrieve all regions enabled in the AWS account
docs:
title: Retrieve all regions enabled in the AWS account
docs:
desc: |
This query retrieves all AWS regions enabled in the account
mql: aws { regions }
- uid: mondoo-asset-inventory-aws-vpcs
title: Retrieve data on all VPCs
docs:
docs:
desc: |
This query retrieves all of the configuration data for AWS VPCs
mql: aws.vpcs
Expand Down Expand Up @@ -96,4 +96,4 @@ packs:
mql: aws.acm.certificates
- uid: mondoo-asset-inventory-aws-cloudtrail-trails
title: Retrieve the configuration for all AWS CloudTrail trails
mql: aws.cloudtrail.trails
mql: aws.cloudtrail.trails
21 changes: 10 additions & 11 deletions core/mondoo-azure-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ packs:
docs:
desc: |
The Azure Asset Inventory by Mondoo query pack retrieves information about Azure subscriptions and resources for asset inventory.
filters:
asset.platform == "azure"
filters: asset.platform == "azure"
queries:
- uid: mondoo-asset-inventory-azure-subscription-id
title: Retrieve Azure subscription ID
Expand Down Expand Up @@ -78,20 +77,20 @@ packs:
desc: |
This query retrieves data for all databases in Azure SQL Database servers
mql: azure.subscription.sql.servers { databases }
- uid: mondoo-asset-inventory-azure-postgresql
title: Retrieve data for all Azure PostgreSQL servers
- uid: mondoo-asset-inventory-azure-postgresql
title: Retrieve data for all Azure PostgreSQL servers
docs:
desc: |
This query retrieves data for all PostgreSQL servers
mql: azure.subscription.postgreSql.servers
- uid: mondoo-asset-inventory-azure-postgresql-firewallrules
title: Retrieve data for all firewall rules in Azure PostgreSQL servers
- uid: mondoo-asset-inventory-azure-postgresql-firewallrules
title: Retrieve data for all firewall rules in Azure PostgreSQL servers
docs:
desc: |
This query retrieves data for all firewall rules in Azure PostgreSQL servers
mql: azure.subscription.postgreSql.servers { firewallRules }
- uid: mondoo-asset-inventory-azure-mysql
title: Retrieve data for all Azure MySQL servers
- uid: mondoo-asset-inventory-azure-mysql
title: Retrieve data for all Azure MySQL servers
docs:
desc: |
This query retrieves data for all Azure MySQL servers
Expand All @@ -102,8 +101,8 @@ packs:
desc: |
This query retrieves data for all Azure MariaDB servers
mql: azure.subscription.mariaDb.servers
- uid: mondoo-asset-inventory-azure-diagnosticSettings
title: Retrieve data for all Azure diagnostic settings
- uid: mondoo-asset-inventory-azure-diagnosticSettings
title: Retrieve data for all Azure diagnostic settings
docs:
desc: |
This query retrieves data for all diagnostic settings
Expand Down Expand Up @@ -215,4 +214,4 @@ packs:
docs:
desc: |
This query retrieves data for all resources inside the subscription
mql: azure.subscription.resources
mql: azure.subscription.resources
20 changes: 10 additions & 10 deletions core/mondoo-gcp-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,51 +47,51 @@ packs:
This query retrieves all roles defined for a GCP project
mql: gcp.project.iamPolicy { role }
- uid: mondoo-asset-inventory-gcp-enabled-services
title: Retrieve all services enabled in the GCP project
docs:
title: Retrieve all services enabled in the GCP project
docs:
desc: |
This query retrieves all services enabled in the GCP Project
mql: gcp.project.services.where( enabled == true )
- uid: mondoo-asset-inventory-gcp-gke-clusters-count
title: Retrieve count of GKE clusters in a GCP project
docs:
docs:
desc: |
This query retrieves a count of GKE clusters running in a GCP project
mql: gcp.project.gke.clusters.length
- uid: mondoo-asset-inventory-gcp-gke-clusters-data
title: Retrieve data on GKE clusters
docs:
docs:
desc: |
This query retrieves all of the configuration data for GKE clusters within a project
mql: gcp.project.gke.clusters
- uid: mondoo-asset-inventory-gcp-compute-instances-count
title: Retrieve a count of GCP compute instances in a GCP project
docs:
docs:
desc: |
This query retrieves a count of running GCP compute instances in a GCP project
mql: gcp.compute.instances.where( status == "RUNNING" ).length
- uid: mondoo-asset-inventory-gcp-compute-instances-data
title: Retrieve data from all running GCP compute instances in a GCP project
docs:
docs:
desc: |
This query retrieves the data for all running GCP compute instances in a GCP project
mql: gcp.compute.instances.where( status == "RUNNING" )
- uid: mondoo-asset-inventory-gcp-compute-instances-public
title: Retrieve data on public GCP Compute Engine instances
docs:
desc: |
This query retrieves the data for all GCP Compute Engine instances that have been configured with an external IP address.
This query retrieves the data for all GCP Compute Engine instances that have been configured with an external IP address.
mql: |
gcp.compute.instances.where( networkInterfaces[0]['accessConfigs'][0]['name'] == "External NAT" )
- uid: mondoo-asset-inventory-gcp-compute-networks-count
title: Retrieve a count of GCP Compute Engine networks in a GCP project
docs:
docs:
desc: |
This query retrieves a count of GCP Compute Engine networks configured in a GCP project
mql: gcp.compute.networks.length
- uid: mondoo-asset-inventory-gcp-compute-networks-data
title: Retrieve data for all GCP Compute Engine networks in a GCP project
docs:
docs:
desc: |
This query retrieves the data for all GCP Compute Engine networks configured in a GCP project.
mql: gcp.compute.networks
mql: gcp.compute.networks
18 changes: 9 additions & 9 deletions core/mondoo-github-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ packs:
mql: |
github.organization.description
- uid: mondoo-incident-response-github-org-mfa-status
title: Retrieve GitHub Organization MFA status
title: Retrieve GitHub Organization MFA status
docs:
desc: |
This query retrieves whether MFA is required for users of the organization.
mql: |
github.organization.twoFactorRequirementEnabled
github.organization.twoFactorRequirementEnabled
- uid: mondoo-incident-response-github-org-owners
title: Retrieve GitHub Organization Owners
docs:
desc: |
This query retrieves all GitHub organization owners.
This query retrieves all GitHub organization owners.
mql: |
github.organization.owners.length
github.organization { owners { name email login } }
- uid: mondoo-incident-response-github-org-members
title: Retrieve GitHub Organization Members
docs:
desc: |
This query retrieves all of the members of the GitHub organization.
This query retrieves all of the members of the GitHub organization.
mql: |
github.organization.members.length
github.organization {
Expand All @@ -75,12 +75,12 @@ packs:
email
id
}
}
}
- uid: mondoo-incident-response-github-org-teams
title: Retrieve GitHub Organization Teams
docs:
desc: |
This query retrieves all GitHub organization teams.
This query retrieves all GitHub organization teams.
mql: |
github.organization {
teams {
Expand All @@ -97,7 +97,7 @@ packs:
}
- uid: mondoo-incident-response-github-private-repos
title: Retrieve GitHub Organization private repositories
docs:
docs:
desc: |
This query retrieves all of the public repositories within the GitHub organization. The query returns the repo's name and whether the default branch is [protected](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches) using protection rules.
mql: |
Expand All @@ -111,7 +111,7 @@ packs:
}
- uid: mondoo-incident-response-github-packages
title: Retrieve GitHub Organization private repositories
docs:
docs:
desc: |
This query retrieves the packages published to GHCR.io.
mql: |
Expand All @@ -124,4 +124,4 @@ packs:
name
}
}
}
}
4 changes: 2 additions & 2 deletions core/mondoo-github-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ packs:
title: Number GitHub repository watchers
mql: github.repository.watchersCount
- uid: mondoo-github-inventory-repo-license
title: GitHub repository license
title: GitHub repository license
mql: github.repository.license.spdxId
- uid: mondoo-github-inventory-repo-default-branch
title: GitHub repo default branch
Expand Down Expand Up @@ -248,4 +248,4 @@ packs:
mql: github.repository.createdAt
- uid: mondoo-github-inventory-repo-updated-at
title: Updated at
mql: github.repository.updatedAt
mql: github.repository.updatedAt
5 changes: 2 additions & 3 deletions core/mondoo-kubernetes-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ packs:
## Join the community!
Our goal is to build query packs that are simple to deploy and provide accurate and useful data.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
groups:
- title: Cluster inventory
filters:
Expand Down Expand Up @@ -151,4 +151,3 @@ packs:
title: Retrieve Ingress information
mql: |
k8s.ingress { * }
2 changes: 1 addition & 1 deletion core/mondoo-linux-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ packs:
}
- uid: mondoo-linux-incident-response-mounts
title: Retrieve mounted devices
mql: mount.list { * }
mql: mount.list { * }
- uid: mondoo-linux-incident-response-listening-ports
title: Retrieve all listening ports
mql: |
Expand Down
10 changes: 5 additions & 5 deletions core/mondoo-linux-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ packs:
## Join the community!
Our goal is to build query packs that are simple to deploy and provide accurate and useful data.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
filters:
- asset.family.contains("linux")
queries:
Expand All @@ -46,8 +46,8 @@ packs:
- uid: mondoo-linux-platform
title: Retrieve the platform
mql: asset.platform
- uid: mondoo-linux-users
title: Retrieve regular users with shell access
- uid: mondoo-linux-users
title: Retrieve regular users with shell access
mql: users.where( shell != "/sbin/nologin" && uid >= 1000 && name != "root")
- uid: mondoo-linux-groups-wheel
title: Retrieve members of the wheel group
Expand Down Expand Up @@ -125,4 +125,4 @@ packs:
- uid: mondoo-linux-physical-memory
title: Retrieve the amount of physical memory
mql: |
command("free --mega | grep Mem | awk '{ print $2}'").stdout.trim + "M"
command("free --mega | grep Mem | awk '{ print $2}'").stdout.trim + "M"
16 changes: 8 additions & 8 deletions core/mondoo-macos-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ packs:
## Join the community!
Our goal is to build query packs that are simple to deploy and provide accurate and useful data.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
If you have any suggestions for improving this query pack, or if you need support, [join the Mondoo community](https://github.com/orgs/mondoohq/discussions) in GitHub Discussions.
filters:
- asset.platform.contains("macos")
queries:
Expand Down Expand Up @@ -67,18 +67,18 @@ packs:
- uid: mondoo-hostname
title: Retrieve the hostname
mql: os.hostname
- uid: mondoo-macos-users
title: Retrieve regular users
- uid: mondoo-macos-users
title: Retrieve regular users
mql: users.where( name != /^_/ && shell != "/usr/bin/false" && name != "root")
- uid: mondoo-macos-packages
title: Retrieve macOS packages
title: Retrieve macOS packages
mql: packages
- uid: mondoo-macos-running-services
title: Retrieve data on running services
mql: services.where( running == true )
- uid: mondoo-macos-ports-listening
title: Retrieve data on listening ports
mql: ports.listening
title: Retrieve data on listening ports
mql: ports.listening
- uid: mondoo-macos-interface-configuration
title: Retrieve interface configuration of the system
mql: command("ifconfig").stdout
mql: command("ifconfig").stdout
2 changes: 1 addition & 1 deletion core/mondoo-ssl-tls-certificate-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ packs:
expiresIn
notAfter
notBefore
}
}
6 changes: 3 additions & 3 deletions core/mondoo-vmware-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ packs:
## 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"
Expand All @@ -51,11 +51,11 @@ packs:
- uid: mondoo-vmware-incident-response-acceptance-level
title: Retrieve host acceptance level
docs:
desc: The host acceptance level determines which VIBs can be installed on a host.
desc: The host acceptance level determines which VIBs can be installed on a host.
mql: vsphere.host.acceptanceLevel
refs:
- title:
url: https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.upgrade.doc/GUID-27BBBAB8-01EA-4238-8140-1C3C3EFC0AA6.html
- uid: mondoo-vmware-incident-response-ntp-servers
title: Retrieve all configured NTP servers
mql: vsphere.host.ntp.server
mql: vsphere.host.ntp.server
Loading

0 comments on commit 7e304df

Please sign in to comment.