Skip to main content

TheHive Project

This Integration is part of the TheHive Project Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Integration with The Hive Project Security Incident Response Platform. This integration was integrated and tested with version 4.1.4 of TheHive Project

Configure TheHive Project on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for TheHive Project.

  3. Click Add instance to create and configure a new integration instance.

    ParameterDescriptionRequired
    HostEnsure to include the port number with the URL (e.g. http://IP_OF_VM:9000)True
    API KeyTrue
    Fetch incidentsFalse
    Incident typeFalse
    Incidents Fetch IntervalFalse
    First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days)False
    The maximum amount of incidents to fetch at onceFalse
    Case mirroringSelect whether you would like cases to mirror in, out, in both directions or disabled.True
    Trust any certificate (not secure)False
    Use system proxy settingsFalse
  4. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

thehive-list-cases#


List cases.

Base Command#

thehive-list-cases

Input#

Argument NameDescriptionRequired
limitLimit the number of returned results.Optional

Context Output#

PathTypeDescription
TheHive.Cases._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.customFieldsunknownAny fields that the user of TheHiveProject has added to the platform and filled in as part of a case.
TheHive.Cases.caseIdnumberThe order of the case.
TheHive.Cases.flagbooleanA boolean flag used for filtering.
TheHive.Cases.startDatenumberDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.statusstringStatus of the case.
TheHive.Cases.ownerstringOwner of the case.
TheHive.Cases.tlpnumberTraffic Light Protocol designation for the case.
TheHive.Cases.titlestringTitle of the case.
TheHive.Cases.tagsunknownTags added to the case.
TheHive.Cases._typestringType of the case.
TheHive.Cases._versionnumberThe version of TheHive Project.
TheHive.Cases.idstringThe ID of the case.
TheHive.Cases.createdAtnumberDatetime the case was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.descriptionstringDescription of the case.
TheHive.Cases.severitynumberSeverity of the case.
TheHive.Cases.papnumberPermissible Actions Protocol (PAP), used to indicate what kind of action is allowed.
TheHive.Cases.createdBystringThe user who created the case.
TheHive.Cases.tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.flagbooleanA boolean flag used for filtering.
TheHive.Cases.tasks.ordernumberThe order of the task.
TheHive.Cases.tasks.statusstringStatus of the task.
TheHive.Cases.tasks.titlestringTitle of the task.
TheHive.Cases.tasks._typestringType of the task.
TheHive.Cases.tasks._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.idstringThe ID of the task.
TheHive.Cases.tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.createdBystringThe user who created the task.
TheHive.Cases.tasks.groupstringGroup of the task.
TheHive.Cases.tasks.logs.messagestringLog message.
TheHive.Cases.tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.statusstringStatus of the log.
TheHive.Cases.tasks.logs.ownerstringOwner of the log.
TheHive.Cases.tasks.logs._typestringType of the log.
TheHive.Cases.tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.logs.idstringThe ID of the log.
TheHive.Cases.tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.createdBystringThe user who created the log.

Command Example#

!thehive-list-cases

Context Example#

{
"TheHive": {
"Cases": [
{
"_id": "~479312",
"_type": "case",
"caseId": 1,
"createdAt": "2021-10-11T17:02:01Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case with tasks",
"endDate": null,
"flag": false,
"id": "~479312",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971660000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [
{
"_createdAt": 1633971721834,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~41500824",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task1"
},
{
"_createdAt": 1633971721837,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~438408",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task2"
},
{
"_createdAt": 1633971721840,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~442504",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task3"
}
],
"title": "case with tasks",
"tlp": 2,
"updatedAt": 1633971749765,
"updatedBy": "adrugobitski@paloaltonetworks.com"
},
{
"_id": "~487504",
"_type": "case",
"caseId": 2,
"createdAt": "2021-10-11T17:02:34Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case with no task",
"endDate": null,
"flag": false,
"id": "~487504",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971720000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [],
"title": "no tasks case",
"tlp": 2,
"updatedAt": 1633971809110,
"updatedBy": "adrugobitski@paloaltonetworks.com"
},
{
"_id": "~491600",
"_type": "case",
"caseId": 3,
"createdAt": "2021-10-11T17:02:55Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case to merge",
"endDate": null,
"flag": false,
"id": "~491600",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971720000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [],
"title": "merge 1",
"tlp": 2,
"updatedAt": 1633971809811,
"updatedBy": "adrugobitski@paloaltonetworks.com"
},
{
"_id": "~524320",
"_type": "case",
"caseId": 4,
"createdAt": "2021-10-11T17:03:12Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case to merge 2",
"endDate": null,
"flag": false,
"id": "~524320",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971720000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [],
"title": "merge 2",
"tlp": 2,
"updatedAt": 1633971810562,
"updatedBy": "adrugobitski@paloaltonetworks.com"
},
{
"_id": "~561160",
"_type": "case",
"caseId": 5,
"createdAt": "2021-10-11T17:12:06Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case with observables",
"endDate": null,
"flag": false,
"id": "~561160",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [
{
"_createdAt": 1633972384854,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~41504920",
"_type": "Observable",
"data": "google",
"dataType": "domain",
"extraData": {
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"seen": {
"ioc": false,
"seen": 0
},
"shareCount": 0
},
"ignoreSimilarity": false,
"ioc": false,
"message": "observable 2",
"reports": {},
"sighted": false,
"startDate": 1633972384854,
"tags": [],
"tlp": 1
},
{
"_createdAt": 1633972365905,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~532512",
"_type": "Observable",
"data": "8.8.8.8",
"dataType": "ip",
"extraData": {
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"seen": {
"ioc": false,
"seen": 0
},
"shareCount": 0
},
"ignoreSimilarity": false,
"ioc": false,
"message": "observable 1",
"reports": {},
"sighted": false,
"startDate": 1633972365905,
"tags": [],
"tlp": 2
}
],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633972260000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [],
"title": "observables case",
"tlp": 2,
"updatedAt": 1633972353588,
"updatedBy": "adrugobitski@paloaltonetworks.com"
},
{
"_id": "~41509016",
"_type": "case",
"caseId": 6,
"createdAt": "2021-10-11T17:16:33Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case to be removed",
"endDate": null,
"flag": false,
"id": "~41509016",
"impactStatus": null,
"instance": "TheHive Project_instance_1",
"mirroring": "Both",
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633972560000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [],
"title": "remove case",
"tlp": 2,
"updatedAt": 1633972648939,
"updatedBy": "adrugobitski@paloaltonetworks.com"
}
]
}
}

Human Readable Output#

TheHive Cases:#

idtitledescriptioncreatedAt
~479312case with taskscase with tasks2021-10-11T17:02:01Z
~487504no tasks casecase with no task2021-10-11T17:02:34Z
~491600merge 1case to merge2021-10-11T17:02:55Z
~524320merge 2case to merge 22021-10-11T17:03:12Z
~561160observables casecase with observables2021-10-11T17:12:06Z
~41509016remove casecase to be removed2021-10-11T17:16:33Z

thehive-get-case#


Get a case

Base Command#

thehive-get-case

Input#

Argument NameDescriptionRequired
idID of the case.Required

Context Output#

PathTypeDescription
TheHive.Cases._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.customFieldsunknownAny fields that the user of TheHiveProject has added to the platform and filled in as part of a case.
TheHive.Cases.caseIdnumberThe order of the case.
TheHive.Cases.flagbooleanA boolean flag used for filtering.
TheHive.Cases.startDatenumberDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.statusstringStatus of the case.
TheHive.Cases.ownerstringOwner of the case.
TheHive.Cases.tlpnumberTraffic Light Protocol designation for the case.
TheHive.Cases.titlestringTitle of the case.
TheHive.Cases.tagsunknownTags added to the case.
TheHive.Cases._typestringType of the case.
TheHive.Cases._versionnumberThe version of TheHive Project.
TheHive.Cases.idstringThe ID of the case.
TheHive.Cases.createdAtnumberDatetime the case was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.descriptionstringDescription of the case.
TheHive.Cases.severitynumberSeverity of the case.
TheHive.Cases.papnumberPermissible Actions Protocol (PAP), used to indicate what kind of action is allowed.
TheHive.Cases.createdBystringThe user who created the case.
TheHive.Cases.tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.flagbooleanA boolean flag used for filtering.
TheHive.Cases.tasks.ordernumberThe order of the task.
TheHive.Cases.tasks.statusstringStatus of the task.
TheHive.Cases.tasks.titlestringTitle of the task.
TheHive.Cases.tasks._typestringType of the task.
TheHive.Cases.tasks._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.idstringThe ID of the task.
TheHive.Cases.tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.createdBystringThe user who created the task.
TheHive.Cases.tasks.groupstringGroup of the task.
TheHive.Cases.tasks.logs.messagestringLog message.
TheHive.Cases.tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.statusstringStatus of the log.
TheHive.Cases.tasks.logs.ownerstringOwner of the log.
TheHive.Cases.tasks.logs._typestringType of the log.
TheHive.Cases.tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.logs.idstringThe ID of the log.
TheHive.Cases.tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.createdBystringThe user who created the log.

Command Example#

!thehive-get-case id="~479312"

Context Example#

{
"TheHive": {
"Cases": {
"_id": "~479312",
"_type": "case",
"caseId": 1,
"createdAt": "2021-10-11T17:02:01Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case with tasks",
"endDate": null,
"flag": false,
"id": "~479312",
"impactStatus": null,
"observables": [],
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971660000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"tasks": [
{
"_createdAt": 1633971721834,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~41500824",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task1"
},
{
"_createdAt": 1633971721837,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~438408",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task2"
},
{
"_createdAt": 1633971721840,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~442504",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task3"
}
],
"title": "case with tasks",
"tlp": 2,
"updatedAt": 1633971749765,
"updatedBy": "adrugobitski@paloaltonetworks.com"
}
}
}

Human Readable Output#

TheHive Case ID ~479312:#

idtitledescriptioncreatedAt
~479312case with taskscase with tasks2021-10-11T17:02:01Z

thehive-update-case#


Update a case

Base Command#

thehive-update-case

Input#

Argument NameDescriptionRequired
idID of the case.Required
titleTitle of the case.Optional
descriptionDescription of the case.Optional
severitySeverity of the case. Possible values are: 1, 2, 3.Optional
startDateDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.Optional
ownerOwner of the case.Optional
flagA boolean flag used for filtering. Possible values are: true, false.Optional
tlpTraffic Light Protocol designation for the case. Possible values are: WHITE, GREEN, AMBER, RED.Optional
tagsTags added to the case.Optional
resolutionStatusResolution status of the case. Possible values are: Indeterminate, FalsePositive, TruePositive, Other, Duplicated.Optional
impactStatusImpact status of the case. Possible values are: NoImpact, WithImpact, NotApplicable.Optional
summarySummary of the case.Optional
endDateDatetime the case ended, for example, 2018-06-29 08:15:27.243860.Optional
metricsMetrics of the case.Optional
statusStatus of the case. Possible values are: Open, Resolved, Deleted.Optional

Context Output#

PathTypeDescription
TheHive.Cases._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.customFieldsunknownAny fields that the user of TheHiveProject has added to the platform and filled in as part of a case.
TheHive.Cases.caseIdnumberThe order of the case.
TheHive.Cases.flagbooleanA boolean flag used for filtering.
TheHive.Cases.startDatenumberDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.statusstringStatus of the case.
TheHive.Cases.ownerstringOwner of the case.
TheHive.Cases.tlpnumberTraffic Light Protocol designation for the case.
TheHive.Cases.titlestringTitle of the case.
TheHive.Cases.tagsunknownTags added to the case.
TheHive.Cases._typestringType of the case.
TheHive.Cases._versionnumberThe version of TheHive Project.
TheHive.Cases.idstringThe ID of the case.
TheHive.Cases.createdAtnumberDatetime the case was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.descriptionstringDescription of the case.
TheHive.Cases.severitynumberSeverity of the case.
TheHive.Cases.papnumberPermissible Actions Protocol (PAP), used to indicate what kind of action is allowed.
TheHive.Cases.createdBystringThe user who created the case.
TheHive.Cases.tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.flagbooleanA boolean flag used for filtering.
TheHive.Cases.tasks.ordernumberThe order of the task.
TheHive.Cases.tasks.statusstringStatus of the task.
TheHive.Cases.tasks.titlestringTitle of the task.
TheHive.Cases.tasks._typestringType of the task.
TheHive.Cases.tasks._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.idstringThe ID of the task.
TheHive.Cases.tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.createdBystringThe user who created the task.
TheHive.Cases.tasks.groupstringGroup of the task.
TheHive.Cases.tasks.logs.messagestringLog message.
TheHive.Cases.tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.statusstringStatus of the log.
TheHive.Cases.tasks.logs.ownerstringOwner of the log.
TheHive.Cases.tasks.logs._typestringType of the log.
TheHive.Cases.tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.logs.idstringThe ID of the log.
TheHive.Cases.tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.createdBystringThe user who created the log.

Command Example#

!thehive-update-case id="~487504" title="updated title for case with no tasks"

Context Example#

{
"TheHive": {
"Cases": {
"_id": "~487504",
"_type": "case",
"caseId": 2,
"createdAt": "2021-10-11T17:02:34Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "case with no task",
"endDate": null,
"flag": false,
"id": "~487504",
"impactStatus": null,
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633971720000,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"title": "updated title for case with no tasks",
"tlp": 2,
"updatedAt": 1633973798560,
"updatedBy": "adrugobitski@paloaltonetworks.com"
}
}
}

Human Readable Output#

TheHive Update Case ID ~487504:#

idtitledescriptioncreatedAt
~487504updated title for case with no taskscase with no task2021-10-11T17:02:34Z

thehive-create-case#


Create a new case

Base Command#

thehive-create-case

Input#

Argument NameDescriptionRequired
titleTitle of the case.Required
descriptionDescription of the case.Required
severitySeverity of the case (default = 2). Possible values are: 1, 2, 3.Optional
startDateDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.Optional
ownerOwner of the case.Required
flagA boolean flag used for filtering (default = false). Possible values are: false, true.Optional
tlpTraffic Light Protocol designation for the case (default = 2). Possible values are: 0, 1, 2, 3.Optional
tagsTags added to the case.Optional
resolutionStatusResolution status of the case.Optional
impactStatusImpact status of the case. Possible values are: NoImpact, WithImpact, qNotApplicable.Optional
summarySummary of the case.Optional
endDateDatetime the case ended, for example, 2018-06-29 08:15:27.243860.Optional
metricsMetrics of the case.Optional

Context Output#

PathTypeDescription
TheHive.Cases._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.customFieldsunknownAny fields that the user of TheHiveProject has added to the platform and filled in as part of a case.
TheHive.Cases.caseIdnumberThe order of the case.
TheHive.Cases.flagbooleanA boolean flag used for filtering.
TheHive.Cases.startDatenumberDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.statusstringStatus of the case.
TheHive.Cases.ownerstringOwner of the case.
TheHive.Cases.tlpnumberTraffic Light Protocol designation for the case.
TheHive.Cases.titlestringTitle of the case.
TheHive.Cases.tagsunknownTags added to the case.
TheHive.Cases._typestringType of the case.
TheHive.Cases._versionnumberThe version of TheHive Project.
TheHive.Cases.idstringThe ID of the case.
TheHive.Cases.createdAtnumberDatetime the case was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.descriptionstringDescription of the case.
TheHive.Cases.severitynumberSeverity of the case.
TheHive.Cases.papnumberPermissible Actions Protocol (PAP), used to indicate what kind of action is allowed.
TheHive.Cases.createdBystringThe user who created the case.
TheHive.Cases.tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.flagbooleanA boolean flag used for filtering.
TheHive.Cases.tasks.ordernumberThe order of the task.
TheHive.Cases.tasks.statusstringStatus of the task.
TheHive.Cases.tasks.titlestringTitle of the task.
TheHive.Cases.tasks._typestringType of the task.
TheHive.Cases.tasks._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.idstringThe ID of the task.
TheHive.Cases.tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.createdBystringThe user who created the task.
TheHive.Cases.tasks.groupstringGroup of the task.
TheHive.Cases.tasks.logs.messagestringLog message.
TheHive.Cases.tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.statusstringStatus of the log.
TheHive.Cases.tasks.logs.ownerstringOwner of the log.
TheHive.Cases.tasks.logs._typestringType of the log.
TheHive.Cases.tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.logs.idstringThe ID of the log.
TheHive.Cases.tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.createdBystringThe user who created the log.

Command Example#

!thehive-create-case title="new created case" description="description for new case" owner="owner"

Context Example#

{
"TheHive": {
"Cases": [
{
"_id": "~41492552",
"_type": "case",
"caseId": 7,
"createdAt": "2021-10-11T17:36:40Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "description for new case",
"endDate": null,
"flag": false,
"id": "~41492552",
"impactStatus": null,
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633973800326,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"title": "new created case",
"tlp": 2,
"updatedAt": null,
"updatedBy": null
},
{
"_id": "~41496648",
"_type": "case",
"caseId": 7,
"createdAt": "2021-10-11T17:36:40Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"description": "description for new case",
"endDate": null,
"flag": false,
"id": "~41496648",
"impactStatus": null,
"owner": "adrugobitski@paloaltonetworks.com",
"pap": 2,
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"resolutionStatus": null,
"severity": 2,
"startDate": 1633973800334,
"stats": {},
"status": "Open",
"summary": null,
"tags": [],
"title": "new created case",
"tlp": 2,
"updatedAt": null,
"updatedBy": null
}
]
}
}

Human Readable Output#

TheHive newly Created Case:#

idtitledescriptioncreatedAt
~41492552new created casedescription for new case2021-10-11T17:36:40Z

thehive-create-task#


Create a new task

Base Command#

thehive-create-task

Input#

Argument NameDescriptionRequired
idCase ID.Required
titleTitle of the case.Required
descriptionDescription.Optional
startDateDatetime the task was started on, for example, 2018-06-29 08:15:27.243860.Optional

Context Output#

PathTypeDescription
TheHive.Tasks.statusstringStatus of the task.
TheHive.TasKs.titlestringTitle of the task.
TheHive.Tasks.idstringThe ID of the task.
TheHive.Tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Tasks._typestringType of the task.
TheHive.Tasks.createdBystringThe user who created the task.
TheHive.Tasks.groupstringGroup of the task.
TheHive.Tasks.flagbooleanA boolean flag used for filtering.
TheHive.Tasks.orderintThe order of the task.

Command Example#

!thehive-create-task id="~479312" title="newly added task" description="new description"

Context Example#

{
"TheHive": {
"Tasks": [
{
"_id": "~585736",
"_type": "case_task",
"createdAt": "2021-10-11T17:36:42Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"description": "new description",
"flag": false,
"group": "default",
"id": "~585736",
"order": 0,
"status": "Waiting",
"title": "newly added task"
},
{
"_id": "~581640",
"_type": "case_task",
"createdAt": "2021-10-11T17:36:42Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"description": "new description",
"flag": false,
"group": "default",
"id": "~581640",
"order": 0,
"status": "Waiting",
"title": "newly added task"
}
]
}
}

Human Readable Output#

The newly created task#

idtitlecreatedAtstatus
~581640newly added task2021-10-11T17:36:42ZWaiting

thehive-remove-case#


Removes a case

Base Command#

thehive-remove-case

Input#

Argument NameDescriptionRequired
idCase ID.Required
permanentPermanently removes the case (cannot be undone). Possible values are: false, true. Default is false.Optional

Context Output#

There is no context output for this command.

Command Example#

thehive-remove-case id='~41496648'

Human Readable Output#

Case ID ~41496648 removed successfully

thehive-merge-cases#


Merges 2 cases

Base Command#

thehive-merge-cases

Input#

Argument NameDescriptionRequired
firstCaseIDID of the first case.Required
secondCaseIDID of the second case.Required

Context Output#

PathTypeDescription
TheHive.Cases._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.customFieldsunknownAny fields that the user of TheHiveProject has added to the platform and filled in as part of a case.
TheHive.Cases.caseIdnumberThe order of the case.
TheHive.Cases.flagbooleanA boolean flag used for filtering.
TheHive.Cases.startDatenumberDatetime the case was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.statusstringStatus of the case.
TheHive.Cases.ownerstringOwner of the case.
TheHive.Cases.tlpnumberTraffic Light Protocol designation for the case.
TheHive.Cases.titlestringTitle of the case.
TheHive.Cases.tagsunknownTags added to the case.
TheHive.Cases._typestringType of the case.
TheHive.Cases._versionnumberThe version of TheHive Project.
TheHive.Cases.idstringThe ID of the case.
TheHive.Cases.createdAtnumberDatetime the case was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.descriptionstringDescription of the case.
TheHive.Cases.severitynumberSeverity of the case.
TheHive.Cases.papnumberPermissible Actions Protocol (PAP), used to indicate what kind of action is allowed.
TheHive.Cases.createdBystringThe user who created the case.
TheHive.Cases.tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.flagbooleanA boolean flag used for filtering.
TheHive.Cases.tasks.ordernumberThe order of the task.
TheHive.Cases.tasks.statusstringStatus of the task.
TheHive.Cases.tasks.titlestringTitle of the task.
TheHive.Cases.tasks._typestringType of the task.
TheHive.Cases.tasks._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.idstringThe ID of the task.
TheHive.Cases.tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.createdBystringThe user who created the task.
TheHive.Cases.tasks.groupstringGroup of the task.
TheHive.Cases.tasks.logs.messagestringLog message.
TheHive.Cases.tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Cases.tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Cases.tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.statusstringStatus of the log.
TheHive.Cases.tasks.logs.ownerstringOwner of the log.
TheHive.Cases.tasks.logs._typestringType of the log.
TheHive.Cases.tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Cases.tasks.logs.idstringThe ID of the log.
TheHive.Cases.tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Cases.tasks.logs.createdBystringThe user who created the log.

Command Example#

thehive-merge-cases firstCaseID=12402 secondCaseID=49683

Context Example#

{
"_id": "~41443480",
"id": "~41443480",
"createdBy": "adrugobitski@paloaltonetworks.com",
"updatedBy": null,
"createdAt": 1633374980441,
"updatedAt": null,
"_type": "case",
"caseId": 27,
"title": "new created case / new created case",
"description": "description for new case\n\ndescription for new case",
"severity": 2,
"startDate": 1632305365797,
"endDate": null,
"impactStatus": null,
"resolutionStatus": null,
"tags": [],
"flag": false,
"tlp": 2,
"pap": 2,
"status": "Open",
"summary": null,
"owner": "adrugobitski@paloaltonetworks.com",
"customFields": {},
"stats": {},
"permissions": [
"manageShare", "manageAnalyse", "manageTask",
"manageCaseTemplate", "manageCase", "manageUser",
"manageProcedure", "managePage", "manageObservable",
"manageTag", "manageConfig", "manageAlert",
"accessTheHiveFS", "manageAction"
]}

Human Readable Output#

TheHive Linked Cases of ~413824:#

idtitledescriptioncreatedAt
~41443480new created case / new created casedescription for new case

description for new case
2021-10-04T22:16:20Z

thehive-get-case-tasks#


Get the tasks of a case

Base Command#

thehive-get-case-tasks

Input#

Argument NameDescriptionRequired
idCase ID.Required

Context Output#

There is no context output for this command.

Command Example#

!thehive-get-case-tasks id="~479312"

Context Example#

{
"TheHive": {
"Tasks": [
{
"_createdAt": "2021-10-11T17:36:42Z",
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~585736",
"_type": "Task",
"description": "new description",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "newly added task"
},
{
"_createdAt": "2021-10-11T17:36:42Z",
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~581640",
"_type": "Task",
"description": "new description",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "newly added task"
},
{
"_createdAt": "2021-10-11T17:02:01Z",
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~41500824",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task1"
},
{
"_createdAt": "2021-10-11T17:02:01Z",
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~438408",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task2"
},
{
"_createdAt": "2021-10-11T17:02:01Z",
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~442504",
"_type": "Task",
"extraData": {
"shareCount": 0
},
"flag": false,
"group": "default",
"logs": [],
"order": 0,
"status": "Waiting",
"title": "task3"
}
]
}
}

Human Readable Output#

TheHive Tasks For Case ~479312:#

_idtitle_createdAt_createdBystatusgroup
~585736newly added task2021-10-11T17:36:42Zadrugobitski@paloaltonetworks.comWaitingdefault
~581640newly added task2021-10-11T17:36:42Zadrugobitski@paloaltonetworks.comWaitingdefault
~41500824task12021-10-11T17:02:01Zadrugobitski@paloaltonetworks.comWaitingdefault
~438408task22021-10-11T17:02:01Zadrugobitski@paloaltonetworks.comWaitingdefault
~442504task32021-10-11T17:02:01Zadrugobitski@paloaltonetworks.comWaitingdefault

thehive-get-task#


Get a specific task.

Base Command#

thehive-get-task

Input#

Argument NameDescriptionRequired
idTask ID.Required

Context Output#

PathTypeDescription
TheHive.Tasks._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Tasks._parentstringThe direct parent level object which the current object belongs to.
TheHive.Tasks.flagbooleanA boolean flag used for filtering.
TheHive.Tasks.ordernumberThe order of the task.
TheHive.Tasks.statusstringStatus of the task.
TheHive.Tasks.titlestringTitle of the task.
TheHive.Tasks._typestringType of the task.
TheHive.Tasks._versionnumberThe version of TheHive Project.
TheHive.Tasks.idstringThe ID of the task.
TheHive.Tasks.createdAtnumberDatetime the task was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Tasks.createdBystringThe user who created the task.
TheHive.Tasks.groupstringGroup of the task.
TheHive.Tasks.logs.messagestringLog message.
TheHive.Tasks.logs._routingstringThe root level object which the current object belongs to. For example, a log entry is part of a task, which is part of a case. The _routing in this example would point to the ID of the case.
TheHive.Tasks.logs._parentstringThe direct parent level object which the current object belongs to.
TheHive.Tasks.logs.startDatenumberDatetime the log was started on, for example, 2018-06-29 08:15:27.243860.
TheHive.Tasks.logs.statusstringStatus of the log.
TheHive.Tasks.logs.ownerstringOwner of the log.
TheHive.Tasks.logs._typestringType of the log.
TheHive.Tasks.logs._versionnumberThe version of TheHive Project.
TheHive.Tasks.logs.idstringThe ID of the log.
TheHive.Tasks.logs.createdAtnumberDatetime the task log was created, for example, 2018-06-29 08:15:27.243860.
TheHive.Tasks.logs.createdBystringThe user who created the task.

Command Example#

!thehive-get-task id="~41357336"

Human Readable Output#

No task found with id: ~41357336.

thehive-update-task#


Updates a task.

Base Command#

thehive-update-task

Input#

Argument NameDescriptionRequired
idTask ID.Required
titleTitle of the task.Optional
statusStatus of the task. Possible values are: Waiting, InProgress, Completed, Cancel.Optional
flagA boolean flag used for filtering. Possible values are: false, true.Optional
ownerOwner of the task.Optional
startDateDatetime the task was started on, for example, 2018-06-29 08:15:27.243860.Optional
endDateDatetime the case ended, for example, 2018-06-29 08:15:27.243860.Optional

Context Output#

There is no context output for this command.

Command Example#

Human Readable Output#

thehive-list-users#


Get a list of users.

Base Command#

thehive-list-users

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

Command Example#

!thehive-list-users

Context Example#

{
"TheHive": {
"Users": [
{
"_id": "~8256",
"_type": "user",
"createdAt": "2021-04-21T08:27:32Z",
"createdBy": "rrapoport@paloaltonetworks.com",
"hasKey": true,
"id": "adrugobitski@paloaltonetworks.com",
"login": "adrugobitski@paloaltonetworks.com",
"name": "name API",
"organisation": "name",
"roles": [
"admin",
"write",
"read",
"alert"
],
"status": "Ok"
},
{
"_id": "~8440",
"_type": "user",
"createdAt": "2021-04-21T08:13:40Z",
"createdBy": "admin@thehive.local",
"hasKey": false,
"id": "rrapoport@paloaltonetworks.com",
"login": "rrapoport@paloaltonetworks.com",
"name": "Roman Rapoport",
"organisation": "name",
"roles": [
"admin",
"write",
"read",
"alert"
],
"status": "Ok"
},
{
"_id": "~24712",
"_type": "user",
"createdAt": "2021-07-15T11:40:29Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "example@example.com",
"login": "example@example.com",
"name": "username",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~28704",
"_type": "user",
"createdAt": "2021-07-15T12:06:57Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "example@example.com",
"login": "example@example.com",
"name": "usernamee",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~32800",
"_type": "user",
"createdAt": "2021-07-15T12:16:53Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "new_example@example.com",
"login": "new_example@example.com",
"name": "user_name",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~41208",
"_type": "user",
"createdAt": "2021-07-15T12:17:35Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "example_2@example.com",
"login": "example_2@example.com",
"name": "user_name_2",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~422136",
"_type": "user",
"createdAt": "2021-09-22T10:27:48Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "name_login@thehive.local",
"login": "name_login@thehive.local",
"name": "dem_test",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~41033880",
"_type": "user",
"createdAt": "2021-07-21T09:21:38Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "example_2@example.com",
"login": "example_2@example.com",
"name": "merit",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
},
{
"_id": "~41402520",
"_type": "user",
"createdAt": "2021-09-22T10:32:01Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "test@example.com",
"login": "test@example.com",
"name": "testing",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
}
]
}
}

Human Readable Output#

TheHive Users:#

idnamerolesstatus
adrugobitski@paloaltonetworks.comname APIadmin,
write,
read,
alert
Ok
rrapoport@paloaltonetworks.comRoman Rapoportadmin,
write,
read,
alert
Ok
example@example.comusernamereadOk
example@example.comusernameereadOk
new_example@example.comuser_namereadOk
test@example.comuser_name_2readOk
name_login@thehive.localdem_testreadOk
example_2@example.commeritreadOk
test@example.comtestingreadOk

thehive-get-user#


Get a single user

Base Command#

thehive-get-user

Input#

Argument NameDescriptionRequired
idUser ID.Required

Context Output#

There is no context output for this command.

Command Example#

!thehive-get-user id="~41402520"

Context Example#

{
"TheHive": {
"Users": {
"_id": "~41402520",
"_type": "user",
"createdAt": "2021-09-22T10:32:01Z",
"createdBy": "adrugobitski@paloaltonetworks.com",
"hasKey": false,
"id": "test@example.com",
"login": "test@example.com",
"name": "testing",
"organisation": "name",
"roles": [
"read"
],
"status": "Ok"
}
}
}

Human Readable Output#

TheHive User ID ~41402520:#

_idnamerolesstatusorganisationcreatedAt
~41402520testingreadOkname2021-09-22T10:32:01Z

thehive-create-local-user#


Create a new user

Base Command#

thehive-create-local-user

Input#

Argument NameDescriptionRequired
loginUsername login.Required
nameName of the user.Required
rolesRoles (CSV: can be read, write, admin). Default is read.Optional
passwordPassword.Required
profileProfile name (only used with TheHive Project v4 and onwards).Optional

Context Output#

There is no context output for this command.

Command Example#

!thehive-create-local-user login=name name=dem password=1234

Context Example#

{
"TheHive": {
"Users": [
{
"_createdAt": 1633973834658,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~593928",
"hasKey": false,
"hasMFA": false,
"hasPassword": false,
"locked": false,
"login": "name@example.local",
"name": "dem",
"organisation": "name",
"organisations": [],
"permissions": [],
"profile": "read-only"
},
{
"_createdAt": 1633973834659,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~598024",
"hasKey": false,
"hasMFA": false,
"hasPassword": false,
"locked": false,
"login": "name@example.loc",
"name": "dem",
"organisation": "name",
"organisations": [],
"permissions": [],
"profile": "read-only"
}
]
}
}

Human Readable Output#

New User ~593928:#

_idloginnameprofile
~593928name@example.localdemread-only

thehive-block-user#


Block a user

Base Command#

thehive-block-user

Input#

Argument NameDescriptionRequired
idUser ID.Required

Context Output#

There is no context output for this command.

Command Example#

!thehive-block-user id="~41208"

Human Readable Output#

User "~41208" blocked successfully

thehive-list-observables#


List observables for a case.

Base Command#

thehive-list-observables

Input#

Argument NameDescriptionRequired
idCase ID.Required

Context Output#

PathTypeDescription
TheHive.ObservablesstringList of observables for a case.

Command Example#

!thehive-list-observables id="~561160"

Context Example#

{
"TheHive": {
"Observables": [
{
"_createdAt": 1633972384854,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~41504920",
"_type": "Observable",
"data": "google",
"dataType": "domain",
"extraData": {
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"seen": {
"ioc": false,
"seen": 0
},
"shareCount": 0
},
"ignoreSimilarity": false,
"ioc": false,
"message": "observable 2",
"reports": {},
"sighted": false,
"startDate": 1633972384854,
"tags": [],
"tlp": 1
},
{
"_createdAt": 1633972365905,
"_createdBy": "adrugobitski@paloaltonetworks.com",
"_id": "~532512",
"_type": "Observable",
"data": "8.8.8.8",
"dataType": "ip",
"extraData": {
"permissions": [
"manageShare",
"manageAnalyse",
"manageTask",
"manageCaseTemplate",
"manageCase",
"manageUser",
"manageProcedure",
"managePage",
"manageObservable",
"manageTag",
"manageConfig",
"manageAlert",
"accessTheHiveFS",
"manageAction"
],
"seen": {
"ioc": false,
"seen": 0
},
"shareCount": 0
},
"ignoreSimilarity": false,
"ioc": false,
"message": "observable 1",
"reports": {},
"sighted": false,
"startDate": 1633972365905,
"tags": [],
"tlp": 2
}
]
}
}

Human Readable Output#

Observables for Case ~561160:#

datadataTypemessage
googledomainobservable 2
8.8.8.8ipobservable 1

thehive-create-observable#


Creates an observable.

Base Command#

thehive-create-observable

Input#

Argument NameDescriptionRequired
idCase ID.Required
dataData of the observable.Required
dataTypeData type of the observable. Possible values are: autonomous-system, domain, file, filename, fqdn, hash, ip, mail, mail_subject, other, regexp, registry, uri_path, url, user-agent. Default is other.Required
messageObservable message.Required
startDateDatetime the observable was started on, for example, 2018-06-29 08:15:27.243860.Optional
tlpTraffic Light Protocol designation for the observable. Possible values are: WHITE, GREEN, AMBER, RED.Optional
iocIs the observable an IOC?. Possible values are: true, false.Optional
statusStatus of the observable. Possible values are: Ok, Deleted.Optional

Context Output#

There is no context output for this command.

Command Example#

Human Readable Output#

thehive-update-observable#


Update an observable.

Base Command#

thehive-update-observable

Input#

Argument NameDescriptionRequired
idObservable ID.Required
messageObservable message.Required
tlpTraffic Light Protocol designation for the observable. Possible values are: WHITE, GREEN, AMBER, RED.Optional
iocIs the observable an IOC?. Possible values are: true, false.Optional
statusStatus of the observable. Possible values are: Ok, Deleted.Optional

Context Output#

There is no context output for this command.

Command Example#

!thehive-update-observable id="~41504920" message="updated message for observable"

Context Example#

{
"TheHive": {
"Observables": {
"_id": "~41504920",
"_type": "case_artifact",
"createdAt": 1633972384854,
"createdBy": "adrugobitski@paloaltonetworks.com",
"data": "google",
"dataType": "domain",
"id": "~41504920",
"ignoreSimilarity": false,
"ioc": false,
"message": "updated message for observable",
"reports": {},
"sighted": false,
"startDate": 1633972384854,
"stats": {},
"tags": [],
"tlp": 1,
"updatedAt": 1633973833004,
"updatedBy": "adrugobitski@paloaltonetworks.com"
}
}
}

Human Readable Output#

Updated Observable:#

iddatadataTypemessage
~41504920googledomainupdated message for observable

get-mapping-fields#


Returns the list of fields.

Base Command#

get-mapping-fields

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

Command Example#

Human Readable Output#

get-remote-data#


Get remote data from a remote incident. This method does not update the current incident, and should be used for debugging purposes.

Base Command#

get-remote-data

Input#

Argument NameDescriptionRequired
idThe ticket ID.Required
lastUpdateRetrieve entries that were created after lastUpdate.Required

Context Output#

There is no context output for this command.

Command Example#

Human Readable Output#

thehive-get-version#


Displays the version of TheHive Project.

Base Command#

thehive-get-version

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

Command Example#

!thehive-get-version

Human Readable Output#

4.1.4-1

get-modified-remote-data#


Gets the list of incidents that were modified since the last update time. Note that this method is here for debugging purposes. The get-modified-remote-data command is used as part of a Mirroring feature, which is available from version 6.1.

Base Command#

get-modified-remote-data

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

Command Example#

Human Readable Output#