العودة إلى التحديثات
New releaseSep 3, 2026

installer v13.37.0

نصوص التثبيت لنظامي لينكس وmacOS وويندوز لأدوات cnquery وcnspec

مشاركة

نظرة عامة

الحالة

تُشغَّل هذه الاختبارات مقابل main، لذا فهي تعكس السكربتات الموجودة في هذا المستودع كما هي عليه الآن.

الحالةالتغطية
install.shTest install.sh23 هدفًا حاويات — apt وyum وzypper عبر AlmaLinux وAmazon Linux وDebian وopenSUSE وRHEL وUbuntu، إضافةً إلى تشغيل POSIX dash وs390x المحاكى
download.shTest download.sh8 أهداف حاويات، بما في ذلك Alpine وarm64
install.ps1، download.ps1Test PowerShell InstallerWindows Server 2022، ويغطي scan.ps1 أيضًا
ملفات الإصدارReleases.mondoo.com File Validationmondoo وmql وcnspec على releases.mondoo.com، المستقرة والمعاينة، كل 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 (لينكس وmacOS) أو -Proxy (ويندوز). يوجّه السكربت تنزيلاته الخاصة وتثبيت الحزم و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 يتم التقاط https_proxy أو http_proxy الموروثين تلقائيًا عندما لا يتم توفير -x. في كلتا الحالتين يتم تصدير كلا الصيغتين، لذا يتم الوصول إلى مستودعات التوزيعة نفسها — وهي HTTP عادي على Debian وUbuntu — عبر الوكيل أيضًا. أي 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

بيان Kubernetes (manifest) لتهيئة MondooAuditConfig

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 - مثبّت Bash لـ mql و cnspec
  • download.sh - مُنزّل ثنائيات Bash لـ mql و cnspec
  • install.ps1 - مثبّت PowerShell لـ mql و cnspec
  • download.ps1 - مُنزّل ثنائيات PowerShell لـ mql و cnspec

إدارة الإعدادات

حاويات Docker

الإصدارات

الفئات