SafeAI documentation

Security model

Exactly what SafeAI can do on your devices, what it connects to, what it keeps, and where its protection stops.

For your security team. SafeAI Edge holds credentials to your network devices, servers and cloud accounts, and can run an agent on your computers, so it is built to need as little as possible and to keep what it holds on your server. This page says what it does and also where its protection stops.

What it can do on your devices, servers and accounts

Reading (always): with accounts you create, SafeAI only displays configuration.

  • Network devices over SSH: terminal length 0 / terminal pager 0, show running-config, more system:running-config (IOS), show (FortiOS), show configuration | display set (Junos), vtysh -c 'show running-config' (FRR), info flat (SR Linux); enable on ASA and EOS when the account lands at the > prompt. PAN-OS: the XML API (keygen, then show config). pfSense / OPNsense: cat /conf/config.xml (then sudo -n cat /conf/config.xml if needed) and cat /etc/version / opnsense-version. WatchGuard: export config to console. Firepower FTD: show running-config. Aruba CX: no page, show running-config; Dell OS10: terminal length 0, show running-configuration; Ruckus ICX: skip-page-display, show running-config.
  • Firewall APIs (preview): SonicWall's SonicOS API (GET requests, then sign-out; the credential only in the Authorization header, digest by default); Sophos's XML API (one <Get>, the credential only in the POSTed form); Check Point's Management API (a read-only session, show-* commands, then logout). Credentials never go in a URL, and pinned certificates are checked first.
  • Linux over SSH and the agent: one fixed script of display-only commands (packages, services, listening ports, accounts, SSH server settings, firewall, time, updates). No sudo.
  • Windows over WinRM and the agent: one fixed PowerShell script that only reads (Get-* commands).
  • Network devices: after the configuration, one display-only ARP command on the same session (for Coverage; can be turned off). SafeAI keeps the addresses, MAC addresses and interface names it lists, separately from the configuration.
  • Switches (Cisco IOS/IOS XE, NX-OS, Arista EOS, Junos, Nokia SR Linux): one display-only MAC address table command on the same session (show mac address-table, show ethernet-switching table | no-more, show network-instance bridge-table mac-table all), for Devices on the network. SafeAI keeps the MAC address, VLAN and port of each entry (at most 20,000 per switch).
  • VMware: the vSphere API with the Read-only role. AWS (SecurityAudit), Azure (Reader), Google Cloud (Viewer, Security Reviewer): list and describe calls only.
  • Identity providers (preview): Microsoft Graph with read-only application permissions (User.Read.All, Directory.Read.All, AuditLog.Read.All, Policy.Read.All, RoleManagement.Read.Directory); an Okta API token of a Read-Only Administrator; Google Workspace through one delegated read-only scope (admin.directory.user.readonly). SafeAI stores account names, roles, MFA registration and sign-in dates, never passwords or MFA secrets.
  • Wi-Fi and gateways (preview): eero's unofficial cloud API with a session token; the Meraki Dashboard API with a read-only API key (Wi-Fi and MX); UniFi's Network API with a View Only account (GET requests, then sign-out); a Catalyst 9800 controller's RESTCONF (IOS XE only lets a privilege 15 account use RESTCONF, so that account can change the controller over other paths: keep it to SafeAI); Aruba Central's API Gateway with a token for a read-only user. GET requests only, apart from Central's token refresh: Central replaces the refresh token each time, and SafeAI saves the new one, encrypted, in the same account. Pre-shared keys, RADIUS secrets and WLAN keys in the answers are dropped before anything is stored; client user names a 9800 knows are not kept. The connected devices (MAC, address, access point, band, signal) are kept apart from the configuration.

The scripts the agent runs are the same as the agentless connectors' (a release test checks they are identical and contain no command that changes anything).

Live checks (only when an administrator turned them on; off by default): display-only commands from a fixed list per platform (Cisco IOS/IOS XE, NX-OS, IOS XR, Arista EOS, FortiOS, Junos, FRR, Nokia SR Linux), such as show ip route, show ip ospf neighbor, show interfaces <interface> or get router info routing-table details <address>, to see a device's state right now. This is the read side of AgentGuard:

  • each check is a fixed template; a parameter can only be an interface, access list or VRF that SafeAI saw in the device's last configuration (sent with the configuration's spelling), or a plain IP address. Nothing free-form is sent, and no AI writes or picks a command;
  • only with the read account, never the write account, and only to a device whose SSH host key SafeAI already knows;
  • administrators only; at most 6 checks a minute per device and 30 in all (Settings), one at a time per device, 60 seconds and 512 KB of output each;
  • the output is redacted before it is stored or shown, including secrets in the middle of a line (logged commands in show logging, for example), and not stored at all if a secret can't be hidden. Only administrators can open stored output. Every check (who, why, device, exact command, when, the output's SHA-256) is kept in a hash-chained log and the audit log.

ASA, PAN-OS and computers have no live checks yet.

AI model (only when an administrator set one up; off by default): for an incident, SafeAI can ask a model for possible causes. It sends only redacted text (the incident's title and symptom, device names and platforms, the timeline's change summaries and changed lines), with secrets removed wherever they appear in a line (a person may paste "password: ..." into the symptom). It sends nothing if a secret can't be hidden or anything still looks like one, and keeps a copy of exactly what it sent. Redaction is pattern-based: a secret in a form SafeAI doesn't recognise could still be sent, so don't paste secrets into incidents. The API key is a saved account that devices can't use and that is deleted when the model's address changes. The answer is parsed into causes of fixed kinds; it can't add a command, a check or a fix.

The console (Ask SafeAI, when a model is set up) gives the model SafeAI's own read-only tools: the built-in answers, a what-if prediction, where a device is on the network, a search of the stored configurations (secrets already removed, then hidden again before sending), the device list, the rules in plain English, the network as it was at a past time, and which devices an advisory affects. Each tool's result is redacted like the incident text before it is sent; at most 5 calls per question; nothing a tool can do changes a device or a setting. Every sentence of the answer is checked against the results it cites (names, interfaces, addresses, numbers) and left out if they aren't there; a suggested change is predicted by the what-if before it is shown and still needs a change request or an approved fix. Every question is in the audit log. Accounts limited to a client and the public demo don't reach the model. Voice uses the browser's own speech recognition (in Chrome it is Google's service; in Safari it can run on the device): if your rules don't allow that, type instead.

Changing (only with approved fixes turned on; off by default): see "Approved fixes" below.

Network connections

Direction Port Purpose
To SafeAI TCP 443 Console and API (HTTPS, TLS 1.2+)
To SafeAI UDP/TCP 514 Device logs (syslog)
To SafeAI (optional, off by default) UDP 2055 NetFlow / IPFIX from devices in the device list (bandwidth per application)
To SafeAI TCP 8444 SafeAI Agent (mutual TLS; agents connect out, SafeAI never connects to them)
From SafeAI TCP 22 SSH to network devices and Linux servers
From SafeAI TCP 5986 WinRM over HTTPS to Windows
From SafeAI TCP 443 vCenter/ESXi, PAN-OS; AWS, Azure (login.microsoftonline.com, management.azure.com) and Google Cloud (oauth2, www, cloudresourcemanager, sqladmin, logging .googleapis.com) APIs; identity providers (graph.microsoft.com; your <org>.okta.com; admin.googleapis.com), for the accounts you add
From SafeAI (optional) TCP 443 Your identity provider, ServiceNow, Teams/Slack/webhooks, heartbeat
From SafeAI (optional) TCP 587 / 25 Your mail server
From SafeAI (optional, off by default) TCP 443 The AI model you set up (for example api.anthropic.com, or a model on your own network), only when someone asks it something (an incident, the console, a rule in plain English)

Nothing else. SafeAI doesn't send data to SafeCadence, needs internet access only for the cloud accounts you add, and sends redacted incident text to an AI model only if an administrator set one up. Every explanation, finding, check and fix is fixed code; an AI model can only suggest causes, which SafeAI then tests with its own fixed checks, write answers that SafeAI checks against its records, and propose rules and changes that SafeAI checks before a person decides.

Before it sends a password, key or token anywhere, SafeAI checks who it is talking to: the SSH host key (network devices, Linux), the server's certificate against your organization's CAs or the one fingerprint pinned for that device (WinRM, vCenter, PAN-OS), and for clouds the provider's exact API host names (a lab test address on the SafeAI server itself is the only exception).

Firewalling. The ports are published by Docker, which inserts its own rules ahead of the server's firewall: ufw or firewalld on the SafeAI server do not filter them. Restrict access with your network firewall, by binding SafeAI to one address (BIND= and SYSLOG_BIND= in /etc/safeai/safeai.env), or with rules in Docker's DOCKER-USER iptables chain. See Installation guide, Network access.

Data it keeps (all on your server, in /var/lib/safeai)

  • Configurations, redacted before they are stored. Values SafeAI recognises as secrets (passwords, enable secrets, SNMP communities and v3 keys, TACACS+/RADIUS keys, IKE/IPsec pre-shared keys, routing-protocol and first-hop keys (OSPF, BGP, IS-IS, HSRP, VRRP, GLBP, NTP), PPP/NHRP/L2TP secrets, passwords inside URLs, private keys, the FortiOS SNMP community table, FortiOS automation webhook addresses and header values, FortiOS ENC values, SR Linux secrets) are replaced by a fingerprint: a keyed HMAC, so SafeAI can tell that a secret changed without storing it. FortiOS ENC values become a fixed marker because the FortiGate re-encrypts them on every display. Two checks then run on the redacted text:
  • a blocking check for forms that are certainly a secret left in clear (private-key blocks, password hashes, type-7 strings, the known secret commands with a clear value). If it finds one, the configuration is not stored and the read is reported as failed.
  • a broad keyword scan ("password X", "secret X" ...). It can't tell a secret from an ordinary name (match community CUST, a banner, a policy name), so it never blocks a read; the Health page lists the device, line number and keyword (never the value).

Redaction is pattern-based: a secret in a form SafeAI doesn't know can still be stored in clear; the broad scan is there so you see where. Commands that devices log (Cisco archive log config) are redacted the same way, abbreviations included (snmp comm X), before they are stored or alerted. On upgrade from 1.0, stored configurations and change records are redacted again with these rules. * Devices on the network: for each MAC address seen, where it was (site, switch, port, VLAN, port description, or router interface), its addresses, names, a name someone gave it, and up to 100 history entries (endpoints/state.json). What devices reached, only when an owner turned it on: a per-device, per-day summary of FortiGate traffic logs (destination name or address, port, application, country, session and byte counts, blocked count; at most 500 destinations per device and day), deleted after retention_days. No traffic content and no URLs beyond the host name the firewall logged. Only administrators and owners can read it, and each read is in the audit log. * User experience (only when an administrator turned it on): per test, the service address, timings, status code and error, and the computer's Wi-Fi network name, access point address, signal, channel and rate. Kept retention_days. * Bandwidth (only when an administrator turned on flows): per hour, per exporter, the bytes, packets and flows per application and interface, per source address (top 2,000; administrators only) and, only when "what a device reached" is on, per conversation (top 500; administrators only). Deleted after retention_days. NetFlow/IPFIX is accepted only from devices in the device list (UDP 2055). * Device passwords you give it: encrypted (Fernet: AES-128-CBC with HMAC-SHA256) with a key on the server (keys/master.key, owner-only). They are never shown again in the console or API. A saved device password is only sent to devices in the device list, at their saved address, after the SSH host key has been checked. An administrator can still add a device at any address and so direct a saved password to it: adding devices is an administrator's power, recorded in the audit log, so give few people that role. Saved secrets for single sign-on and ServiceNow are deleted when their address changes; an alert account is tied to the first destination it is used with (a webhook URL or mail server) and is refused for any other until it is saved again. * Backups made by 1.1 contain no keys by default: not the password key, not the redaction key, not the session key, not the HTTPS private key, and no sessions. A plain backup therefore can't decrypt the saved passwords or sign anyone in. safeaictl backup --with-key adds the password and redaction keys: store such a backup like a password. safeaictl key-export writes both keys to one file, for restoring onto a new server. Restoring always creates a new session key, so everyone signs in again. Backups made by 1.0 (including the one safeaictl upgrade takes just before upgrading from 1.0) do contain the session and redaction keys; the Health page lists them. Delete them, and their copies, once you no longer need them for a rollback. * Console accounts: passwords stored as PBKDF2-SHA256 hashes (600,000 iterations). Sign-in is rate-limited per address (20 failures in 15 minutes) and per address and account (8), counted atomically so parallel guesses are counted too, and at most 4 password checks run at once. There is deliberately no per-account limit across addresses, so nobody can lock an account out from elsewhere; guessing from many addresses is slowed by the hashing cost. * Change records: each one has a SHA-256 fingerprint of what it says happened, and every later action on it (acknowledge, note, accept) is chained to the one before. Each time a record is saved, its ID and fingerprint are also added to a hash-chained ledger. safeaictl verify and the change page check the fingerprints, that a record's state matches its history, that the Changes list matches the records, that the ledger's chain is intact, and that every record in the ledger still exists with the fingerprint the ledger last recorded for it, so a record deleted (with its Changes-list entry) or with its last history entries removed is reported, as is a record missing from the Changes list or a list entry without a record. Each chained log also has a head file recording the last hash, how many entries were written and where the kept history starts, so deleting the log, removing its oldest or newest entries, or slipping in an unchained line is reported too. This is tamper-evident, not tamper-proof: someone with write access to the data directory (a root user on the server) can still rewrite the records, the logs and their head files consistently. For evidence that holds against the server's own administrators, send SafeAI's alerts to your SIEM (syslog or webhook alert channel): each one carries the record's ID. * What the agent reports: the output of its fixed scripts, and for AI tools only names and settings: tool names, MCP server names and the program they start (its file name, or "remote "), whether that configuration holds a key or token (yes/no, never the value), and a fixed list of settings that let an AI act without asking (for example Claude Code permissions.defaultMode, Codex approval_policy and sandbox_mode). SafeAI drops any other setting a report contains. Reports are redacted like configurations; API tokens recognisable by their format (GitHub, GitLab, Slack, AWS key IDs, Google API keys, OpenAI/Anthropic keys, Stripe live keys, JWTs) are replaced wherever they appear, and a report in which one is still found is not stored. * Audit log of sign-ins and administrative actions, agent enrollments and every step of every fix. Each entry carries the hash of the one before; files rotate at 20 MB and the last 20 are kept, chained across files. The Audit log page and Health check the chain and report an edited entry, a break, removed oldest or newest entries, a missing file or an unchained line. The controls history, the live-check log and the incident log are chained the same way. Like the ledger, this is tamper-evident against changes made outside SafeAI, not proof against a root user on the server who rewrites everything. * Evidence exports (controls, change control, measurements) end with a footer (what, when, the data's SHA-256, notes) and, as the last line, an Ed25519 signature over everything above it, footer included (key in keys/evidence-signing.key, never in backups). A valid signature shows the file is unchanged since this SafeAI produced it; it says nothing about whether the organisation is compliant.

Only configuration-change log messages are interpreted; other log content is not stored. Syslog is not authenticated: anyone who can send packets to the syslog port with a device's address can make SafeAI read that device sooner, put a user name and commands into a change record, or (for a FortiGate) create a low-severity "logged change that doesn't show in the configuration" record, at most one per device per hour, later ones added to it as notes. SafeAI treats that text as untrusted: it is shown "as logged", has markup removed before it goes into Slack/Teams/email, and is capped in size (at most 200 commands per change; a device that keeps logging is read at the latest 2 minutes after its first message; a fixed set of workers handles log packets). Line by line, what changed is taken from the configuration SafeAI reads itself; only two kinds of record rest on the log alone, and say so: a change on a device SafeAI then can't read, and a FortiGate change that doesn't show in its configuration. Restrict the syslog port to your devices and log server.

Logs it keeps (when turned on)

Off by default. When an administrator turns it on, SafeAI keeps the log lines devices in its list send it (syslog, OpenTelemetry), in /var/lib/safeai/logs/logs.db, after replacing recognised secrets; lines from other senders are counted, not kept. Retention, a daily size cap and a per-device rate limit apply, and removed lines are overwritten (SQLite secure delete). Logs can contain user names and addresses: anyone signed in can search them (an account limited to a client: only its own devices), and they are not shown in the public demo. Secret replacement is pattern-based, so a secret in a form SafeAI doesn't recognise can still be kept: don't log secrets in clear text.

Who can use it

Local accounts (the first administrator needs a one-time setup code printed on the server) and single sign-on with your identity provider (OpenID Connect, authorization code flow with PKCE). For single sign-on the ID token's signature, issuer, audience, authorised party, expiry, not-before time and nonce are checked, the sign-in must finish in the browser that started it, and group membership must match exactly (safeai-admins or the top-level path /safeai-admins). Nothing is stored on the server for a sign-in in progress (its state travels encrypted in a cookie of the browser that started it), so anonymous requests can't fill it up. Five roles, each including the one before: viewer, operator, approver, administrator, owner (Administrator guide, Roles and sign-in). Every request is checked against the role on the server; anything not explicitly opened to a lower role needs an administrator. Viewers, operators and approvers don't see alert destinations, single sign-on details, saved accounts or API tokens; only owners change users, roles, sign-in, the rules for fixes and the public demo, and there is always at least one owner.

Two-step sign-in (TOTP, RFC 6238) for local accounts, required for approvers and above by default: the password alone gives no session, only a signed, single-use, 5-minute ticket for the code; a person whose role needs it and hasn't set it up gets a session that can do nothing but set it up (not even open the Workbench). App secrets are encrypted with a key derived from the master key, recovery codes are kept as SHA-256 hashes, a code is never accepted twice, and wrong codes are limited per sign-in (5) and per account (10 in 15 minutes, then an alert). With single sign-on SafeAI can require the identity provider to report a second step (amr).

Accounts limited to a client (MSPs) are answered only on an allow-list of routes that filter by the client's devices (everything else, including the Workbench, Ask SafeAI and exports, is refused), and every response to them is checked last for other devices' names and addresses and other clients' and sites' names. They can be at most approvers. With client sign-off, approvals on a client's devices must come from that client's own approvers, checked again by AgentGuard before the change runs. A person removed from the group at the identity provider keeps an open SafeAI session until it ends (at most 12 hours); to cut it at once, change the SSO group settings, which ends all single sign-on sessions.

Sessions are kept on the server; the browser holds a signed session ID (HttpOnly, Secure, SameSite=Strict, 12 hours). Signing out, changing a user's password or role, removing a user, and changing single sign-on settings end the affected sessions immediately. Every request that changes something (including sign-in, sign-out and setup) must carry a custom header that a browser won't send cross-site. The session ID is never sent back to the browser in a response body. The console sends a strict Content-Security-Policy (scripts and styles only from SafeAI itself), HSTS, and refuses to be framed. The API for planned changes uses tokens that are shown once and stored only as SHA-256 hashes. Without a session, the console accepts only small requests; it serves at most 256 connections at a time, and drops a connection that sends nothing for 15 seconds.

The SafeAI Agent

  • Enrollment: an administrator creates an enrollment code (valid for a chosen time and number of computers; stored only as a SHA-256 hash). The install command contains SafeAI's agent-CA fingerprint; the agent refuses to send anything to a server whose certificate chain doesn't contain that CA. It creates its own key (P-256) on the computer; SafeAI signs a client certificate for it (one year, renewed automatically on a new key 30 days before it ends; the old certificate stops working when the new one is first used). A malformed request doesn't use up an enrollment; repeated failures from one address are slowed down.
  • Reports are accepted only over mutual TLS with a certificate SafeAI issued and hasn't revoked. A report can only describe the computer it is enrolled as (the device record must be that agent's own; removing the device revokes its agent, so a device added later under the same name is never written by it), and its operating system is the one it enrolled with. Reports are limited to 8 MB. The agent port has its own connection limits (512 in all, 32 per address, 3 minutes per connection), separate from the console's.
  • Experience tests (agent 2.1, only when an administrator turned them on): the agent tests only the https:// addresses on port 443 that SafeAI sends it over the pinned connection (at most 10; IP addresses on private, loopback or link-local networks are refused), with name lookups, a TLS connection checked against the computer's trusted roots and one HEAD request each, and reads the Wi-Fi status with the operating system's own command. It runs no other command and downloads nothing.
  • Agent 2.2 reads more, still without changing anything or capturing traffic: the program behind each listening port and, when an administrator turned connections on, the system's connection table about once a minute (program name, direction, protocol, remote address, port and counts; no packets, no names looked up, no web addresses); disk space and boot time; server certificates in the usual folders (certificates only: files named like keys, folders named private and every non-certificate block are skipped, so a key is never read into a report); startup items (program and schedule only, never arguments); and, when turned on, important events from fixed lists (Windows Get-WinEvent with fixed log names and event ids, journalctl, macOS log show with a fixed predicate). The commands are built in; SafeAI only switches them on or off.
  • Network tests (agent 2.3, when turned on): only to the https:// services SafeAI lists (internet addresses, port 443): TCP connections opened and closed with nothing sent; path probes (UDP to high ports with a growing time-to-live, read with a raw ICMP socket on Linux and macOS; the system ICMP echo on Windows); PTR lookups of the internet hops' addresses; DNS lookups of the listed names with the computer's DNS and the listed servers. No other addresses are probed.
  • Updates (agent 2.2.1): the agent installs only a newer version offered with SafeAI's fix-signing key (learned at enrollment) for that agent, system and architecture, within 2 hours, and only a program whose SHA-256 matches the signed one, downloaded from your SafeAI over the pinned connection; never from anywhere else. Off in SafeAI until an administrator approves sites; a computer's administrator can refuse it there (safeai-agent updates off), which SafeAI can't change. The old program is kept and restored by the agent if the new one can't report within 15 minutes. Someone who controls your SafeAI server can push an agent version it carries, as it can approve fixes: protect that server accordingly.
  • Checks around a change (agent 2.2.1): TCP connections only (opened and closed, nothing sent) to the addresses and ports on a console-made maintenance window, only from the computers on it and only from an hour before to an hour after it.
  • The enrollment code is passed to the agent on standard input by the install commands, so it doesn't appear in the computer's process list; it can still be in the shell's history. Codes are for one computer and 24 hours unless you choose otherwise: treat a code for many computers like a password and revoke it when the rollout is done.
  • On the computer the agent runs as root/SYSTEM (it has to, to read every user's AI-tool settings and the system's security settings). It never listens on the network and never runs commands it is sent. Its folder (/etc/safeai-agent, /Library/Application Support/SafeAI/Agent, C:\ProgramData\SafeAI\Agent) is made root/SYSTEM-and-Administrators only at enrollment (on Windows SafeAI takes ownership of C:\ProgramData\SafeAI and removes inherited permissions, so a user who created it first loses control of it), and fixes are refused while it isn't. On macOS the program is installed in /Library/SafeAI/bin (root-owned), and on Linux and macOS install refuses a program location that someone other than root can write. On Linux the service runs with systemd's ProtectSystem=strict: it can write only its own directory, plus, when its administrator allowed fixes, /etc/ssh/sshd_config.d and home directories.
  • Binaries: built from source inside the release image and offered for download by your SafeAI with their SHA-256 (the install commands check it). They are not yet code-signed by SafeCadence (Windows SmartScreen and macOS Gatekeeper warn); see "Not done yet".

Approved fixes

Off by default (Settings, Fixes). When on:

  • Fixed catalog, no AI. Each fix is code for one kind of finding (for example "the HTTP management server is on" on IOS, or "Codex never asks before acting"); its plan (the exact commands, or the agent action and its parameters) is computed from the finding's evidence lines. Nothing free-form is ever run.
  • Approval bound to the plan. A person proposes the fix; an administrator approves that exact plan (its SHA-256) and a change window. With two-person approval (the default) the approver must be someone else. For local accounts SafeAI also refuses an approver who created the proposer's account or whose account the proposer created, or whose password the proposer last set; a new or re-passworded local administrator can't approve for 24 hours (fixes.new_account_wait_h); and every new administrator account raises an alert (admin_account). That makes it visible when one person sets up a second identity, but it can't prevent it: an administrator could still create two accounts and use both. To make each approver a separate person vouched for by your identity provider, turn on fixes.approvals_sso_only so only single sign-on accounts can approve. If the configuration changed so the plan would differ, or the stored plan doesn't match its fingerprint, the approval no longer applies and the fix doesn't run.
  • Separate write access. Network devices are changed only with a second account named on the device (write_credential); the read account is never used to write. Computers with the agent run fixes only if their own administrator allowed it (safeai-agent fixes on), which SafeAI can't change.
  • Signed tasks. Fixes for agents are signed with SafeAI's fix-signing key (Ed25519, on the SafeAI server; the agent learns the public key over its pinned connection and won't silently accept a different one). The agent checks the signature, that the task names it, the window's end, that it hasn't run that task before, that the action is one built into it, and the parameters against its own fixed lists. Each action first checks the current value is the one SafeAI saw and otherwise changes nothing. AI-tool settings are edited by a process running as the file's owner, never as root, so a user can't redirect the write with a link.
  • Checked by a new read, rolled back otherwise. After applying, a network device is read again by SafeAI itself (not the command's answer), and its configuration is saved (write memory) only after that read confirms the fix. A computer with the agent is checked with the agent's next full report, made by the same fixed collection scripts as every other report; the agent's own "done" is never the check, but a compromised agent could still report a fix it didn't make (as it could misreport anything). If the finding is still there, the device can't be read, or no report confirms it within two hours, the rollback runs (an agent accepts a rollback for a day after SafeAI decides on it, even after the change window). A fix that was running when SafeAI restarted is marked failed for a person to check.
  • Recorded. Every step is in the fix's history and the audit log; finished, failed and rolled-back fixes are alerted; the change the fix makes is a planned change, under the window SafeAI records for it.

Undo of a change (Cisco IOS / IOS XE) goes through the same approval, window, write account, re-read and rollback. Its plan is built only from lines in the configurations just before and after that change (old lines first), and is refused for: remote access, accounts, SSH or AAA; access lists used by remote logins, SNMP, the web interface or an interface on SafeAI's path; the interface carrying the device's address or the path to SafeAI's address; routes covering SafeAI's address, default routes and the default gateway; routing processes when SafeAI's path depends on them; entries of access lists and prefix lists, whose order SafeAI can't restore; secrets; and lines outside the catalog. When SafeAI's own address isn't set (Settings, syslog.safeai_addresses) its path isn't known, so any route or routing change, and anything that would shut or re-address an interface, is refused. It needs a symptom proven in an incident that SafeAI re-tests afterwards; if the symptom remains, the undo is rolled back before anything is saved, and after any rollback SafeAI checks the re-read shows the device as it found it (otherwise the fix is marked failed).

Limits: someone with administrator rights in SafeAI and access to a write account can change devices within the catalog; two-person approval is what stops one person from doing that alone, so keep it on, ideally with fixes.approvals_sso_only. It can't stop one person who controls two genuine identities (two local or single sign-on accounts, or the root account on the server); your identity provider and server access are where that is controlled. The catalog is small on purpose; see Administrator guide.

The appliance (OVA)

On first boot the appliance creates its own machine identity and SSH host keys (none are shipped in the image), and a one-time password for its safeai administrator, shown on the VM console until it is changed. The first sign-in forces a new password; sudo asks for it. Anyone who can see the VM's console can see that one-time password, so complete the first sign-in right after deploying. SSH accepts passwords for safeai (root can't sign in over SSH); restrict SSH to your administrators' network if you can. The image contains no build credentials: build keys, logs and shell history are removed before it is sealed.

SSH host keys

The first host key a device presents is remembered. SafeAI checks the key during the SSH handshake, before it authenticates, so if the key changes the password is not sent: SafeAI stops reading that device and shows the new key's fingerprint on the device page. An administrator confirms it by its fingerprint once they know the device was replaced or re-keyed. Devices that only offer older algorithms (SHA-1 key exchange, ssh-rsa) are read only if the setting allows it (on by default), and are listed on the Health page so you can update them. SafeAI first offers modern algorithms and falls back only when the device can't agree on any of them.

The software

  • Runs as a container: its own unprivileged user (on a new installation a dedicated system account, safeai-svc; an installation upgraded from 1.0 keeps user ID 10001, which owns its data — make sure no other account on the server has that ID), read-only file system, all Linux capabilities dropped, no privilege escalation, memory and process limits. Root on the server never reads or writes inside SafeAI's data directory for routine commands (support bundle, key export/import, certificates): safeaictl runs those in the container.
  • Every release bundle is signed (Ed25519). On a first installation, the installer's own check runs from the bundle it checks, so it can't protect against a bundle that was tampered with; what does is checking the bundle yourself before running anything from it: compare the bundle file's SHA-256 with the value SafeCadence gave you separately, or verify the signature with your own openssl against the fingerprint you were given (Installation guide shows both). For upgrades, safeaictl (already installed) checks the new bundle against the release key installed with your first version, refuses files the signed list doesn't name, links and setuid files, and refuses an older version unless you ask for it.
  • Dependencies: Python 3.12, paramiko 4.0.0, cryptography 50.0.1, boto3 1.43.118, pyvmomi 8.0.3.0.1, pywinrm 0.5.0 (all pinned; the image is Debian bookworm slim). The agent is Go 1.24 with one dependency (golang.org/x/sys), vendored into the source so the release build needs no download. Every bundle includes PACKAGES.txt, the full list of Python and Debian packages in the image.

Not done yet (planned)

Independent penetration test; SOC 2; a software bill of materials in a standard format (SPDX or CycloneDX); high availability; authenticated log transport (syslog over TLS); code-signed agent binaries (Windows Authenticode, Apple Developer ID and notarization). (Agent self-updates exist from agent 2.2.1, signed and approved per site: see "Updates" above.)

These pages are the documentation that ships inside SafeAI 2.9.85.1, the version you download. Something unclear or wrong? Tell us.