feat(ios): secrets in UserDefaults, URL schemes and permissions of iOS apps (#479)
This commit was merged in pull request #479.
This commit is contained in:
1 parent
5fdf80a1e0
commit
5b2deec9e8
19 files changed
+906
-5
No files matched your search
@@ -442,6 +442,22 @@
|
||||
],
|
||||
"rules": [],
|
||||
"check": "Stored data must be encrypted with a current cipher and mode (AES-GCM, ChaCha20-Poly1305); DES, RC4, ECB mode or a hard-coded key violates it."
|
||||
},
|
||||
{
|
||||
"tool": "semgrep",
|
||||
"scan_type": "sast",
|
||||
"languages": [
|
||||
"swift",
|
||||
"objc",
|
||||
"regex"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"cra-ai-14-swift-secret-in-userdefaults",
|
||||
"cra-ai-14-swift-secret-in-appstorage",
|
||||
"cra-ai-14-objc-secret-in-userdefaults"
|
||||
],
|
||||
"check": "An iOS app must keep passwords, tokens and keys in the Keychain; storing them in UserDefaults (also through @AppStorage), an unencrypted plist in the app container, violates it. The Objective-C rule is a regex pattern (semgrep has no Objective-C parser), hence the regex language."
|
||||
}
|
||||
],
|
||||
"note": null,
|
||||
|
||||
Reference in new issue
Block a user