Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

A native Windows SSH agent using CNG/KSP, with no dependencies, smartcard support, and full RDP compatibility

Windows ships with a strong cryptographic subsystem (CNG/KSP), a mature certificate store, and enterprise identity mechanisms such as ADCS, TPM, Windows Hello, and smartcards. Despite this, Windows still lacks a modern SSH agent capable of…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Windows ships with a strong cryptographic subsystem (CNG/KSP), a mature certificate store, and enterprise identity mechanisms such as ADCS, TPM, Windows Hello, and smartcards.

Despite this, Windows still lacks a modern SSH agent capable of using these identities.



Existing solutions fall short in real environments:

OpenSSH for Windows cannot use CNG/KSP keys or enterprise certificates.

Pageant does not work reliably in RDP or multi-session environments.

gpg-agent is not native to Windows and cannot use CNG/KSP or smartcards.

OpenSC PKCS#11 modules do not integrate with the Windows Certificate Store.

WinCryptSSHAgent is incomplete and unstable under load.

For an OS used heavily in enterprise environments, this gap has been present for more than a decade.

This project implements the missing piece.



Overview

SRO PKCS11 – SSH Agent CNG is a single Windows executable that unifies:

a complete PKCS#11 module (Firefox, OpenSC, ssh -I)

an OpenSSH-compatible SSH agent

a Pageant-compatible server for PuTTY

a CNG/KSP backend for smartcards, TPM, Windows Hello, and enterprise certificates

a WSL2 TCP listener



It has no external dependencies, no CRT, no DLLs, and no middleware.

It works in RDP, RemoteApp, Citrix, multi-session, and hardened environments.



Repository:

https://github.com/Sanmilie/PKCS11SSHAgent (github.com in Bing)



The problem: Windows cannot use enterprise identities for SSH




  1. Enterprise certificates cannot be used for SSH
    OpenSSH for Windows cannot use:




  • non-exportable keys

  • ADCS-issued certificates

  • TPM-backed keys

  • Windows Hello keys

  • smartcards using CNG/KSP

  • This forces administrators to generate private keys on disk, which is a security regression compared to enterprise identity standards.




  1. Pageant is not ssh native

    Pageant requires a hidden window to function.

    Limited in PuTTY solution only


  2. gpg-agent is not a Windows-native solution

    It does not support:




CNG/KSP




  • Windows smartcard minidrivers

  • enterprise certificates

  • non-exportable keys

  • multi-session environments




  1. PKCS#11 modules do not integrate with the Windows Certificate Store
    OpenSC cannot access:




  • TPM-backed keys

  • Windows Hello keys

  • ADCS certificates

  • Virtual Smartcards

  • As a result, none of the existing tools can use the identities that Windows already manages securely.



The solution: a unified, native, dependency-free agent

This project provides a single executable that exposes:



a full PKCS#11 module

an SSH agent

a Pageant server

a WSL2 TCP bridge

a CNG/KSP cryptographic backend



All cryptographic operations are delegated to Windows.

Private keys never leave the KSP.

PIN entry is handled by the native Windows UI.



Key properties




  • Native CNG/KSP integration

  • Works in RDP and multi-session environments

  • No dependencies, no CRT, no external DLLs

  • Supports smartcards, TPM, Windows Hello, ADCS certificates

  • Supports RSA, ECDSA, Ed25519, Ed448, Brainpool

  • Supports PKCS#11 with 14 mechanisms

  • Supports OpenSSH, Git for Windows, Visual Studio, PuTTY, WSL, WSL2

  • Optional Windows service mode for hardened environments



Why this is the best option on Windows today




  1. Full CNG/KSP support




  • The agent uses:

  • NCryptSignHash

  • the Windows Certificate Store

  • smartcard minidrivers

  • TPM and Hello providers



Private keys:




  • are never exported

  • never transit through the agent

  • remain inside the KSP at all times

  • PIN handling is performed entirely by Windows.




  1. RDP-safe and multi-session safe the agent:




  • works in RDP

  • works in RemoteApp

  • works in Citrix

  • works in multiple sessions

  • works in non-interactive sessions




  1. A single binary




  • No DLLs.

  • No runtime.

  • No external libraries.

  • No registry pollution.




  1. Complete PKCS#11 implementation
    Compatible with:




  • Firefox

  • pkcs11-tool

  • ssh -I

  • Any pcks11 enabled product

  • Supports RSA, ECDSA, EdDSA, Brainpool, and PSS.




  1. Complete SSH agent
    Compatible with:




  • OpenSSH

  • Git for Windows

  • Visual Studio

  • VSCode Remote

  • WSL

  • WSL2 (via TCP 127.0.0.1:10022)




  1. Pageant compatibility

    PuTTY, plink, pscp, psftp all work.


  2. Optional Windows service mode

    For hardened or multi-user environments:




service runs in session 0

helper runs in the user session

PIN UI appears in the correct session

strict isolation between service and crypto operations



Example: using an ADCS certificate for SSH

Install the certificate in the Windows Certificate Store (non-exportable key).



Start the agent.



Export the public key:



Code

ssh-agent.exe -exportkey id.pub

Add id.pub to authorized_keys on the server.



Connect:



Code

ssh user@server

No private key file.

No token required.

No additional configuration.



Where this agent is most useful

RDP / RemoteApp / Citrix environments



Windows jump hosts



PKI / ADCS administrators

DevOps using Windows + WSL2

Enterprises using smartcards (PIV/GIDS/YubiKey)

Enterprises using TPM or Windows Hello

Hardened workstations

Windows-based CI pipelines



Download

https://github.com/Sanmilie/PKCS11SSHAgent

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - A native Windows SSH agent using CNG/KSP, with no dependencies, smartcard support, and full RDP compatibility
id: 173b8f5d-9f7a-4819-8325-3cf8a0a279c5
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "A native Windows SSH agent usi" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich A native Windows SSH agent using CNG/KSP.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten A native Windows SSH agent using CNG/KSP, with no dependencies, smartcard support, and full RDP compatibility

Thematisch verwandte Begriffe: native, Windows, agent, using · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97152 | Nanomsg versions 0.5-beta through 1.x before 1.2.3 has a remotely exploi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick