{"slug": "how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s", "title": "How I Built a Lockout-Proof Windows SSH Security Copilot for Ubuntu (With 90s Auto-Rollback)", "summary": "A final-year computer security student in Malaysia built NodeHeal AI, a Windows system-tray app that connects to Ubuntu 24.04/26.04 LTS servers over TOFU-pinned SSH to detect and remediate security incidents without granting an LLM raw shell access. The tool uses 11 deterministic detection rules, local redaction of secrets before incident context reaches a BYOK model (Claude, Gemini, OpenAI, or offline Ollama), and restricts AI recommendations to 14 pre-audited catalog actions. Firewall and SSH changes are guarded by a 90-second systemd-run revert timer plus a fresh independent SSH probe that triggers automatic rollback if access is lost.", "body_md": "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.\n\nAs a final-year computer security student in Malaysia, I built **[NodeHeal AI](https://nodeheal.hexforgedstudio.com)** to solve that without needing cloud root keys or complex SIEM agents.\n\nInstead of giving an AI shell access, NodeHeal AI separates **detection**, **explanation**, and **execution**:\n\n**Pinned SSH From Windows (Zero Cloud Root Keys):**\n\nThe desktop app sits in your Windows system tray and connects directly to your Ubuntu 24.04 / 26.04 LTS server using TOFU-pinned SSH. Credentials and API keys stay encrypted locally with Windows DPAPI.\n\n**Deterministic Threat Detection (11 Live Rules):**\n\nNo AI guessing for detection — host telemetry flags SSH brute-force bursts, web scanners, `/tmp` malware execution, outbound reverse shells, and `nftables` firewall baseline drift (while leaving Docker/CrowdSec chains untouched).\n\n**Local Secret Redaction Before BYOK AI:**\n\nBefore any incident context is sent to your own AI key (**Claude, Gemini, OpenAI, or 100% offline Local Ollama**), a local redactor strips private keys, JWTs, bearer tokens, and `.env` secrets.\n\n**Allowlisted Catalog Fixes Only (Zero Raw AI Bash):**\n\nThe AI can explain what happened in plain English and recommend an ID from **14 pre-audited catalog actions** (like a scoped 10m/1h/24h `nftables` block, PID `SIGSTOP` freeze, or SSH hardening) — never arbitrary shell strings.\n\n**90-Second Dead-Man's-Switch Auto-Rollback:**\n\nBefore applying any firewall or SSH change, Ubuntu arms a local 90-second `systemd-run` revert timer. NodeHeal applies the rule and opens a **fresh independent SSH probe** to prove you still have access. If that probe fails, the server rolls itself back automatically at 90 seconds.\n\n`support@hexforgedstudio.com`)\nI'd love honest feedback from Linux and VPS admins here — what edge cases or Ubuntu checks would you want next?", "url": "https://wpnews.pro/news/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s", "canonical_source": "https://dev.to/chan_xier_3cadc869f19f45/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s-auto-rollback-i4l", "published_at": "2026-12-06 16:02:41+00:00", "updated_at": "2026-12-06 16:14:34.666033+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools", "artificial-intelligence"], "entities": ["NodeHeal AI", "HexForged Studio", "Ubuntu", "Windows", "Claude", "Gemini", "OpenAI", "Ollama"], "also_reported_by": [], "takeaway": "Restricting an LLM to a fixed catalog of pre-audited actions, paired with a 90-second systemd-run revert timer and an independent SSH probe, lets AI-assisted firewall and SSH changes self-heal if they lock you out.", "recommendation": {"advice": "Never let an LLM emit raw shell commands on production hosts: constrain it to allowlisted actions and arm a timed auto-revert with an independent access probe before applying firewall or SSH changes.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s", "markdown": "https://wpnews.pro/news/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s.md", "text": "https://wpnews.pro/news/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s.txt", "jsonld": "https://wpnews.pro/news/how-i-built-a-lockout-proof-windows-ssh-security-copilot-for-ubuntu-with-90s.jsonld"}}