All rules →
Rules / Swift
SHIELD-SWIFT-012

Sensitive data stored in UserDefaults

highSwiftCWE-922CVSS 7.5

What it detects

A password or token is persisted in UserDefaults, which is unencrypted.

How to fix

Store credentials in the Keychain with an appropriate accessibility class instead of UserDefaults.

Scan your repo freeFull documentation
Back to all rules
SHIELD-SWIFT-012: Sensitive data stored in UserDefaults — Zennoxa Shield