유대선
프로젝트로
·업데이트·1

Hash-based file tracking — catch a sensitive file even after it's renamed

Register sensitive files by SHA-256; the server matches incoming endpoint file events against those hashes (cached in memory) and records detections — so a tracked file is caught even if it's renamed.

Reconstructed from commit c017f84 (2026-04-08).

Name-based rules are trivial to dodge — rename salary.xlsx to cat.jpg and a name filter is blind. Content hashing isn't fooled by a rename.

How it works

internal/tracking/tracker.go (~224 lines):

Why it matters

This turns "watch for files named like secrets" into "watch for these specific files, by content." Combined with the clipboard/USB/transfer events, it answers the real question — did our actual confidential document leave? — rather than guessing from filenames.

(The same commit also relaxed the agent PSK requirement for local dev convenience; the production path stays fail-closed.)