·AI & ChatGPT

Module 9 Lesson 5: Security and Privacy Considerations

AI is a window into your soul—and your company's data. How to stay secure and private while using AI integrations.

Security and Privacy Considerations

When you integrate ChatGPT into your workflows, you are essentially giving it a "key" to your data. You must manage that key responsibly.

1. API Key Safety

[!CAUTION] If your API key is leaked, anyone can use your OpenAI balance.

  • Rule 1: Never hardcode keys in your scripts. Use .env files.
  • Rule 2: Never "Commit" your .env files to Github.
  • Rule 3: Set a "Hard Limit" on your OpenAI billing to prevent accidental overspending.

2. Data Training

Does OpenAI train on your data? It depends on how you access it.

  • ChatGPT Free/Plus: Yes (unless you toggle it off in settings).
  • ChatGPT Team/Enterprise: No.
  • OpenAI API: No. data sent via the API is NOT used to train future models.
graph TD
    Data[Your Sensitive Data] --> Interface{Interface?}
    Interface -->|Web Free/Plus| Training[Might be used for training]
    Interface -->|API/Enterprise| Secure[Private & Secure]

3. PII (Personally Identifiable Information)

Even if the data isn't used for training, it is still stored on OpenAI's servers for 30 days (for abuse monitoring).

  • Best Practice: Scrub names, emails, and credit card numbers from your prompts before sending them to the AI.

4. The "Hallucinated Security" Risk

Don't ask AI to write security code and trust it blindly.

  • "AI should never be the final word on encryption algorithms or authentication logic. Always have it verified by a security expert."

Hands-on: Security Checkup

  1. Open your OpenAI Billing Dashboard.
  2. Look at Limits.
  3. Set your "Monthly Budget" to a safe number (e.g., $10 or $50) to ensure an automation bug doesn't drain your bank account.

Key Takeaways

  • API Data is Private (not used for training).
  • Limit your Billing to prevent "Loop" costs.
  • Keep Keys Secret using environment variables.

Subscribe to our newsletter

Get the latest posts delivered right to your inbox.

Subscribe on LinkedIn