FoxByte
Audit and hardening

Who touched which table, and how well it is locked down

The audit log records who changed or read the tables you choose, without keeping the data itself. The hardening report checks how Postgres is set up and tells you what to fix.

priya@team.devUPDATE customers
agent-claudeSELECT customers
you@team.devALTER ROLE support
✓ chain intact · no values kept
Five records

Which record answers which question

The questionThe record
Who changed the schema?The Blackbox
Who wrote to or read this table?The audit log, for the tables you mark
Who signed in, made a key or became an admin?The security log
What SQL did I run last week?Query history, which keeps the SQL and never the results
Who last changed this row?Row tracking, for the tables you choose

All five are in every edition.

The audit log

Evidence without a second copy of your data

It is built on pgAudit, and it is off until you turn it on.

Who, what and when

Each record names the login, the kind of statement, the table and how it ended. It keeps no SQL text and no values.

Tamper-evident

Records are hash-chained, and fox audit-log verify checks the chain. Enterprise anchors it every ten minutes.

To your SIEM

Send a copy of every record over https or syslog, always encrypted.

When you need more

Forensic mode also keeps the SQL text, for 30 days by default. It needs an admin and a reason.

Gaps are reported

fox check warns when a database goes quiet, the log fills up or someone takes a mark off a table.

For the auditor

Enterprise exports one file with what was audited, what was not, and whether the chain holds.

Hardening

A security check that shows its work

fox hardening checks Postgres and the install around it: roles, connections, files, logging, settings and backups. Each check passes, fails or asks you to judge, and shows the evidence and the fix.

The report is in every edition. Enterprise can make many of the fixes for you, and shows each change before making it.

  • Two levels: basic, and strict for more protection at some cost.
  • Every report and every fix is in the security log.
✓Loopback only until you open it
✓TLS on, no silent fallback
✓A Postgres role per person
✓Signed releases with an SBOM
The CLI

Turn it on, mark a table, check the result

Turning the audit log on restarts main, so connections drop for a few seconds.

$ fox audit-log setup
$ fox audit-log table customers --reads
$ fox audit-log show --table customers
$ fox audit-log verify
$ fox hardening --failed
Limits

What the audit log does not see

  • Tables you have not marked. It is evidence about what you chose to audit, not a record of every query.
  • Statements inside a function that runs as its owner (SECURITY DEFINER). FoxByte warns about each one that names a marked table.
  • It costs some capacity, more on busy tables.

Start with the database you have.

Install FoxByte on your own machine and import a copy of the Postgres you already run.

$ curl -fsSL https://get.thefoxbyte.com/install.sh | sh