CyberArk AIM & Tenable Integration

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 AIM & Tenable Integration

L2 Linker

Hi,

 

Was hoping the resident experts could provide some high level guidance on whether or not I'm going about it the correct way in my lab.

 

Background:

  • Created an AD service account for Tenable credentialed scans (domain admin permissions) - scan_tenable
  • Created a Tenable safe (TenableSC) and onboarded the AD account into the safe
  • Created a Tenable application in PVWA (with no Authentication/Allowed Machine settings configured) - CyberArk-Tenable
  • Added the AIM Provider and Tenable Application as members of the safe
    • Provider has Retrieve, List, View permissions
    • Application has Retrieve permissions
  • Created a Tenable-user application account in the TenableSC safe that is an Application device type on the CyberArk Vault platform.

 

 

I then punched in the following required fields in Tenable's GUI:

  • Username (Tenable-user)
  • Domain (domain FQDN)
  • CCP URL Host (AIM Server IP)
  • CCP URL Port (18923)
  • Safe (TenableSC)
  • AppID (CyberArk-Tenable)
  • Folder (Root)

 

Our Tenable person said it kicked back some errors on her side.

 

So am I approaching it the correct way? Is there a way to test things on the CyberArk side to rule out issues with my configuration? I'm probably missing something somewhere as AIM is new territory for me.

 

 

Thanks for any assistance.

21 REPLIES 21

L5 Sessionator

@Davis Le​ Your configurations are looking good to me. I'd suggest you to validate your app and account on-boarding by executing powershell command which will call your CCP web server . If the below code returns the password, then we assume your configurations are good.

cls # CHANGE REQUIRED IN THE VALUE FIELD $ccphost = '0.0.0.0' $appid = 'Backup-App' $safe = 'Backup' $credtofetch = 'svc_backup' $credaddress = 'corpad.loc' #execute REST API call invoke-restmethod -Credential (get-credential) -uri https://compsrv01.corpad.loc/aimwebservice/api/accounts -method GET -Body @{AppID = $appid; Safe = $safe; UserName = $credtofetch; Address = $credaddress; Reason = 'Powershell'}

Have you defined internal application called AIMWebService? as far as my understanding it is mandatory.

If possible, share tenable side of error she is getting

 

Also have a look at the CCP logs by increasing the log levels

https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CCP/Monitoring-t...

 

Good luck, let me know how it goes

1) I will look into increasing the logging levels.

 

2) Yes, I have defined the AIMWebService application as part of the AIM configuration per the vendor documentation. The Allowed Machines setting is set to the IP address of the AIM server itself.

Field_Content_versions_oct20__0682J00000655NeQAI.png

  • Navigating to webpage of http://<AIM Server IP>/AIMWebService/V1.1/AIM.asmx provides the expected result
  • I don't have to add AIMWebService application as a safe member, correct?

 

3) Can you please clarify for Line 7 and 9 of your Powershell script what is the expected input?

  • Line 7: Is $credaddress value supposed to be Domain?
  • Line 9: Does uri value have to be HTTPS and FQDN (of AIM server?) or can it be HTTP and IP address?
    • Another engineer who is no longer with us initially created the AIM server for SCIM connection. That's why I had to define AIMWebService application afterwards. I'm fairly sure he created a keystore and enabled HTTPS but I will need to check to confirm.

 

Tenable engineer said she receives the following errors:

  • "In the scan Results there is no plugin output"
  • No credentials Provided 110723 - Nessus was unable to execute credentialed scans because no credentials were provided
  • Plugin 117886 - Nessus did not enable local checks on the remote host. This does not necessarily indicated a problem with the scan. Credentials may not have been provided, local checks may not be available for the target, the target may not have been identified, or another issue may have occurred that prevented local checks from being enabled.

 

Thanks again. I really appreciate the help.

So I had to change tracks a little but basically re-created all my steps for Venafi integration. The script comes back successful if I run it using HTTP (instead of HTTPS) along with the AIM Server IP/FQDN.

Field_Content_versions_oct20__0682J0000065B0cQAE.png

 

If I try with HTTPS it throws the following error:

Field_Content_versions_oct20__0682J0000065B0mQAE.png

Hello Nirmal,

For the similar integration with Qualys I see an error "Failure reason: [APPAP008E Problem occurred while trying to use user in the Vault (Error: ITATS982E User AIMWebService is not defined. Diagnostic Info: 6)]:

 

To summarize I have not added any authentication on safe level and certificate binding is with self signed only.

While executing the PS script provide I see a below error .Field_Content_versions_oct20__0682J0000065GqYQAU.png

 

L2 Linker

Add the "AimWebService" account to the Safe. For CCP you have to add this account to the safe.

From experimenting with Nirmal's script, you can do 1 of 2 things (I'm still trying to figure out how to modify it to also allow testing of pulling credentials when you're using AIM/CCP on the PVWA instead of as a separate server):

 

1) Remove https and use http instead to test

2) Go into IIS and configure the website to Accept SSL connections

 

And like vivek.rautela_cybr mentioned, you should add the aimwebservice, AIM provider account, and local CyberArk account to the safe and give the required level of permissions.

 

The script will prompt you for a username/password when run and then you give it the username/password of the local CyberArk account. In my example, I was providing the username of Tenable-user and the password I configured for it in PVWA.

L5 Sessionator

Hi@Pete Maan​  we are trying to retrieve the password via rest api call. The below PS script is working for HTTP but when we execute with HTTPS URL it is failing.. error screenshot is attached in the above thread.. Can you please advise what needs to be done to work with https? thanks in advance

 

# CHANGE REQUIRED IN THE VALUE FIELD $ccphost = '0.0.0.0' $appid = 'Backup-App' $safe = 'Backup' $credtofetch = 'svc_backup' $credaddress = 'corpad.loc' #execute REST API call invoke-restmethod -Credential (get-credential) -uri https://compsrv01.corpad.loc/aimwebservice/api/accounts -method GET -Body @{AppID = $appid; Safe = $safe; UserName = $credtofetch; Address = $credaddress; Reason = 'Powershell'}

 

Hello Vivek - Let me summarize my understanding :

  1. Installed CCP on stand by node of CPM server successfully
  2. Installed AIM Web service on the same server as well.
  3. Done a self signed certificate binding for the websites.
  4. Created an application ID with no authentication added however just added path AIM web services Path.
  5. Added application ID , Service account and Provider in the same safe( use,retrieve,list rights.
  6. Now once scan is initiated from Qualys I see a an error populated in provider audit logs " Failure reason: [APPAP008E Problem occurred while trying to use user in the Vault (Error: ITATS982E User AIMWebService is not defined. Diagnostic Info: 6)]:"

 

Any Idea whats wrong I am doing ?

Also can you elaborate a bit about "Aimweb service" account .

@Nirmal (Community Member)​ - sounds like an issue with the binding of the CCP Web Service.

The web service can be validated by browsing to

Are any differences noted for the above 2 URLs?

 

For CCP/AIM password retrieval via PowerShell, my CredentialRetriever module makes life easy:

https://github.com/pspete/CredentialRetriever

Install-Module CredentialRetriever -scope CurrentUser

 

 

Also - the format for a CCP query is:

 

/AIMWebService/api/Accounts?<param1>=<value>&<param2>=<value>& ....

Unless including the query in the body element is an undocumented feature..?

https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CCP/Calling-the-Web-Service-using-REST.htm#TheGetPasswordWebService

Hi Pete,

 

Thanks so much for chiming in and taking a look at what's going on with me and also for dnagarZU.

 

I was able to figure out the https issue (was an IIS configuration for me at least).

 

Do you happen to know what the URI would be (or how to look it up) for an instance where it exists on the same server as the PVWA?

 

For example: Venafi's documentation shows an example URI that it expects of https://[PVWA Host]/PasswordVault/Webservices/

 

However, the CyberArk documentation isn't clear in that regard and when I tried some amateurish attempts at modifying your script, it just gives a 404 error.

Even if CCP is on the same server as PVWA, the URL will be the same (unless default options were changed during install).

The URL you provide from the Venafi documentation is one for the (classic) Web Services API, it is not related to CCP.

 

Thanks so much @Pete Maan​ 

 

Managed to get Tenable integration working the other day in the lab. However, Venafi seems to be a bit more finicky in what it's expecting although the fundamental parts on the CyberArk half of the integration should be the same as it is for Tenable integration.

 

We're encountering different errors with Venafi and certificate validation errors for the connector.

@Pete Maan​ :Thanks for your guidance so far would like to share a bit about my deployment.

  1. Application to be integrated : Qualys VA scanner.
  2. CCP and AIMWeb service installed on cold standby CPM.
  3. Added prov_hostname, AppID,Service account as a member.
  4. Also created AIMWeb service as an application ID and added the same as a member in safe.
  5. Also , added allowed machine as ccp IP along with Hash value in AIMWebservice.
  6. Would like to add that authentication is selected as basic and anonymous for AIM Webservice in IIS manager.
  7. Binding is with self signed cert.
  8. So finally once I try to run this query I encounter this subjected error .

 

Please guide Field_Content_versions_oct20__0682J0000065Mw4QAE.png

  • 9896 Views
  • 21 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!