From e041688b8d90a3bf02477cbc4f07016013285c28 Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Mon, 23 Nov 2020 22:28:55 +0000 Subject: [PATCH 1/3] Create terraform-detect.yaml More info on Terraform and their configuration files can be found here: https://www.freecodecamp.org/news/build-a-screenshot-capture-api-using-terraform-aws-api-gateway-and-aws-lambda/ --- technologies/terraform-detect.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 technologies/terraform-detect.yaml diff --git a/technologies/terraform-detect.yaml b/technologies/terraform-detect.yaml new file mode 100644 index 0000000000..f61365a1fc --- /dev/null +++ b/technologies/terraform-detect.yaml @@ -0,0 +1,19 @@ +id: terraform-detect +info: + name: Detect Terraform + author: geeknik + description: Write Infrastructure as Code - https://www.terraform.io/ + severity: info +requests: + - method: GET + path: + - "{{BaseURL}}/provider.tf" + matchers: + - type: words + part: body + word: + - access_key + - private_key + - type: status + status: + - 200 From 5f390de05498b0bc8da44ae3d8aab0bd4a0acfe7 Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Mon, 23 Nov 2020 22:30:25 +0000 Subject: [PATCH 2/3] Update terraform-detect.yaml --- technologies/terraform-detect.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/technologies/terraform-detect.yaml b/technologies/terraform-detect.yaml index f61365a1fc..dca708de8c 100644 --- a/technologies/terraform-detect.yaml +++ b/technologies/terraform-detect.yaml @@ -8,6 +8,7 @@ requests: - method: GET path: - "{{BaseURL}}/provider.tf" + matchers-condition: and matchers: - type: words part: body From 1c912b753d133cd312b5a70682c414c2358f1a97 Mon Sep 17 00:00:00 2001 From: bauthard <8293321+bauthard@users.noreply.github.com> Date: Wed, 25 Nov 2020 01:41:47 +0530 Subject: [PATCH 3/3] matcher fix n updates --- technologies/terraform-detect.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/technologies/terraform-detect.yaml b/technologies/terraform-detect.yaml index dca708de8c..8c4d3307df 100644 --- a/technologies/terraform-detect.yaml +++ b/technologies/terraform-detect.yaml @@ -1,20 +1,24 @@ id: terraform-detect info: - name: Detect Terraform + name: Detect Terraform Provider author: geeknik description: Write Infrastructure as Code - https://www.terraform.io/ severity: info + requests: - method: GET path: - "{{BaseURL}}/provider.tf" + matchers-condition: and matchers: - - type: words + - type: word part: body - word: + words: - access_key - - private_key + - terraform + condition: and + - type: status status: - 200