Files
sif/modules/recon/hadoop-namenode-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

42 lines
962 B
YAML

# Hadoop HDFS NameNode Exposure Detection Module
id: hadoop-namenode-exposure
info:
name: Hadoop HDFS NameNode Exposure
author: sif
severity: medium
description: Detects an exposed Hadoop HDFS NameNode jmx interface that leaks the version, capacity and every datanode's internal hostname
tags: [hadoop, hdfs, namenode, apache, big-data, jmx, information-disclosure, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo"
matchers:
- type: regex
part: body
regex:
- '"name"\s*:\s*"Hadoop:service=NameNode,name=NameNodeInfo"'
- type: word
part: body
words:
- "\"LiveNodes\""
- "\"DeadNodes\""
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: hdfs_version
part: body
regex:
- '"SoftwareVersion"\s*:\s*"([^"]+)"'
group: 1