-
Notifications
You must be signed in to change notification settings - Fork 121
Network-25395: Entra Private Access Application segments are defined to enforce least-privilege access #747
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
Conversation
sandeepjha000
left a comment
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.
@aahmed-spec - please address the feedback
Refactor assessment script by updating region markers and improving condition checks.
removed extra lines
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.
Pull request overview
This PR adds a new security assessment test (Test-Assessment.25395) that evaluates Microsoft Entra Private Access applications to ensure they follow least-privilege principles through granular network segmentation and Custom Security Attributes (CSA) for Conditional Access targeting.
Key Changes
- Implementation of comprehensive Private Access application segmentation validation
- Helper functions to detect overly broad CIDR ranges, IP ranges, and port configurations with Active Directory exceptions
- Integration with Conditional Access policy evaluation using applicationFilter targeting
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| src/powershell/tests/Test-Assessment.25395.ps1 | Implements the core assessment logic with helper functions to validate network segments, check for broad access patterns, verify CSA assignments, and generate detailed compliance reports |
| src/powershell/tests/Test-Assessment.25395.md | Provides documentation explaining the security rationale, threat scenarios, remediation steps, and reference links for implementing least-privilege Private Access configurations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@aahmed-spec I've opened a new pull request, #752, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: aahmed-spec <[email protected]>
Extract hardcoded AD ports to constant for maintainability
Inconsistent indentation detected. Lines 249-256 use tabs while the rest of the file uses spaces. PowerShell style guidelines typically recommend using spaces consistently throughout the file for better readability across different editors. Co-authored-by: Copilot <[email protected]>
Inconsistent indentation detected. Line 346 uses tabs while the rest of the file uses spaces. PowerShell style guidelines typically recommend using spaces consistently throughout the file for better readability across different editors. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Clarified output descriptions in Test-IsBroadCidr function.
…Assessment.25395.ps1 Co-authored-by: Copilot <[email protected]>
updated 255 instead of 256 Co-authored-by: Copilot <[email protected]>
|
@aahmed-spec I've opened a new pull request, #753, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@copilot check the comments you have shared and let me know if they are resolved now. |
|
@aahmed-spec I've opened a new pull request, #754, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: aahmed-spec <[email protected]>
Fix off-by-one errors in IP and port range calculations for Test-Assessment.25395
alexandair
left a comment
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.
LGTM
SagarSathe
left a comment
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.
LGTM
Adding test 25395