Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
installer — 适用于 cnquery 和 cnspec 的 Linux、macOS 和 Windows 安装脚本 | Kitploit
工具/GitHubGitHub/mondoohq/installer
通用工具漏洞扫描器容器安全云安全
GitHubmondoohq/installer

installer

适用于 cnquery 和 cnspec 的 Linux、macOS 和 Windows 安装脚本

查看仓库网站
8314218小时7分前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

概述

  • 安装
    • mql
    • cnspec
  • 扫描目标平台
  • 包信息
  • Kubernetes

状态

  • Docker 容器: Release Test: Docker Containers
  • Homebrew: Release Test: Homebrew
  • Install.sh: Release Test: install.sh
  • Install.ps1: Release Test: install.ps1
  • macOS Pkg: Release Test: macOS Package
  • Arch Linux: Release Test: Arch Linux

安装

安装 mql 和 cnspec 最简单的方法是使用安装脚本。

通过 Shell 脚本(Linux 和 macOS)

https://install.mondoo.com/sh

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

通过 PowerShell(Windows)

https://install.mondoo.com/ps1

root@kitploit:~
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;

扫描目标平台

扫描你的目标平台:

root@kitploit:~
# 使用事件和资产查询包查询系统信息
mql scan aws
# 扫描平台安全漏洞
cnspec scan aws

注册 Mondoo 账户以访问更多策略并存储报告。要了解更多信息,请联系我们。

root@kitploit:~
cnspec login -t 'eyJh...llZ4BW'

mql 和 cnspec 支持本地和远程目标,包括服务器(Linux, Windows, macOS)、云(AWS、Azure、Google、VMware)、Kubernetes(EKS、GKE、AKS、自管理)、容器、容器注册表、SaaS 产品(Google Workspace、M365、GitHub、GitLab)等。

运行扫描:

root@kitploit:~
# 扫描本地主机
cnspec scan local

# 扫描云环境
cnspec scan aws
cnspec scan gcp
cnspec scan azure

# 扫描 kubernetes 集群
cnspec scan k8s

# 扫描远程注册表中的 docker 镜像
cnspec scan docker image debian:12

# 扫描 docker 容器(从 docker ps 获取 ID)
cnspec scan docker container 00fa961d6b6a

# 通过 SSH 扫描系统
cnspec scan ssh [email protected]

包信息

https://install.mondoo.com/package/cnspec/{platform}/{arch}/{filetype}/{version}/{method}

参数支持以下值:

root@kitploit:~
# 下载最新版本
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/download
root@kitploit:~
# 获取最新 cnspec 包的文件名
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/filename
root@kitploit:~
# 获取最新 cnspec 包的版本
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/version
root@kitploit:~
# 获取最新 cnspec 客户端的 sha256
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/sha256
root@kitploit:~
# 下载指定版本的 cnspec 客户端
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/5.21.1/download
root@kitploit:~
# 获取指定版本 cnspec 客户端的 sha256
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/5.21.1/sha256

Kubernetes

用于安装 operator 的 Kubernetes 清单

https://install.mondoo.com/k8s/operator

root@kitploit:~
kubectl apply -f https://install.mondoo.com/k8s/operator

用于配置 MondooAuditConfig 的 Kubernetes 清单

https://install.mondoo.com/k8s/auditconfig?nodes=true&kubernetesResources=true

root@kitploit:~
kubectl apply -f https://install.mondoo.com/k8s/auditconfig?nodes=true&kubernetesResources=true

要浏览所有版本发布,请访问 https://releases.mondoo.com

参考

安装脚本来源

  • install.sh - mql 和 cnspec Bash 安装程序
  • download.sh - mql 和 cnspec Bash 二进制下载程序
  • install.ps1 - mql 和 cnspec PowerShell 安装程序
  • download.ps1 - mql 和 cnspec PowerShell 二进制下载程序

配置管理

  • mql 和 cnspec Ansible Role
  • mql 和 cnspec Chef Cookbook

Docker 容器

  • https://hub.docker.com/r/mondoo/mql
  • https://hub.docker.com/r/mondoo/cnspec

版本发布

  • 发行说明
  • 包下载

测试

install.sh

install.sh 脚本兼容 POSIX sh。所有测试通过 repo 根目录的 make 驱动。

快速 lint(无需 Docker):

root@kitploit:~
# POSIX 合规性:shellcheck -s sh, dash -n, shebang check
make test/posix

# 通用 shellcheck(所有 shell 脚本)
make test/shellcheck

基于 Docker 的集成测试:

这些将本地 install.sh 挂载到容器中,并在发行版的 /bin/sh 下运行它:

root@kitploit:~
# 在 Debian/Ubuntu 发行版上测试(apt)
make test/install_sh/apt

# 在 RHEL/CentOS/Fedora 发行版上测试(yum)
make test/install_sh/yum

# 在 SUSE 上测试(zypper)
make test/install_sh/zypper

# 通过现有的多阶段 Dockerfile 测试(所有发行版)
make test/install_sh

# 运行所有:lint + 所有 Docker 测试
make test/install_sh/all

升级测试(cnquery -> mql 迁移):

root@kitploit:~
make test/install_sh/upgrade-apt
make test/install_sh/upgrade-yum

download.sh

root@kitploit:~
make test/download_sh

PowerShell

root@kitploit:~
make test/powershell

代码签名验证

Mondoo 对 Microsoft Windows 可执行文件、PowerShell 脚本、Linux 包进行签名,并对 Apple macOS 可执行文件进行代码签名。公钥代码签名证书和公钥 GPG 密钥存储在安装器仓库中。

  • 用于代码签名的公钥证书 public-code-signing.cer
  • 用于包签名的公钥 GPG 密钥 public-package-signing.gpg

Microsoft

注意: PowerShell Core 中目前没有 Get-AuthenticodeSignature cmdlet,因此你需要 Windows 安装才能运行它。

自 11.66.1 版本发布以来,我们采用了 Azure Trusted Signing,它提供大约每 72 小时轮换一次的短期代码签名证书。这意味着证书指纹在不同版本发布之间会有所不同,不能用作可靠的验证方法。

要验证 mql 或 cnspec 可执行文件的完整性,请使用 Microsoft 的 Get-AuthenticodeSignature PowerShell 命令,验证签名状态是否为 Valid。另外,签名者(Subject) 为:CN=Mondoo, Inc.,颁发者(Issuer) 为:CN=Microsoft ID Verified CS EOC CA 01, O=Microsoft Corporation, C=US

root@kitploit:~
$file = ".\mondoo_11.66.1_windows_amd64.msi"
(Get-AuthenticodeSignature -FilePath $file).SignerCertificate | Format-List

Subject      : CN="Mondoo, Inc.", O="Mondoo, Inc.", L=Cary, S=North Carolina, C=US
Issuer       : CN=Microsoft ID Verified CS EOC CA 01, O=Microsoft Corporation, C=US
Thumbprint   : 6134EB03311452EFFFA36EFC767F4BEBE29A4107
FriendlyName :
NotBefore    : 05/08/2025 14:08:51
NotAfter     : 08/08/2025 14:08:51
Extensions   : {System.Security.Cryptography.Oid, System.Security.Cryptography.Oid,
               System.Security.Cryptography.Oid, System.Security.Cryptography.Oid...}

要验证 Mondoo PowerShell install.ps1 脚本的完整性,请使用 Microsoft 的 Get-AuthenticodeSignature PowerShell,验证签名状态是否为 Valid。

root@kitploit:~
Get-AuthenticodeSignature .\install.ps1

SignerCertificate                         Status
-----------------                         ------
6134EB03311452EFFFA36EFC767F4BEBE29A4107  Valid

之前的签名者

在 11.66.1 版本之前,我们使用 DigiCert 签署我们的 Microsoft 版本发布。这些版本由 CN=DigiCert Global G3 Code Signing ECC SHA384 2021 CA1, O="DigiCert, Inc.", C=US 颁发的证书签名,并且具有静态指纹 EE97D1E3C6CD96E06C47B0233DD7C6CE2684FA50。

Apple macOS

要验证 mql 或 cnspec 可执行文件的完整性,请使用 Apple 的 codesign 工具,并比较 TeamIdentifier 字段,该字段应与下面的匹配。

root@kitploit:~
codesign --verify -d --verbose=2 /usr/local/bin/cnspec
Executable=/Library/Mondoo/bin/cnspec
Identifier=cnspec
Format=Mach-O universal (x86_64 arm64)
CodeDirectory v=20500 size=2124850 flags=0x10000(runtime) hashes=66396+2 location=embedded
Signature size=9054
Authority=Developer ID Application: Mondoo, Inc. (W2KUBWKG84)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=25. Apr 2023 at 19:47:53
Info.plist=not bound
TeamIdentifier=W2KUBWKG84
Runtime Version=11.0.0
Sealed Resources=none
Internal requirements count=1 size=168

当前和之前的 PGP 公钥

当前密钥

Mondoo 当前的 PGP 公钥具有 ID 00E1C42B / 指纹 4CE909E26AE7439C39CE7647AC69C65100E1C42B,内容如下:

root@kitploit:~
-----BEGIN PGP PUBLIC KEY BLOCK-----

<密钥块>
-----END PGP PUBLIC KEY BLOCK-----

之前的密钥

密钥 ID 00E1C42B / 指纹 4CE909E26AE7439C39CE7647AC69C65100E1C42B:

root@kitploit:~
-----BEGIN PGP PUBLIC KEY BLOCK-----

<之前的密钥块>
-----END PGP PUBLIC KEY BLOCK-----

你可以从以下地址下载 Mondoo 的公共 PGP 密钥(两者相同):

  • https://releases.mondoo.com/debian/pubkey.gpg
  • https://releases.mondoo.com/rpm/pubkey.gpg
下载工具
参数值
platformlinux, windows, darwin
archamd64, arm64, armv7, armv6, 386, ppc64le
filetypetar.gz, deb, rpm, zip, pkg, msi
versionlatest 或特定数字
methoddownload, filename, version, sha256