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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
ツール/GitHubGitHub/lpizziniacofortinet/cve-2026-123158-openssh-musl-lab
Cloud Infrastructure SecurityContainer SecurityVulnerability AnalysisSecurity VirtualizationAuthenticationLearning & EducationLabs & Practice
GitHub
共有
lpizziniacofortinet/cve-2026-123158-openssh-musl-lab

cve-2026-123158-openssh-musl-lab

Automated Terraform lab environment for OpenSSH on Linux with musl libc without PAM (CVE-2026-123158 research)

リポジトリを見る
15日前未レビュー
要求された言語のコンテンツは利用できません。英語版を表示しています。

OpenSSH musl libc Lab Environment (CVE-2026-123158)

A self-contained Terraform lab environment for studying and researching OpenSSH authentication behaviors before version 10.6p2 when compiled against musl libc without PAM (UsePAM no).


🏗️ Architecture Overview

The lab deploys an Azure virtual machine with a dual-SSH port architecture to isolate administrative access from the target research environment:

                          Internet / Client
                            │          │
                 Port 2222  │          │  Port 22
          (Host Management) │          │  (Target Research Service)
                            ▼          ▼
┌──────────────────────────────────────────────────────────┐
│ Azure Virtual Machine (Ubuntu 22.04 LTS)                 │
│                                                          │
│  • Host OpenSSH Server (sshd listening on Port 2222)     │
│  • Docker Engine & Cloud-Init Provisioning               │
│                                                          │
│  ┌────────────────────────────────────────────────────┐  │
│  │ Container: musl-sshd (Alpine 3.20 base)             │  │
│  │                                                    │  │
│  │  • OpenSSH 9.8p1 built against musl libc           │  │
│  │  • Built with --without-pam (UsePAM no)            │  │
│  │  • Listens on Port 22                              │  │
│  │  • User accounts: victim (*), testuser (*),        │  │
│  │    saltuser (password hash for salt retrieval)     │  │
│  └────────────────────────────────────────────────────┘  │
└──────────────────────────────────────────────────────────┘
  • Port 2222: Ubuntu 22.04 LTS host management SSH (secured with auto-generated SSH key).
  • Port 22: Alpine Linux 3.20 container running OpenSSH 9.8p1 compiled against musl libc without PAM (UsePAM no).

⚡ Key Features

  • 100% Automated via Terraform: No manual key generation, manual file permission changes, or out-of-band provisioning scripts required.
  • In-State SSH Key Management: Generates a 4096-bit RSA key pair automatically with tls_private_key and saves id_rsa locally with secure permissions (0600) using local_sensitive_file.
  • Cloud-Init Synchronization: Terraform's null_resource.wait_for_cloud_init automatically monitors cloud-init status --wait over SSH (port 2222) to guarantee that container compilation and setup are completely finished before terraform apply returns.
  • Isolated Target Accounts:
    • victim: Account with * in /etc/shadow (simulating key-only or passwordless accounts).
    • testuser: Additional test account with * in /etc/shadow.
    • saltuser: Account with a valid password hash (SaltUserValidPass123!) to supply salts for timing mitigation logic.

📋 Prerequisites

  1. Terraform: >= 1.5.0
  2. Azure Account & Credentials: Active subscription and Service Principal or Azure CLI login with contributor permissions on the subscription.

🚀 Quickstart

1. Set Azure Credentials

Export your Azure credentials or source an environment file:

export ARM_CLIENT_ID="<your-client-id>"
export ARM_CLIENT_SECRET="<your-client-secret>"
export ARM_SUBSCRIPTION_ID="<your-subscription-id>"
export ARM_TENANT_ID="<your-tenant-id>"

2. Initialize Terraform

terraform init

3. Deploy the Lab

terraform apply

During apply, Terraform will:

  1. Generate the RSA 4096 key pair and write id_rsa and id_rsa.pub.
  2. Provision the Azure Resource Group, Virtual Network, Subnet, NSG, Public IP, and VM.
  3. Wait for cloud-init to compile OpenSSH on musl libc, start the container, and verify the service status.

💻 Connecting to the Lab

Administrative Access (Host VM - Port 2222)

Connect to the Ubuntu host VM using the auto-generated private key:

# Direct command (from PowerShell or native Linux):
ssh -i ./id_rsa -p 2222 azureuser@<PUBLIC_IP>

# Note for WSL users accessing /mnt/c:
# If DrvFs prevents 0600 permission checks, copy to /tmp first:
install -m 600 id_rsa /tmp/id_rsa && ssh -i /tmp/id_rsa -p 2222 azureuser@<PUBLIC_IP>

Target Service Access (OpenSSH musl - Port 22)

Interact with the research daemon on port 22:

ssh victim@<PUBLIC_IP> -p 22

🔍 Verification & Diagnostics

Once connected to the host via port 2222:

  1. Check Container Status:

    sudo docker ps
    
  2. Inspect OpenSSH Container Logs:

    sudo docker logs -f musl-sshd
    
  3. Check Cloud-Init Provisioning Logs:

    tail -n 100 /var/log/cloud-init-musl-ssh.log
    

⚙️ Configuration Variables

VariableDescriptionDefault
resource_group_nameName of the Azure Resource Grouprg-musl-sshd-lab
locationAzure Regionwesteurope
vm_nameName of the Virtual Machinevm-musl-sshd
vm_sizeAzure VM SKUStandard_B2s
admin_usernameAdministrative user for host OSazureuser
tagsTags applied to all resources(See variables.tf)

📤 Outputs

OutputDescription
public_ipPublic IP address assigned to the VM
host_admin_ssh_commandReady-to-use SSH command for host management (port 2222)
vulnerable_musl_ssh_commandSSH command for the musl daemon (port 22)
private_key_filePath to the auto-generated private key
resource_group_nameDeployed Resource Group name

🧹 Teardown

To destroy all deployed Azure resources and clean up local keys and state:

terraform destroy
ツールをダウンロード

人気

すべて見る →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 究極のOSINTツールキット:調査グラフ、信頼度スコアリング、エイリアスファミリー、マップ、タイムライン、レポート。49個のモジュール、400以上のサイト、APIキー不要。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock ワンタップ実行アプリ(CVE-2026-43499)

    627
  • 3

    looking-glass

    anonghosty/looking-glass

    ShadowserverレポートをMongoDBに取り込み、インタラクティブなマップ、分析、調査結果、アドバイザリ、エグゼクティブダッシュボードとして再生するCSIRTプラットフォーム。

    416
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServerは、オープンソースの特権アクセス管理(PAM)プラットフォームであり、DevOps および IT チームに対し、Webブラウザを介してSSH、RDP、Kubernetes、データベース、RemoteAppエンドポイントへのオンデマンドで安全なアクセスを提供します。

    379
  • 5

    ARTEX

    baarai/artex

    プランナー/ワーカーエージェント、資産グラフと探索グラフ、MITMトラフィック記録、脆弱性の再テストを備えたLLMマルチエージェント自律ペネトレーションテストプラットフォーム。

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    ウェブ全体で7,700以上のソーシャルメディア上の身元を発見・マッピングするAI搭載OSINTエンジン

    288

すべてのツールを探索

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

すべてのツールを見る →