Files
sif/modules/recon/tgi-api-exposure.yaml
T
TigahandGitHub 37a1a9e0ec feat(modules): detect exposed huggingface inference servers (#234)
add recon modules for unauthenticated text-generation-inference (tgi) and text-embeddings-inference (tei) servers that leak model info without a key.
2026-07-02 12:55:36 -07:00

40 lines
817 B
YAML

# Text Generation Inference API Exposure Detection Module
id: tgi-api-exposure
info:
name: Text Generation Inference API Exposure
author: sif
severity: medium
description: Detects an exposed Hugging Face Text Generation Inference server that serves model info and inference without authentication
tags: [tgi, llm, ai, inference, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/info"
matchers:
- type: status
status:
- 200
- type: regex
part: body
regex:
- '"router"\s*:\s*"text-generation-router"'
- type: word
part: body
words:
- "\"max_concurrent_requests\""
extractors:
- type: regex
name: tgi_model
part: body
regex:
- '"model_id"\s*:\s*"([^"]+)"'
group: 1