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
GitHublpizziniacofortinet/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)

查看仓库
13天前尚未审核

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    371
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    336
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    322

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
内容在请求的语言中不可用。显示英文版本。

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
下载工具