prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
10.87k stars 1.55k forks source link

Implement more secrets checks #3085

Open Fennerr opened 11 months ago

Fennerr commented 11 months ago

New feature motivation

Similar to the secrets checks for the other services (lambda/ec2/ecs/etc), more checks can be implemented

Solution Proposed

Elastic Beanstalk:

API Gateway:

CodeBuild and CodePipeline:

Glue Jobs:

Step Functions:

AppSync:

This might not be all the API calls that need to be made to get the secrets, but should be a good starting point

Describe alternatives you've considered

None

Additional context

No response

Fennerr commented 11 months ago

More secrets to consider:

AWS CodeCommit:

AWS Elastic Container Registry (ECR):

AWS Lambda Layer Contents:

AWS Systems Manager State Manager:

AWS Batch Job Definitions:

Amazon SageMaker:

AWS Amplify Console:

AWS Data Pipeline:

AWS Glue Data Catalog:

n4ch04 commented 11 months ago

Hi @Fennerr, all of them interesting ideas, but maybe we need to rethink a little bit our "secrets detection engine" ... The detect-secrets package generates false positives and the current way of scanning generates a lot of resource exhaustion ...

Fennerr commented 10 months ago

This is true. Maybe move it to an optional flag and/or a config option to select what secrets you want to scan for

It would also be nice to generalize the way that secrets are scanned for so that stuff like writing to the temp files to disk, search for secrets, and using multiprocessing for this (as it's cpu intensive) can just be handled in one place.

Gfuen commented 3 weeks ago

@Fennerr Was there any decision on this ticket going forward? Because if the detect-secrets package is going to be changed I would love to work on that. Thanks!

jfagoagas commented 3 weeks ago

Hello @Gfuen there are no plans on changing the detect-secrets package. Do you have any suggestion for a different Python package to look for secrets?

Related to the checks requested above they are still pending to be done.