Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mitre gcp): add mitre mapping for gcp #3899

Merged

Conversation

n4ch04
Copy link
Contributor

@n4ch04 n4ch04 commented Apr 30, 2024

Context

We need to cover mitre attack mapping for gcp

Description

Include mitre attack mapping for gcp

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the provider/gcp Issues/PRs related with the Google Cloud Platform provider label Apr 30, 2024
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 77.14286% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 86.33%. Comparing base (722554a) to head (2b0186a).
Report is 8 commits behind head on master.

Files Patch % Lines
...ib/outputs/compliance/mitre_attack/mitre_attack.py 0.00% 5 Missing ⚠️
prowler/lib/outputs/file_descriptors.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3899   +/-   ##
=======================================
  Coverage   86.32%   86.33%           
=======================================
  Files         748      748           
  Lines       23295    23323   +28     
=======================================
+ Hits        20110    20135   +25     
- Misses       3185     3188    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@n4ch04 n4ch04 marked this pull request as ready for review April 30, 2024 10:22
@n4ch04 n4ch04 requested review from a team as code owners April 30, 2024 10:22
Copy link
Member

@pedrooot pedrooot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! @n4ch04 Please review my comments 🙏🏼

@@ -170,7 +188,7 @@ def fill_file_descriptors(output_modes, output_directory, output_filename, provi
file_descriptor = initialize_file_descriptor(
filename,
output_mode,
Check_Output_MITRE_ATTACK,
MitreAttackAWS,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elif provider.type == "azure": appears two times in this method, could you please unify them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved

"network_ssh_internet_access_restricted",
"network_udp_internet_access_restricted",
"network_watcher_enabled",
"networkfirewall_in_all_vpc"
Copy link
Member

@pedrooot pedrooot Apr 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"networkfirewall_in_all_vpc"

"networkfirewall_in_all_vpc" it's not a check for azure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted

@n4ch04 n4ch04 requested a review from pedrooot May 3, 2024 06:16
pedrooot
pedrooot previously approved these changes May 3, 2024
Copy link
Member

@pedrooot pedrooot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔝 work @n4ch04

sergargar
sergargar previously approved these changes May 3, 2024
@sergargar sergargar merged commit 808d87a into master May 6, 2024
10 of 11 checks passed
@sergargar sergargar deleted the PRWLR-3579-oss-map-gcp-checks-to-mitre-att-ck-framework branch May 6, 2024 09:10
pedrooot added a commit that referenced this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/gcp Issues/PRs related with the Google Cloud Platform provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants