* Question about journal integrity / encryption
@ 2023-12-03 14:31 LRS
2023-12-04 8:32 ` Milan Broz
0 siblings, 1 reply; 2+ messages in thread
From: LRS @ 2023-12-03 14:31 UTC (permalink / raw)
To: cryptsetup
I tried to create a volume with the following command:
cryptsetup luksFormat --type luks2 /dev/sdb --cipher aes-xts-plain64
--integrity hmac-sha256
If I see the json header of Luks2 i see the following part:
"integrity": {
"type": "hmac(sha256)",
"journal_encryption": "none",
"journal_integrity": "none"
}
}
in which I understand that the journal is not encrypted, isn't this a
security issue? Is it possible to encrypt it somehow?
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Question about journal integrity / encryption
2023-12-03 14:31 Question about journal integrity / encryption LRS
@ 2023-12-04 8:32 ` Milan Broz
0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2023-12-04 8:32 UTC (permalink / raw)
To: LRS, cryptsetup
On 12/3/23 15:31, LRS wrote:
> I tried to create a volume with the following command:
>
> cryptsetup luksFormat --type luks2 /dev/sdb --cipher aes-xts-plain64
> --integrity hmac-sha256
>
>
> If I see the json header of Luks2 i see the following part:
>
> "integrity": {
> "type": "hmac(sha256)",
> "journal_encryption": "none",
> "journal_integrity": "none"
> }
> }
>
> in which I understand that the journal is not encrypted, isn't this a
> security issue? Is it possible to encrypt it somehow?
Yes, for LUKS2 journal metadata are not encrypted.
You cannot currently use encrypted dm-integrity journal with LUKS2 (only
for standalone dm-integrity).
I planned to add it one day, but it need to define how derive key for
the integrity journal.
Data are stored in journal are encrypted (only journal metadata are not encrypted),
so what attacker can do is to reply old encrypted data (or wrong data - but that
will be detected later on read).
All of this can be done with the physical access to media anyway.
Milan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-04 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-03 14:31 Question about journal integrity / encryption LRS
2023-12-04 8:32 ` Milan Broz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox