Eliminate Advanced Endpoint Analysis scans on Mobile devices/iOS.

Eliminate Advanced Endpoint Analysis scans on Mobile devices/iOS.

book

Article ID: CTX572334

calendar_today

Updated On:

Description

We have a pre-epa + ldap as the authentication method. Since we have EPA as pre-authentication when we try to access via the mobile devices such as Android/iPhone or iOS and other devices we won’t be able to access.

As we know that EPA scan is not supported on mobile devices or iOS, therefore we will have to eliminate EPA scan just for these devices but EPA scan needs to work on desktop (Windows / MacOS).
 

Resolution

We can resolve this by creating an nfactor flow.

Nfactor flow:
image.png

Step-1: In the first factor, add a noschema policy that contains no login schema.

image.png

Step-2:  Adding a policy called "evaluate" which will check if the device is Windows or MAC desktop. If the device is Windows or MAC desktop then it will go to the next factor and if device belong to Android or iOS category it will be forbidden.

The expression "HTTP.REQ.HEADER("User-Agent").CONTAINS("Win")&&HTTP.REQ.HEADER("User-Agent").CONTAINS("Android").NOT||HTTP.REQ.HEADER("User-Agent").CONTAINS("Mac")&&HTTP.REQ.HEADER("User-Agent").CONTAINS("iOS").NOT"

image.png 
image.png

Step-3: Here we will check if any device comes under Android or iOS category, then they will pass to go the next factor.

The expression "HTTP.REQ.HEADER("User-Agent").CONTAINS("Android")||HTTP.REQ.HEADER("User-Agent").CONTAINS("iOS")".

image.png

image.png

Step-4: Now if the policy of evaluate is true then the next factor it will hit Desktop.

Click on the green plus sign of the evaluate then create new factor and name it Desktop.

Note: This policy evaluates if the device is Windows or MAC desktop, if the device belong to this category then it will hit Desktop as the next factor to evaluate the EPA scan.

image.png

Step-5: For the login schema please choose the earlier noschema policy you have created.

image.png

Step-6: Now we will bind the EPA policy as the policy for this factor.

image.png

I have bound the EPA policy that scans and verifies the Microsoft edge version.

image.png

Step-7: If the EPA scan is successful for the windows or mac desktop users then they will be going to next factor i.e., LDAP authentication.

image.png

Step-8:  Now create a new factor named "LDAP" then add a login schema policy that has a singleauth login schema as we just have a single authentication policy LDAP.

image.png

Step-9: For the policy section I will bind the LDAP policy.

image.png

Make sure you choose "END" to the goto expression.

image.png

Step-10: Now coming back to the "Eliminate" policy section which evaluates for Android/ iOS devices. If they belong to Android or iOS category then they will just hit a simple LDAP policy.

Click on the green plus sign for eliminate policy and go ahead and create a new factor named "Android-iOS".

Step-11:

Add the singleauth policy or you can leave it as it is without adding any login schema.

Bind the same LDAP policy.

image.png

Make sure you choose "END" option for goto expression.

image.png
 

Problem Cause

EPA scan was being prompted on Android, iOS and mobile devices. EPA scan doesn't work for mobile devices.

Configuration of the AAA vserver during the issue.

We tried to create a simple AAA vserver where first factor is to evaluate EPA scan and the second factor is LDAP.

Step-1: AAA vserver name "epa-pre"
image.png
Step-2: EPA check is the first factor and in the next factor I have added a simple LDAP policy.
A screenshot of a computer  Description automatically generated
Step-3: Added a simple EPA scan to check edge version.
A screenshot of a computer  Description automatically generated
Step-4: LDAP policy is advanced.
A screenshot of a computer  Description automatically generated
Step-5: While trying to access the gateway we were first prompted for EPA check which was passed and then we got the LDAP authentication page.
image.png
Step-6: Tried to access the gateway via mobile device, we were prompted with EPA scan which gets failed as EPA plugin/ scan is not supported for mobile devices/iPAD.