CyberArk EPM elevation request in Linux side

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

CyberArk EPM elevation request in Linux side

L3 Networker

Hi,

 

When a user submits an elevation request for `sudo apt upgrade`, and I approve the request, I observe multiple subsequent elevation requests. In my opinion, these requests are primarily generated by child processes initiated under the `upgrade` command rather than being directly triggered by the user. Pls assist for reducing these bulk(tons of tons) elevation requests.

Field_Content_versions_oct20__068Vy00000KFsxYIAT.png

5 REPLIES 5

L5 Sessionator

Hi @Maharram Najafov​ ,

 

Indeed, they look as child processes.

You can control on events of child process from the agent configuration --> Data Collection --> Collect child command events.

Once you set it to Off you should not get child process events.

 

Thanks,

Arik.

 

Hey @Arik Rabi​  - I am on the same boat as @Maharram Najafov​ is.

 

When I run sudo apt-get update/upgrade, I keep getting a lot of events for possible child processes. I can potentially turn the "Collect Child command events" OFF, however, I am having a question and would request your help with this, @Arik Rabi​ 

 

What would be the best way to add "sudo apt-get *" to the policy? Within Application Definition, there is this option "Child Commands" with the options to either "Elevate all", "Elevate if permitted by any policy" and "Block all".

 

"Elevate All" Scenario:

If I set this to "Elevate all", this technically elevates literally every command spawned by child processes, which is not ideal since not all of those need elevation. For instance "gpgv" can be used as a medium to import malicious keys by attackers. By selecting elevate all, this would be a potential risk. Not just this, there are several others.

 

"Elevate if permitted by any policy" Scenario:

Moving onto "Elevate if permitted by any policy", if Additional policy "Elevate unhandled applications" is turned off, and "Detect privileged unhandled applications" turned on, the application definition for "sudo apt-get" has the "Elevate if permitted by any policy" enabled instead of "Elevate all", what if it doesn't update all the packages? This sure would have an issue with updating/upgrading completely.

 

Keeping these two scenarios, how can we elevate the "apt-get *"?

 

Your help means a lot. Thank you.

L5 Sessionator

Hi @Arun Vemuri​ 

 

Welcome to the boat 🚢 🙂

 

The "Elevate if permitted by any policy" is indeed it's more secure but requires more maintenance as you need to define policies for any command, so it's up to you decide.

 

In the situation you described all child command will be elevated (because of the default policy) except the ones that have block policy so it sounds like a good way.

 

I didn't fully understand the question - what do you mean by "it doesn't update all the packages" ? do you mean EPM may block some upgrades ?

 

 

Thanks,

Arik

 

 

 

 

Thank you @Arik Rabi​ for your prompt response and explaining about this. Answering this question:

 

"I didn't fully understand the question - what do you mean by "it doesn't update all the packages" ? do you mean EPM may block some upgrades ?"

Yes. I mean what if EPM may block some upgrades?

 

I agree with what you said with the "Elevate if permitted by any policy". Ultimately, would you recommend having the "Elevate all" enabled and block the one's that are not required? I am sorry, I'm new to the EPM for Linux and trying to understand what would be the best path forward for handling the events since this is slightly confusing.

Hi @Arun Vemuri​ ,

 

I can't recommend because it's really depends on your organization policy, just have in mind that if you set "Elevate all" then even if you have block policies, they will not be blocked.

 

If you are new to EPM suggest going over this link - https://docs.cyberark.com/epm/latest/en/content/intro/linuxbestpractices.htm

 

 

Good Luck,

Arik.

 

 

  • 223 Views
  • 5 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!