Project OWNOpen Web Node
GitHub

07Server

Security

How Project OWN (Open Web Node) keeps your server safe, and the extra guards you can add. This is a readable summary of the project's security policy; the full text is SECURITY.md on GitHub.

Found a security problem?

Please report it privately, with Report a vulnerability on the repository's Security tab, not in a public issue. You'll get a reply within a week, and credit in the release notes if you'd like it.

Built in from the start

  • Least privilege

    The panel runs as its own user with no special rights, locked down by systemd (read-only system, private temporary folder, limited system calls, a 300 MB memory cap). Only the helper runs as root, and it accepts only its fixed list of actions, only from the panel. It runs programs directly, never through a shell, and checks every argument.

  • Sign-in

    Passwords of 12 characters or more, stored as Argon2id hashes. Two-factor sign-in is required for owners and admins. Repeated wrong passwords are slowed down. Sessions end after 2 hours idle or 24 hours in all, and every change needs a CSRF token. Signing out, changing a password or removing a person ends their sessions at once.

  • The browser side

    A strict Content-Security-Policy with no inline scripts or styles, X-Frame-Options: DENY, and no outside libraries in the interface.

  • Sites kept apart

    Each site has its own Linux user, its PHP can only reach its own folder, each database has its own user, and logs are read without following links.

  • Deploys and SFTP

    Run as the site's user, never as root. Webhooks must be signed. SFTP is files only.

  • Updates

    Only from this project's GitHub releases, signed with Project OWN's release key (Ed25519): the signature is checked first, then each download against the release's signed SHA-256 list. A release with no signature or a wrong one is refused. Automatic security updates for the system are on, unless you installed with --minimal.

  • Software sources

    From the system's own packages, or the vendor's own repository (OpenLiteSpeed, Node.js, Docker, Tailscale, Cloudflare) with its signing key pinned. A key that doesn't match is refused.

  • Secrets

    Generated passwords are shown once. App settings, apps' passwords, the tunnel token and offsite secret keys are kept in files only root can read, never in the panel's own data or the activity log. API tokens are kept only as hashes.

The firewall

The firewall (nftables) blocks everything from the internet except SSH, the panel, and the ports your software needs. Those open and close as you install and remove things. SSH's ports are found by themselves and always stay open.

On the Firewall page:

  • Open now shows what's open: SSH, the panel, web (80, 443) and anything else.
  • Check from the internet asks check-host.net, a free outside service, to connect to each open TCP port from three places, and shows which can be reached. A port open here can still be blocked by the cloud provider's firewall or a home router; this tells you which, and where to open it. It runs only when you click it, since that service learns the server's address.
  • Extra ports to open: for game servers or other programs, such as 25565/tcp, 19132/udp. Web ports open by themselves.
  • Who can reach the panel:
    • Anyone: the sign-in page is open to the internet, guarded by two-factor codes and slowed-down guessing.
    • Only my devices on Tailscale: turn Tailscale on first (Remote access), then open the panel at its Tailscale address.
    • Only through an SSH tunnel: nobody on the internet even sees the panel. Open it with ssh -L 8443:127.0.0.1:8443 you@your-server, then https://localhost:8443 in your browser. Choose this while connected that way.
    • Only these addresses: IP addresses or ranges, separated by commas. Your current address must be in the list.
    Whenever the panel is limited, your devices on Tailscale and the server itself can still reach it. The panel also refuses other addresses by itself, so the choice holds even if another firewall is in charge.
  • Click Save and apply.
It can't lock you out

If the panel can't be reached after a change, the old rules come back by themselves after 90 seconds.

  • It works alongside the firewall rules some cloud images come with (Oracle Cloud's, for one), and takes over from their "reject everything else" rule once you confirm, keeping a backup of the original.
  • If UFW is also on, the page and Doctor say so. Turn it off with sudo ufw disable: this firewall already blocks everything you haven't opened.
  • Docker's published ports go around it. Docker forwards a port published with -p 8080:80 to its container before the firewall looks, so it can be reached from the internet whatever the firewall says. Project OWN's own apps publish inside the server only. For containers you run yourself, Doctor names each port open this way; publish it on 127.0.0.1 only (-p 127.0.0.1:8080:80) and put a site in front of it, or open the port in Extra ports to open if it's meant to be public.
  • Cloud providers often have a firewall of their own, outside the server. See Cloud firewalls.

Stop password guessing (fail2ban)

Bots try thousands of passwords. fail2ban notices an address that keeps failing and bans it. Install it with Install fail2ban on the Security page. It watches:

  • SSH logins
  • Sign-ins to this panel
  • WordPress and webmail logins
  • Sending mail and Reading mail (with email installed)

A first ban lasts an hour, and longer each time the same address comes back, up to a week. The server itself, your devices on Tailscale and the webmail app are never banned, and a crafted username can't get someone else's address banned.

The Security page lists who's banned now and how many bans there have been. Unban lets an address try again at once.

Banned yourself by mistake? Sign in from another network (or your phone's data), or run this on the server:

sudo fail2ban-client unban YOUR-IP

Security check-up and malware scan

Security check-up (Lynis)

Lynis looks at hundreds of settings, from SSH to file permissions, and gives the server a score out of 100, with a list of what to improve. On Security, click Install Lynis, then Run the check-up. It takes a minute or two.

  • Warnings come first, then Suggestions. Each has a What this means link.
  • Not every suggestion fits every server: some are for machines with many users, or need a separate disk partition. Pick the ones that make sense, then click Run again to see the score change.
  • Lynis's full report says a lot about the server, so only root can read it. The panel shows only the score and the findings.

Malware scan (ClamAV)

For servers with 2 GB of memory or more. It reads every site's files and lists anything that looks like malware, such as a PHP web shell planted through an old plugin.

  1. On Security, click Install ClamAV. It downloads its virus definitions first, which takes a few minutes. They update by themselves after that.
  2. Click Scan now. It runs at low priority, so sites stay fast, and needs about 1 GB of free memory while it runs.
  3. It shows Nothing found, or each file and what it looks like.

The scan only reports. It never deletes or changes a file, because a false alarm must not break a site. If it finds something: restore the site from a backup made before the file appeared, or delete the file over SFTP if you're sure it isn't yours. Then update the site's plugins and themes and change its passwords, since that's usually how it got in.

Every week

Tick Run these every week to run the check-up and the scan by themselves at night, between 2 and 5 am server time. Doctor and the Dashboard show anything they find.

Remote access

For servers at home or in an office, behind a router, with no ports to open. All of it is on the Remote access page.

Your devices, from anywhere (Tailscale)

Tailscale joins the server, your laptop and your phone in a private network. You can open the panel and your sites from anywhere, and nothing is opened to the internet. It's free for personal use.

  1. Click Install Tailscale, then Connect.
  2. Choose Sign in with a link (open it, or scan its QR code on your phone, and sign in), or Use an auth key for servers you set up for others. You can also use your own control server (Headscale).
  3. Once connected, the page shows the panel's Tailscale address, with a QR code for your phone. Your sites answer on that address too.

To hide the panel from the internet altogether, open it through its Tailscale address and click Only allow the panel through Tailscale. Your sites stay public as they are. The button only works while you're connected through Tailscale, so you can't lock yourself out, and the 90-second undo still applies. Allow the panel from anywhere again reverses it.

Sites online without opening ports (Cloudflare Tunnel)

Cloudflare Tunnel puts sites on the internet from a home PC or an office network, with no router settings and no fixed IP address. Visitors reach Cloudflare, which passes them through a connection your server opens itself. Your own domain needs a free Cloudflare account.

  1. Click Install Cloudflare Tunnel.
  2. Your domain must use Cloudflare for its DNS. In the Cloudflare dashboard, open Zero Trust, then Networks, then Tunnels, and create a tunnel of type Cloudflared.
  3. Cloudflare shows an install command with a long token at the end. Copy it, paste it into Tunnel token, and click Connect the tunnel.
  4. In Cloudflare, add a public hostname to the tunnel for each site: the site's domain, service HTTP, URL localhost:80. The panel lists them for you.

Cloudflare gives visitors a certificate, so these sites don't need one from Let's Encrypt. The token is kept in a file only root can read.

With Cloudflare Tunnel installed, any site can get a temporary public address with a QR code, with no account at all. Make one from the site's page; it stops after 24 hours. See Show a site to someone.

Send logs to a log server

Offices and IT departments often keep every server's logs in one place, on a log server such as Graylog, Wazuh, Splunk or their own rsyslog. On the Security page, under Send logs to a log server, enter its host name or address, and choose:

  • How: TLS (encrypted, port 6514), TCP or UDP (port 514). With TLS, the log server's certificate must be for the name you enter; if it's from your own CA rather than a public one, paste the CA's certificate too.
  • What: all the server's logs (every service, the web server, PHP, databases), or only security: SSH and other sign-ins, sudo, fail2ban's bans and this panel's activity log.

The panel's activity log goes too, one line per entry, starting with activity and its JSON. Lines are kept on the server (up to 200 MB) while the log server can't be reached, and sent when it's back. Send a test line writes a line to look for. rsyslog is installed when you set this up; it reads the system journal, so each line is sent once.

People and roles

Everyone has their own sign-in. Open People and click Add a person: a username, a password (they can change it after signing in) and a role.

RoleWhat they can do
OwnerEverything.
AdminEverything except managing owners.
MemberOnly the sites you choose, at the level you choose.

For each site a member gets, pick a level: Manage (all settings), Deploy (files, backups and restarts) or View (status only). A site someone can't see answers "not found", so they can't tell it exists.

  • Owners and admins set up two-factor sign-in at their first sign-in. The People list shows who has it on, and Doctor names owners and admins who don't.
  • Some things are for owners only: updating Project OWN, setting up offsite copies, the recovery kit, and importing from cPanel.
  • Edit changes a person's role, sites or password. Disable stops them signing in, and Enable lets them back. Remove signs them out everywhere, and their API tokens stop working.
  • Members see the server's host name, its system version and its overall memory and disk use on the Dashboard.

A forgotten password, or a lost two-factor phone

An owner or admin can set a new password for someone (People, Edit) or clear their two-factor sign-in. If it's you, and you're the only owner, ask the server itself: on the server, run

sudo own reset-password YOUR-NAME

It prints a link that works once, for 30 minutes. Open it, choose a new password, and sign in: owners and admins set up two-factor sign-in again as they do. Being able to run sudo on the server is the proof that it's yours, so there's no reset by email, which a stolen mailbox could use. The reset is in the activity log.

API tokens

Tokens let scripts, CI and AI assistants use the panel. They're stored only as hashes, can be limited to chosen sites, set to expire and made read-only, and a token never has more access than the person who made it. See API tokens.

The activity log

Activity shows who did what, and when: from the panel, the API, the command line or an AI assistant, including attempts that were refused. Entries are only ever added, never changed.

Known limits

  • No outside review yet. The code hasn't had an independent security review. It's an early beta: try it on a spare machine first.
  • The panel's certificate is its own. It's self-signed, so the browser warns on the first visit. Panel certificates from Let's Encrypt are planned.
  • Releases before v0.21.1 aren't signed. The installer still installs one if you name it, and says so; updating from the panel or with own update never does.
  • Members can see some server details, as above.
  • Apps run in containers. Containers keep apps apart from each other and from the server, but less strictly than separate machines. Install only what you'll use.

Until version 1.0, only the latest release gets security fixes. Keep it updated. Each fixed problem is described in the release notes and published as a security advisory.

Something wrong or unclear on this page? Open an issue on GitHub.