SafeAI documentation

Best practices

A rollout plan that works, and the settings and habits that matter most, now including computers and Wi-Fi.

How to run SafeAI well: a rollout plan, then the settings and habits that matter most. Each point links to where the full detail is (Installation guide, Administrator guide, Security model). To decide where the server goes and how to lay it out across sites, read Design guide (SRND) first.

A rollout plan that works

When Do Why
Day 1 Install on one site's management network. Create the read-only account on that site's devices. Add them (zero-touch discovery or a CSV). Small enough to check every result by hand.
Day 1–2 Review each device's first read and accept it as known-good when it's right. Fix any device that can't be read (the message says why). Every later change is measured against this copy.
Week 1 Point the site's device logs at SafeAI. Set up alerts to one channel your team watches. Connect your change system (maintenance windows, ServiceNow, or the planned-changes API). Changes are then seen within seconds, with who made them, and planned work isn't flagged.
Week 2 Look at Attention, Controls and AI readiness; pick the high-severity items and fix them your usual way. Turn on single sign-on and give people the lowest role they need. The fastest value is closing open doors you didn't know about.
Then Add the next sites (site collectors for sites the server can't reach). Add servers, VMware, clouds and the agent where useful. Grow once the first site is trusted.
Then Put the agent on a test group of laptops, add your Wi-Fi controller, and turn on User experience with the services people complain about. Most complaints are about Wi-Fi and slow applications; this is where they become readings.
Later, if you want Turn on approved fixes, with two-person approval and single-sign-on-only approvers. Turn on live checks for incident investigation. Changing devices is the last step, after people trust what SafeAI reads.

Server and network

  • Place it on the management network, close to what it reads, not in the traffic path. It needs SSH to devices and HTTPS from administrators; nothing else has to reach it.
  • Restrict its ports on your network firewall. Docker publishes them ahead of the server's own firewall, so ufw/firewalld on the SafeAI server don't filter them. Allow 443 only from administrators, 514 only from devices and your log server, 8444 only from networks with agents or site collectors. Or bind SafeAI to one address (BIND= in /etc/safeai/safeai.env).
  • Install your own certificate (safeaictl tls-install) so people don't learn to click through a warning.
  • Size the disk for what you turn on. Reading alone fits the minimum 20 GB. Stored logs can need far more (up to 2 GB a day for 30 days at the defaults): give it 100 GB or lower the cap (Architecture, Sizing).
  • Tell SafeAI its own address (Settings, syslog.safeai_addresses) so it knows its path to each device and refuses any undo that could cut it. If you reach devices through a separate management port, set management=oob on those devices.
  • Behind a reverse proxy, list the proxy in trusted_proxies so sign-in limits apply per person, not to the proxy.
  • Monitor SafeAI itself: poll /healthz?strict=1, or set a heartbeat URL so your monitoring notices if SafeAI stops.

Device accounts

  • One read-only account, everywhere, used only by SafeAI. Copy-paste configurations per vendor are in Device setup guides by vendor. A dedicated account makes SafeAI's logins easy to recognise in your logs and easy to revoke.
  • Limit where it can log in from. Allow it only from SafeAI's address (FortiOS trusthost, a vty access-class on Cisco, a source restriction on your TACACS+/RADIUS policy).
  • Keep it read-only. On Cisco IOS a privilege-7 account can read the whole configuration but can't configure; with TACACS+/RADIUS, authorise only show, more system:running-config and terminal length 0.
  • A separate write account only where you want fixes, named on the device (write_credential=). SafeAI never writes with the read-only account.
  • Rotate passwords on your schedule: update the saved account in SafeAI (Settings → Devices & accounts) at the same time. Saved passwords are encrypted on the server and never shown again.
  • When a device's SSH key changes, SafeAI stops and sends nothing. Confirm the new fingerprint only after you know the device was replaced or re-keyed on purpose.

Device logs

  • Send logs from every device that can. Without them, changes are still found by the scheduled read (every 15 minutes), but later and without who made them.
  • Cisco IOS: logging host <SafeAI> plus archive / log config / logging enable / hidekeys, and login on-failure log and login on-success log so password guessing is detected.
  • FortiGate: a second syslog destination; for attack detection also set logtraffic all, including on deny policies.
  • Through an existing log server: forward to SafeAI and list that server under Settings, Device logs, Trusted relays, so SafeAI takes the original device from each message (Settings → Device logs).
  • Restrict the syslog port to your devices and log server. Syslog is not authenticated; SafeAI treats what it says as the device's claim and always takes what changed from its own read.
  • Exclude your own scanners from attack detection (Settings, attacks.ignore), or a vulnerability scan looks like an attack.

People and access

  • Single sign-on for everyone, with one local owner kept as a break-glass account (store its password and recovery codes offline).
  • Least privilege. Most people are viewers or operators. Few people need administrator; very few need owner. Adding devices and saved accounts is an administrator's power, so keep that group small.
  • Two-step sign-in stays required for approvers and above (the default); with SSO, turn on "refuse sign-ins your identity provider didn't confirm with a second step".
  • Review the audit log now and then, and watch for admin_account alerts: they fire whenever someone gets a role that can approve.
  • MSPs: give each client's people client-limited accounts, and turn on client sign-off for clients who must approve changes to their own network.

Approved fixes (if you turn them on)

  • Keep two-person approval on (the default) and turn on fixes.approvals_sso_only, so every approver is a separate person vouched for by your identity provider.
  • Use change windows that match your change process, and record SafeAI's fix windows in your change system too, so everyone sees the same plan.
  • Start with one device type and a test site; widen once the first fixes have verified and rolled back as expected.
  • On computers, fixes run only where that computer's administrator allowed them (safeai-agent fixes on). Leave them off on machines where you don't want SafeAI to act.

The AI model (optional)

  • Off unless you need it. SafeAI's findings, changes, readiness and investigations work without any AI.
  • Prefer a model on your own network (an OpenAI-compatible server such as Ollama or vLLM) for sensitive environments. A cloud model receives only redacted text, but redaction is pattern-based.
  • Don't paste secrets into incidents or questions.

The SafeAI Agent

  • Short-lived enrollment codes: the default is one computer for 24 hours. Treat a code for many computers like a password and revoke it when the rollout is done.
  • Roll out updates by site: turn agent updates on for a test site first, then widen.
  • Watch quiet agents (agent_silent alerts): a computer that stops reporting may be off, or the agent may have been stopped.

Computers

  • Decide per group, not per computer. Servers SafeAI can reach: read them without the agent. Laptops, desktop PCs and Macs: the agent. With the agent and without it has the comparison.
  • Read a computer one way, not both. The agent reads everything the agentless read does.
  • Give every computer a site. Put the site on the enrollment code. Agent updates, Wi-Fi verdicts, user-experience comparisons and change checks all work by site.
  • Treat "No data" on Computer posture as work to do, not as a pass. It usually means the account can't see that part (BitLocker without administrator rights) or the computer runs an older agent.
  • Fix the failures that repeat first. One finding on forty laptops is one policy to change, not forty repairs.
  • Tell people before you measure them. Connections per program, "what a device reached" and user-experience tests are monitoring of people's computers. They are off by default; check your privacy rules and works agreements before turning them on.

Wi-Fi

  • Read both ends. The agent says what the laptop experienced; the controller says what the access point heard. Either alone gives readings; together they give a reason (Design guide (SRND), Design D).
  • Put an agent where people complain, including places with no fixed PC: a small always-on machine in the warehouse or the meeting room is a site probe.
  • Name access points for where they are, and fill in their location on the controller. A verdict is only useful if someone can walk to it.
  • Set the weak-signal limit to match your design (experience.weak_dbm, -70 dBm by default). A network designed for voice or scanners at -67 dBm should be judged at -67.
  • List the services people complain about in User experience (up to 10), so a Wi-Fi verdict comes with whether the applications were slow.
  • Read "Follow the path" as where to look, not as the cause. Open an incident to have SafeAI test it.
  • Check the first readings against the controller's own screens. Every Wi-Fi controller is in preview: built from the vendor's documentation and not yet proven on real equipment.
  • Don't read roam counts as exact. SafeAI sees a move only between two reads; the real number is at least what it shows.

Backups, upgrades and recovery

  • Export the keys once and keep the file offline (safeaictl key-export). Backups contain no keys; without the file, a restore on a new server needs every device password entered again.
  • Copy backups off the server: Settings, Backups (a mounted file share or another server over SSH), or your usual backup tool. 14 nightly backups are kept on the server itself.
  • Run a restore drill every month or so: Check on Settings, Backups (or safeaictl verify-backup) opens and checks the newest backup without touching live data.
  • Upgrade from the signed bundle, after checking its SHA-256 against the value SafeCadence sent. safeaictl upgrade takes a backup, and goes back on its own if the new version doesn't start; safeaictl rollback returns to the previous version by hand.
  • Pause reading (Settings, Collection) during large maintenance if you don't want a stream of changes while work is in progress.

Keep it honest

  • Preview platforms (marked in the console) haven't been checked on a real device yet: expect some lines "not in the catalog", and tell SafeCadence.
  • "Authorization not verified" is not an accusation. It means SafeAI found no window, ticket or fix covering the change. A person reviews it and records the outcome.
  • Lines SafeAI doesn't know are shown as "not in the catalog", never guessed. If something matters to you and isn't explained, tell SafeCadence.

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