-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(m365): add sharepoint service with 4 checks #7057
Conversation
… and a check to test if things are working properly
…new checks following CIS recommendations
…ing to be used and add more description to status extended in admincenter checks
…tests still not working
…test connection, not working
…ptions, regions and mutelist
…nant is not allowed for microsoft365 and adjust admincenter service and checks to that change
…al to those that are either manual in the CIS or cant be done using msgraph SDK
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7057 +/- ##
==========================================
- Coverage 92.02% 88.78% -3.24%
==========================================
Files 79 1207 +1128
Lines 6986 35031 +28045
==========================================
+ Hits 6429 31103 +24674
- Misses 557 3928 +3371
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Good job! Please, make sure you only pass a single object to CheckReportMicrosoft365
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.
Good job 👏🏼 👏🏼 👏🏼 👏🏼
prowler/providers/microsoft365/services/sharepoint/sharepoint_service.py
Outdated
Show resolved
Hide resolved
...point/sharepoint_modern_authentication_required/sharepoint_modern_authentication_required.py
Outdated
Show resolved
Hide resolved
Co-authored-by: MarioRgzLpz <[email protected]> Co-authored-by: HugoPBrito <[email protected]> Co-authored-by: MrCloudSec <[email protected]>
Context
This PR introduces a new service for Microsoft365: SharePoint, which includes four new checks along with comprehensive tests for each and also for the service. All changes have been fully adapted to the latest refactor, ensuring consistency across the codebase.
The four new checks cover settings for SharePoint. They are:
sharepoint_external_sharing_managed
: Validates that external sharing is managed in accordance with organizational policies (allowing or blocking access to certain domains).sharepoint_external_sharing_restricted
: Ensures that external sharing is appropriately restricted to safeguard data.sharepoint_guest_sharing_restricted
: Verifies that guest sharing is limited to prevent unauthorized access.sharepoint_modern_authentication_required
: Confirms that modern authentication is enabled for enhanced security, this means that access for applications that don't use modern authentication is blocked.Description
Added new service with new checks and all the unit tests needed.
Checklist
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.