---
url: /en/einstellungen/sicherheit-audit.md
---
# Security, 2FA, Audit Log & Data Protection (GDPR)

Accounting records are among a company's most sensitive data. EÜRwerk protects your tenant in accordance with **GDPR (DSGVO)**, **GoBD**, and the **OWASP Top 10**.

## Technical & Organizational Security Measures

### Strict Multi-Tenant Isolation (Row-Level Security)

All tenant data in the PostgreSQL database is isolated at the database level via **Row-Level Security (`FORCE ROW LEVEL SECURITY`)**. Technically, one tenant can never access records belonging to another tenant.

### Two-Factor Authentication (2FA / TOTP)

Under **Account → Security** (`/account/security`), enable two-factor authentication using any standard authenticator app (e.g., Aegis, Bitwarden, Google/Microsoft Authenticator). One-time emergency recovery codes are also provided.

### Encryption of Sensitive Credentials

Sensitive integrations (e.g., SMTP passwords, 2FA secrets, API tokens) are stored encrypted in the database using **AES-256-GCM**. Passwords are stored exclusively as **bcrypt** hashes.

### Audit-Proof Audit Log (`/audit`)

All critical operations are logged with timestamp, user, and cryptographic **HMAC-SHA-256 chaining**, ensuring that any subsequent tampering with the history is immediately detected.

## Data Protection & Account Deletion ([Art. 17 GDPR](https://dsgvo-gesetz.de/art-17-dsgvo/) vs. [§ 147 AO](https://www.gesetze-im-internet.de/ao_1977/__147.html))

::: warning Statutory Retention Obligation Takes Precedence Over Erasure
Pursuant to [Art. 17 Abs. 3 lit. b GDPR](https://dsgvo-gesetz.de/art-17-dsgvo/), the right to immediate erasure does not apply insofar as statutory retention obligations (e.g., 8 or 10 years under [§ 147 AO](https://www.gesetze-im-internet.de/ao_1977/__147.html)) require continued storage. Always back up your complete **DATEV and voucher export** for your own archive before cancelling your account!
:::
