Files
sif/modules/recon/zookeeper-admin-exposure.yaml
T
TigahandGitHub 12cab935ec feat(modules): add zookeeper and hadoop namenode exposure modules (#262)
add two recon modules detecting anon-by-design big-data control surfaces that leak operational topology:

- zookeeper-admin-exposure (medium): probes /commands/monitor on a zookeeper adminserver and matches the command/monitor envelope plus server_state; the adminserver has no auth on reads, so an open one discloses the version, ensemble role, connection counts and data size, while a firewalled or disabled adminserver is not reachable; extracts the version

- hadoop-namenode-exposure (medium): probes /jmx for the NameNodeInfo bean and matches the bean name plus LiveNodes/DeadNodes; the namenode jmx is unauthenticated unless kerberos spnego is set, so an open one discloses the hdfs version and every datanode internal hostname, while a kerberos-secured namenode returns 401; extracts the software version

trino/presto were dropped: /v1/info is ResourceSecurity(PUBLIC) so it answers on secured clusters too and would be a fingerprint, not an exposure.

both modules carry hard-test coverage with N-1 anchor traps (a non-monitor zookeeper command and a non-NameNodeInfo hadoop bean stay quiet), cross false-positive guards both ways and a secured-instance status case.
2026-07-02 12:56:31 -07:00

40 lines
856 B
YAML

# ZooKeeper AdminServer Exposure Detection Module
id: zookeeper-admin-exposure
info:
name: ZooKeeper AdminServer Exposure
author: sif
severity: medium
description: Detects an exposed Apache ZooKeeper AdminServer whose monitor command leaks the version, ensemble role and znode and watch counts
tags: [zookeeper, apache, coordination, adminserver, information-disclosure, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/commands/monitor"
matchers:
- type: regex
part: body
regex:
- '"command"\s*:\s*"monitor"'
- type: word
part: body
words:
- "\"server_state\""
- type: status
status:
- 200
extractors:
- type: regex
name: zookeeper_version
part: body
regex:
- '"version"\s*:\s*"([^"]+)"'
group: 1