id: circleci-ssh-config

info:
  name: CircleCI SSH Configuration - Detect
  author: geeknik
  severity: medium
  description: CircleCI ssh-config file was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: config,exposure,circleci

http:
  - method: GET
    host-redirects: true
    max-redirects: 3
    path:
      - "{{BaseURL}}/.circleci/ssh-config"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Host"
          - "HostName"
          - "IdentityFile"
        condition: and

      - type: status
        status:
          - 200

# digest: 4a0a00473045022000fa3cc54ab048d84e090a8935728ee6e44e8d356f1dcce96dce11b0d0ebc837022100c2965b13573b650fb80052b35c3b5165173f2c06dce96f4c8244271bf5e520bf:922c64590222798bb761d5b6d8e72950
