Question 800
An organization wants to embed API keys directly into a publicly accessible AI chat widget. Which ongoing safeguard best reduces the chance of this problem recurring?
Explanation
Correct Answer
Rotate any exposed keys and monitor unauthorized calls. This continuing control matters after the initial action because browser-exposed secrets can be extracted and used by unauthorized callers. It helps preserve the intended outcome: A client inspection reveals no usable backend service key.
Incorrect Answers
Overbroad authorization increases breach and data misuse impact. Here the important technical distinction is that browser-exposed secrets can be extracted and used by unauthorized callers.
Secure reliable AI must anticipate upstream availability and abuse failures. That consideration does not remove the current constraint: browser-exposed secrets can be extracted and used by unauthorized callers.
Unreviewed data flow and logging can expose confidential customer information. In this situation, browser-exposed secrets can be extracted and used by unauthorized callers.