-
Notifications
You must be signed in to change notification settings - Fork 76
Feature 21838 #493
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
Open
sandeepjha000
wants to merge
14
commits into
microsoft:psnext
Choose a base branch
from
Perennial-Sys:feature-21838
base: psnext
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature 21838 #493
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
82d8177
adding test 21822
komalp2025 860cefe
updating params
komalp2025 ec972a1
updating layout
komalp2025 06bf703
Merge pull request #2 from Perennial-Sys/feature-21822
KManoj0000 c7da2ca
Revert "Feature 21822"
varsha123 b771285
Merge pull request #7 from Perennial-Sys/revert-2-feature-21822
varsha123 32f7951
Merge branch 'microsoft:psnext' into psnext
varsha123 b52444c
Merge branch 'microsoft:psnext' into psnext
varsha123 df84746
Merge pull request #16 from microsoft/psnext
varsha123 abe3a3a
Merge pull request #17 from microsoft/psnext
varsha123 73c6193
Merge pull request #20 from microsoft/psnext
varsha123 4366708
Initial commit
sandeepjha000 cfdd7ae
updated api version
sandeepjha000 489e069
removed for-each for include/exclude targets
sandeepjha000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/powershell/private/graph/Get-ZtAuthenticatorFeatureSettingTarget.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
function Get-ZtAuthenticatorFeatureSettingTarget { | ||
<# | ||
.SYNOPSIS | ||
Retrieves the display name for an authenticator feature setting target. | ||
|
||
.DESCRIPTION | ||
This function translates authenticator feature setting target IDs into human-readable display names. | ||
It handles special cases like 'all_users' and the null UUID for exclusions, and can resolve group names | ||
for group-based targets. | ||
|
||
.PARAMETER Target | ||
The target object containing id and targetType properties. | ||
|
||
.EXAMPLE | ||
Get-ZtAuthenticatorFeatureSettingTarget -Target $includeTarget | ||
|
||
.EXAMPLE | ||
Get-ZtAuthenticatorFeatureSettingTarget -Target $excludeTarget | ||
#> | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory)] | ||
[object]$Target | ||
) | ||
|
||
if ($Target.id -eq 'all_users') { | ||
return "All users" | ||
} | ||
elseif ($Target.id -eq '00000000-0000-0000-0000-000000000000') { | ||
return "No exclusions" | ||
} | ||
else { | ||
if ($Target.targetType -eq 'group') { | ||
$group = Invoke-ZtGraphRequest -RelativeUri "groups/$($Target.id)" -ApiVersion beta | ||
"Group: $($group.displayName)" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
... | ||
Enabling the security key authentication method in Microsoft Entra ID mitigates the risk of credential theft and unauthorized access by requiring hardware-backed, phishing-resistant authentication. If this best practice is not followed, threat actors can exploit weak or reused passwords, perform credential stuffing attacks, and escalate privileges through compromised accounts. The kill chain begins with reconnaissance where attackers gather information about user accounts, followed by credential harvesting through various techniques like social engineering or data breaches. Attackers then gain initial access using stolen credentials, move laterally within the network by exploiting trust relationships, and establish persistence to maintain long-term access. Without hardware-backed authentication like FIDO2 security keys, attackers can bypass basic password defenses and multi-factor authentication, increasing the likelihood of data exfiltration and business disruption. Security keys provide cryptographic proof of identity that is bound to the specific device and cannot be replicated or phished, effectively breaking the attack chain at the initial access stage. | ||
|
||
**Remediation action** | ||
|
||
* [Enable passkey (FIDO2) authentication method](https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-enable-passkey-fido2#enable-passkey-fido2-authentication-method) | ||
|
||
* [Authentication method policy management](https://learn.microsoft.com/en-us/entra/identity/authentication/concept-authentication-methods-manage) | ||
|
||
<!--- Results ---> | ||
%TestResult% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.