21How and why do you derive multiple keys from one secret with a KDF such as HKDF?▼mediumNewGoogleAmazonMicrosoft◆ premiumUsing one key for several purposes quietly couples their security. The scored answer explains extract and expand, shows key separation by context, and says when HKDF is the wrong tool.Open full answer →
20Write a safe validator for redirect URLs, and explain why open redirects matter.▼mediumNewGoogleMicrosoftMeta◆ premiumURL validation is where string checks fail most visibly. The scored answer parses, resolves and allowlists, then tests the classic bypasses.Open full answer →
15Write a check that verifies downloaded model and dependency files against pinned hashes before they are used.▼mediumNewGoogleMicrosoftHugging Face◆ premiumPinning a version is not pinning content. The scored answer verifies every file against a recorded hash, treats unexpected and missing files as failures, and explains where the lockfile's own trust comes from.Open full answer →