{
  "id": 23854928,
  "title": "How I Built a Lockout-Proof Windows SSH Security Copilot for Ubuntu (With 90s Auto-Rollback)",
  "url": "https://urgent.news/2026/12/06/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu",
  "topic": "ai",
  "section": "AI",
  "published": "2026-12-06T16:02:41.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/chan_xier_3cadc869f19f45/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s-auto-rollback-i4l"
  },
  "original_language": null,
  "account": "Most AI terminal tools allow an LLM to generate and run raw bash commands directly on a server. For users managing a production Ubuntu virtual private server (VPS), a single misconfiguration or hallucinated command could result in being locked out of the system at 2 AM. As a final-year computer security student in Malaysia, I developed NodeHeal AI to address this issue without requiring cloud root keys or complex security information and event management (SIEM) agents.\n\nNodeHeal AI's architecture is based on separating detection, explanation, and execution. The desktop application runs in the Windows system tray and connects directly to the Ubuntu 24.04 or 26.04 LTS server using trust-on-first-use (TOFU)-pinned SSH. This ensures that credentials and API keys remain encrypted locally using Windows Data Protection API (DPAPI). Deterministic threat detection employs 11 live rules to flag potential issues, such as SSH brute-force attempts, web scanners, execution of malware in the /tmp directory, outbound reverse shells, and nftables firewall baseline drift. This approach avoids AI guessing and leaves Docker and CrowdSec chains untouched.\n\nTo further enhance security, NodeHeal AI implements local secret redaction before sending any incident context to the user's own AI key (Claude, Gemini, OpenAI, or 100% offline Local Ollama). The local redactor strips private keys, JSON Web Tokens (JWTs), bearer tokens, and .env secrets. The AI is limited to a catalog of allowlisted actions, with a total of 14 pre-audited options available. These include scoped firewall blocks (10m, 1h, or 24h), PID SIGSTOP freezes, and SSH hardening measures. The AI never generates arbitrary shell strings.\n\nTo prevent unintended changes, NodeHeal AI incorporates a 90-second dead-man's-switch auto-rollback mechanism. Before applying any firewall or SSH modification, Ubuntu sets up a local systemd-run revert timer. NodeHeal applies the recommended rule and initiates a fresh, independent SSH probe to confirm that access to the server is still possible. If the probe fails, the server automatically reverts to its previous state after 90 seconds. A trial version of NodeHeal AI is available for interactive testing and download at nodeheal.hexforgedstudio.com. The project was created by HexForged Studio, and they welcome honest feedback from Linux and VPS administrators regarding any edge cases or additional Ubuntu checks they would like to see implemented in the future.",
  "summary": "Most AI terminal tools let an LLM generate and run raw bash commands directly on your server. For anyone managing a production Ubuntu VPS, one bad firewall rule or hallucinated command can mean locking yourself out at 2 AM. As a final-year computer security student in Malaysia, I built NodeHeal AI to solve that without needing cloud root keys or complex SIEM agents. How the Architecture Works…",
  "summary_source": "publisher",
  "key_points": [
    "NodeHeal AI prevents lockouts by separating detection, explanation, and execution.",
    "Trust-on-first-use (TOFU)-pinned SSH ensures secure server connection.",
    "90-second dead-man's-switch auto-rollback protects against unintended changes."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}