Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

upstream merge #1

Open
wants to merge 157 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
153ca05
Add gcp (#36)
mikeurbanski1 Jul 28, 2020
8695e41
update resource scan result doc
actions-user Jul 28, 2020
807a853
Update template.md
Aug 9, 2020
4ddee5a
update resource scan result doc
actions-user Aug 9, 2020
aa8fd16
AWS Neptune Terraform triggers CKV_AWS_44
Aug 21, 2020
37527c4
Merge pull request #39 from metahertz/add-neptune-graphdb-support
Aug 27, 2020
9eb9086
update resource scan result doc
actions-user Aug 27, 2020
c4ca406
Update template.md
Aug 27, 2020
2582a10
update resource scan result doc
actions-user Aug 27, 2020
6c45387
Update template.md
Sep 2, 2020
0ffedfb
update resource scan result doc
actions-user Sep 2, 2020
da67c0f
Application Gateway without WAF block.
harkirat22 Oct 19, 2020
3425c00
Update README.md
Nov 1, 2020
fd9602d
update resource scan result doc
actions-user Nov 1, 2020
6f69de5
Update template.md
Nov 2, 2020
ba76e5c
update resource scan result doc
actions-user Nov 2, 2020
7081426
Update template.md
Jan 4, 2021
7fdcb29
update resource scan result doc
actions-user Jan 4, 2021
8d159d1
Update README.md
Apr 8, 2021
063dc2d
update resource scan result doc
actions-user Apr 8, 2021
1af0a70
Add yor to pipeline on master
nimrodkor May 2, 2021
5c6b5d6
Apply automatic changes
nimrodkor May 2, 2021
78d9dd4
update resource scan result doc
actions-user May 2, 2021
944e380
Remove unnecessary build matrix
nimrodkor May 2, 2021
0526802
Merge pull request #46 from harkirat22/master
nimrodkor May 2, 2021
b07a42e
Apply automatic changes
nimrodkor May 2, 2021
52d676e
update resource scan result doc
actions-user May 2, 2021
6e62522
Use availability zones from region
nimrodkor May 2, 2021
d3439f0
Apply automatic changes
nimrodkor May 2, 2021
ad82086
update resource scan result doc
actions-user May 2, 2021
510c0f8
baseline
tronxd Jul 1, 2021
d311606
revert
tronxd Jul 1, 2021
4cc89e4
Create CODE_OF_CONDUCT.md
VaishnaviJha786 Oct 9, 2021
d8bf158
Merge pull request #100 from VaishnaviJha786/patch-1
schosterbarak Nov 2, 2021
73ed190
Merge branch 'master' into master
guyeisenkot Nov 10, 2021
079fe74
RDS cluster backup retention
tronxd Dec 8, 2021
fe9663c
Merge pull request #140 from bridgecrewio/smart_fixes_scenarios
tronxd Dec 9, 2021
23c5517
change bucket name
LironElbaz Dec 13, 2021
3f5b66d
revert the last commit
LironElbaz Dec 13, 2021
0703874
Update tags (by Yor)
github-actions[bot] Dec 13, 2021
9d3e5f3
Merge branch 'bridgecrewio:master' into master
LironElbaz Dec 13, 2021
e731e62
Update tags (by Yor)
github-actions[bot] Dec 13, 2021
a09ec90
Update template.md
schosterbarak Jan 12, 2022
62416f6
Update tags (by Yor)
github-actions[bot] Jan 12, 2022
dbd253a
Update checkov.yaml
schosterbarak Jan 12, 2022
a2ff5e9
Update checkov.yaml
schosterbarak Jan 12, 2022
09097e7
Update checkov.yaml
schosterbarak Jan 12, 2022
d264c69
update resource scan result doc
actions-user Jan 12, 2022
2bdc087
make working tf
JamesWoolfenden Jan 19, 2022
a1d1c1c
Create mssql.tf
tsmithv11 Jan 20, 2022
4b0a52b
Update terraform/gcp/variables.tf
JamesWoolfenden Jan 20, 2022
958d00e
Update mssql.tf
JamesWoolfenden Jan 20, 2022
99f35e6
revert state bucket mods
JamesWoolfenden Jan 20, 2022
f4946e5
revert state bucket mods
JamesWoolfenden Jan 20, 2022
5e634b7
Merge pull request #162 from bridgecrewio/fx/gcp
nimrodkor Jan 20, 2022
f150d46
Update tags (by Yor)
github-actions[bot] Jan 20, 2022
d9a3054
update resource scan result doc
actions-user Jan 20, 2022
c6f8caa
Unique names for resources
tsmithv11 Jan 20, 2022
9bcce9c
Merge pull request #163 from bridgecrewio/az-smart-fix
tsmithv11 Jan 25, 2022
32a1f01
Update tags (by Yor)
github-actions[bot] Jan 25, 2022
f4b6569
update resource scan result doc
actions-user Jan 25, 2022
1928d24
Bridgecrew has found BC_AWS_S3_1
bridgecrew-staging[bot] Feb 8, 2022
45381c0
Merge pull request #1 from matansha/bc-fix-89331013-4b66-457c-a045-30…
matansha Feb 8, 2022
cc1246f
Update .gitignore
matansha Feb 8, 2022
9821c5a
add packages
Feb 20, 2022
5bb91a5
Update template.md
schosterbarak Mar 2, 2022
7a7eafc
Update tags (by Yor)
github-actions[bot] Mar 2, 2022
6df2714
Update requirements.txt
matansha Mar 6, 2022
e67b736
Update requirements.txt
matansha Mar 6, 2022
a0c143c
Merge branch 'bridgecrewio:master' into master
matansha Mar 16, 2022
85a2c06
Update tags (by Yor)
github-actions[bot] Mar 16, 2022
27a70cd
update resource scan result doc
actions-user Mar 16, 2022
6ffe680
Update s3.tf
matansha Mar 21, 2022
f277130
Merge pull request #52 from matansha/matansha-patch-5
matansha Mar 22, 2022
3bbbb06
update resource scan result doc
actions-user Mar 22, 2022
eab1075
Merge pull request #55 from matansha/matansha-patch-4
matansha Mar 22, 2022
b575891
update resource scan result doc
actions-user Mar 22, 2022
9414c8e
Update requirements.txt
matansha Mar 22, 2022
2f6df76
Merge pull request #57 from matansha/matansha-patch-11
matansha Mar 23, 2022
21e7033
update resource scan result doc
actions-user Mar 23, 2022
24f68e6
Update requirements.txt
matansha Mar 23, 2022
b8b487e
Merge pull request #58 from matansha/matansha-patch-12
matansha Mar 23, 2022
fa18435
update resource scan result doc
actions-user Mar 23, 2022
2dc9449
Update requirements.txt
matansha Mar 23, 2022
b2546d2
Merge pull request #59 from matansha/matansha-patch-13
matansha Mar 23, 2022
4bde075
update resource scan result doc
actions-user Mar 23, 2022
ca82cba
Update requirements.txt
matansha Mar 24, 2022
cd2b536
Merge pull request #60 from matansha/matansha-patch-14
matansha Mar 24, 2022
3f0f181
update resource scan result doc
actions-user Mar 24, 2022
a5aa6da
Update requirements.txt
matansha Mar 24, 2022
53f8fb6
Merge pull request #62 from matansha/matansha-patch-15
matansha Mar 24, 2022
545879c
update resource scan result doc
actions-user Mar 24, 2022
8a66a3a
Update requirements.txt
matansha Mar 24, 2022
47baa9e
Update requirements.txt
matansha Mar 24, 2022
ff4555f
Merge pull request #78 from matansha/matansha-patch-18
matansha Mar 28, 2022
8896349
update resource scan result doc
actions-user Mar 28, 2022
766f6f7
Merge pull request #79 from matansha/matansha-patch-17
matansha Mar 28, 2022
a3ddec7
update resource scan result doc
actions-user Mar 28, 2022
7699fd3
Update requirements.txt
matansha Mar 28, 2022
160968c
Merge pull request #80 from matansha/matansha-patch-4
matansha Mar 28, 2022
27bac51
update resource scan result doc
actions-user Mar 28, 2022
cd11022
Update requirements.txt
matansha Mar 29, 2022
7d1dd1d
Merge pull request #81 from matansha/matansha-patch-4
matansha Mar 29, 2022
cbe174c
update resource scan result doc
actions-user Mar 29, 2022
52e4054
Update requirements.txt
matansha Mar 29, 2022
55ee9d7
Merge pull request #82 from matansha/matansha-patch-5
matansha Mar 29, 2022
873f913
update resource scan result doc
actions-user Mar 29, 2022
2f48bda
Update requirements.txt
matansha Mar 29, 2022
2704291
Merge pull request #84 from matansha/matansha-patch-5
matansha Mar 29, 2022
3675c8f
update resource scan result doc
actions-user Mar 29, 2022
43f09d1
Update requirements.txt
matansha Mar 29, 2022
9bebeef
Merge pull request #85 from matansha/matansha-patch-5
matansha Mar 29, 2022
b9600ef
Update requirements.txt
matansha Mar 29, 2022
da5f649
update resource scan result doc
actions-user Mar 29, 2022
a5e10fe
Merge pull request #86 from matansha/matansha-patch-5
matansha Mar 29, 2022
71a7e66
update resource scan result doc
actions-user Mar 29, 2022
c861ce2
Update requirements.txt
matansha Mar 29, 2022
4fc233b
Merge pull request #87 from matansha/matansha-patch-5
matansha Mar 29, 2022
c076350
update resource scan result doc
actions-user Mar 29, 2022
95b4242
Create pom.xml
matansha Apr 4, 2022
bae2f8f
update resource scan result doc
actions-user Apr 4, 2022
c2ff052
Aligoat
JamesWoolfenden Apr 5, 2022
9c114f2
Aligoat
JamesWoolfenden Apr 5, 2022
7a7b957
storage
JamesWoolfenden Apr 6, 2022
5406d83
split out
JamesWoolfenden Apr 6, 2022
5566639
Merge pull request #191 from bridgecrewio/alicloud
tsmithv11 Apr 6, 2022
2a0761f
Update tags (by Yor)
github-actions[bot] Apr 6, 2022
f388ad6
update resource scan result doc
actions-user Apr 6, 2022
3e0a181
Create pom.xml
matansha Apr 7, 2022
5137345
update resource scan result doc
actions-user Apr 7, 2022
e0b3b14
Update pom.xml
matansha Apr 7, 2022
b55d887
update resource scan result doc
actions-user Apr 7, 2022
a4374dc
Update pom.xml
matansha Apr 7, 2022
4c236c6
update resource scan result doc
actions-user Apr 7, 2022
29027c2
Bridgecrew has found BC_AWS_S3_1
bridgecrew-staging[bot] Apr 28, 2022
8ab4ac3
Merge pull request #3 from PelegZur/bc-fix-1ca72625-5709-42de-8dbb-9e…
PelegZur Apr 28, 2022
7f99fe0
Create pzurnew.tf
PelegZur Apr 28, 2022
c7b5987
Update s3.tf
PelegZur Apr 28, 2022
e8b3f63
Merge pull request #200 from PelegZur/pzurnew
PelegZur Apr 28, 2022
3751a52
Merge pull request #194 from bridgecrewio/oracle
tsmithv11 May 17, 2022
1e4a027
Revert "Create pzurnew.tf"
nimrodkor May 18, 2022
f2eaa90
Fix build.yaml
nimrodkor May 18, 2022
a0e0da1
Update tags (by Yor)
github-actions[bot] May 18, 2022
4d57f83
Revert "Pzurnew"
May 18, 2022
7d09b23
Merge pull request #214 from bridgecrewio/revert-200-pzurnew
nimrodkor May 18, 2022
ece9207
Update tags (by Yor)
github-actions[bot] May 18, 2022
792b945
add for test
Jun 7, 2022
8fae390
Merge branch 'master' of github.com:matansha/terragoat
Jun 7, 2022
45cfde6
update resource scan result doc
actions-user Jun 7, 2022
ee900fc
Merge branch 'master' into master
LironElbaz Jul 6, 2022
d4a5fe1
Update tags (by Yor)
github-actions[bot] Jul 6, 2022
938e1b2
Merge branch 'master' into master
matansha Jul 26, 2022
e4fe655
Update tags (by Yor)
github-actions[bot] Jul 26, 2022
75554fa
update resource scan result doc
actions-user Jul 26, 2022
4bcb2d6
.
Jan 8, 2023
e6d83b2
update settings to support prisma access key
casbs Apr 27, 2023
729f8da
Update tags (by Yor)
github-actions[bot] Apr 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# TerraGoat - Vulnerable Terraform Infrastructure

[![Maintained by Bridgecrew.io](https://img.shields.io/badge/maintained%20by-bridgecrew.io-blueviolet)](https://bridge.dev/2WBms5Q)
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.12.0-blue.svg)
[![Maintained by Bridgecrew.io](https://img.shields.io/badge/maintained%20by-bridgecrew.io-blueviolet)](https://bridgecrew.io/?utm_source=github&utm_medium=organic_oss&utm_campaign=terragoat)
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/bridgecrewio/terragoat/general)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=bridgecrewio%2Fterragoat&benchmark=INFRASTRUCTURE+SECURITY)
[![CIS Azure](https://www.bridgecrew.cloud/badges/github/bridgecrewio/terragoat/cis_azure)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=bridgecrewio%2Fterragoat&benchmark=CIS+AZURE+V1.1)
[![CIS GCP](https://www.bridgecrew.cloud/badges/github/bridgecrewio/terragoat/cis_gcp)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=bridgecrewio%2Fterragoat&benchmark=CIS+GCP+V1.1)
[![CIS AWS](https://www.bridgecrew.cloud/badges/github/bridgecrewio/terragoat/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=bridgecrewio%2Fterragoat&benchmark=CIS+AWS+V1.2)
[![PCI](https://www.bridgecrew.cloud/badges/github/bridgecrewio/terragoat/pci)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=bridgecrewio%2Fterragoat&benchmark=PCI-DSS+V3.2)
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.12.0-blue.svg)
[![slack-community](https://img.shields.io/badge/Slack-4A154B?style=plastic&logo=slack&logoColor=white)](https://slack.bridgecrew.io/)


TerraGoat is Bridgecrew's "Vulnerable by Design" Terraform repository.
![Terragoat](terragoat-logo.png)
Expand All @@ -21,13 +28,13 @@ TerraGoat is a learning and training project that demonstrates how common config

## Introduction

TerraGoat was built to enable DevSecOps design and implement a sustainable misconfiguration prevention strategy. It can be used to test a policy-as-code framework like [Checkov](https://github.com/bridgecrewio/checkov/), inline-linters, pre-commit hooks or other code scanning methods.
TerraGoat was built to enable DevSecOps design and implement a sustainable misconfiguration prevention strategy. It can be used to test a policy-as-code framework like [Bridgecrew](https://bridgecrew.io/?utm_source=github&utm_medium=organic_oss&utm_campaign=terragoat) & [Checkov](https://github.com/bridgecrewio/checkov/), inline-linters, pre-commit hooks or other code scanning methods.

TerraGoat follows the tradition of existing *Goat projects that provide a baseline training ground to practice implementing secure development best practices for cloud infrastructure.

## Important notes

* **Where to get help:** the [Bridgecrew Community Slack](https://codified-security.herokuapp.com/)
* **Where to get help:** the [Bridgecrew Community Slack](https://slack.bridgecrew.io/?utm_source=github&utm_medium=organic_oss&utm_campaign=terragoat)

Before you proceed please take a not of these warning:
> :warning: TerraGoat creates intentionally vulnerable AWS resources into your account. **DO NOT deploy TerraGoat in a production environment or alongside any sensitive AWS resources.**
Expand All @@ -38,7 +45,7 @@ Before you proceed please take a not of these warning:
* aws cli
* azure cli

To prevent vulnerable infrastructure from arriving to production see: [checkov](https://github.com/bridgecrewio/checkov/), the open source static analysis tool for infrastructure as code.
To prevent vulnerable infrastructure from arriving to production see: [Bridgecrew](https://bridgecrew.io/?utm_source=github&utm_medium=organic_oss&utm_campaign=terragoat) & [checkov](https://github.com/bridgecrewio/checkov/), the open source static analysis tool for infrastructure as code.

## Getting started

Expand Down Expand Up @@ -228,7 +235,8 @@ terraform destroy

* [CfnGoat](https://github.com/bridgecrewio/cfngoat) - Vulnerable by design Cloudformation template
* [TerraGoat](https://github.com/bridgecrewio/terragoat) - Vulnerable by design Terraform stack

* [CDKGoat](https://github.com/bridgecrewio/cdkgoat) - Vulnerable by design CDK application
* [kustomizegoat](https://github.com/bridgecrewio/kustomizegoat) - Vulnerable by design kustomize deployment
## Contributing

Contribution is welcomed!
Expand All @@ -237,7 +245,7 @@ We would love to hear about more ideas on how to find vulnerable infrastructure-

## Support

[Bridgecrew](https://bridge.dev/2WBms5Q) builds and maintains TerraGoat to encourage the adoption of policy-as-code.
[Bridgecrew](https://bridgecrew.io/?utm_source=github&utm_medium=organic_oss&utm_campaign=terragoat) builds and maintains TerraGoat to encourage the adoption of policy-as-code.

If you need direct support you can contact us at [[email protected]](mailto:[email protected]).

Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/checkov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
name: Checkout repo
with:
fetch-depth: 0
- name: Run yor action
uses: bridgecrewio/yor-action@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.7
- name: Update documentation
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch --tags
git pull

latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "latest tag: $latest_tag"
new_tag=$(echo $latest_tag | awk -F. -v a="$1" -v b="$2" -v c="$3" '{printf("%d.%d.%d", $1+a, $2+b , $3+1)}')
Expand All @@ -33,4 +34,4 @@ jobs:
git commit -m "update resource scan result doc" README.md || echo "No changes to commit"
git push origin
git tag $new_tag
git push origin $new_tag
git push origin $new_tag
16 changes: 16 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: build
on:
pull_request
jobs:
checkov-job:
runs-on: ubuntu-latest
name: checkov-action
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@master
with:
directory: terraform/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ override.tf.json
credentials.json
*.tfbackend
*.tfvars
.terraform.lock.hcl

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

.DS_Store
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
Loading