Windows forensic artifactKakaoTalk

KakaoTalk for Windows (Please view this tkape file for documentation on the encrypted databases!)

Evidence lives in %LocalAppData%\Kakao\KakaoTalk\users, %LocalAppData%\Kakao\KakaoTalk\users\*\chat_data, %LocalAppData%\Kakao\KakaoTalk\users\*\Contacts and 2 more folders.

  • 6 paths
  • *.edb*
  • Per-user data
  • Version 1.0
  • Kim Minwoo

Paths on disk

6 paths

Notes

KakaoTalk is a widely used messenger in South Korea. The papers above (Jo and Chang 2023, Pak and Lee 2018) describe the Windows client's data under %LocalAppData%\Kakao\KakaoTalk\users\<user directory>\chat_data\chatLogs_<chat ID>.edb.

According to Pak and Lee (2018) and Jo and Chang (2023, Fig. 6), the user directory name is a hash computed from the account's encrypted user ID (Fig. 6: a SHA-1 hex string, i.e. 40 hexadecimal characters, over an AES-encrypted value built from the users folder path and the AES-encrypted user ID), so each account that logged in on the system has its own folder.

The test system also had a backup copy of the user directory, named <user directory>_backup_<date>_<number>. The users\*\ Paths match it as well.

Tested on KakaoTalk 26.9.2.5342 on Windows 11. Paths and file names below were observed on that version.

***IMPORTANT NOTES***

The .edb files collected by this Target are encrypted as a whole and do not start with the SQLite header. Their -wal files, when not empty, start with the SQLite WAL magic (37 7F 06 82; in an earlier check, when most databases had a -wal file, some of those were 0 bytes), so keep each .edb together with its -wal and -shm files.

According to Pak and Lee (2018), the database key is derived from hardware identifiers (disk serial number, disk model, SMBIOS UUID), and they recommend recording these identifiers from the source system during acquisition. Jo and Chang (2023) describe the decryption, which also needs the account's user ID.

KakaoTalk also stores sys_uuid, hdd_model and hdd_serial under a subkey of HKCU\Software\Kakao\KakaoTalk\DeviceInfo\ and names a subkey of HKCU\Software\Kakao\KakaoTalk\UserAccounts\ after the login account. Collect NTUSER.DAT (RegistryHives Target) alongside this Target.

The published decryption methods were written for earlier versions and were not re-tested against 26.9.2.

RecentEmoticon.db and chatWindowUi.db in the user directory are unencrypted SQLite databases. Their schema was not examined.

credential.bin and keystore.bin are collected because the whole user directory is. Their contents were not examined.

The FileMask *.edb* relies on the trailing * also matching the bare .edb name, as NTUSER.DAT* in RegistryHivesUser and wpndatabase.db* in WindowsNotificationsDB do. This was not confirmed with kape.exe.

The encrypted thumbnail and media caches (*.cng) are covered by the KakaoTalk_Media Target because they can get very large.

Not covered: the embedded WebView2 profile (users\<user directory>\wv\EBWebView\), KakaoTalk\global\ (pvi_v2), KakaoTalk\pref.ini, and the unencrypted SQLite file users\<user directory>\BalloonFactory\CarouselPosition.edb.

On the test system (Korean UI) the folder for files saved from chats has a Korean name and sits under the user's Documents folder. Other UI languages were not checked. That folder is not covered by this Target.

Related work (not consulted for the paths in this Target): Choi et al., Digital Investigation 28 (2019), on encrypted KakaoTalk, NateOn and QQ databases on Windows.

References

2 links

Often collected in the same investigation