AI Security

Private AI vs Public AI APIs: A Decision Guide

MST

Makondoo Security Team

15 min read

Teams in banking, insurance, healthcare, legal and the public sector all want the same thing from AI: faster answers from their own documents. The hard question is not which model is best. It is where the model runs and who can see what you send it.

Three ways to run an AI model

1. A hosted API. You send text to a provider and get an answer back. It is the quickest to start with and usually the strongest on broad tasks. Your prompts and documents leave your network, so you depend on the provider's data-handling terms, and you need to read them carefully.

2. A private cloud deployment. You run an open-weight model in a cloud account you control. Data stays inside an environment you configure, but you now operate the system and carry the cloud bill.

3. On-premise or air-gapped. You run the model on your own hardware, with outbound traffic blocked. You get the most control, and you take on hardware, upkeep and the limits of the models that fit your machines.

When a hosted API is the right answer

If the data is not sensitive, the task needs strong general reasoning, and your contract and policies allow it, a hosted API is often the sensible choice. Going private for its own sake adds cost and work. A good assessment should be willing to tell you this.

When to go private

  • Rules or contracts limit where personal, financial or health data may be processed.
  • Your customers or regulators will ask where the data went, and you need a clear answer with evidence.
  • The task is narrow, such as questions over your own policies, contracts or case files, where a smaller model can do well.
  • You want predictable costs without per-token billing.

Retrieval first, fine-tuning later

Most teams that say they want to train a model on their data actually need retrieval: the system finds the relevant passages in your documents and gives them to the model along with the question. It is cheaper, it can show its sources, and it updates the moment a document changes. Fine-tuning can help with style, format or specialised vocabulary, but it should be tested against your real tasks before you pay for it. Training a model from scratch is almost never justified.

The security risks that come with AI systems

Moving a model inside your network does not make it safe by default. These are the problems we test for:

  • Prompt injection. Text inside a document or web page can try to give the model new instructions. If the model can also take actions, the damage grows.
  • Leakage between users. If retrieval ignores who is asking, one person can read another person's documents through the assistant.
  • Over-permissive tools. An assistant that can query databases or send email needs the narrowest permissions possible.
  • Sensitive prompts in logs. Logging is essential for audits, but the logs then hold your most sensitive questions and need protecting.
  • Model supply chain. Check the source, integrity and licence of every model you download before it touches your data.

A short checklist before you start

  1. List the use cases and the data each one touches.
  2. Classify that data, and decide what may never leave your network.
  3. Check your hardware and network against the model sizes you would need.
  4. Define how you will measure quality on your own tasks.
  5. Plan the security review before launch, not after.

We help regulated teams work through exactly this, from the first assessment to a tested deployment. Read about our private and on-premise AI service, or get in touch to talk through your use case.

MST

Makondoo Security Team

AI Security Practice, Makondoo Inc.

The Makondoo Security Team publishes practical guidance on cybersecurity, DevSecOps, and secure software development drawn from real client engagements.

Related Articles

Want more security insights?

Subscribe to our newsletter to get the latest articles, tips, and best practices delivered to your inbox.

Stay Updated

Get the latest security insights, threat intelligence updates, and tool releases delivered to your inbox.

We respect your privacy. Unsubscribe at any time.