
EC-CouncilCertified Application Security Engineer (Java)
Domain 5Objective 3
Cryptographic Attacks and Defensive Coding CASEJAVA Practice Questions (Page 5)
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 21–25
- 21
A Java application decrypts data using an AES key derived from a user-supplied password. The password is passed directly to the key-derivation function without any validation. What is the most important input validation to add?
Select an answer first - 22
Which security property is most directly compromised when an attacker exploits a weak MAC (Message Authentication Code) to forge a valid tag for a modified message?
Select an answer first - 23
A Java application's login endpoint returns 'User not found' when the username is invalid and 'Invalid password' when the password is wrong. An attacker uses this to enumerate valid usernames. Which defensive coding change is most appropriate?
Select an answer first - 24
A Java web application encrypts session cookies using AES in ECB mode with a hard-coded key. A penetration tester demonstrates that identical plaintext blocks produce identical ciphertext blocks, allowing an attacker to manipulate the cookie. Which combination of changes addresses the root cause?
Select an answer first - 25
Which of the following algorithms is considered cryptographically insecure and should be avoided in modern applications?
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.