Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

フィードお問い合わせプライバシー© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
cnspec — ビルドからランタイムまでのすべてを保護する、オープンソースのクラウドネイティブセキュリティ | Kitploit
ツール/GitHubGitHub/mondoohq/cnspec
クラウドインフラストラクチャセキュリティ防御ツール脆弱性スキャナーコンテナセキュリティ脆弱性分析構成監査クラウドセキュリティDevSecOps設定ミス
GitHubmondoohq/cnspec

cnspec

ビルドからランタイムまでのすべてを保護する、オープンソースのクラウドネイティブセキュリティ

439401026日前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有
リポジトリを見るウェブサイト

cnspec

cnspec light-mode logo cnspec dark-mode logo

オープンソースのクラウドネイティブセキュリティおよびポリシープロジェクト

cnspecはインフラストラクチャ全体のセキュリティとコンプライアンスを評価します。パブリックおよびプライベートクラウド環境、Kubernetesクラスター、コンテナ、コンテナレジストリ、サーバー、エンドポイント、SaaS製品、Infrastructure as Code、APIなどにわたる脆弱性と設定ミスを検出します。

強力なPolicy as Codeエンジンであるcnspecは、Mondooのセキュリティデータファブリック上に構築されています。すぐに使えるデフォルトのセキュリティポリシーが設定済みです。高速かつシンプルに使用できます!

クイックスタート```bash

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

![cnspec scan example](https://assets.kitploit.com/production/public/readmes/56196/076fa4d18bd611c0ba6f02b9cc4ce3cc6f3b0f09ae5cbf667f5e54a79410ffa2/85882c6870ce07dd41b6e8f1063c1bfe8248711c6f8ef3743de17db4a0d24a2c-display-v1.webp)

## インストール

インストールスクリプトを使用して cnspec をインストールします:

**Linux および macOS**```bash
bash -c "$(curl -sSL https://install.mondoo.com/sh)"

Windows```powershell 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;

手動インストールを希望する場合、cnspec パッケージは [releases](https://github.com/mondoohq/cnspec/releases) にあります。

## ポリシーを使用したスキャンの実行

`cnspec scan` サブコマンドを使用して、ローカルおよびリモートのターゲットに設定ミスや脆弱性がないかチェックします。

### ローカルスキャン

このコマンドは、ローカルマシンのセキュリティを評価します:```bash
cnspec scan local

リモートスキャンターゲット

スキャンするリモートターゲットを指定することもできます。例:```bash

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>

[:books: 詳細については、cnspec のドキュメントをお読みください。](https://mondoo.com/docs/cnspec)

### ポリシー

cnspec ポリシーは、ポリシー・アズ・コードの概念に基づいて構築されています。cnspec には、サポートされているすべてのターゲット向けに構成されたデフォルトのセキュリティポリシーが付属しています。デフォルトポリシーは、このリポジトリの `content` ディレクトリで利用できます。

## 脆弱性スキャン

cnspec は幅広いプラットフォームの脆弱性をスキャンします。脆弱性スキャンはコンテナイメージに限定されず、ビルド時および実行時にも機能します。

![cnspec 脆弱性スキャンの例](https://assets.kitploit.com/production/public/readmes/56196/d17a3d15a7304923948dc19be112128fb8f210e5b14f216215ccadde74fce18c/a0373897f07b648bb3f6dac20852563a782092e32ed244b66a8aac68205d23ce-display-v1.webp)

注: 脆弱性スキャンには、クライアントが Mondoo Platform にログインしている必要があります。

### 例```bash
# 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
プラットフォームバージョン
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 インタラクティブシェル

cnspec は、アサーションを探索するためのインタラクティブシェルも提供しています。これは、セキュリティポリシーが使用するアサーションを理解したり、独自のポリシーを作成したりするのに役立ちます。また、ローカルおよびリモートのターゲットとオンザフライで対話する優れた方法でもあります。

ローカルシステムシェル```bash

cnspec shell local

シェルは、cnspecを支えるリソースに関する情報を提供する `help` コマンドを備えています。引数なしで `help` を実行すると、利用可能なすべてのリソースとそのフィールドが一覧表示されます。また、`help <resource>` を実行すると、特定のリソースについてより詳細な情報を取得できます。例えば:```bash
cnspec> help ports
ports:              TCP/IP ports on the system
  list []port:      List of all TCP/IP ports
  listening []port: All listening ports

シェルはオートコンプリートを使用するため、簡単に探索できます。

シェル内に入ったら、次のようなMQLアサーションを入力できます:```coffeescript

ports.listening.none( port == 23 )

ターミナルをクリアするには、`clear` と入力します。

終了するには、CTRL + D を押すか、`exit` と入力します。

## Mondoo Platform で重要なリスクを優先順位付け

Mondoo の統合セキュリティプラットフォームは、ビジネスに最も高いリスクをもたらす脆弱性と設定ミスを検出し、優先順位を付けます。Mondoo のセキュリティデータファブリックは、インフラストラクチャ固有のコンテキスト内で、すべての検出事項の脅威と露出を分析します。無関係なセキュリティアラートの洪水ではなく、Mondoo はセキュリティ態勢に即座かつ大きな影響を与える方法を示します。

始めるには、[お問い合わせください](https://mondoo.com/contact)。

Mondoo Platform について学ぶには、[Mondoo Platform ドキュメント](https://mondoo.com/docs)を読むか、[mondoo.com](https://mondoo.com) にアクセスしてください。

### cnspec を Mondoo Platform に登録する

cnspec を Mondoo Platform で使用するには、[Mondoo App でトークンを生成](https://mondoo.com/docs/cnspec/install/registration)し、次を実行します:```bash
cnspec login --token TOKEN

認証が完了すると、任意のターゲットをスキャンできます:```bash cnspec scan

cnspec はスキャン結果を `STDOUT` と Mondoo Platform に返します。

Mondoo Platform のアカウントがあれば、ポリシーをアップロードできます:```bash
cnspec bundle upload mypolicy.mql.yaml

カスタムポリシー

cnspec ポリシーは、単純な YAML ファイルであり、フリートに対する任意のセキュリティルールやベストプラクティスを表現できます。

いくつかの例は、このリポジトリの examples フォルダにあります。これらのポリシーはいずれも実行できます:```bash cnspec scan local -f examples/example.mql.yaml

独自のポリシーを作成したり、cnspec コミュニティにポリシーを還元することに興味がある場合は、Mondoo の[ポリシー作成ガイド](https://mondoo.com/docs/cnspec/write-policies/write-intro)をお読みください。
ツールをダウンロード