Skip to content

Security: Ranbo-codez/ChAIpi

SECURITY.md

Security

Reporting a problem

Please report security problems privately through GitHub: the repository's Security tab → Report a vulnerability. Don't open a public issue for them. You'll get an answer as soon as possible, and credit in the fix if you'd like it.

How ChAIpi is meant to be safe

  • No SSH key or known password in the published image. The pi user gets a random password at build time that is never published, and SSH accepts keys only. You add your own key with chaipi-ssh.txt on the boot partition.
  • Transfer is off until you turn it on. It then runs a WPA2 hotspot with a password made on your device at first boot (or, in home Wi-Fi mode, uses your router). Either way the page asks for a 4-digit PIN shown on the screen, locks for a minute after five wrong tries, and Transfer stops by itself when idle.
  • Uploads are checked before they're installed. Engines must be ARM64 programs that answer the UCI handshake. Archives are unpacked with path checks. Everything you upload runs as the unprivileged chaipi user.
  • Root is limited. The UI runs as chaipi. polkit lets it manage Wi-Fi and power off. sudo lets it run exactly one script (chaipi-media, for USB drive mode and the SD slot).

Things to know:

  • An engine or Python app you upload can do anything the chaipi user can, so only install ones you trust.
  • The transfer page is plain HTTP. On the hotspot, the Wi-Fi password and the PIN keep it private. In home Wi-Fi mode only the PIN does, so use that mode on networks you trust.

There aren't any published security advisories