Skip to Content
OpenVAPTAlpha
Pre-release. Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. Free for your own use, 100% at your own risk. This website collects no data. Read MoreRead Less
Pre-release. OpenVAPT has no Stable release yet. Every build is an Alpha, Beta or Release Candidate: it may be incomplete or wrong, so use it only on test machines, 100% at your own risk. See Release Channels
Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. These are AI systems, not people or registered engineers. Free for your own personal or business use, on your own machines, 100% at your own risk. Not for sale. Not for providing services. This website collects no data. Read the Acknowledgements
Pre-release. OpenVAPT has no Stable release yet. Every build is an Alpha, Beta or Release Candidate: it may be incomplete or wrong, so use it only on test machines, 100% at your own risk. See Release Channels
Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. These are AI systems, not people or registered engineers. Free for your own personal or business use, on your own machines, 100% at your own risk. Not for sale. Not for providing services. This website collects no data. Read the Acknowledgements
P24PractitionerAbout 25 minutes

Securing Self-Hosted AI Services

Why model servers, AI web interfaces, AI dashboards and vector databases are often left open, and how to find and close them from the machine itself.

Read First: F2, F3

You Will Be Able To

  • Name the common self-hosted AI services and their default ports.
  • Explain what an open model server or notebook gives an attacker.
  • Bind AI services to loopback and publish them only behind authentication.

A New Kind of Service

Teams now run language models, image generators, notebooks and vector databases on their own servers. Many of these tools were built for one person on a laptop, so many ship with no login enabled by default.

What an Attacker Gains

An open model server lets anyone use your computing power, pull or delete models, and sometimes read the documents stored for retrieval.

An open notebook or AI cluster dashboard can be worse: it runs code, so reaching it can come close to having a shell on the machine.

Finding Them Without Touching Them

OpenVAPT is designed never to send a prompt or a request to an AI service. It reads the listening sockets the kernel reports and the configuration files on disk, which is often enough to see exposure.

NET-AI-001 matches network-reachable sockets with the default ports of these tools. NET-AI-002 reads Jupyter configuration for a blank token or disabled request forgery protection.

Closing the Door

Bind each service to 127.0.0.1. If other people need it, put a reverse proxy with authentication and TLS in front, or reach it through an SSH tunnel or VPN.

Testing how a model answers hostile prompts is a separate activity. It needs the owner's permission and its own plan, and OpenVAPT does not do it.

In Summary

Self-hosted AI tools often have no login. Keep them on loopback, publish them only behind authentication, and treat notebooks and dashboards as remote shells.

Apply It

These OpenVAPT checks put this module into practice. Open one to see its detection logic and source code.

Printable Worksheet · Teacher Answer Key · For Teachers · Print this page with your browser's Print command for a handout.

Also available as plain Markdown for notes, scripts and AI tools. Same facts, same source, no styling.

Lab

  1. Run: openvapt demo vulnerable --only NET-AI- --out p24 and read the evidence for each finding.
  2. Write the one setting that binds Ollama to loopback and the Jupyter command that sets a password.

Check Yourself

Answers are checked in your browser and never stored or sent.

Question 1

1. Why are many self-hosted AI tools risky on a server?

Question 2

2. What does an open Jupyter server give an attacker?

Question 3

3. How does OpenVAPT find exposed AI services?

Question 4

4. What is the safest default bind address for these services?

Question 5

5. Is testing a model with hostile prompts part of a local self-assessment?

References

Cite This Page

If this page helped your work, please cite it. The version and web address are filled in; the access date is today's date in your browser. Every other style, and when credit is required, is on How to Cite OpenVAPT.

APA 7
OpenVAPT. (2026). P24: Securing Self-Hosted AI Services (Version 0.1.0-alpha.6). OpenVAPT Academy. Retrieved October 16, 2026, from https://openvapt.com/academy/p24.html

In text: (OpenVAPT, 2026). Accessed: the date shown is today's date from your own browser (the site's build date without JavaScript); change it to the day you read the page.

BibTeX
@misc{openvapt_p24,
  author       = {{OpenVAPT}},
  title        = {{P24: Securing Self-Hosted AI Services}},
  year         = {2026},
  howpublished = {\url{https://openvapt.com/academy/p24.html}},
  note         = {OpenVAPT Academy, version 0.1.0-alpha.6. Accessed 16 October 2026}
}

Accessed: the date shown is today's date from your own browser (the site's build date without JavaScript); change it to the day you read the page.

Citing OpenVAPT does not mean OpenVAPT endorses, approves or has reviewed your work.