Remove Quarantine attribute from EPM

Remove Quarantine attribute from EPM

149
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:09 PM


Objective


The com.apple.quarantine attribute is a macOS security feature that flags files downloaded from the internet or transferred from external sources. This flag helps macOS protect your system by displaying warning prompts when you try to open such files, ensuring the user is aware of potential risks.

In some occasions, the removal of extended attribute is a must in order to install EPM and create the installation package.

Before the creation of the PKG file, please remove the attribute from the Zip file, unzip and try to see if there is a need to remove the attribute from the .app bundle as well.

Note: it is much preferred  to download the EPM zip file on a Mac based machine and not copy from Windows machine to avoid any issues.



Environment


23.12;24.1;24.2;24.3;24.4;24.5;24.6;24.7;24.8;24.9;24.10;24.11 EPM Mac Agent

Procedure


How to Check for the com.apple.quarantine Attribute

You can check if a file or directory has the quarantine flag using the Terminal:

  1. Open Terminal (located in Applications > Utilities).
  2. Run the following command to list extended attributes:
    xattr <file_or_directory_path>
  3. If com.apple.quarantine appears in the output, the file is flagged.

 

Removing com.apple.quarantine from Files

For .zip Files

When a .zip file is flagged, its contents will also be quarantined upon extraction.

  1. Remove the quarantine from the .zip file before extracting:
    xattr -r -d com.apple.quarantine /path/to/yourfile.zip

  2. Verify the removal: Re-run the xattr command to confirm that the attribute no longer exists:
    xattr /path/to/yourfile.zip

  3. Extract the .zip file: Use Finder or the unzip command in Terminal:
    unzip /path/to/yourfile.zip

Examples:

  1. to list the attributes on the file:
    $ xattr '/Users/<username>/Downloads/CyberArkEPMAgentSetupMacos_24.11.0.498(Security Research(cyberark_81))x64.zip'

    result:
    com.apple.metadata:kMDItemWhereFroms
    com.apple.quarantine 

  2. to remove quarantine attribute:
    xattr -r -d 'com.apple.quarantine'  '/Users/<username>/Downloads/CyberArkEPMAgentSetupMacos_24.11.0.498(Security Research(cyberark_81))x64.zip'

  3. to verify:
    $ xattr '/Users/<username>/Downloads/CyberArkEPMAgentSetupMacos_24.11.0.498(Security Research(cyberark_81))x64.zip'

    result:
    com.apple.metadata:kMDItemWhereFroms

For .app Bundles

Applications downloaded from the internet are often flagged, resulting in a Gatekeeper prompt when you try to open them.

  1. Remove the quarantine from the .app file before extracting:
    xattr -r -d 'com.apple.quarantine' '/path/to/yourfile.app'

  2. Verify the removal: Re-run the xattr command to confirm that the attribute no longer exists:
    xattr /path/to/yourfile.app

 

After removal of this attribute, you can continue to create EPM package without any issues or errors.

If you're facing an issue, please open a case and contact us.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001VpmCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail