mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 22:40:54 -07:00
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.
35 lines
663 B
YAML
35 lines
663 B
YAML
# vLLM OpenAI-Compatible API Exposure Detection Module
|
|
|
|
id: vllm-api-exposure
|
|
info:
|
|
name: vLLM API Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an exposed vLLM OpenAI-compatible server that lists its served models without an api key
|
|
tags: [vllm, 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*"vllm"'
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: vllm_model
|
|
part: body
|
|
regex:
|
|
- '"id"\s*:\s*"([^"]+)"'
|
|
group: 1
|