Spawning elevated processes from command-line arguments that are run normally

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

Spawning elevated processes from command-line arguments that are run normally

L3 Networker

Hello all, I've asked this before but was not able receive clarification. There is a method to spawn elevated processes from command line arguments that are run normally. For example - We have a system that requires elevated privileges to run "ipconfig /flushdns". Instead of granting elevated access to the command shell, I am testing a policy to allow this. However, it does not seem to be working correctly. I've attached a screenshot for the custom Application Group I created and another for the Application Definition of "Elevate IPConfg".

 

The workflow: A user runs PowerShell as "Run Normal". If they need to use any elevated "IPConfig" command-line arguments, a separate "Elevate IPConfig" policy will hook into this with PowerShell as the direct parent.

 

Q: Does EPM's out-of-the-box Application Groups differentiate between what is an "Allow" or "Elevate" Group? After creating a Custom application group, it does not seem to say. (I named the custom group "Allow PowerShell")

 

Custom Application Group - PowerShell

Field_Content_versions_oct20__068Vy000013X3zaIAC.png

 

Application Definition - Elevate IPConfig

Field_Content_versions_oct20__068Vy000013XP2FIAW.png 

Thank you!

2 REPLIES 2

L5 Sessionator

I started using the control panel to run batch files in order to run simple things including running that EPM tool which loads all the policies, https://community.cyberark.com/s/article/EPM-Policy-Best-Practices-Reactively-Troubleshoot-Policy-Outcome I hear you , we don't really have that many parameter based policies for windows troubleshooting 0 we've recently made an Advanced policy for NETSH for our devs to troubleshoot and a TaskKill.exe for killing wsl2 when it stops responding, Use the SHOWProcInfo tool you can add it to the control panel there's a guide here on this forum.

 

I had to give some users access to change IPCONFIG settings, gateway/IP/Subnet when they visit external sites so made the policy above albeit my colleague helped better it, Seems to need admin rights - maybe you need to add the Administrative tasks Network Properties as shown here - https://docs.cyberark.com/epm/latest/en/content/policies/windowspolicies-newui.htm. I would recommend the control panel as you can have all your funky batch files in there that do basic things like netsh.exe, flushdns, maybe anything else you need sfc/scannow etc, worth testing. It's easy to setup and its convenient as you can make instructions for end users on the contents within the control panel, btw consider using regmon for policy creation too,

Another small tip is to give JIT rights then get the users to run the commands they need like flushdns and then create a policy from the policy audit once they've run them, search JIT or the device in question to see it's recently policy usage it will capture it under policy audit JIT for the specific computer, This way you are re-acting to the policy they just ran elevated and EPM has captured it for you rather than creating a policy and hoping EPM will understand it, Hope that helps. Not specifically done the one you mentioned and I'm at my last day here so hopefully Cyberark can move my account to my personal account lol.

I think also there's a difference between creating policy in Windows Settings and Control panel, seems my colleagues have improved the policy by using regmon. as i was literally capturing end user elevations by giving JIT rights.

Field_Content_versions_oct20__068Vy000013nq6WIAQ.png

L4 Transporter

I started using the control panel to run batch files in order to run simple things including running that EPM tool which loads all the policies, https://community.cyberark.com/s/article/EPM-Policy-Best-Practices-Reactively-Troubleshoot-Policy-Outcome I hear you , we don't really have that many parameter based policies for windows troubleshooting 0 we've recently made an Advanced policy for NETSH for our devs to troubleshoot and a TaskKill.exe for killing wsl2 when it stops responding, Use the SHOWProcInfo tool you can add it to the control panel there's a guide here on this forum.

 

I had to give some users access to change IPCONFIG settings, gateway/IP/Subnet when they visit external sites so made the policy above albeit my colleague helped better it, Seems to need admin rights - maybe you need to add the Administrative tasks Network Properties as shown here - https://docs.cyberark.com/epm/latest/en/content/policies/windowspolicies-newui.htm. I would recommend the control panel as you can have all your funky batch files in there that do basic things like netsh.exe, flushdns, maybe anything else you need sfc/scannow etc, worth testing. It's easy to setup and its convenient as you can make instructions for end users on the contents within the control panel, btw consider using regmon for policy creation too,

Another small tip is to give JIT rights then get the users to run the commands they need like flushdns and then create a policy from the policy audit once they've run them, search JIT or the device in question to see it's recently policy usage it will capture it under policy audit JIT for the specific computer, This way you are re-acting to the policy they just ran elevated and EPM has captured it for you rather than creating a policy and hoping EPM will understand it, Hope that helps. Not specifically done the one you mentioned and I'm at my last day here so hopefully Cyberark can move my account to my personal account lol.

I think also there's a difference between creating policy in Windows Settings and Control panel, seems my colleagues have improved the policy by using regmon. as i was literally capturing end user elevations by giving JIT rights.

Field_Content_versions_oct20__068Vy000013nq6WIAQ.png

  • 4 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!