mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
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.
42 lines
962 B
YAML
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
|