Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing SecAccessControlCreateWithFlags for iOS KeyChain query #836

Open
netsrac101 opened this issue Dec 10, 2024 · 0 comments
Open

Missing SecAccessControlCreateWithFlags for iOS KeyChain query #836

netsrac101 opened this issue Dec 10, 2024 · 0 comments

Comments

@netsrac101
Copy link

netsrac101 commented Dec 10, 2024

It is not possible to set additional security on KeyChain items to ensure users presence.
See: https://developer.apple.com/documentation/security/secaccesscontrolcreatewithflags(_:_:_:_:)

e.g.
let access = SecAccessControlCreateWithFlags(
nil,
kSecAttrAccessibleWhenUnlockedThisDeviceOnly,
.userPresence,
nil
)

You hand those flags over in kSecAttrAccessControl attribute on a keychain query.

Why can this be a security risk not to hand those flags over?
https://stackoverflow.com/questions/69752685/understanding-the-access-control-setting-userpresence-for-keychain-items
TL;DR: There is especially a security risk for jailbroken devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant