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: 490a004630440220289bbb1a9ce2d69d6b4764b1d251b8323f890f1dd94e2aa2686a3d8876c2e411022059d9a11a6d291fcc3b28f3f56c7d21df8bbedb334a0c73fab832cbd2b3f4b4a3:922c64590222798bb761d5b6d8e72950