Skip to main content

HelloWorld

This Integration is part of the HelloWorld Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.8.0 and later.

This is the Hello World integration for getting started.

Configure HelloWorld on Cortex XSOAR#

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

  2. Search for HelloWorld.

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

    ParameterDescriptionRequired
    Source ReliabilityReliability of the source providing the intelligence data.False
    Server URL (e.g., https://api.xsoar-example.com)True
    Fetch alertsFalse
    Alert typeFalse
    Maximum number of alerts per fetchFalse
    API KeyTrue
    Score threshold for IP reputation commandSet this to determine the HelloWorld score that will determine if an IP is malicious (0-100)False
    Severity of alerts to fetchTrue
    First fetch timeFalse
    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.

helloworld-say-hello#


Hello command - prints hello to anyone.

Base Command#

helloworld-say-hello

Input#

Argument NameDescriptionRequired
nameThe name of whom you want to say hello to.Optional

Context Output#

PathTypeDescription
helloStringShould be Hello **something** here.

Command example#

!helloworld-say-hello name="Hello Dbot"

Context Example#

{
"hello": "Hello Hello Dbot"
}

Human Readable Output#

Hello Hello Dbot#

helloworld-alert-list#


Lists the example alerts as it would be fetched from the API.

Base Command#

helloworld-alert-list

Input#

Argument NameDescriptionRequired
alert_idFilter by alert item ID. If not provided, all IDs will be retrieved.Optional
limitHow many alerts to fetch. Default is 10.Optional
severityThe severity by which to filter the alerts.Optional

Context Output#

PathTypeDescription
HelloWorld.alert.idNumberThe ID of the alert.
HelloWorld.alert.nameStringThe name of the alert.
HelloWorld.alert.severityStringThe severity of the alert.
HelloWorld.alert.dateDateThe date of the alert occurrence.
HelloWorld.alert.statusStringThe status of the alert.

Command example#

!helloworld-alert-list limit="3" severity="low"

Context Example#

{
"HelloWorld": {
"Alert": [
{
"date": "2023-09-14T11:30:39.882955",
"id": 1,
"name": "XSOAR Test Alert #1",
"severity": "low",
"status": "Testing"
},
{
"date": "2023-09-14T11:30:39.882955",
"id": 2,
"name": "XSOAR Test Alert #2",
"severity": "low",
"status": "Testing"
},
{
"date": "2023-09-14T11:30:39.882955",
"id": 3,
"name": "XSOAR Test Alert #3",
"severity": "low",
"status": "Testing"
}
]
}
}

Human Readable Output#

Items List (Sample Data)#

dateidnameseveritystatus
2023-09-14T11:30:39.8829551XSOAR Test Alert #1lowTesting
2023-09-14T11:30:39.8829552XSOAR Test Alert #2lowTesting
2023-09-14T11:30:39.8829553XSOAR Test Alert #3lowTesting

Command example#

!helloworld-alert-list alert_id=2

Context Example#

{
"HelloWorld": {
"Alert": {
"date": "2023-09-14T11:30:39.882955",
"id": 2,
"name": "XSOAR Test Alert #2",
"severity": "low",
"status": "Testing"
}
}
}

Human Readable Output#

Items List (Sample Data)#

dateidnameseveritystatus
2023-09-14T11:30:39.8829552XSOAR Test Alert #2lowTesting

helloworld-alert-note-create#


Example of creating a new item in the API.

Base Command#

helloworld-alert-note-create

Input#

Argument NameDescriptionRequired
alert_idThe alert's ID to add the note to.Required
note_textThe comment to add to the note.Required

Context Output#

PathTypeDescription
HelloWorld.alert.idNumberThe ID of the alert.
HelloWorld.alert.nameStringThe name of the alert.
HelloWorld.alert.severityStringThe severity of the alert.
HelloWorld.alert.dateDateThe date of the alert occurrence.
HelloWorld.alert.statusStringThe status of the alert.

Command example#

!helloworld-alert-note-create alert_id=2 note_text=test

Context Example#

{
"HelloWorld": {
"Note": {
"msg": "Note was created for alert #2 successfully with comment='test'",
"status": "success"
}
}
}

Human Readable Output#

Note was created successfully.

ip#


Return IP information and reputation.

Base Command#

ip

Input#

Argument NameDescriptionRequired
ipList of IPs.Optional
thresholdIf the IP has a reputation above the threshold, then the IP is defined as malicious. If threshold is not set, then the threshold from the instance configuration is used. Default is 65.Optional

Context Output#

PathTypeDescription
DBotScore.IndicatorStringThe indicator that was tested.
DBotScore.ScoreNumberThe actual score.
DBotScore.TypeStringThe indicator type.
DBotScore.VendorStringThe vendor used to calculate the score.
HelloWorld.IP.asnStringThe autonomous system name for the IP address.
HelloWorld.IP.asn_cidrStringThe ASN CIDR.
HelloWorld.IP.asn_country_codeStringThe ASN country code.
HelloWorld.IP.asn_dateDateThe date on which the ASN was assigned.
HelloWorld.IP.asn_descriptionStringThe ASN description.
HelloWorld.IP.asn_registryStringThe registry the ASN belongs to.
HelloWorld.IP.entitiesStringEntities associated to the IP.
HelloWorld.IP.ipStringThe actual IP address.
HelloWorld.IP.network.cidrStringNetwork CIDR for the IP address.
HelloWorld.IP.network.countryUnknownThe country of the IP address.
HelloWorld.IP.network.end_addressStringThe last IP address of the CIDR.
HelloWorld.IP.network.events.actionStringThe action that happened on the event.
HelloWorld.IP.network.events.actorUnknownThe actor that performed the action on the event.
HelloWorld.IP.network.events.timestampStringThe timestamp when the event occurred.
HelloWorld.IP.network.handleStringThe handle of the network.
HelloWorld.IP.network.ip_versionStringThe IP address version.
HelloWorld.IP.network.linksStringLinks associated to the IP address.
HelloWorld.IP.network.nameStringThe name of the network.
HelloWorld.IP.network.notices.descriptionStringThe description of the notice.
HelloWorld.IP.network.notices.linksUnknownLinks associated with the notice.
HelloWorld.IP.network.notices.titleStringTitle of the notice.
HelloWorld.IP.network.parent_handleStringHandle of the parent network.
HelloWorld.IP.network.rawUnknownAdditional raw data for the network.
HelloWorld.IP.network.remarksUnknownAdditional remarks for the network.
HelloWorld.IP.network.start_addressStringThe first IP address of the CIDR.
HelloWorld.IP.network.statusStringStatus of the network.
HelloWorld.IP.network.typeStringThe type of the network.
HelloWorld.IP.queryStringIP address that was queried.
HelloWorld.IP.rawUnknownAdditional raw data for the IP address.
HelloWorld.IP.scoreNumberReputation score from HelloWorld for this IP (0 to 100, where higher is worse).
IP.AddressStringIP address.
IP.Malicious.VendorStringThe vendor reporting the IP address as malicious.
IP.Malicious.DescriptionStringA description explaining why the IP address was reported as malicious.
IP.ASNStringThe autonomous system name for the IP address.
IP.Relationships.EntityAstringThe source of the relationship.
IP.Relationships.EntityBstringThe destination of the relationship.
IP.Relationships.RelationshipstringThe name of the relationship.
IP.Relationships.EntityATypestringThe type of the source of the relationship.
IP.Relationships.EntityBTypestringThe type of the destination of the relationship.

Command example#

!ip ip="8.8.8.8"

Context Example#

{
"DBotScore": {
"Indicator": "8.8.8.8",
"Reliability": "C - Fairly reliable",
"Score": 3,
"Type": "ip",
"Vendor": "HelloWorld Dev"
},
"HelloWorld": {
"IP": {
"id": "x.x.x.x",
"ip": "8.8.8.8",
"links": {
"self": "https://www.virustotal.com/api/v3/ip_addresses/x.x.x.x"
},
"type": "ip_address"
}
},
"IP": {
"Address": "8.8.8.8",
"Malicious": {
"Description": "Hello World returned reputation -4",
"Vendor": "HelloWorld Dev"
},
"Relationships": [
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "h",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "t",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "t",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "p",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "s",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ":",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "w",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "w",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "w",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ".",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "v",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "i",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "r",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "u",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "s",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "t",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "o",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "t",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "a",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "l",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ".",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "c",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "o",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "m",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "a",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "p",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "i",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "v",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "3",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "i",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "p",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "_",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "a",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "d",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "d",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "r",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "e",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "s",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "s",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "e",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "s",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "/",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "x",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ".",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "x",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ".",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "x",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": ".",
"EntityBType": "URL",
"Relationship": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "x",
"EntityBType": "URL",
"Relationship": "related-to"
}
]
}
}

Human Readable Output#

IP (Sample Data)#

idiplinkstype
x.x.x.x8.8.8.8self: https://www.virustotal.com/api/v3/ip_addresses/x.x.x.xip_address

Attributes#

as_ownerasncontinentcountryjarmlast_analysis_statslast_modification_datenetworkregional_internet_registryreputationtagstotal_voteswhois_date
EMERALD-ONIONNAUS:jarm:harmless: 72
malicious: 5
suspicious: 2
timeout: 0
undetected: 8
:cidr:ARINvalues:harmless: 0
malicious: 1