Files
sif/modules/recon/speaches-api-exposure.yaml
T
TigahandGitHub 84ae3a7168 feat(modules): detect exposed ai speech servers (#245)
add recon modules for self-hosted speech inference servers that are exposed without authentication: speaches (faster-whisper successor, speech-to-text and text-to-speech) keyed on its non-openai model task field, and xtts-api-server keyed on its get-folders endpoint that discloses local filesystem paths.
2026-07-02 12:55:52 -07:00

45 lines
1.2 KiB
YAML

# Speaches Speech Server API Exposure Detection Module
id: speaches-api-exposure
info:
name: Speaches Speech Server API Exposure
author: sif
severity: medium
description: Detects an exposed Speaches speech server (the successor to faster-whisper-server) reachable without authentication; api keys are disabled by default, so its model list leaks the loaded speech-to-text and text-to-speech models and the open api accepts unauthenticated transcription and synthesis
tags: [speaches, faster-whisper, whisper, speech, stt, tts, ai, inference, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/v1/models"
matchers:
- type: regex
part: body
regex:
- '"object"\s*:\s*"list"'
- type: word
part: body
words:
- "\"owned_by\""
- type: regex
part: body
regex:
- '"task"\s*:\s*"(automatic-speech-recognition|text-to-speech|speaker-embedding|voice-activity-detection|speaker-diarization)"'
- type: status
status:
- 200
extractors:
- type: regex
name: speaches_model
part: body
regex:
- '"id"\s*:\s*"([^"]+)"'
group: 1