Skip to main content
XSSG / ENGINEERING / EMERGENCY SSH KEY REVOCATION

EMERGENCY RESPONSE / SSH CREDENTIALS

When a key is in doubt, keep control of the next move.

XSSG adds an operator-guided emergency command center for suspected SSH credential compromise. Review the affected gateway, preserve a known-good path, choose the smallest authorized action, and distinguish the action request from proof of its outcome.

THE SHORT ANSWER

XSSG beta31 includes guarded emergency tools to test key access, stage replacement with a verified new key, remove a selected authorized key, and request shutdown of a selected Linux gateway. These emergency paths have not yet passed live field acceptance; use an out-of-band console for first tests.

The four decisions in an SSH incident

01 / IDENTIFY

Read-only key test

Find out whether the selected private key still authenticates to the specified Linux account. This does not itself revoke access or prove the machine is malware-free.

02 / REPLACE

Re-key without locking yourself out

Use a functioning old key as a bridge when SSH password login is disabled. Install the replacement public key, prove a fresh key-only login, and only then seek approval to remove the old authorization.

03 / REVOKE

Remove one selected public key

Scope the change to the selected account’s ~/.ssh/authorized_keys entry. This is not a fleet-wide revocation or a guarantee that certificates, other accounts, agents, or alternative access routes are disabled.

04 / CONTAIN

Request Linux shutdown

Check administrative authorization and request a targeted shutdown; a dropped SSH connection is not proof that the host powered off. Availability of actual remote recovery varies by hardware and infrastructure.

Why rotation precedes revocation

If password-based SSH login is already disabled, destroying the only working public-key authorization can strand the operator. XSSG therefore treats the old key as a temporary bridge during an authorized replacement: enroll a new key, prove it independently, then revoke the selected old entry. If that new proof fails, preserve the old access path and report an incomplete rotation. See the full password-disabled rotation guide.

OPERATOR EMERGENCY GUIDE

What does “burn the key” actually mean?

In XSSG, burn is a useful shorthand for retiring an SSH identity that may no longer be trustworthy. It is not a claim that destroying a USB stick, erasing a private-key file or wiping a vault will make a copied secret stop working. A server may continue accepting the matching public key until its authorization is actually removed or denied.

  1. Identify the exposure. Select the exact host, account and key fingerprint. If the workstation or gateway may itself be compromised, establish a separate trusted recovery/console path.
  2. Create and prove a replacement. Generate a fresh protected identity and enroll only its public key. Open a new SSH session requiring that key, with password fallback disabled. The safe sequence preserves access until the replacement is known to work.
  3. Revoke the old authorization. Remove the selected public-key authorization from the actual trusted source (commonly the account’s authorized_keys). Verify the new key still works, and where possible prove a new login using the old key is rejected.
  4. Close the wider exposure. Check other users/hosts, additional authorized-key sources, SSH certificates or trusted CAs, agents, automation, already-established sessions and copies of the private key—including encrypted recovery copies of that same compromised identity.

Trust boundary: Key revocation limits future logins through the reviewed authorization. It does not by itself invalidate established sessions, prove host integrity or repair an exposed account elsewhere. If the original machine is suspect, changing the key alone may not finish incident containment.

Evidence state: This emergency procedure is documented for authorized evaluation. XSSG’s field-verified Mac session did not execute key burning, automatic revocation or an induced compromise. Do not treat these steps as an independently tested production guarantee.

Technical reference: OpenSSH server authorization and OpenSSH key revocation options.

What revocation does—and does not—remove

Removing an entry from a selected account’s authorized_keys only addresses that particular authorization. Investigate SSH certificates and trusted CAs, other authorized-keys files, separate user accounts, SSH agents, automation secrets, and configuration-management jobs. A suspected-compromise response also requires checking alternate remote-control routes and adjacent systems.

Before a remote shutdown

Review persistent sessions, VPN access, remote desktop tools, Raspberry Pi Connect, cloud dashboards, management controllers, Wake-on-LAN capabilities, smart power switches, scheduled BIOS power-on, virtual-machine restart policies, and compromised router or host neighbors. Some of these grant access to a running device; others may actually restore power. Do not assume one shutdown request disables every way back.

A human-readable emergency decision

XSSG / EMERGENCY RESPONSE

Target: selected Linux gateway + account

Plan: enroll replacement → independent key-only proof → scoped revoke

✓ Replacement key authenticated on a fresh SSH session

Awaiting explicit operator approval to revoke the selected old key

Illustrative sequence. Not a result from your gateway.

Humans and AI agents: one authorization boundary

A human can work through the terminal wizard. An AI agent can read the procedures and machine-readable evidence, but these docs are not an autonomous execution permission. The beta emergency controller uses guarded, selected-target operations and typed approvals. A reliable agent integration would also need authenticated request identity, scoped permissions, explicit authorization, durable audit logs, failure handling, and an independent execution result.

What is actually tested?

The November 22 macOS field run verified two USB recoveries, two current portable program copies, fresh SSH key access, and a guarded SSH/UFW policy commit. It did not execute an emergency key revocation, emergency shutdown, or compromised-host recovery drill. Those remain release-candidate acceptance gates.

Primary references

Read NIST IR 7966 for SSH access management, Smallstep’s emergency-access design for break-glass thinking, and OpenClaw remote access guidance for a separate example of layered SSH/tailnet access.

Evidence and engineering boundaries

The Mac acceptance run described here is a single operator-provided field transcript, not an independent certification or fleet-wide result. The XSSG v0.9.9-beta31 package remains beta software. Emergency revocation and poweroff are available for authorized testing, not represented as field-proven production controls. Verify every change on your own equipment with recovery access available.

Current release gates · Security claims and limitations · Operator manual