Detections
Create Detection
Creates a new detection by providing the detection object as the request body, in JSON format. Detections marked as community detections cannot be created with this API. While the public ID is required for some engines, the internal ID will always be populated by the server.
post/connect/detection/
Request body
Example request
{
"aiSummary": "This rule detects antivirus alerts reporting the presence of ransomware,...",
"author": "Security Onion Solutions",
"category": "ps_script",
"content": "title: CobaltStrike Named Pipe\nid: ...\n logsource:\n ...\ncondition: selection\nfalsepositives:\n...",
"createTime": "2024-11-14T15:03:22Z",
"description": "Detects when a user fails to login to a grid node via SSH. Review associated logs for username and source IP.",
"id": "PdFc-JIBLkNJ8-bDfz47",
"isCommunity": true,
"isEnabled": true,
"kind": "case",
"license": "DRL",
"operation": "create",
"overrides": [
{
"count": 10,
"createdAt": "2024-12-06T14:36:45.579994541Z",
"customFilter": "sofilter:\n user.name: dresden",
"ip": "1.2.3.4/32",
"isEnabled": true,
"note": "Exclude the SMTP server due to FPs",
"regex": "content:xyz",
"seconds": 120,
"updatedAt": "2024-12-06T14:36:45.579994541Z",
"value": "content:xyz content:!1.2.3.4/32"
}
],
"product": "windows",
"publicId": "923421c7-9b1e-45d4-80cc-e21d060c8723",
"ruleset": "__custom__",
"service": "sshd",
"title": "Security Onion - Grid Node Login Failure (SSH)",
"updateTime": "2024-11-14T15:33:02Z",
"userId": "socl_my_new_client"
}Response
Returns the detection that was successfully created
Example response
{
"aiSummary": "This rule detects antivirus alerts reporting the presence of ransomware,...",
"author": "Security Onion Solutions",
"category": "ps_script",
"content": "title: CobaltStrike Named Pipe\nid: ...\n logsource:\n ...\ncondition: selection\nfalsepositives:\n...",
"createTime": "2024-11-14T15:03:22Z",
"description": "Detects when a user fails to login to a grid node via SSH. Review associated logs for username and source IP.",
"id": "PdFc-JIBLkNJ8-bDfz47",
"isCommunity": true,
"isEnabled": true,
"kind": "case",
"license": "DRL",
"operation": "create",
"overrides": [
{
"count": 10,
"createdAt": "2024-12-06T14:36:45.579994541Z",
"customFilter": "sofilter:\n user.name: dresden",
"ip": "1.2.3.4/32",
"isEnabled": true,
"note": "Exclude the SMTP server due to FPs",
"regex": "content:xyz",
"seconds": 120,
"updatedAt": "2024-12-06T14:36:45.579994541Z",
"value": "content:xyz content:!1.2.3.4/32"
}
],
"product": "windows",
"publicId": "923421c7-9b1e-45d4-80cc-e21d060c8723",
"ruleset": "__custom__",
"service": "sshd",
"title": "Security Onion - Grid Node Login Failure (SSH)",
"updateTime": "2024-11-14T15:33:02Z",
"userId": "socl_my_new_client"
}