AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerKotlinbreadcrumb dividerGeneration of Predictable IVFeedbackFeedback icon

Amazon Q

Detector Library

Kotlin detectors (43/43)

Insecure cookieInsecure cryptographyInsecure Jwt ParsingWeak Password EncoderCookie Without Http Only FlagGeneration of Predictable IVImproper Certificate ValidationInteger OverflowInsecure Tls VersionImproper AuthenticationCryptographic key generatorWeak pseudorandom number generationMisconfigured ConcurrencyLDAP injectionPath traversalCross-site scriptingReusing Nonce and key in encryptionXML External EntityCode InjectionImproper export of android app componentsResource leakUntrusted DeserializationServer-side request forgeryCross-site request forgeryNoSQL injectionLog injectionHardcoded credentialsMissing Release Of MemoryInsecure SocketEnabling and overriding debug featureNull Pointer DereferenceInsecure hashingMissing encryption of sensitive dataImproper verification of IntentInsecure connection using unencrypted protocolOS Command InjectionSensitive information leakInsecure Bean ValidationCleartext Storage of Sensitive InformationUnsafe File ExtensionSQL injectionIncorrect Type ConversionMissing authentication

Generation of Predictable IV High

It appears that you are using a static or predictable Initialization Vector (IV) for your cipher. This makes the ciphertext predictable and vulnerable to attacks. Use java.security.SecureRandom in Kotlin to generate secure and unpredictable IVs.

Detector ID
kotlin/crypto-insecure-iv@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-329
Tags
-