Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cnspec — An open source, cloud-native security to protect everything from build to runtime | Kitploit
Tools/GitHubGitHub/mondoohq/cnspec
Cloud Infrastructure SecurityDefensive ToolsVulnerability ScannersContainer SecurityVulnerability AnalysisConfiguration AuditingCloud SecurityDevSecOpsMisconfiguration
GitHubmondoohq/cnspec

cnspec

An open source, cloud-native security to protect everything from build to runtime

44141159h 48m agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View RepositoryWebsite
Share

cnspec

cnspec light-mode logo cnspec dark-mode logo

Open source, cloud-native security and policy project

cnspec assesses your entire infrastructure's security and compliance. It finds vulnerabilities and misconfigurations across public and private cloud environments, Kubernetes clusters, containers, container registries, servers, endpoints, SaaS products, infrastructure as code, APIs, and more.

A powerful policy as code engine, cnspec is built upon Mondoo's security data fabric. It comes configured with default security policies that run right out of the box. It's both fast and simple to use!

Quick start

root@kitploit:~
bash -c "$(curl -sSL https://install.mondoo.com/sh)"
cnspec scan local

cnspec scan example

Installation

Install cnspec with our installation script:

Linux and macOS

root@kitploit:~
bash -c "$(curl -sSL https://install.mondoo.com/sh)"

Windows

root@kitploit:~
Download Tool
Set-ExecutionPolicy Unrestricted -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://install.mondoo.com/ps1')); Install-Mondoo;

If you prefer manual installation, you can find the cnspec packages in our releases.

Run a scan with policies

Use the cnspec scan subcommand to check local and remote targets for misconfigurations and vulnerabilities.

Local scan

This command evaluates the security of your local machine:

root@kitploit:~
cnspec scan local

Remote scan targets

You can also specify remote targets to scan. For example:

root@kitploit:~
# to scan a docker image:
cnspec scan docker image ubuntu:22.04

# scan public ECR registry
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/r6z5b8t4
cnspec scan docker image public.ecr.aws/r6z5b8t4

# to scan an AWS account using the local AWS CLI config
cnspec scan aws

# scan an EC2 instance with EC2 Instance Connect
cnspec scan aws ec2 instance-connect root@i-1234567890abcdef0

# to scan a Kubernetes cluster via your local kubectl config or a local manifest file
cnspec scan k8s
cnspec scan k8s manifest.yaml

# to scan a GitHub repository
export GITHUB_TOKEN=<personal_access_token>
cnspec scan github repo <org/repo>

📚 To learn more, read the cnspec docs.

Policies

cnspec policies are built on the concept of policy as code. cnspec comes with default security policies configured for all supported targets. The default policies are available in the content directory of this repository.

Vulnerability scan

cnspec scans for vulnerabilities in a wide range of platforms. Vulnerability scanning is not restricted to container images; it works for build and runtime as well.

cnspec vulnerability scan example

NOTE: Vulnerability scanning requires the client to be logged into Mondoo Platform.

Examples

root@kitploit:~
# scan container image
cnspec vuln docker debian:12

# scan aws instance via EC2 instance connect
cnspec vuln aws ec2 instance-connect root@i-1234567890abcdef0

# scan instance via SSH
cnspec vuln ssh user@host

# scan windows via SSH or Winrm
cnspec vuln ssh user@host --ask-pass
cnspec vuln winrm user@host --ask-pass

# scan VMware vSphere ESXi hosts
cnspec vuln vsphere user@host --ask-pass

# scan Linux, Windows
cnspec vuln local
PlatformVersions
Alpine3.10 - 3.24
AlmaLinux8, 9, 10
Amazon Linux1, 2, 2023
Arch LinuxRolling
CentOS6, 7, 8, Stream
Debian8, 9, 10, 11, 12, 13
Fedora30 - 44
openSUSELeap 15, Leap 16
Oracle Linux6, 7, 8, 9, 10
Photon Linux2, 3, 4, 5
Red Hat Enterprise Linux6, 7, 8, 9, 10
Rocky Linux8, 9, 10
SUSE Linux Enterprise12, 15, 16
Ubuntu18.04, 20.04, 22.04, 24.04, 26.04
VMware vSphere ESXi6, 7, 8, 9
Windows10, 11, 2016, 2019, 2022, 2025

cnspec interactive shell

cnspec also provides an interactive shell to explore assertions. It helps you understand the assertions that security policies use, as well as write your own policies. It's also a great way to interact with both local and remote targets on the fly.

Local system shell

root@kitploit:~
cnspec shell local

The shell provides a help command for information on the resources that power cnspec. Running help without any arguments lists all of the available resources and their fields. You can also run help <resource> to get more detail on a specific resource. For example:

root@kitploit:~
cnspec> help ports
ports:              TCP/IP ports on the system
  list []port:      List of all TCP/IP ports
  listening []port: All listening ports

The shell uses auto-complete, which makes it easy to explore.

Once inside the shell, you can enter MQL assertions like this:

root@kitploit:~
> ports.listening.none( port == 23 )

To clear the terminal, type clear.

To exit, either hit CTRL + D or type exit.

Prioritize risks that matter with Mondoo Platform

The Mondoo unified security platform finds and prioritizes vulnerabilities and misconfigurations that pose the highest risk to your business. Mondoo's security data fabric analyzes the threat and exposure of every finding within the unique context of your infrastructure. Instead of a flood of irrelevant security alerts, Mondoo shows you how you can make an immediate and significant impact on your security posture.

To get started, contact us.

To learn about Mondoo Platform, read the Mondoo Platform docs or visit mondoo.com.

Register cnspec with Mondoo Platform

To use cnspec with Mondoo Platform, generate a token in the Mondoo App, then run:

root@kitploit:~
cnspec login --token TOKEN

Once authenticated, you can scan any target:

root@kitploit:~
cnspec scan <target>

cnspec returns the results from the scan to STDOUT and to Mondoo Platform.

With an account on Mondoo Platform, you can upload policies:

root@kitploit:~
cnspec bundle upload mypolicy.mql.yaml

Custom policies

A cnspec policy is simply a YAML file that lets you express any security rule or best practice for your fleet.

A few examples can be found in the examples folder in this repo. You can run any of these policies:

root@kitploit:~
cnspec scan local -f examples/example.mql.yaml

If you're interested in writing your own policies or contributing policies back to the cnspec community, read Mondoo's Policy Authoring Guide.

Supported targets

TargetProviderExample
Active Directory domainsactivedirectorycnspec scan activedirectory --dc DC_HOSTNAME --user USER --password PASSWORD
Alibaba Cloud accountsalicloudcnspec scan alicloud --access-key-id KEY_ID --access-key-secret KEY_SECRET
Ansible playbooksansiblecnspec shell ansible YOUR_PLAYBOOK.yml
Apache Cassandra clusterscassandracnspec scan cassandra HOST --user USER --ask-pass
Arista network devicesaristacnspec scan arista DEVICE_PUBLIC_IP --ask-pass
Atlassian organizationsatlassian admincnspec shell atlassian admin --admin-token YOUR_TOKEN
Auth0 tenantsauth0cnspec scan auth0 --domain TENANT_DOMAIN --client-id CLIENT_ID --client-secret CLIENT_SECRET
AWS accountsawscnspec scan aws
AWS CloudFormation templatescloudformationcnspec scan cloudformation cloudformation_file.json
AWS EC2 EBS snapshotaws ec2 ebs snapshotcnspec scan aws ec2 ebs snapshot SNAPSHOTID
AWS EC2 EBS volumeaws ec2 ebs volumecnspec scan aws ec2 ebs volume VOLUMEID
AWS EC2 Instance Connectaws ec2 instance-connectcnspec scan aws ec2 instance-connect ec2-user@INSTANCEID
AWS EC2 instancessshcnspec scan ssh user@host
Bicep files and ARM templatesbicepcnspec scan bicep BICEP_FILE_OR_PATH

Agent skills

cnspec includes agent skills that give coding agents MQL expertise and policy navigation capabilities. Skills work across Claude Code, Cursor, Gemini CLI, and Codex.

SkillDescription
mqlMQL query development with syntax guidance, platform-specific patterns, and schema discovery
policy-graphNavigate policy bundles using graph commands — search, trace compliance mappings, explore structure

See skills/README.md for installation instructions and details.

What's next?

There are so many things cnspec can do, from testing your entire fleet for vulnerabilities to gathering information and creating reports for auditors. With its custom policies, cnspec can scan any component you care about!

Explore our:

  • cnspec docs
  • Policy as code
  • MQL, our open source, cloud-native asset inventory framework
  • MQL introduction
  • MQL resource packs
  • HashiCorp Packer plugin to integrate cnspec with HashiCorp Packer!

Join the community!

Our goal is to secure all layers of your infrastructure. If you need support or want to get involved with the development of cnspec, join our community today and let's grow it together!

Development

See our development documentation for information on building and contributing to cnspec.

Legal

  • Copyright: 2018-2026, Mondoo, Inc.
  • License: BUSL 1.1
  • Authors: Christoph Hartmann, Dominik Richter
Bitwarden organizationsbitwardencnspec scan bitwarden --client-id organization.UUID --client-secret CLIENT_SECRET
Block devicesdevicecnspec scan device --lun LOGICAL_UNIT_NUMBER
Check Point management serverscheckpointcnspec scan checkpoint --hostname HOSTNAME --api-key API_KEY
Cisco Catalyst devicesciscocatalystcnspec scan ciscocatalyst HOSTNAME --user USER --ask-pass
Claude AI platform accountsclaudecnspec scan claude --admin-token ADMIN_API_KEY
ClickHouse Cloud organizationsclickhousecloudcnspec scan clickhousecloud --organization-id ORG_ID --api-key KEY_ID --ask-secret
ClickHouse serversclickhousedbcnspec scan clickhousedb HOST --user USER --ask-pass
Cloudflare accountscloudflarecnspec scan cloudflare --token ACCESS_TOKEN
Confluence usersatlassian confluencecnspec shell atlassian confluence --host YOUR_HOST_URL --user USER --user-token YOUR_TOKEN
Container imagescontainer, dockercnspec scan container ubuntu:latest
Container registriescontainer registrycnspec scan container registry index.docker.io/library/rockylinux:8
Databricks accountsdatabrickscnspec scan databricks --account-id ACCOUNT_ID --client-id CLIENT_ID --client-secret CLIENT_SECRET
Datadog accountsdatadogcnspec scan datadog --api-key API_KEY --app-key APP_KEY
DigitalOcean accountsdigitaloceancnspec scan digitalocean --token API_TOKEN
DNS recordshostcnspec scan host mondoo.com
Dockerfilesdockercnspec shell docker file FILENAME
Dropbox Business teamsdropboxcnspec scan dropbox --token TEAM_ACCESS_TOKEN
Elasticsearch clusterselasticsearchcnspec scan elasticsearch HOST --user USER --ask-pass
F5 BIG-IP systemsbigipcnspec scan bigip --hostname HOSTNAME --username USER --ask-pass
File systemsfilesystemcnspec scan filesystem MOUNT_PATH
FortiOS devicesfortioscnspec scan fortios --hostname HOSTNAME --token API_TOKEN
GitHub organizationsgithub orgcnspec scan github org mondoohq
GitHub repositoriesgithub repocnspec scan github repo mondoohq/cnspec
GitLab groupsgitlabcnspec scan gitlab --group mondoohq
Google Cloud projectsgcpcnspec scan gcp
Google Workspacegoogle-workspacecnspec scan google-workspace --customer-id CUSTOMER_ID --impersonated-user-email EMAIL --credentials-path JSON_FILE
Grafana organizationsgrafanacnspec scan grafana --url GRAFANA_URL --token API_TOKEN
HashiCorp Cloud Platformhcpcnspec scan hcp --client-id CLIENT_ID --client-secret CLIENT_SECRET
Helm chartshelmcnspec scan helm CHART_PATH
Hetzner Cloud projectshetznercnspec scan hetzner --token API_TOKEN
Hugging Face namespaceshuggingfacecnspec scan huggingface --token API_TOKEN --namespace NAMESPACE --namespace-type org
IBM Db2 databasesdb2cnspec scan db2 HOST --database DATABASE --user USER --ask-pass
IoT devicesopcuacnspec shell opcua
IP address informationipinfocnspec shell ipinfo
IPMI interfacesipmicnspec scan ipmi user@host
Iru tenantsirucnspec scan iru --subdomain SUBDOMAIN --token API_TOKEN
Jamf Pro accountsjamfcnspec scan jamf --client-id CLIENT_ID --client-secret CLIENT_SECRET --instance-domain INSTANCE_URL
JFrog Artifactory instancesartifactorycnspec scan artifactory --url ARTIFACTORY_URL --token ACCESS_TOKEN
Jira projectsatlassian jiracnspec shell atlassian jira --host YOUR_HOST_URL --user USER --user-token YOUR_TOKEN
JumpCloud organizationsjumpcloudcnspec scan jumpcloud --api-key API_KEY
Juniper Junos devicesjunoscnspec scan junos --hostname DEVICE_IP --username USER_NAME --identity-file SSH_IDENTITY_FILE
Keycloak serverskeycloakcnspec scan keycloak --url KEYCLOAK_URL --realm REALM --client-id CLIENT_ID --client-secret CLIENT_SECRET
Kubernetes cluster nodeslocal, sshcnspec scan ssh user@host
Kubernetes clustersk8scnspec scan k8s
Kubernetes manifestsk8scnspec scan k8s manifest.yaml
Kubernetes workloadsk8scnspec scan k8s --discover pods,deployments
Kustomize overlayskustomizecnspec scan kustomize OVERLAY_PATH
Linux hostslocal, sshcnspec scan local or

cnspec scan ssh user@host
macOS hostslocal, sshcnspec scan local or

cnspec scan ssh user@IP_ADDRESS
Microsoft 365 tenantsms365cnspec scan ms365 --tenant-id TENANT_ID --client-id CLIENT_ID --certificate-path PEM_FILE
Microsoft Azure instancessshcnspec scan ssh user@host
Microsoft Azure subscriptionsazurecnspec scan azure --subscription SUBSCRIPTION_ID
Microsoft SQL Server instancesmssqlcnspec scan mssql HOST --user USER --ask-pass
MikroTik RouterOS devicesmikrotikcnspec scan mikrotik user@host --ask-pass
Mistral AI workspacesmistralcnspec scan mistral --token API_KEY --workspace WORKSPACE_ID
Model Context Protocol serversmcpcnspec scan mcp http http://localhost:8080/mcp
Mondoo Platformmondoocnspec scan mondoo
MongoDB Atlas organizationsmongodbatlascnspec scan mongodbatlas --org-id ORG_ID --public-key PUBLIC_KEY --private-key PRIVATE_KEY
MongoDB serversmongocnspec scan mongo HOST --user USER --ask-pass
MySQL and MariaDB serversmysqldbcnspec scan mysqldb HOST --user USER --ask-pass
Neon organizationsneoncnspec scan neon --token API_KEY
Netlify accountsnetlifycnspec scan netlify --token ACCESS_TOKEN
Network devices over SSHnd-sshcnspec scan nd-ssh user@host --ask-pass
NextDNS accountsnextdnscnspec scan nextdns --api-key API_KEY
Nmap network scansnmapcnspec shell nmap host IP_ADDRESS
Nutanix Prism Centralnutanixcnspec scan nutanix --endpoint ENDPOINT --user USER --ask-pass
Okta orgoktacnspec scan okta --token TOKEN --organization ORGANIZATION
Ollama instancesollamacnspec scan ollama --host OLLAMA_URL
OpenAI accountsopenaicnspec scan openai --token ADMIN_API_KEY --organization ORG_ID
OpenSearch clustersopensearchcnspec scan opensearch HOST --user USER --ask-pass
OpenStack projectsopenstackcnspec scan openstack --cloud CLOUDS_YAML_ENTRY
Oracle Cloud Interface (OCI)ocicnspec scan oci
Oracle Databaseoracledbcnspec scan oracledb HOST --service SERVICE_NAME --user USER --ask-pass
PAN-OS firewallspanoscnspec scan panos --hostname HOSTNAME --username USER --ask-pass
Portainer instancesportainercnspec scan portainer PORTAINER_URL --access-token ACCESS_TOKEN
PostgreSQL serverspostgresdbcnspec scan postgresdb HOST --user USER --ask-pass
Proxmox VE hypervisorsproxmoxcnspec scan proxmox --host PROXMOX_URL --token API_TOKEN
Redfish management controllersredfishcnspec scan redfish user@host --ask-pass
Redis and Valkey serversredisdbcnspec scan redisdb HOST --ask-pass
Running containersdockercnspec scan docker CONTAINER_ID
Shodan search engineshodancnspec shell shodan
Slack teamslackcnspec scan slack --token TOKEN
Snowflake accountssnowflakecnspec scan snowflake --account ACCOUNT_ID --region REGION --user USER --role ROLE --token TOKEN
Software dependenciesdepsdevcnspec scan depsdev PATH_TO_GO_MOD
SSL certificates on websiteshostcnspec scan host mondoo.com
STACKIT projectsstackitcnspec scan stackit --project-id PROJECT_ID --service-account-key-path KEY_FILE
Subdomainsnetworkdiscoverycnspec scan networkdiscovery mondoohq.com --discover subdomains
Tailscale networkstailscalecnspec scan tailscale --token ACCESS_TOKEN
Terraform HCLterraformcnspec scan terraform HCL_FILE_OR_PATH
Terraform planterraform plancnspec scan terraform plan plan.json
Terraform stateterraform statecnspec scan terraform state state.json
Together AI accountstogethercnspec scan together --token API_KEY
Ubiquiti UniFi controllersunificnspec scan unifi --hostname HOSTNAME --username USER --ask-pass
Vagrant virtual machinesvagrantcnspec scan vagrant HOST
Vercel accountsvercelcnspec scan vercel --token ACCESS_TOKEN
vLLM inference serversvllmcnspec scan vllm ENDPOINT
VMware Cloud Directorvcdcnspec shell vcd --user USER --host HOST --ask-pass
VMware vSpherevspherecnspec scan vsphere user@domain@host --ask-pass
Weaviate vector databasesweaviatecnspec scan weaviate HOST --api-key API_KEY
Windows hostslocal, ssh, winrmcnspec scan local,

cnspec scan ssh Administrator@IP_ADDRESS --ask-pass or

cnspec scan winrm Administrator@IP_ADDRESS --ask-pass
Zoom accountszoomcnspec scan zoom --account-id ACCOUNT_ID --client-id CLIENT_ID --client-secret CLIENT_SECRET