> Source: [sk178764](https://support.checkpoint.com/results/sk/sk178764)

# sk178764 - How to use a custom UserCheck object for Threat Extraction in the Autonomous Threat Prevention policy

| Property | Value |
|----------|-------|
| Solution ID | sk178764 |
| Date Created | 2022-04-20 |
| Last Modified | 2022-06-28 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R81.10 (EOS) |
| OS | Gaia |

## Solution

It is currently not possible to use UserCheck objects in the Autonomous Threat Prevention policy.

Check Point plans to improve the design to resolve this issue.

In the meantime, you can use a workaround to create a UserCheck object for Threat Extraction in the Autonomous policy.

**Workaround:**

1. [Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get the required files:

   1. Hotfix for your Security Gateway / Cluster.

   2. Shell script for your Security Gateway / Cluster.

   A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
   For faster resolution and verification, collect [CPinfo](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92739) files from the Management Server and Security Gateways / Cluster Members involved in the case.

   **Hotfix installation instructions:**   
   Refer to [sk168597 - How to install a Hotfix](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk168597).
2. In SmartConsole, go to **Security Policies** \> **Threat Prevention** \> **Custom Policy**.

3. In the **Custom Policy Tools** section, click **UserCheck**.

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1649837979348/1202204131131431.png)
4. Create a custom UserCheck object.

   In our example, we called this object "*Company Policy Threat Extraction Custom UC message*".
5. In SmartConsole, click **Custom Policy**.

6. Edit the applicable profile.

7. In the profile, go to **Threat Extraction** \> **General**.

8. Select the custom UserCheck object you created earlier and click OK:

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1649837979348/image-2022-03-15-12-44-24-069202204131133442.png)
9. Install the Threat Prevention policy to force the creation of the UserCheck object on the Security Gateway (even though you are using the Autonomous Threat Prevention profile).

10. Transfer the required shell script from your computer to the Security Gateway / each Cluster Member to some directory (for example, */var/log/*).

11. Connect to the command line on the Security Gateway / each Cluster Member.

12. Log in to the Expert mode.

13. Go to the directory where you put the shell script:

    `cd /var/log`
14. Assign the required permission to the shell script:

    `chmod -v 777 scrub_change_uc.sh`
15. Run the shell script in this way:

    `./scrub_change_uc.sh "<FULL_NAME_OF_CUSTOM_USERCHECK_OBJECT>"`

    Example:

    `./scrub_change_uc.sh "Company Policy Threat Extraction Custom UC message"`

From now, the custom UserCheck object is enforced by Threat Extraction in the Autonomous policy.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
