Security Architecture

Local custody, strict host verification, and explicit failure modes.

Because Hmpify executes administrative tasks with root privileges over SSH, credentials remain in local OS keyrings, host-key changes abort immediately, and administrative workflows apply operation-specific guards and rollback where supported.

Threat Model

How Hmpify isolates stored secrets, host fingerprints, and active SSH sessions across common failure scenarios.

Hmpify client threat model and concrete mitigations
Attacker Surface Risk Scenario Hmpify Defense
Disk Reader Stolen laptop, workstation backup, or local filesystem access AES-256 SQLCipher vault with memory hardening, a second authenticated encryption layer on SSH private keys, and vault keys stored exclusively in the OS keyring.
Network Position Untrusted Wi-Fi, ISP tampering, or active SSH interception Single private 0600 TOFU known_hosts store shared across internal SSH, External Terminal, tunnels, and publishing. Changed keys abort until you verify both fingerprints.
Unlocked Session Local access while your workstation user session is already unlocked Optional Master Password derives a key via scrypt to wrap keyring secrets before the vault opens. No recovery path exists, and the warning is shown clearly before enabling.

Engineering Safeguards

Credential custody, pre-send lockout guards, private-pipe elevation, and terminal sanitization enforced inside the application layer.

Transport Trust

Strict Host-Key Verification (TOFU)

Every SSH workflow shares one private 0600 known_hosts file isolated from ambient shell configs.

  • Pins the host fingerprint on first connect and verifies every subsequent handshake.
  • Mismatched keys abort immediately before credentials or commands leave your workstation.
  • Replacing a rotated host key requires side-by-side fingerprint comparison and two confirmations.
  • Runs isolated from workstation SSH agents and ambient proxy configs.
Key Custody

OS Keyring + Mandatory SQLCipher

Vault encryption keys live exclusively in your OS keyring rather than beside the encrypted database.

  • AES-256 SQLCipher encrypts server profiles, credentials, quick commands, scripts, and Activity history.
  • SSH private keys carry a second authenticated encryption layer from a separate keyring secret.
  • Keys reside in Credential Manager (Windows), Keychain (macOS), or Secret Service / KWallet (Linux).
  • Optional Master Password wraps vault unlock via scrypt (irreversible if forgotten).
Safety Guards

Pre-Send Refusal & Rollback

Destructive commands are checked in the execution layer before SSH commands are constructed.

  • Firewall manager prevents deleting or rejecting your active SSH port across all 4 engines.
  • SSH Port Wizard checks port availability, opens firewalls first, backs up sshd_config, and rolls back on failure.
  • User and Package managers refuse deleting root, openssh-server, sudo, systemd, or the active session user.
  • Sudo passwords and payloads travel over private 0600 pipes — never process arguments or logs.
Zero Telemetry

Zero Telemetry & Explicit Reconnects

Credentials stay local. Optional AI requests send a limited, redacted conversation and tool context directly to your configured provider.

  • Dropped SSH connections mark panes DROPPED and wait for your explicit reconnect.
  • Free installs without an activated licence transmit zero licensing or telemetry traffic.
  • Update discovery runs only when you explicitly click Check for Updates in Settings → About.
  • Embedded terminal disables remote clipboard writes, title queries, and escape-sequence paste break-outs.
Command Transparency

Declared privilege boundaries & change-only Activity trail

Every server-changing operation declares its effect and privilege boundary before running, so administrative mutations stay inspectable instead of hidden behind opaque scripts.

Pre-Send Effect & Guard Declarations

Actions in the execution layer classify read probes separately from mutations and destructive operations. Destructive steps carry a precondition guard that refuses unsafe changes before SSH commands leave your desk, or surface an explicit confirmation warning.

Change-Only Activity Center

Activity Center records server-changing mutations with the composed remote command and redacted secrets — never noisy read polling, and never interactive Terminal keystrokes or output.

Concrete SSH authentication, sudo framing, and pre-send lockout mechanics
Mechanism Exact Enforcement
Isolated OpenSSH & AsyncSSH Auth Runs with -F none, IdentityAgent=none, ForwardAgent=no, IdentitiesOnly=yes, and GSSAPIAuthentication=no so ambient ~/.ssh/config and workstation agents never silently supply keys.
Remote Privilege Elevation Detects capability once on connect (id -u, sudo -n -k), runs zero per-tick sudo, and frames passworded elevation via umask 077 stdin/FIFO with -- before sh -c and HISTFILE=/dev/null (zero secrets on argv).
Pre-Send Lockout Guards Firewall rules check active SSH session ports across UFW, firewalld, nftables, and iptables before writing; SSH Port Migration verifies port availability and backs up sshd_config prior to reload.
Engineering Verification

Internal Security Audit & Automated Gate

All four internal engineering audit waves completed on 2026-11-27, enforced continuously by pre-commit and CI gates (security pattern checks, Ruff S rules, AST detectors, C++ ASan/UBSan sanitizers, and pip-audit). Scope reflects internal engineering verification rather than an external third-party attestation.

Completed 4-wave internal security audit scope, standards, and verified fixes
Wave Scope Standard Verified Outcomes
Wave 1 Desktop providers, services & SFTP (232 files) CWE Top 25 Eliminated raw heredoc SQL interpolation, hardened cron flock directory permissions and interface validation, and enforced a zero-tolerance AST heredoc detector.
Wave 2 Licensing & website APIs, deploy templates OWASP API Top 10 Added per-IP rate limiting, strict security headers, fail-closed known_hosts parsing, isolated mktemp sudo stdin pipes, and pinned server dependency locks.
Wave 3 Native C++ terminal engine & parsers Memory safety & DoS Bounded link/OSC/grapheme accumulators, converted C++ exceptions safely at the Python boundary, verified parser regexes against ReDoS, and added an ASan + UBSan fuzz suite.
Wave 4 Key custody, downloads & dependencies Supply chain & secrets Enforced HTTPS + 256 MiB capped SHA-256 downloads, removed hardcoded tunnel defaults, verified fail-closed SQLCipher + OS keyring custody, and confirmed zero-CVE pip-audit.

Verifiable Outbound Network Policy

Every external network destination Hmpify can ever contact is listed below, verifiable with any local packet capture or firewall monitor.

Complete outbound destinations and triggers for the Hmpify desktop app
Destination When It Runs Data Sent Free Copy Behaviour
Your own SSH servers Only when you connect or run an action Standard SSH commands & SFTP streams Direct connection with isolated TOFU host-key verification
license.hmpify.com Once after startup (only when a Pro key is configured) or manual Activate / Refresh Signed licence verification request Completely silent — zero requests sent on Free
hmpify.com/api/v1/desktop/updates Only when you press Check for Updates App version, build number, OS, arch, channel — zero account or server data Inert until clicked; never polls on a timer
Your configured AI endpoint Send (including bounded tool continuations), Test Connection or Load Models Conversation and allow-listed redacted User Manager context on Send; bounded metadata/readiness checks on Test or Load Models. No SSH credentials or connection details Inert until explicitly invoked; provider-level Pro checks govern administrative tools
User-selected diagnostic hosts Only when you start a diagnostic The requested DNS, TLS, HTTP or port probe; no telemetry report Available on explicit invocation; these utilities are not all offline
Third-party analytics or crash hosts Never None Zero telemetry SDKs compiled or bundled

Vulnerability Disclosure

Report security issues to security@hmpify.com or support@hmpify.com. Disclosure metadata is published at /.well-known/security.txt; account e-mail handling is documented in the Privacy Policy.