Files
sif/modules/recon/nomad-agent-exposure.yaml
T
TigahandGitHub 7ea1cd28d5 feat(modules): add traefik, nomad and portainer exposure modules (#249)
add recon modules for container and proxy control planes that answer without authentication: traefik serves its full routing config at /api/overview when the api is enabled, nomad dumps the agent config at /v1/agent/self when acls are disabled (403 otherwise), and portainer discloses its version and instance id at the public /api/status.
2026-07-02 17:00:50 -07:00

39 lines
840 B
YAML

# HashiCorp Nomad Agent API Exposure Detection Module
id: nomad-agent-exposure
info:
name: HashiCorp Nomad Agent API Exposure
author: sif
severity: high
description: Detects a HashiCorp Nomad agent with ACLs disabled that dumps its own configuration over the unauthenticated agent self endpoint
tags: [nomad, hashicorp, orchestration, scheduler, controlplane, api, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/v1/agent/self"
matchers:
- type: word
part: body
words:
- "\"config\""
- "\"member\""
- "\"stats\""
- "\"Tags\""
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: nomad_version
part: body
regex:
- '"build"\s*:\s*"([0-9][^"]*)"'
group: 1