-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(aws): add new check cloudwatch_log_group_no_critical_pii_in_logs
#5494
feat(aws): add new check cloudwatch_log_group_no_critical_pii_in_logs
#5494
Conversation
You can check the documentation for this PR here -> Prowler Documentation |
You can check the documentation for this PR here -> Prowler Documentation |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5494 +/- ##
==========================================
+ Coverage 89.69% 89.72% +0.03%
==========================================
Files 1096 1102 +6
Lines 34034 34251 +217
==========================================
+ Hits 30526 30733 +207
- Misses 3508 3518 +10 ☔ View full report in Codecov by Sentry. |
...log_group_no_critical_pii_in_logs/cloudwatch_log_group_no_critical_pii_in_logs.metadata.json
Outdated
Show resolved
Hide resolved
...log_group_no_critical_pii_in_logs/cloudwatch_log_group_no_critical_pii_in_logs.metadata.json
Outdated
Show resolved
Hide resolved
...loudwatch_log_group_no_secrets_in_logs/cloudwatch_log_group_no_secrets_in_logs.metadata.json
Outdated
Show resolved
Hide resolved
...cloudwatch_log_group_no_critical_pii_in_logs/cloudwatch_log_group_no_critical_pii_in_logs.py
Outdated
Show resolved
Hide resolved
...cloudwatch_log_group_no_critical_pii_in_logs/cloudwatch_log_group_no_critical_pii_in_logs.py
Outdated
Show resolved
Hide resolved
...cloudwatch_log_group_no_critical_pii_in_logs/cloudwatch_log_group_no_critical_pii_in_logs.py
Outdated
Show resolved
Hide resolved
…up-no-critical-pii-in-logs
You can check the documentation for this PR here -> Prowler Documentation |
1 similar comment
You can check the documentation for this PR here -> Prowler Documentation |
22265e7
to
aae8f25
Compare
You can check the documentation for this PR here -> Prowler Documentation |
1 similar comment
You can check the documentation for this PR here -> Prowler Documentation |
55b0980
to
3dbfc23
Compare
You can check the documentation for this PR here -> Prowler Documentation |
cloudwatch_log_group_no_critical_pii_in_logs
cloudwatch_log_group_no_critical_pii_in_logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job! 💯
findings = [] | ||
|
||
# Initialize the PII Analyzer engine | ||
analyzer = AnalyzerEngine() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be done after line 20 at least not to get anything if no logs.
return findings | ||
|
||
|
||
class SecretsDict(dict[int, Set[str]]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this class?
Context
This PR adds a new check,
cloudwatch_log_group_no_critical_pii_in_logs
, to detect critical Personally Identifiable Information (PII) in CloudWatch logs using Microsoft Presidio. The goal is to enhance security by ensuring no sensitive PII (e.g., SSNs, credit card numbers) is logged, reducing the risk of privacy violations and compliance issues.Description
cloudwatch_log_group_no_critical_pii_in_logs
detects critical PII such as Social Security Numbers (SSNs), credit card numbers, and email addresses.Checklist
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.