Skip to content
Repos

TOSV

Markdown 2.5 KB68 lines Opens in site

Directory Raw Download

Minimal audit log

  • Status: SHIPPED in C++ port
  • Spec: FR-11, OPS-02, OPS-03
  • Sources: tosv.cpp audit, archive/tosv.py audit, uploads/paste.txt vision, SPEC.md 6.1

What it is

One append-only line per security event: UTC stamp, peer IP, action, id. Covered events: bootstrap, login, grant, store, fetch, every WebDAV mutation plus read, duress, blocked, clock-skew, integrity-fail. Never secrets, never content, never filenames beyond opaque UUIDs. Safe to forward to any SIEM.

How TOSV does it

audit locks one mutex, formats %FT%TZ from gmtime, and appends to tosv_audit.log. Duress audits before wiping so the proof lands first. Rotation is external (logrotate at 100MB) because the binary never truncates evidence itself.

What it protects against

Blind incident response: every access leaves who, when, and which. It also protects the log itself from becoming loot: a stolen audit file yields metadata, never keys or data.

Attack realism

High. Post-breach questions are always "who took what when", and this log answers exactly that. Realism limit: a local attacker can append noise or delete the file, so off-host forwarding plus the 30-day retention floor carry the serious cases.

Pros

Shareable without scrubbing. Append-only, no update races. Duress proof survives the wipe it announces (until the operator rotates).

Cons and how the vault resolves them

  • Local attacker can edit or delete it. Resolved by off-site forwarding plus backups (restic daily) plus the 30-day floor that pages a human instead of silently rotating.
  • No HMAC chain yet, so edits are undetectable in-file. Resolved in v2 by the journal HMAC chain, see future platform; held in v1 by forwarding plus append-only file flags as documented ops.
  • UUIDs in lines are opaque but stable. Accepted: they identify blobs, never people or content, and fetch needs creds plus gates regardless of knowing an id.
  • 100MB cap with external rotation. Resolved by OPS-02 plus the restore drill verifying rotation actually runs.

Residual risk

In-file tamper before forwarding. Bounded by forward latency; closed fully by the v2 HMAC journal.

M6: audit lines flatten CR plus LF (forgery proof), and listings plus copies joined the audited actions.

See also

39.6ms