pyca/cryptography and the OpenSSL it bundles copy what Argon2id is given into memory they free without overwriting.
The rest of the boundary
Argon2id is given the prehash, so the copy is of the prehash. By itself the prehash opens nothing but this one keyslot: with the vault file and the device it opens the vault as the password would, and for a portable backup written by irondome export, whose keyslot has no device secret, the backup file alone is enough.
Whoever reads it and knows the keyslot's salt, which is in the vault file, can also test guesses of the master password against it at the speed of SHA-256, with no device and no TPM counting wrong guesses; a password found that way opens whatever that password protects.
IronDome cannot prevent that copy and does not write to the library's memory itself; it has Argon2id run in a child process, so the copy is made in memory that ends with the child, a moment after the key is sent back.
For as long as the derivation takes, the child's memory holds the prehash and the key outside locked pages, and the key crosses a pipe on its way back. Where no child can be made, Argon2id runs in IronDome's own process: when another thread is running in it, when the system refuses to fork, and where there is no fork.
None of IronDome's own commands stretches a password with a second thread running. In that case IronDome runs Argon2id a second time on zeros, and the library, asking for blocks of the same sizes, may be handed the ones it just freed and overwrite the copy.
That is the allocator's choice, not a guarantee: with glibc the tests found no copy left; macOS's allocator, where it does not zero what it frees (macOS 15 on GitHub's machines, or any macOS with MallocZeroOnFree=0), left the copy of the prehash in most runs, and a copy that is left lasts until that memory is reused.
The master password itself is given only to HKDF, which reads it a block at a time. For an ASCII password of up to 4,000 bytes the tests find no copy of it afterwards, whole or in part.
They search for it in pieces: 16 bytes over its last 512, 32 or 64 before that, so a copy shorter than two pieces can be missed; a review before release searched for any 8 bytes of it, through init, unlocking, a wrong password and export, and found none.
The tests' control gives Argon2id the password in the probe's own process, as IronDome did before both things were changed, and the same search then finds the end of a long password on Linux and, in most runs, all of it on macOS with zeroing off. The control is part of the test suite, not of irondome verify.
That HKDF leaves no copy of its input is how this version of the library works, measured on Linux with glibc and on macOS, both on arm64; IronDome does not control it. irondome migrate has to give the password of a 3.x vault to that format's own PBKDF2; the review found no copy left there on Linux.
HKDF leaves its working keys behind, the intermediate key it extracts and the key it derives, on the C stack and in memory it frees; IronDome cannot wipe those either, and overwrites them by deriving again from zeros.
That rests on the library taking the same path through its code both times, which the tests check on every supported Python and IronDome does not control.
A non-ASCII master password is normalised with Python's unicodedata before any of this, and unicodedata frees its own working copies of the text, as 4-byte code points, without overwriting them: the review found three copies of nearly all of a 3,600-byte one on Linux with Python 3.13, and none with 3.9; the two strings IronDome makes for it are zeroed in place on CPython.
Decrypted entries are ordinary Python strings for as long as a command runs. Session and grant tokens are bearer secrets that live in your shell's environment by design. The recovery key is text you are shown once and may type back: as text it is an ordinary Python string, not locked memory, for as long as a command holds it.
Locking the pages is best effort: where the system refuses it (a low RLIMIT_MEMLOCK, for one), the keys are still kept outside the Python heap and overwritten, but could be written to swap, and irondome doctor warns. A process with debugger rights over a running IronDome can read anything.