Files
sif/modules/recon/llamacpp-api-exposure.yaml
T
TigahandGitHub 24bcab0a8f feat(modules): detect exposed openai-compatible llm servers (#233)
add recon modules for unauthenticated inference servers that expose an openai-style /v1/models inventory without a key: vllm, llama.cpp, lm studio, and infinity.
2026-07-02 17:00:35 -07:00

35 lines
697 B
YAML

# llama.cpp Server API Exposure Detection Module
id: llamacpp-api-exposure
info:
name: llama.cpp Server API Exposure
author: sif
severity: medium
description: Detects an exposed llama.cpp server that lists its served model over the openai-compatible api without a key
tags: [llamacpp, llm, ai, inference, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/v1/models"
matchers:
- type: status
status:
- 200
- type: regex
part: body
regex:
- '"owned_by"\s*:\s*"llamacpp"'
extractors:
- type: regex
name: llamacpp_model
part: body
regex:
- '"id"\s*:\s*"([^"]+)"'
group: 1