mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
detect an anonymously reachable kubeflow pipelines apiserver, whose same api accepts pipeline run submission with an attacker-supplied workflow manifest (arbitrary container execution), and a metaflow metadata service leaking flow and owner enumeration. match distinctive snake_case json keys with status 200, fail closed on empty instances to avoid the bare-substring false-positive class.
38 lines
829 B
YAML
38 lines
829 B
YAML
# Metaflow Metadata Service Exposure Detection Module
|
|
|
|
id: metaflow-metadata-exposure
|
|
info:
|
|
name: Metaflow Metadata Service Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects a Metaflow metadata service reachable without auth, disclosing every registered flow's name, owner and creation time over its rest api
|
|
tags: [metaflow, mlops, data-orchestration, pipeline, api, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/flows"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"flow_id\""
|
|
- "\"user_name\""
|
|
- "\"ts_epoch\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: metaflow_flow_id
|
|
part: body
|
|
regex:
|
|
- '"flow_id"\s*:\s*"([^"]+)"'
|
|
group: 1
|