Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. From any screen, select the cogwheel menu at the top right and choose Org Config.

  2. If you require any validation rules (a set of constraints on the input), you must define these first:

    1. The Attributes Type screen will be shown. Select the Attribute Validation Rules tab.

    2. Uncheck the box labeled Include System Rules and select the New button near the top left:

    3. The Create Attribute Validation Rule screen will be shown. Complete each field for your validation rule. It is recommended that only Regex or Date types be used here:

    4. Select Save to create each rule. Repeat this process as many times as necessary.

    5. Select the Attribute Types tab to return back to the original screen.

  3. The Attribute Types screen will be shown. Uncheck the box labeled Include System Types and select the New button near the top left:

  4. The Configure Attribute Type dialog will be shown. Complete each field that is required on the dialog using the help pop-ups as necessary. You must prefix your custom attributes with your company name such as “Farsight”. Validation rules should only be specified here if you’ve created them in the previous steps.

  5. Select Save to create each new custom attribute type. Repeat this process for each custom attribute you require. These should remain present in your Organization configuration to be used as your model configurations (for future export, modifications, etc).

Test Custom Attribute Definitions

...

  1. Download the attachment for this article that provides the Playbook from the listing above.

  2. On the PartnerStage environment, select Playbooks from the menu at the top.

  3. On the Playbooks screen, select New > Import Playbook:

  4. On the Open dialog that appears, select the file you downloaded above (*.pbx file). The Playbook will be loaded into your environment and you will be shown the Designer screen.

  5. On the Designer screen, toggle the Active switch at the top-right so that it shows the button to the right and has the info icon to the left:

  6. Select the info icon and choose Execute Endpoint:

  7. A new tab should open and you should be presented with a JSON document that contains all of your custom attributes. Output similar to the below should appear:

    Code Block
    {
      "types": [
        {
          "allowMarkdown": false,
          "description": "Farsight DNSDB End Date",
          "errorMessage": "Invalid Date Format, Please Enter Farsight DNSDB End Date in YYYY-MM-DD format",
          "maxLength": 10,
          "name": "Farsight DNSDB End Date",
          "system": false,
          "version": 1,
          "indicators": [],
          "groups": [],
          "validationRule": {
            "name": "FarsightDateValidation",
            "type": "REGEX",
            "description": "Date should be in YYYY-MM-DD",
            "version": "1",
            "data": "^\\d{4}\\-(0[1-9]|1[012])\\-(0[1-9]|[12][0-9]|3[01])$"
          }
        },
        {
          "allowMarkdown": false,
          "description": "Farsight DNSDB Start Date",
          "errorMessage": "Invalid Date Format, Please Enter Farsight DNSDB Start Date in YYYY-MM-DD format",
          "maxLength": 10,
          "name": "Farsight DNSDB Start Date",
          "system": false,
          "version": 1,
          "indicators": [],
          "groups": [],
          "validationRule": {
            "name": "FarsightDateValidation",
            "type": "REGEX",
            "description": "Date should be in YYYY-MM-DD",
            "version": "1",
            "data": "^\\d{4}\\-(0[1-9]|1[012])\\-(0[1-9]|[12][0-9]|3[01])$"
          }
        },
      ]
    }

  8. Right-click on the document to save it Save this output as a JSON file.

  9. Using a text editor, open the newly-saved JSON file and make the following modifications:

    1. For each item within the types list, add the appropriate values to the indicators and/or groups list for your attributes. These should be specified as the names that these items appear within the UI such as Address as an indicator type or Adversary as a group type. Specify each item within the list using double-quotes around the names and comma-separated to maintain proper JSON syntax. Here’s an example:

      Code Block
      "indicators": ["Host","Address"],

      NOTE: You must specify at least one value in the indicators or groups list. Leaving both blank is an invalid configuration.

  10. Save all of your modifications and check the file for correct JSON syntax. Your file is now ready to be used for imports.

...