MQL Reference
MQL is a lightweight, ultra-fast query language purpose-built for:
- Searching and filtering infrastructure configuration data
- Making checks about infrastructure configuration
- Building security policies
For an introduction to MQL, read the MQL intro slide deck
To learn how to create queries, checks, and policies in MQL, read Write Effective MQL.
Resources
A resource is a source of information about an asset in your infrastructure, such as a file, a container image, or an AWS EC2 instance. We've organized MQL resources into packs to make it easy to find what you need.
Core resource pack: The core pack is essential for queries and checks against many different systems. Use it to retrieve information about users, files, packages, ports, and much more.
Operating system resource pack: Some of the resources in the operating system pack span different operating systems, while others are specific to a single operating system.
Network resource pack: The network pack includes resources for querying assets like hostnames and checking certificate contents.
IaC-specific resource packs: These specialized packs let you examine infrastructure-as-code (IaC) files:
- Amazon Web Services (AWS) CloudFormation IaC resource pack
- Ansible IaC resource pack
- Terraform IaC resource pack
Platform-specific resource packs: These specialized packs let you deep-dive into attributes unique to the platforms:
- Amazon Web Services (AWS) resource pack
- Arista resource pack
- Atlassian resource pack
- Azure resource pack
- Equinix Metal resource pack
- GitHub resource pack
- GitLab resource pack
- Google Cloud (GCP) resource pack
- Google Workspace resource pack
- IPMI resource pack
- Kubernetes resource pack
- Microsoft 365 resource pack
- Mondoo Platform resource pack
- Okta resource pack
- OPC UA resource pack
- Oracle Cloud Infrastructure (OCI) resource pack
- Shodan Search Engine resource pack
- Slack resource pack
- Snowflake resource pack
- VMware Cloud Director resource pack
- VMware vSphere resource pack
Learn more
-
To learn about querying your systems with MQL, read the cnquery docs.
-
To learn how to create queries, checks, and policies in MQL, read Write Effective MQL.