
EC-CouncilCertified Application Security Engineer (.NET)
Domain 5Objective 4
Cryptographic Attacks CASENET Practice Questions (Page 3)
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 11–15
- 11
A .NET application uses a custom encryption library that implements AES-CBC with PKCS#7 padding. The library's decryption method returns different exceptions for valid and invalid padding. An attacker exploits this to decrypt data without knowing the key. The team must fix the vulnerability while maintaining backward compatibility with existing ciphertexts. Which approach is most appropriate?
Select an answer first - 12
A .NET application uses RSA-OAEP for encrypting small payloads. The RSA key pair is generated once and stored in a .NET certificate store. The application is deployed across multiple servers behind a load balancer. A security review notes that the private key is identical on all servers. Which risk does this configuration introduce, and what is the best mitigation?
Select an answer first - 13
A .NET web application stores password hashes in a database. The hashes are computed using MD5 without a salt. An attacker steals the database and successfully recovers many plaintext passwords. Which combination of weaknesses contributed to this compromise?
Select an answer first - 14
An organization's .NET application stores encrypted credit card numbers. A security audit found that the encryption key is hard-coded in the source code and the same key has been used for five years. Which cryptographic weakness is the primary concern, and what should be done?
Select an answer first - 15
A development team is implementing encryption for sensitive documents in an ASP.NET Core application. They plan to use DES with a 56-bit key derived from a user-supplied passphrase using a single round of MD5. A security architect reviews the design. Which change should the architect require?
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.