Files
sif/modules/recon/ollama-api-exposure.yaml
T
TigahandGitHub e1c8e3948d feat(modules): detect exposed local llm runners (#235)
add recon modules for unauthenticated local inference servers that leak model inventory without a key: ollama, koboldcpp, text-generation-webui (oobabooga), and tabby.
2026-07-02 17:00:38 -07:00

40 lines
745 B
YAML

# Ollama API Exposure Detection Module
id: ollama-api-exposure
info:
name: Ollama API Exposure
author: sif
severity: high
description: Detects an exposed Ollama server whose api lists local models and accepts unauthenticated inference and model-management requests
tags: [ollama, llm, ai, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/tags"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"models\""
- type: word
part: body
words:
- "\"quantization_level\""
extractors:
- type: regex
name: ollama_model
part: body
regex:
- '"name"\s*:\s*"([^"]+)"'
group: 1