Missing support for integrity check detected.
- Rule ID: java_lang_missing_integrity_check
- Languages: java
- Source: missing_integrity_check.yml
Description
If a protocol does not include integrity checks ("checksums"), we cannot determine whether or not an attacker has interfered or manipulated the transmitted data (man-in-the-middle attack).
Remediations
✅ Use encryption schemes that provide integrity
Cipher c = Cipher.getInstance("AES/GCM/PKCS5Padding");
Resources
Associated CWE
OWASP Top 10
Configuration
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=java_lang_missing_integrity_check
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=java_lang_missing_integrity_check
Ready to take the next step? Learn more about Bearer Cloud.