Lucene search
+L

LLM Prompt Injection Surface Detection

🗓️ 08 Aug 2026 21:48:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 2 Views

KittySploit LLM Prompt Injection Surface Detection probes endpoints for unauthenticated inference.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Detect exposed LLM chat/completion endpoints (prompt injection surface)."""

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.scanner.http.llm_surface_probe import scan_llm_surfaces


class Module(Scanner, Http_client):
    __info__ = {
        "name": "LLM Prompt Injection Surface Detection",
        "description": (
            "Probes OpenAI-compatible /v1/chat/completions, Ollama, and generic /api/chat "
            "endpoints for unauthenticated inference — prompt injection and tool abuse entry points."
        ),
        "author": ["KittySploit Team"],
        "severity": "high",
        "tags": ["web", "scanner", "llm", "ai", "openai", "ollama", "prompt", "inference"],
        "modules": [
            "scanner/http/ollama_detect",
            "scanner/http/openwebui_detect",
        ],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 11,
            "reversible": True,
            "approval_required": False,
            "produces": ["tech_hints", "risk_signals", "endpoints"],
            "cost": 1.2,
            "noise": 0.45,
            "value": 1.3,
        },
    }

    def run(self):
        findings = scan_llm_surfaces(self.http_request)
        if not findings:
            return False
        open_hits = [
            f
            for f in findings
            if "unauthenticated_completion" in (f.get("indicators") or [])
        ]
        self.set_info(
            severity="critical" if open_hits else "medium",
            reason=(
                f"LLM completion surface ({len(open_hits)} unauthenticated)"
                if open_hits
                else "LLM endpoints reachable (auth required)"
            ),
            path=findings[0].get("path") or "/v1/chat/completions",
            findings=findings[:10],
        )
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation