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: 4b0a00483046022100ee0cc871b5f87a3f9477aae3b86d7a14044ef58c66d3abd3c711fe87ab465e3f0221009c7da714a9d0baf3982e0acd24ea6c46c54b43628d91d4c3ceb0c1552ba7c35e:922c64590222798bb761d5b6d8e72950