NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →
Best practices · Security

Securing a robot fleet: best practices with PhysicalFleet

Treat the install command as a credential, with expiring keys and approval. Make most people Members and turn off remote tools you don't use, on the robot itself where it matters. Let watchdogs learn normal, then move to Protect. Ship fixes as gated rollouts and route findings to a watched channel.

Start from what is on by default

A robot is a Linux computer with motors, often on a network you don't control. PhysicalFleet's baseline is on from the first minute, with nothing to set up:

  • Per-machine identity: each machine generates its own private key (ECDSA P-256) on the machine. It never leaves, and hardware serial numbers are never used as identity. Certificates are short-lived (days) and renew in the background.
  • Outbound only: no inbound port, public IP or VPN. The always-on link uses TLS with mutual authentication, and a machine can only use its own channel, so a compromised machine can act only as itself.
  • Signed commands: every command the platform sends (a terminal, a reboot, a release) is signed, names the one machine it is for, expires and runs at most once. A command copied to another machine is rejected.
  • Signed agent releases: the installer and the agent check the signature and SHA-256 before running anything new.
  • Masking on the machine: passwords, tokens, keys and similar values in logs, events, crash reports and release output are replaced with *** before they leave it.
  • Cloned disks are detected and enroll as new machines, so a copied SD card can't impersonate the original.

Your job is the rest: who can join, who can do what, which remote tools exist at all, how fast you patch and who looks at the findings. The sections below go in that order.

How to verify on a machine: pf status prints JSON with the connection, the machine's id, its lifecycle (active, quarantined or decommissioned) and whether the terminal and port forwarding are allowed.

Control who can join: enrollment keys and approval

Anyone who has your install command can add a machine to your fleet. Treat it like a credential. Fleet › Enrollment keys lists every key and how many machines joined with each.

KeyUse it forSettings
The default keyYour own team's installsNever expires, no use limit. Rotate it if the command was shared or leaked: the old command stops working, and machines that already joined keep working
Extra keys (New enrollment key)A site, a line, a contractor, CI or a manufacturing batchA group and tags for machines that join, an expiry (1 day, 7 days, 30 days or never), a machine limit and approval. The command is shown once, and keys are stored hashed
Require approval whenever a command could be seen outside your team: a shared runbook, a contractor's script, a CI log. The installer then says the machine is waiting for approval, and Fleet shows a Waiting for approval badge with its name, hostname, OS, architecture, source address and key. Approve and it joins within seconds. Reject and that machine is blocked for that key. A request nobody decides keeps checking back, less often after 7 days, so a late approval still works.

Put structure in the key, not in people's memory. A key with a group such as warehouse-a/line-1 and tags puts every machine in the right place, so group-level secrets and security modes apply from its first minute. Per machine, --name, --group and --tags on the install command do the same.

Revoke a key to stop new joins with it. Machines that already joined keep working. Keys created, revoked or rotated and every approval or rejection are in the audit log.

Give people the least access they need

RoleCan
OwnerEverything, including making other owners. An organization always keeps one
AdminMembers, settings, billing and machines: the terminal, live camera, port forwarding, commands, Workbench buttons and Teleop, enrollment keys and approvals, security modes and secret values
MemberSees all of the fleet's data, builds and previews release drafts, pauses a rollout and manages uploaded files. Refused on every admin-only change

Make most of your team Members and keep Admin for the people who change machines and settings. A Member can still stop a bad rollout with Pause. There are three fixed roles and no custom roles, so use the switches on the machine (below) where a site needs tighter rules than a role gives.

Use Join by email domain for your work domain instead of passing invitations around, and remove people when they leave.

On each machine, the local pf command works only for root and members of the physicalfleet group. The group starts empty. Add only the accounts and service users that need it:

sudo usermod -aG physicalfleet $USER    # then log out and in again

Turn off remote tools you don't use, on the robot where it matters

Every remote tool is a way in. Switch off what you don't need, at the right level:

LevelWhereCovers
OrganizationSettings › Organization › Fleet › Remote accessRemote terminal, remote web access (port forwarding) and live camera view, for every machine
One machineIts Remote terminal switch and forwarding policyThat machine
On the machine itselfFlags on the install commandCan't be turned back on from the dashboard
  • --no-terminal: no remote shell, no remote commands and no port forwarding. Workbench buttons and Teleop follow it too. Signed releases still run.
  • --no-camera: no camera images of any kind, so no snapshots, no live view and no frames in recordings.
  • --no-forward: no port forwarding.

Add them to the install command you copy from Fleet › Add machine. They live on the machine and the agent enforces them, so not even a compromised dashboard account could turn them back on. Use them for machines at a customer site, in a privacy-sensitive area, or anywhere a remote shell isn't acceptable.

How to verify: pf status on the machine shows whether the terminal and port forwarding are allowed. When someone tries a blocked tool, the dashboard names the switch that blocked it.

Scope port forwarding to the targets you need

Port forwarding opens a web service on the machine, or next to it on its network, in your browser. That reach is useful, and it is also the widest door you have. Each machine enforces a forwarding policy (on the machine's Overview › Settings): on or off, and which targets are allowed.

By default it allows the machine itself and private addresses (loopback, RFC 1918 and IPv6 ULA). Cloud metadata and link-local addresses are never in the default scope, and internet targets need an explicit entry.

In a shared facility, the default lets a forward reach other devices on the same private network, including ones that aren't yours. List the exact hosts and ports your team uses instead, such as the robot's own web UI and its arm controller.

Forward links end after 15 minutes idle and sessions after 8 hours at most. Switching forwarding off, or quarantining the machine, cuts open sessions.

Let the watchdogs learn normal, then move to Protect

Robots get physical visitors: a USB stick, a laptop on the console port, a contractor with sudo. Security › Watchdogs watches for that on every machine, with nothing to set up:

WatchdogSees
LoginsSSH, console and serial logins, failed attempts, brute-force bursts
Privilegesudo and su
ShellsNew interactive shells and terminals (PhysicalFleet's own terminal is labelled as such)
USBDevices plugged in or out, including new keyboards
PortsNew listening ports
Kernel modulesModules loaded or unloaded
Critical filessshd_config, authorized_keys, sudoers, ld.so.preload and paths you add: size, owner, permissions and a hash, never the content

Findings are stored on the machine before they are sent, so they survive network loss. A watchdog whose source is missing (some containers and minimal BusyBox systems keep no login records) switches itself off, so check which machines are watched rather than assuming full coverage.

Noise is why teams turn intrusion detection off, so it learns first:

  • each machine has a learning week, and what it does that week becomes its normal
  • behaviour seen on three or more machines of a group becomes the group's normal
  • changes a PhysicalFleet release makes in the minutes after it runs are attributed to the release
  • a protected file that matches what its package ships is reported for information only
  • critical events (a new keyboard, changed SSH keys or sudoers), failed attempts and brute force are never learned as normal
ModeWhat happens
Watch (default)Alert only
ProtectAlso blocks unknown USB keyboards and storage, and ends logins from addresses never seen before
LockdownProtect, plus automatic quarantine on a critical event

Each mode shows what it would have done in the last 7 days. Stay on Watch through the learning week, mark expected findings Was me, move to Protect when the page suggests it (once every watched machine has finished learning), and consider Lockdown for unattended sites. USB blocking never blocks a known device, a serial adapter or a camera, so motor buses and cameras keep working.

Plan for Lockdown's side effect. A change to sshd_config, authorized_keys or sudoers is a critical event, so it quarantines the machine even when an admin made it on purpose. Move the machine to Protect before planned changes to those files, then back. Modes can be set for the fleet, for a selection by group, location, type or tags (machines that join later follow), or per machine. The most specific setting wins.

Act on findings: Was me, End session, Quarantine, Remove

Needs a look on the Watchdogs page lists open findings grouped by machine and kind, worst first, each with the evidence and what to do:
  • Was me: mark it normal on this machine, its group or the whole fleet. Use the narrowest scope that is true. It is recorded in the audit log.
  • End session: end the login or shell.
  • Quarantine: cut the machine off while you look, and Lift when done.
  • Explain with AI: the finding in plain words.

A quarantined machine keeps its connection to PhysicalFleet, so it can still be updated, rebooted and rescued. But its open terminals, forwards and streams are cut and no new ones open, it refuses every command except a small safe set (ping, agent update, restart, reboot, cancel a job), it can't fetch secrets or release files, and rollouts skip it.

For a machine that is retired, sold, lost or stolen, use Remove from fleet (owners and admins). Its certificate stops working within seconds, the agent wipes its identity if it is still running, and the machine leaves your counts and bill. It stays listed as Decommissioned, so its history is kept.

Revisit Learned rules under Configure now and then. It lists what the watchdogs treat as normal and why. Remove an entry to be alerted again.

Ship vulnerability fixes as gated rollouts

A list of hundreds of CVEs gets ignored. Security › Vulnerabilities checks the packages installed on every machine against the open OSV database and shows fixes, not CVEs: one row per package upgrade, with the version that fixes it, the worst severity and how many machines it fixes.

Fixes are ranked by risk on your robots: In use first (a running process, service or container loads the library), then exposed on a listening port, then severity, then number of machines. Covered: Debian, Ubuntu, Raspberry Pi OS and Alpine packages on the machine. Vendor kernels are not matched, and libraries inside container images are not scanned yet. A vulnerable host library that a container loads still shows as In use.

ModeWhat happens
ReportFindings only
Prepare fixes (default)The week's fixes are packaged as a release, and one press ships them
Patch automaticallyFixes ship in a maintenance window, by default Sunday 02:00 in your organization's time zone
Ship now builds a Security fixes release: a package upgrade step that only upgrades packages already installed and remembers the versions it replaced, plus a restart of each running service that loads an upgraded library. It goes through the same rollout engine as your own releases: 1 machine, then 10 %, then the rest, behind a health gate with a 10-minute soak and automatic rollback, and only to machines that need it. A machine's own Security tab has Install for just that machine.

Only critical findings with a fix available open an issue and send notifications, so you hear about what you can act on. Track three numbers on the page: machines fully patched, critical in use and median days to patch.

Keep secrets out of images, releases and logs

A credential baked into an image or typed into a release lives on in every copy. Store it once and fetch it where it is used.

Add app secrets in Settings › Organization › Secrets (owners and admins), scoped to the organization, to a group and the groups below it, or to one machine. Values are encrypted (AES-256-GCM) and never shown again. A machine fetches a secret with a proof signed by its own key, only for its own scope and never while quarantined, and caches it readable by root only so it works offline.

# in a release step: fetched on the machine at run time, shown as *** in output
"env": {"DB_PASSWORD": "{{secret:DB_PASSWORD}}"}

# in a launch script on the machine
export DB_PASSWORD="$(pf secret get DB_PASSWORD -n)"

Registry, Git and Hugging Face credentials go in saved connections or secrets. They are stored encrypted and never appear in step output. The release review warns when a password is typed in plain text.

Logs, events and crash reports are masked on the machine before they leave it: passwords, tokens, API keys, authorization headers, JWTs, credentials in URLs, cloud keys, private keys and card numbers become ***. Don't log secrets. Where a value might slip into a log, keep it in a named field such as password= or token=, which is always masked.

Use the secure tunnel on networks you don't control

Your machines' connection to PhysicalFleet is always encrypted and needs no tunnel. The secure tunnel (Security › Secure tunnel) protects the rest of their internet traffic on a customer's Wi-Fi, a venue's guest network or a cellular link. Calls to your cloud APIs, model servers and package mirrors go through a WireGuard tunnel to a PhysicalFleet gateway, so the local network sees only encrypted packets.

SettingWhen traffic goes through the tunnel
OffNever
On for untrusted networksOnly on networks you haven't marked as yours. Your own sites stay direct
Always onAll the time

Set it per machine, for several at once, or by a filter on group, location, type or tags that machines joining later follow. The line above the machine list says what machines you haven't set will do. Trusted networks are set by you or recognised automatically: wired networks, the networks machines were on when first seen and networks several machines have used for a week. Open Wi-Fi and cellular are never trusted automatically.

  • Nothing is routed through the tunnel until the gateway and the internet both answer through it.
  • If the tunnel goes down, traffic goes direct until it recovers, unless you turn on the kill switch.
  • It falls back to TCP 443 where UDP is blocked.
  • The local network stays direct by default, so the robot keeps talking to its own cell, and other VPNs on the machine keep their routes.
  • The gateway never lets one machine reach another, private networks or cloud metadata addresses.
  • Turning it on rolls out in waves (one machine, then 10 %, then the rest) and stops if too many machines can't keep it up. Turning it off is immediate.

Know its limits. It protects the hop across the network the robot sits on, not the path from the gateway to your services, so keep using TLS to them. The gateway's public address is shared, so don't use it to allowlist access to your own services. The machine must be allowed to create network interfaces (in a container, --cap-add NET_ADMIN). Turn on the kill switch only where no traffic at all is better than unprotected traffic. The Overview shows the latency it adds. It costs $0.07 per machine-day of use, with 3 machines a day free, and tunnel bytes count as data transfer.

Review the audit log and route security alerts

Settings › Organization › Audit Log (owners and admins) records every change people make: who, what and when. Entries can't be edited or deleted, and data retention doesn't remove them. It covers members, enrollment keys and approvals, machine settings and commands, remote access, OTA releases and rollouts, alert rules, and security changes such as Was me and mode changes. Each machine's Overview › Audit Log shows what changed on that machine and every command it received.

Know what it is not. Terminal sessions are logged as entries (who opened one, on which machine, when), not keystroke by keystroke, and an automatic quarantine shows on the machine's timeline rather than as an audit row.

Route security findings and critical alerts to a channel someone watches, in Observability › Alerts › Channels: Slack, email or a signed webhook. For webhooks, verify the signature and drop duplicates by delivery id:

import hmac, hashlib, time

def verify(secret: str, body: bytes, timestamp: str, signature: str) -> bool:
    # headers: X-PF-Timestamp, X-PF-Signature; drop duplicates by X-PF-Delivery
    if abs(time.time() - int(timestamp)) > 300:
        return False
    expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(signature, f"v1={expected}")

The signing secret is shown once, when you add the webhook. Any 2xx response counts as delivered, and failed deliveries are retried, so make your endpoint safe to call twice for the same X-PF-Delivery.

Checklist
  • Approval is on for any key whose command leaves your team, and sites, contractors and CI have their own expiring, limited keys.
  • The default key was rotated after any leak.
  • Most people are Members; Admin is kept for those who change machines and settings.
  • Remote tools nobody uses are off for the organization.
  • Machines that must never allow a shell, camera or forward are installed with --no-terminal, --no-camera or --no-forward.
  • Forwarding policies list the hosts and ports your team uses.
  • Watchdogs finished their learning week, expected findings are marked Was me, and machines are on Protect (Lockdown for unattended sites).
  • Vulnerabilities are on Prepare fixes or Patch automatically with a maintenance window.
  • Secrets live in Settings › Secrets and are used as {{secret:NAME}} or pf secret get, never in images or release text.
  • The physicalfleet group on each machine holds only the accounts that need pf.
  • Security findings and critical alerts go to a watched channel, and webhook signatures are verified.
  • Retired, sold, lost or stolen machines are removed from the fleet.
Common mistakes

Pasting the default install command everywhere

Anyone with it can add machines. Give each site, contractor and CI job its own key with an expiry and a machine limit, turn on approval where the command may leak, and rotate the default key if it did.

Making everyone an admin

Admins can open shells, forward ports and drive robots. Members see all the data and can still pause a rollout, which covers most people's needs.

Relying on dashboard switches alone at sensitive sites

Organization and machine switches can be changed by an admin. Where a shell or camera must never be possible, install with --no-terminal or --no-camera, which the robot enforces.

Jumping to Lockdown on day one

Before the learning week ends, normal activity looks new, and Lockdown quarantines on critical events, including your own changes to SSH keys or sudoers. Watch first, then Protect, then Lockdown where it fits.

Chasing CVE counts instead of fixes in use

Ship the fixes for libraries running processes actually load first. Remember that libraries inside container images aren't scanned, so keep base images current in your own pipeline.

Leaving the forwarding policy wide open in a shared building

The default reaches any private address next to the robot, including other tenants' devices. List the exact hosts and ports you need.

Expecting the secure tunnel to protect everything

It protects the hop over the robot's local network, not the path from the gateway onwards. Keep TLS to your own services, and don't allowlist the gateway's shared address.

Secrets in images or release text

They end up in every copy of the image or release. Use Settings › Secrets with {{secret:NAME}} in releases and pf secret get on the machine.

Written for PhysicalFleet as of December 3, 2026.

FAQ

Security: common questions

Something else? Talk to our team.

How does PhysicalFleet identify each robot?

Each machine generates its own private key on the machine, and the key never leaves it. The machine proves who it is with short-lived certificates that renew automatically, over TLS with mutual authentication. Hardware serial numbers are never used as identity, and a cloned disk enrolls as a new machine.

Can an admin open a shell on a robot installed with --no-terminal?

No. The flag lives on the robot and the agent enforces it, so neither the dashboard nor a compromised account can turn the terminal, remote commands or port forwarding back on. Workbench buttons and Teleop are off too. Signed releases still run.

Do the watchdogs block intrusions or only alert?

Watch, the default, only alerts. Protect also blocks unknown USB keyboards and storage and ends logins from addresses never seen before. Lockdown adds automatic quarantine on a critical event. Each mode shows what it would have done in the last 7 days.

How are security patches rolled out without breaking robots?

Fixes ship as a release through the normal rollout engine: one machine, then 10 %, then the rest, behind a health gate with automatic rollback. The release only upgrades packages already installed, remembers the versions it replaced and restarts the services that load an upgraded library.

Does a robot need open ports or a VPN for PhysicalFleet?

No. The agent only makes outbound, encrypted connections. Remote sessions go through the PhysicalFleet relay over that connection, with one-time credentials on both sides.

What should I do if a robot is lost or stolen?

Remove it from the fleet. Its certificate stops working within seconds, so it can't send data, take commands or be used to reach your fleet, and the agent wipes its identity if it is still running. Its history stays until your retention removes it.

Is the secure tunnel a VPN for reaching my robots?

No. Remote access goes through the relay and needs no tunnel. The secure tunnel carries the robot's own internet traffic through an encrypted WireGuard tunnel to a PhysicalFleet gateway, so an untrusted local network sees only encrypted packets.

Are terminal sessions recorded?

Each session is logged in the audit log: who opened a terminal, a live camera or a port forward, on which machine and when. Keystrokes and screen content are not recorded.

From the lab bench. To the entire fleet.

Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.

Free for up to 3 machines · Then pay as you go