Files
sif/modules/recon/sglang-api-exposure.yaml
T
TigahandGitHub 122fe5f94b feat(modules): detect exposed gpu inference servers (#236)
add recon modules for unauthenticated gpu serving stacks that leak model info without a key: triton, sglang, and torchserve.
2026-07-02 17:00:41 -07:00

40 lines
752 B
YAML

# SGLang API Exposure Detection Module
id: sglang-api-exposure
info:
name: SGLang API Exposure
author: sif
severity: medium
description: Detects an exposed SGLang inference server that serves model info and generation without authentication
tags: [sglang, llm, ai, inference, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/model_info"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"is_generation\""
- type: word
part: body
words:
- "\"has_image_understanding\""
extractors:
- type: regex
name: sglang_model
part: body
regex:
- '"model_path"\s*:\s*"([^"]+)"'
group: 1