Skip to content
vetkitChecksChangelogDocumentation

vetkit.swift.storage.keychain-accessible-always

A Keychain item uses kSecAttrAccessibleAlways(ThisDeviceOnly), so it is readable while the device is locked and is not protected by the passcode-derived key (deprecated by Apple).

Last updated:

Suite: Security

swift

A Keychain item uses kSecAttrAccessibleAlways(ThisDeviceOnly), so it is readable while the device is locked and is not protected by the passcode-derived key (deprecated by Apple).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use kSecAttrAccessibleWhenUnlockedThisDeviceOnly (or AfterFirstUnlockThisDeviceOnly for background access).

References

Source: packages/engine/rules/sast/swift.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.