Cryptography_
Encryption, hashing, MACs, signatures, randomness and key management.
-
2026-11-09
MASVS-CRYPTO: Testing Cryptography and Key Management in Android and iOS Apps
Hub for the MASVS-CRYPTO series: all eleven MASWE weaknesses, their MASTG Knowledge and Tests, an algorithm reference, a test plan and a hook cheat sheet.
-
2026-11-09
Improper Encryption (MASWE-0007)
Testing mobile encryption for broken ciphers, ECB, reused IVs and nonces, weak padding, multi-purpose keys and stale providers: tests, demos and fixes.
-
2026-11-09
Improper Hashing (MASWE-0008)
Finding MD5, SHA-1, fast and unsalted hashes in Android and iOS apps, judging whether each use matters, and what to replace them with.
-
2026-11-09
Improper Use of Message Authentication Code (MAC) (MASWE-0009)
How MACs fail in mobile apps (naive keyed hashes, short tags, timing leaks, bad composition, exposed keys) and how to test them on Android and iOS.
-
2026-11-09
Improper Generation of Cryptographic Signatures (MASWE-0010)
Weak signature schemes, short keys, ECDSA nonce reuse, misplaced or multi-purpose signing keys and signing oracles: how to test Android and iOS apps.
-
2026-11-09
Improper Verification of Cryptographic Signature (MASWE-0011)
Skipped or ignored checks, alg:none and key confusion, untrusted keys, partial payloads: how to test and prove signature-verification bypasses on mobile.
-
2026-11-09
Improper Random Number Generation (MASWE-0012)
Testing Android and iOS apps for predictable randomness: java.util.Random, seeded SecureRandom, rand/drand48, time-based tokens, Frida hooks, fixes.
-
2026-11-09
Improper Cryptographic Key Generation (MASWE-0013)
How to find mobile keys generated too short, from weak randomness or outside secure hardware, with Android and iOS tests, demos and NIST key-size guidance.
-
2026-11-09
Improper Cryptographic Key Derivation (MASWE-0014)
Testing mobile key derivation: PBKDF2, scrypt and Argon2id parameters, salts, PIN-derived keys, HKDF misuse, Frida hooks and offline cracking cost.
-
2026-11-09
Cryptographic Key Rotation Not Implemented (MASWE-0015)
Cryptoperiods, key versioning and rotation for mobile apps: how to tell whether keys are ever rotated, and how to build rotation without losing data.
-
2026-11-09
Cryptographic Key Access Not Restricted (MASWE-0016)
Binding Keystore, Keychain and Secure Enclave keys to user authentication, the unlocked device and the device itself, and testing what a key really allows.
-
2026-11-09
Device Secure Lock Not Enforced (MASWE-0017)
Why app crypto on a phone with no passcode protects little, how to detect the secure lock screen on Android and iOS, and how to test and rate MASWE-0017.