Skip to content

Security: plentysoftware/plenty-files

Security

SECURITY.md

Security and privacy

Plenty Files is built on one rule: your files are yours. This page says exactly what that means, so you (or anyone) can check it against the code.

What it promises

  • No ads, no analytics, no tracking, no crash reporting, no account. The app contains no advertising or analytics libraries and never talks to Plenty Apps or anyone else on its own.
  • Your files only go where you send them: a cloud or network share you added, a phone you share with, or an app you pick. Plenty Files never uploads anything by itself, and never sends files to a Plenty Connect server.
  • Passwords stay on the phone. Cloud and share passwords, keys and tokens are encrypted with AES-256-GCM under a key made in the phone's hardware keystore (it can't be copied out). They're never put in settings files, Move your data, Export everything or Plenty Connect. Another phone that syncs your settings gets your clouds without their passwords.
  • No plain http on the internet. WebDAV over http:// and plain FTP only work for addresses on your own network (192.168..., 10..., .local, Tailscale). Anything out on the internet must use https or FTPS.
  • SFTP checks who it's talking to. The first time you connect, Plenty Files shows the server's key fingerprint and asks you to trust it. If the key ever changes, it stops and warns you, and won't connect until you choose to trust the new key.
  • Nearby sharing is encrypted and asks first. Sending and receiving use the LocalSend protocol over HTTPS on your Wi-Fi, straight from phone to phone. This phone only listens while the Share tab, Send or Receive is on screen, and stops as soon as you leave them. Files only come in while Receive is open, after you say yes to each sender; nothing bigger than the sender declared is accepted, each file can only be sent once per yes, and file names are cleaned so nothing can be written outside the folder you chose. When the other phone's certificate fingerprint is known (from its announcement or its QR code), the connection must match it.
  • Clean never deletes on its own. You see every file first, nothing you might want is ticked, and everything you clean, delete or replace (including a PDF you save over) goes to the recycle bin for 30 days.
  • The safe folder lives in the app's private storage, which other apps, the gallery and a computer plugged in by USB can't see. It opens after your fingerprint, face or screen lock, however it's opened (from Browse, a favourite, a home-screen shortcut or another app's request), and locks again after two minutes away. While another app is choosing a file through Plenty Files, the safe folder stays shut. Files deleted in it are deleted for good rather than put in the bin, which lives in shared storage.
  • Other apps can't use Plenty Files to reach its own files. Plenty Files can read its own private storage, so links that other apps hand it (open this, edit this, save this, send this, unzip this) are checked: anything that leads into Plenty Files' own storage, by a file link, its own content link or a ../ trick, is refused. Only Plenty Files itself can open those, with a secret no other app knows. Another app's Share always stops for you to choose who it goes to.
  • Zips stay in their folder. Unzipping skips any entry whose name would put it outside the folder it's unpacked into (a "zip slip"), so a zip can't write or overwrite anything elsewhere.
  • Plenty Connect gets your setup, nothing more. One private record: your settings and your clouds' names, addresses, usernames and folders. Never passwords (a password typed into an address, like https://sam:secret@…, is taken out before sending), never files, and nothing about one phone: its storage and folder paths, root access, its name for nearby sharing. It takes in what's on the server before sending, so a reinstall can't send an empty list over your clouds.
  • Signatures you keep for signing PDFs are stored only in the app's private storage.
  • PDF changes happen on the phone. Editing works on a private copy; the original isn't touched until you save, and the working copies are deleted when you close the PDF.
  • No accidental cloud copies. Android's cloud backup and device-to-device copy are switched off for the app (allowBackup="false" and dataExtractionRules excluding everything).
  • App lock (fingerprint, PIN or pattern) and Hide from screenshots, in Settings, Privacy and security.
  • Only the permissions it needs, each explained when it's asked for: All files access (to be a file manager), the camera (for the scanner), the network and nearby Wi-Fi (for clouds and sharing), and installing apps (only when you open an APK yourself).

What it can't protect against

  • Someone who has your unlocked phone, or a phone that's rooted or has malware with full access.
  • Files outside the safe folder: any app with All files access can read them, as on any Android phone.
  • What happens to files after you send them somewhere yourself (a cloud, an app, another phone).
  • LocalSend apps that use plain http (an option in LocalSend): those transfers aren't encrypted.
  • A cloud you add is only as private as that cloud. Your own Nextcloud or NAS is yours; a company's cloud isn't.

Reporting a problem

Found a way to get at someone's files, or anything else that weakens the promises above? Please tell us privately first: open a security advisory on this repo (only the maintainers can see it). Say what you found and how to repeat it. You'll get an answer within a week, and credit in the release notes if you'd like it.

Please don't open a public issue for security problems until they're fixed.

There aren't any published security advisories