
EC-CouncilCertified Application Security Engineer (Java)
Domain 5Objective 3
Cryptographic Attacks and Defensive Coding CASEJAVA Practice Questions (Page 3)
Part of the Secure Coding: Cryptography domain, which makes up ~13% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~7–10 in this domain), expect 2–3 from this objective — we provide 43 practice questions to prepare you well beyond it. (estimate)
43questions here
9free pages
7concepts
Questions 11–15
- 11
A Java web service uses RSA-OAEP for encrypting sensitive payloads. When decryption fails, the service returns an HTTP 400 with a message that distinguishes 'Invalid ciphertext' from 'Invalid padding'. An attacker exploits this to recover the plaintext. What is the primary defensive coding fix?
Select an answer first - 12
A security team is reviewing a Java codebase for cryptographic weaknesses. They want to identify hardcoded keys, weak algorithms, and improper random number generation. Which testing approach would be most effective for this task?
Select an answer first - 13
A Java application accepts a hex-encoded IV from the client and uses it to decrypt data with AES-CBC. An attacker modifies the IV to alter the first block of plaintext. The application does not validate the IV length or format. Which defensive coding change is most effective?
Select an answer first - 14
A security team is testing a Java application that uses AES-CBC with PKCS#5 padding for encryption. They notice that the application returns different HTTP status codes for 'padding error' versus 'MAC mismatch'. They want to confirm whether the application is vulnerable to a padding oracle attack. Which testing approach would most conclusively demonstrate the vulnerability?
Select an answer first - 15
Which of the following is a secure way to generate a cryptographic key in Java?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASEJAVA” is a trademark of its owner, used for identification only.