Files
sif/modules/recon/gitlab-ci-config-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.1 KiB
YAML

id: gitlab-ci-config-exposure
info:
name: Gitlab CI Config Exposure
author: sif
severity: low
description: Detects an exposed gitlab-ci pipeline definition that leaks build stages, deploy scripts and internal registry or host references
tags: [gitlab, ci, cd, pipeline, info-disclosure, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/.gitlab-ci.yml"
- "{{BaseURL}}/.gitlab-ci.yaml"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "script:"
- type: word
part: body
condition: or
words:
- "stages:"
- "before_script:"
- "after_script:"
- "artifacts:"
- "rules:"
- type: word
part: body
negative: true
condition: or
words:
- "<!DOCTYPE"
- "<!doctype"
- "<html"
- "<HTML"
- "<head>"
- "<title>"
extractors:
- type: regex
name: ci_image
part: body
regex:
- 'image:\s*["'']?([^\s"'']+)'
group: 1