
EC-CouncilCertified Application Security Engineer (.NET)
Domain 5Objective 4
Cryptographic Attacks CASENET Practice Questions (Page 4)
Part of the Secure Coding: Cryptography domain, which makes up ~12% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–10 in this domain), expect 1–2 from this objective — we provide 40 practice questions to prepare you well beyond it. (estimate)
40questions here
8free pages
3concepts
Questions 16–20
- 16
A .NET application encrypts sensitive data with AES-CBC and uses a separate HMAC for integrity. The security team is concerned about padding oracle attacks. The current implementation validates the HMAC before decryption, but the application returns different error messages for invalid HMAC and invalid padding. Which change is most effective?
Select an answer first - 17
A security engineer is reviewing a .NET application that uses a custom encryption algorithm developed in-house. The algorithm has not been publicly reviewed, and the key is only 64 bits. Which cryptographic attack is the algorithm most vulnerable to, and what is the recommended action?
Select an answer first - 18
A .NET application uses a custom encryption routine that encrypts data with AES-CBC and then signs the ciphertext with HMAC-SHA256. The developer uses the same key for both AES and HMAC. A security audit requires the use of authenticated encryption. The team must choose between AES-GCM and the current encrypt-then-MAC approach with separate keys. Which statement is true?
Select an answer first - 19
A security audit reveals that a .NET application's login endpoint responds with 'Invalid username' when the username is unknown and 'Invalid password' when the username exists. An attacker uses this behavior to enumerate valid usernames and then performs a targeted password guessing attack. Which countermeasure is most effective against this attack chain?
Select an answer first - 20
A .NET application uses RSA to encrypt session keys that are exchanged between a client and server. The RSA key pair is generated on the server and the private key is stored in a .NET certificate store. The application is deployed in a multi-tenant environment where each tenant has its own database. A security requirement states that a compromise of one tenant's data must not expose other tenants' data. Which key management strategy should be implemented?
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. “CASENET” is a trademark of its owner, used for identification only.