id: gcloud-config-default

info:
  name: Google Cloud Default Config - Detect
  author: DhiyaneshDK
  severity: info
  description: Google Cloud default configuration was detected.
  reference: https://cloud.google.com
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
    cpe: cpe:2.3:a:google:cloud_platform:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"access_tokens.db"
    product: cloud_platform
    vendor: google
  tags: google,cloud,devops,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/configurations/config_default"
      - "{{BaseURL}}/.config/gcloud/configurations/config_default"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '[core]'
          - 'account'
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008bb1c6350aa3fe030d3833854d9a9c28be5a4bc9cbb41c2dac96836e660aae66022100dcc2fbcfaad1e31e9f15998607147be0e77e335a0074c39871721e6d567a41d7:922c64590222798bb761d5b6d8e72950