CyberArk EPM SaaS - Windows Advanced Policy targeting using Command-line Parameters.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

CyberArk EPM SaaS - Windows Advanced Policy targeting using Command-line Parameters.

L3 Networker

https://docs.cyberark.com/EPM/Latest/en/Content/Policies/WindowsPolicies-NewUI.htm#Addapplicationdefinitions

 

In the Windows Advanced Policy Configuration using Parameters, such as "Myexe.exe --param", how does this exactly work when using the Command Prompt to elevate command-line arguments? For example - If you don't want to elevate CMD entirely, but want a user to use "nvm use" to switch NodeJS versions and only allow that to elevate. Is this functionality supported? Thanks!

2 REPLIES 2

L3 Networker

hello @Martin Carlos​ 

you can create a policy as Allow for CMD without children, and another policy for the executable nvm.exe application with parameter "use"

that should capture the "sub-process" forked form cmd.exe to start the nvm process, and capture the one with parameter "use".

 

@Ilan Tsanany​ - Thank you for the response! I've created an Allow policy for CMD without children and then a separate policy elevating nvm.exe (with children) linked to CMD as the parent. However, it doesn't seem to work completely. After executing "nvm use" switch, a UAC prompt is shown. After exiting, it shows that it's using the selected version. However, when verifying with the "nvm ls" command, it is not. Quite strange. Wonder if this is the expected behavior. Thanks! 068Ht00000UL61oIAD.jpg

  • 22 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!