Files
sif/modules/recon/jenkinsfile-exposure.yaml
T
TigahandGitHub cb65f868c3 feat(modules): add terraform tfvars, ansible vault and ci config exposure modules (#299)
* feat(modules): add tfvars, ansible-vault and ci config exposure

* chore(modules): trim redundant module header comments

drop the top-line comments on the new iac config exposure modules that
just restated the id/name fields already in the info block
2026-07-22 12:47:54 -07:00

56 lines
1.0 KiB
YAML

id: jenkinsfile-exposure
info:
name: Jenkinsfile Exposure
author: sif
severity: low
description: Detects an exposed Jenkinsfile pipeline definition that leaks build stages, agent labels and deploy steps
tags: [jenkins, ci, cd, pipeline, groovy, info-disclosure, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/Jenkinsfile"
- "{{BaseURL}}/jenkinsfile"
matchers:
- type: status
status:
- 200
- type: word
part: body
condition: or
words:
- "pipeline {"
- "node {"
- type: word
part: body
condition: or
words:
- "stages {"
- "stage("
- "steps {"
- type: word
part: body
negative: true
condition: or
words:
- "<!DOCTYPE"
- "<!doctype"
- "<html"
- "<HTML"
- "<head>"
- "<title>"
extractors:
- type: regex
name: jenkinsfile_agent
part: body
regex:
- 'agent\s*\{?\s*(\w+)'
group: 1