Chatbots Chatbot Security and Privacy 2 — Questions and Answers
Question 1: What is 'jailbreaking' in the context of AI chatbots?
- Using crafted inputs to bypass a chatbot's safety guardrails and make it produce restricted content (Correct answer)
- Releasing a chatbot from a proprietary platform to run on open-source infrastructure
- Fixing bugs that prevent a chatbot from being deployed
- Migrating chatbot data from one cloud provider to another
Correct answer: Using crafted inputs to bypass a chatbot's safety guardrails and make it produce restricted content
Jailbreaking refers to adversarial prompting techniques that trick a chatbot into ignoring its safety policies and generating content it is normally programmed to refuse.
Question 2: What is data minimization as applied to chatbot privacy?
- Collecting only the minimum amount of user data necessary to fulfill the chatbot's purpose (Correct answer)
- Compressing conversation logs to save storage space
- Deleting all user data after each session automatically
- Limiting the number of questions a chatbot can ask per session
Correct answer: Collecting only the minimum amount of user data necessary to fulfill the chatbot's purpose
Data minimization is a privacy principle (required by GDPR and other regulations) that mandates collecting only the data genuinely needed for the service, reducing exposure risk.
Question 3: Which compliance standard is most relevant for chatbots that handle credit card payment information?
- PCI DSS (Payment Card Industry Data Security Standard) (Correct answer)
- HIPAA (Health Insurance Portability and Accountability Act)
- SOX (Sarbanes-Oxley Act)
- FERPA (Family Educational Rights and Privacy Act)
Correct answer: PCI DSS (Payment Card Industry Data Security Standard)
PCI DSS governs the secure handling, storage, and transmission of payment card data, making it mandatory for any chatbot that processes or transmits credit card information.
Question 4: What does end-to-end encryption (E2EE) protect in a chatbot communication channel?
- It ensures that only the user and the intended recipient can read the messages, preventing interception by third parties including the service provider (Correct answer)
- It verifies the identity of the user before starting a conversation
- It prevents the chatbot from storing any conversation history
- It automatically deletes messages after they are read by the chatbot
Correct answer: It ensures that only the user and the intended recipient can read the messages, preventing interception by third parties including the service provider
E2EE encrypts messages on the sender's device and decrypts them only at the destination, so even the chatbot platform operator cannot read message content in transit.
Question 5: What is a common security vulnerability when a chatbot is tightly integrated with a backend database?
- SQL injection, where malicious input is passed to database queries and alters their behavior (Correct answer)
- Excessive API calls that slow down the database
- Incorrect grammar in database queries causing slow responses
- The chatbot caching outdated records from the database
Correct answer: SQL injection, where malicious input is passed to database queries and alters their behavior
If user input is incorporated into database queries without proper sanitization, attackers can inject SQL commands to read, modify, or delete data they should not access.
Question 6: Why is it important for a chatbot to have a clearly visible privacy policy?
- It informs users about what data is collected, how it is used, and their rights — which is legally required under regulations like GDPR and CCPA (Correct answer)
- It improves the chatbot's NLP accuracy by clarifying user intent
- It reduces the chatbot's server load by filtering unnecessary queries
- It allows the chatbot to charge users for premium data features
Correct answer: It informs users about what data is collected, how it is used, and their rights — which is legally required under regulations like GDPR and CCPA
Privacy laws such as GDPR and CCPA legally require organizations to disclose their data practices, and a privacy policy is the standard mechanism for fulfilling this obligation.
Question 7: Which authentication approach is considered most secure for protecting chatbot API endpoints?
- OAuth 2.0 with short-lived access tokens and refresh token rotation (Correct answer)
- HTTP Basic Authentication with username and password
- IP whitelisting as the sole security measure
- Using a shared static API key with no expiration
Correct answer: OAuth 2.0 with short-lived access tokens and refresh token rotation
OAuth 2.0 with short-lived tokens limits exposure if a token is stolen, and refresh token rotation invalidates old tokens, making it significantly more secure than static credentials.
What is 'jailbreaking' in the context of AI chatbots?