فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

docs: clarify client-side audit chain threat model

davoodmehraban89 committed Oct 20, 2026 at 08:45 UTC 0260a18452b7774cb1d07ad749df53b712c699e7
1 file changed +7
docs/A03_AUDIT_CHAIN_SECURITY_BOUNDARY.md new
+7
@@ -0,0 +1,7 @@
1 +# A03 client audit security boundary
2 +
3 +The application rejects direct audit-event writes through StorageService. It records SHA-256 hashes linked through prevHash and checks the chain on backup restore.
4 +
5 +An exported backup stores its final hash and event count as an anchor. This detects tail deletion only while the anchor itself remains trusted and unchanged. An attacker who can edit the backup can recompute the chain and replace its anchor. An independently stored or signed checkpoint is required for stronger tamper evidence.
6 +
7 +Client-side authorization is not a security boundary against a hostile local operator. Browser developer tools, raw IndexedDB access, modified JavaScript, or filesystem access can bypass the application service layer. Restored legacy metadata uses deterministic defaults and is not evidence of original actor identity or timestamps.