Comments (6)
Hi @modelenoir, thanks for your feedback. I haven't tested Prowler in GovCloud but not sure if this issue may be related to #112, can you take a look and see if it has anything to do with it? I'll also like to see a sample output of the basic command (without parsing) and see how to improve it. Thanks.
from prowler.
It is related to #112, fix #117 doesn't validate the CIS filter pattern so the false 'Warning' persists (based on code pull 2-Nov) unless one changed the filer to meet Prowler criteria.
from prowler.
Can you please suggest a better way to validate it? I guess it is a matter of regexp. I played with this awk '/.userIdentity.type/&&/IAMUser/||/root/&&/.responseElements.ConsoleLogin/&&/.additionalEventData.MFAUsed/&&/Yes/'
but it is not very accurate.
from prowler.
This seems to work:
'/ConsoleLogin/ && ( (/additionalEventData.MFAUsed.*\!=.*\"Yes/) || (/additionalEventData.MFAUsed.*\=.*\"No/ && !/!/) )’
CIS Benchmark construct
> aws logs describe-metric-filters | grep MFAUsed
"filterPattern": "{ ($.eventName = \"ConsoleLogin\") && ($.additionalEventData.MFAUsed != \"Yes\") }",
> aws logs describe-metric-filters | grep MFAUsed | awk '/ConsoleLogin/ && (/additionalEventData.MFAUsed.*\!=.*\"Yes/) {print $1}'
"filterPattern":
AWS CloudWatch alarm additional example construct
filterPattern: { ($.eventName = "ConsoleLogin") && ($.additionalEventData.MFAUsed="No") },
> cat t | awk '/ConsoleLogin/ && (/additionalEventData.MFAUsed.*\=.*\"No/ && !/!/) {print $1}'
"filterPattern":
When print $1 outputs <"filterPattern":> the pattern matched.
Thank you for prowler, it has been helpful.
from prowler.
Thanks @morningseal I'll add it asap and make a PR.
from prowler.
Ok, now thanks to @morningseal comments it seems to work. I'll close this issue but please feel free to open it again if you find any issue with check32. Thanks you too @modelenoir for your comments.
from prowler.
Related Issues (20)
- [Bug]: empty json-ocsf output in Azure scan HOT 4
- [Bug]: GCP - Compute service with no findings HOT 11
- [Bug]: VPC Scan for empty account fails to find resilient VPCs HOT 2
- [Bug]: apigateway_restapi_authorizers_enabled.py does not consider authorizers configured at the method level HOT 4
- [Suggestion] Improve Lambda code pulling and secret checking performance HOT 2
- Implement more secrets checks HOT 3
- Suggestions: Check for enabled regions HOT 2
- Allow secrets to be output when explicitly asked for using a flag HOT 3
- [Bug]: prowler azure is not scanning virtual machines in azure HOT 2
- [Bug]: iam_user_console_access_unused.py checks for last password usage HOT 3
- [Bug]: Prowler killed by OOM killer when run in AWS CloudShell HOT 6
- [Feature Request] - Round Robin the base urls in the event of unavailability for indexers HOT 1
- [Bug]: Cross account sqs flagged as public/critical HOT 3
- [Bug]: Exception merging from "*" and specific account HOT 3
- [Bug]: False positive on check - "Check if SQS queues have policy set as Public" HOT 2
- Improve publicly accessible checks to include targets of ELBs HOT 7
- [Bug]: Website Down? HOT 1
- [Bug]: False positve on ec2_securitygroup_not_used with Batch Compute HOT 6
- Support py3.12 HOT 1
- [Bug]: cloudwatch_log_group_retention_policy_specific_days_enabled alert on AWS managed log group HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prowler.