I failed to find the path to iCloud keychain to do just security dump-keychain - the iCloud keychain isn't shown when I try security list-keychains. What is the path to that keychain (or, if it cannot be obtained, how to dump the whole iCloud keychain)?

Or, maybe, Apple Script could help to do that?

  • 1
    You only need to see it with the Terminal ?
    – Chris
    May 14, 2016 at 16:00
  • 1
    @Chris, actually, in Single-user mode May 14, 2016 at 16:05
  • 1
    So did you figure out anything?
    – Uko
    Feb 15, 2018 at 8:02
  • It would be interesting if there is a python / api bridge to access all the internal code? there are some details at developer.apple.com/documentation/security/keychain_services/… after looking into the /Library/Keychains file you might lookup how to access "binary" keychain "sqlite" data via python?
    – Asher
    Jul 18, 2020 at 18:16

2 Answers 2


iCloud Keychain is stored on disk in a different format than a traditional keychain ref1, ref2. It's located at ~/Library/Keychains/ in a folder named as a long UUID. You can see the modified timestamp change on the contents of that folder as you change something in your iCloud keychain.

Whilst you can use AppleScript and Usable Keychain Scripting to work with the system and login keychains, there's no way to access the iCloud keychain.

So the only option you're left with is to AppleScript GUI operation of the Keychain Access app.


So I've been trying to figure out something similar for about a year or so - and at this point, I'm willing to say that without super ninja magic it's really not possible to do this using the 'security' command. I have seen countless questions without an answer.

Although there is no actual confirmation its impossible there seems to be a preponderance of evidence suggesting it is not possible.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .