# New Custom Threat: Create a script in the Platform

Before creating a new custom threat make sure the user have met the requirements for  the Custom Threats Module. See Requirements for the Custom Threat Module.&#x20;

To create a script directly in the platform, follow this process:&#x20;

1. In the Custom Threat tab select the <mark style="color:orange;">"New Custom Threat"</mark> button on the top right. &#x20;
2. A New Script creation wizard will open.&#x20;
3. Click <mark style="color:orange;">“Code Editor"</mark> This option allows the user to write a script on the platform. &#x20;
4. Give the script a name and select The code Editor Language. (Mandatory)&#x20;
5. Write the script on the edi&#x20;
6. Add a Description to the selected script (Mandatory).&#x20;
7. The user can add Execution Parameters if needed on the Optional parameters configuration field.&#x20;
8. Click <mark style="color:orange;">“Save Script”</mark>.&#x20;
