업데이트로 돌아가기
New releaseSep 3, 2026

installer v13.37.0

리눅스, macOS 및 Windows용 cnquery & cnspec 설치 스크립트

공유

개요

상태

이 테스트들은 main에 대해 실행되므로, 현재 이 저장소에 있는 스크립트를 그대로 반영합니다.

상태커버리지
install.shTest install.sh23개 컨테이너 대상 — AlmaLinux, Amazon Linux, Debian, openSUSE, RHEL, Ubuntu 전반의 apt, yum, zypper, 그리고 POSIX dash 실행 및 에뮬레이션된 s390x
download.shTest download.shAlpine 및 arm64를 포함한 8개 컨테이너 대상
install.ps1, download.ps1Test PowerShell InstallerWindows Server 2022, scan.ps1도 포함
릴리스 파일Releases.mondoo.com File Validationreleases.mondoo.com의 mondoo, mql, cnspec, stable 및 preview, 15분마다

Docker 이미지, Homebrew, Arch Linux 및 macOS 패키지는 Test Release: ALL을 통해 게시된 모든 릴리스에 대해 테스트됩니다. 이들은 해당 실행에서 호출되는 재사용 가능한 워크플로이므로, GitHub는 각 실행을 호출자에게 귀속시키며 이들 자체적으로 표시할 배지가 없습니다.

설치

mql & cnspec을(를) 설치하는 가장 쉬운 방법은 설치 스크립트를 사용하는 것입니다.

Shell 스크립트 사용 (Linux 및 macOS)

https://install.mondoo.com/sh

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

PowerShell 사용 (Windows)

https://install.mondoo.com/ps1

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;

HTTP 프록시 뒤에서

-x(Linux 및 macOS) 또는 -Proxy(Windows)을 사용하여 프록시를 설치 스크립트에 전달하세요. 스크립트는 자체 다운로드, 패키지 설치, cnspec login 및 자동 업데이터를 이 프록시를 통해 라우팅합니다. 스크립트의 최초 다운로드는 플래그를 읽기 전에 발생하므로, 해당 다운로드 역시 프록시를 가리키도록 설정하세요:

export https_proxy='http://proxy.example.com:3128'
curl -sSL --proxy "$https_proxy" https://install.mondoo.com/sh | bash -s -- -x "$https_proxy"
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
$wc = New-Object System.Net.WebClient;
$wc.Proxy = New-Object System.Net.WebProxy('http://proxy.example.com:3128');
iex ($wc.DownloadString('https://install.mondoo.com/ps1'));
Install-Mondoo -Proxy 'http://proxy.example.com:3128';

Linux와 macOS에서는 -x가 주어지지 않았을 때 상속된 https_proxy 또는 http_proxy이 자동으로 선택됩니다. 어느 경우든 두 형식 모두 내보내지므로, Debian과 Ubuntu에서 일반 HTTP를 사용하는 배포판 자체의 저장소도 프록시를 통해 접근됩니다. 설정한 no_proxy는 sudo를 거치는 동안을 포함하여 변경 없이 그대로 전달됩니다.

프록시 URL은 일반 URL이어야 합니다. 자격 증명이 포함된 경우 퍼센트 인코딩하십시오(!는 %21으로, 등등). 이 값은 자동 업데이터의 예약 작업에 기록되므로, 그곳에서 인용 부호가 필요한 문자는 이스케이프되지 않고 거부됩니다.

대상 플랫폼 스캔

대상 플랫폼을 스캔하십시오:

# query system information with incident and inventory query pack
mql scan aws
# scan the platform for security vulnerabilities
cnspec scan aws

더 많은 정책에 접근하고 보고서를 저장하려면 Mondoo 계정에 가입하세요. 자세한 내용은 문의하기를 참조하세요.

cnspec login -t 'eyJh...llZ4BW'

mql 및 cnspec은 서버(Linux, Windows, macOS), 클라우드(AWS, Azure, Google, VMware), Kubernetes(EKS, GKE, AKS, 자체 관리형), 컨테이너, 컨테이너 레지스트리, SaaS 제품(Google Workspace, M365, GitHub, GitLab) 등을 포함한 로컬 및 원격 대상을 지원합니다.

스캔 실행:

# scan your local host
cnspec scan local

# scan a cloud environment
cnspec scan aws
cnspec scan gcp
cnspec scan azure

# scan a kubernetes cluster
cnspec scan k8s

# scan a docker image from a remote registry
cnspec scan docker image debian:12

# scan a docker container (get ids from docker ps)
cnspec scan docker container 00fa961d6b6a

# scan a system over ssh
cnspec scan ssh [email protected]

패키지 정보

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

인수는 다음 값을 지원합니다:

인수값
platformlinux, windows, darwin
archamd64, arm64, armv7, armv6, 386, ppc64le
filetypetar.gz, deb, rpm, zip, pkg, msi
versionlatest 또는 특정 숫자
methoddownload, filename, version, sha256
# Download the latest version
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/download
# Get the filename for the latest cnspec package
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/filename
# Get the version for the latest cnspec package
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/version
# Get the sha256 for the latest cnspec client
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/sha256
# Download a specific version of cnspec client
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/5.21.1/download
# Get the sha256 for a specific version of cnspec Client
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/5.21.1/sha256

Kubernetes

운영자 설치를 위한 Kubernetes 매니페스트

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

kubectl apply -f https://install.mondoo.com/k8s/operator

MondooAuditConfig를 구성하기 위한 Kubernetes 매니페스트

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

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 바이너리 다운로더

구성 관리

Docker 컨테이너

릴리스

테스트

install.sh

install.sh 스크립트는 POSIX sh와 호환됩니다. 모든 테스트는 저장소 루트에서 make를 통해 실행됩니다.

빠른 린트 (Docker 불필요):

# POSIX compliance: shellcheck -s sh, dash -n, shebang check
make test/posix

# General shellcheck (all shell scripts)
make test/shellcheck

Docker 기반 통합 테스트:

다음은 로컬 install.sh을 컨테이너에 마운트하고 해당 배포판의 /bin/sh에서 실행합니다:

# Test on Debian/Ubuntu distros (apt)
make test/install_sh/apt

# Test on RHEL/CentOS/Fedora distros (yum)
make test/install_sh/yum

# Test on SUSE (zypper)
make test/install_sh/zypper

카테고리