id: terraform-detect

info:
  name: Detect Terraform Provider
  author: geeknik
  severity: info
  description: Write Infrastructure as Code - https://www.terraform.io/
  metadata:
    max-request: 1
  tags: tech,terraform

http:
  - method: GET
    path:
      - "{{BaseURL}}/provider.tf"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "access_key"
          - "terraform"
        condition: and

      - type: status
        status:
          - 200

# digest: 4a0a00473045022100db88260d1c3bec716d78dc0f7ee28e66c7f4b6b83d22c578f2ac8f70c2c9098202200edb4b38044a73532918bb37a4173318eadd9f3d8ad448c3996c8ba7cc288bbb:922c64590222798bb761d5b6d8e72950