Cloudflare has contributed to the open-sourcing of OPKSSH, a tool that integrates single sign-on (SSO) technologies like OpenID Connect (OIDC) into SSH protocols.
This integration simplifies SSH access by leveraging OpenPubkey, which embeds public keys into the SSO tokens issued by identity providers (IdPs).
The main beneficiaries of this innovation are organizations that struggle with managing and securing long-lived SSH keys.
SSH (Secure Shell) is a widely used protocol for secure access and management of remote servers.
Traditional SSH access involves generating a pair of long-lived public and private keys, where the public key needs to be configured on each server the user accesses.
This approach poses several challenges:
OpenPubkey is an extension of OpenID Connect, a widely adopted SSO protocol. It embeds public keys into the ID Tokens (PK Tokens), which are issued by an OpenID Provider (OP).
This allows these tokens to be used similarly to certificates, connecting a user’s identity with a specific public key.
OPKSSH expands this capability by enabling the use of these PK Tokens as SSH keys, thereby integrating SSO directly into SSH protocols without requiring changes to the underlying SSH infrastructure.
Here’s how it improves upon traditional SSH key management:
To use OPKSSH, a user runs the opkssh login command, which generates ephemeral SSH keys and prompts the user to authenticate through their OpenID Provider.
Upon successful authentication, OPKSSH creates a PK Token that links the user’s identity with their ephemeral public key.
This information is packaged into an SSH certificate extension and transmitted to the server during the SSH connection process.
On the server side, the SSH configuration is updated to use the OpenPubkey verifier instead of the standard SSH key checker.
This verifier checks the validity and expiration of the received PK Token, ensuring that the public key presented matches the one in the token and that the user is authorized to access the server.
The open-sourcing of OPKSSH represents a significant leap forward in streamlining SSH access while bolstering security.
By leveraging existing single sign-on infrastructure, organizations can eliminate the complexities of managing long-lived SSH keys, enhancing both user experience and security posture.
Cloudflare’s integration not only modernizes SSH security but also aligns well with broader trends in identity-driven access management.
With OPKSSH now available under the Apache 2.0 license on GitHub, developers and administrators can explore and implement this feature-rich tool to simplify SSH management in their environments.
The potential benefits extend beyond security; they also enhance operational efficiency and user convenience, which are critical factors in today’s fast-paced and security-conscious digital landscape.
Are you from SOC/DFIR Teams? – Analyse Malware, Phishing Incidents & get live Access with ANY.RUN -> Start Now for Free.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…