# Orca Security

> Triage Orca Security alerts (search, comment, change status or score, snooze, verify), look up and rescan cloud assets, run Sonar queries, and follow new and changed alerts and new assets.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/orca-security

## Actions

### Add alert comment

Add a comment to an alert, shown in its history.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Comment (`comment`, text, required): The comment.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "alert_id": "example",
    "asset_unique_id": "example",
    "create_time": "example",
    "details": {
      "comment": "example",
      "description": "example",
      "severity": "example",
      "to": "example"
    },
    "id": "example",
    "type": "example",
    "unique_id": "example",
    "user_email": "example",
    "user_name": "example"
  }
}
```

### Change alert score

Override an alert's Orca score, which sets its risk level.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Orca score (`orca_score`, number, required): The new Orca score, from 0 to 10. From 0 to 10.
- Reason (`reason`, text): Why you're making the change, kept in the alert's history.
- Justification (`justification`, text): More detail on the change, kept in the alert's history.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "alert_id": "example",
    "asset_unique_id": "example",
    "create_time": "example",
    "details": {
      "comment": "example",
      "description": "example",
      "severity": "example",
      "to": "example"
    },
    "id": "example",
    "type": "example",
    "unique_id": "example",
    "user_email": "example",
    "user_name": "example"
  }
}
```

### Get alert

Get an alert's details: what was found, on which asset, its risk and how to fix it.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "alert_labels": [
      "example"
    ],
    "asset_name": "example",
    "asset_type": "example",
    "asset_type_string": "example",
    "asset_unique_id": "example",
    "category": "example",
    "cloud_provider": "example",
    "cloud_provider_id": "example",
    "description": "example",
    "recommendation": "example",
    "source": "example",
    "state": {
      "alert_id": "example",
      "created_at": "example",
      "last_seen": "example",
      "last_updated": "example",
      "orca_score": 1,
      "risk_level": "example",
      "score": 1,
      "severity": "example",
      "status": "example"
    },
    "type": "example",
    "type_string": "example"
  }
}
```

### Get asset

Get an asset's details: its type, cloud account, labels and risk.

**Inputs**

- Asset (`asset_id`, text, required): The asset's unique ID (its GroupUniqueId in search results).

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "asset_labels": [
      "example"
    ],
    "asset_name": "example",
    "asset_state": "example",
    "asset_type": "example",
    "asset_type_string": "example",
    "asset_unique_id": "example",
    "cloud_provider": "example",
    "cloud_provider_id": "example",
    "internet_facing": true,
    "state": {
      "orca_score": 1,
      "risk_level": "example",
      "score": 1,
      "severity": "example"
    }
  }
}
```

### Get organization

Get the Orca organization the API token belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "organization_id": "example",
    "organization_name": "example"
  }
}
```

### List alert categories

List the categories Orca files alerts under, such as Data at risk or IAM misconfigurations.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "data": [
      "example"
    ]
  }
}
```

### List alert history

List an alert's history: status and score changes, comments and verifications.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Event type (`event_type`, text): Only events of this type, such as comment.
- How many (`limit`, number): How many to return, up to 100. Leave empty for 20. From 1 to 100.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "event_log": [
      {
        "alert_id": "example",
        "asset_unique_id": "example",
        "create_time": "example",
        "details": {
          "comment": "example",
          "description": "example",
          "severity": "example",
          "to": "example"
        },
        "id": "example",
        "type": "example",
        "unique_id": "example",
        "user_email": "example",
        "user_name": "example"
      }
    ],
    "total_items": 1
  }
}
```

### List business units

List your business units, the slices of your cloud estate Orca reports on separately.

**Inputs**

- Name (`search`, text): Only those whose name contains this text.
- How many (`limit`, number): How many to return, up to 300. Leave empty for 50. From 1 to 300.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "application": "example",
        "bu_type": "example",
        "business_criticality": "example",
        "contact_emails": [
          "example"
        ],
        "deployment_stages": [
          "example"
        ],
        "id": "example",
        "name": "example",
        "owner_team": "example"
      }
    ],
    "status": "example",
    "total_items": 1
  }
}
```

### List groups

List the user groups in your Orca organization.

**Inputs**

- Name (`search`, text): Only those whose name contains this text.
- How many (`limit`, number): How many to return, up to 300. Leave empty for 50. From 1 to 300.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "sso_group": true,
        "users": [
          "example"
        ]
      }
    ],
    "status": "example",
    "total_items": 1
  }
}
```

### List users

List the people in your Orca organization, with their status and whether they use multi-factor sign-in.

**Inputs**

- How many (`limit`, number): How many to return, up to 300. Leave empty for 50. From 1 to 300.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "email": "example",
        "first": "example",
        "last": "example",
        "mfa_enabled": true,
        "mfa_required": true,
        "status": "example",
        "user_id": "example"
      }
    ],
    "status": "example",
    "total_items": 1
  }
}
```

### Reset alert score

Put an alert's Orca score back to the one Orca gave it.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Reason (`reason`, text): Why you're making the change, kept in the alert's history.
- Justification (`justification`, text): More detail on the change, kept in the alert's history.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {}
}
```

### Run Sonar query

Run any Orca Sonar query, the JSON the Discovery page's query builder makes, and get the matching records.

**Inputs**

- Query (`query`, object, required): The Sonar query, such as {"models": ["Alert"], "with": {"type": "operation", "operator": "and", "values": [{"key": "Status", "type": "str", "operator": "in", "values": ["open"]}]}}.
- Sort by (`order_by`, text): A field to sort by, with - in front for largest first, such as -OrcaScore.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 50. From 1 to 1000.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "results": [
      {}
    ],
    "total_items": 1
  }
}
```

### Scan asset

Start a new Orca scan of an asset now, rather than waiting for the next scheduled one.

**Inputs**

- Asset (`asset_id`, text, required): The asset's unique ID (its GroupUniqueId in search results).

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "asset_unique_ids": [
      "example"
    ],
    "scan_unique_id": "example",
    "status": "example",
    "version": "example"
  }
}
```

### Search alerts

Find alerts by status, risk level, category, type, asset, Orca score or date, newest or riskiest first.

**Inputs**

- Statuses (`statuses`, list): Only alerts with these statuses. Leave empty for all. One or more of: `open`, `in_progress` (In progress), `snoozed`, `dismissed`, `closed`.
- Risk levels (`risk_levels`, list): Only alerts at these risk levels. Leave empty for all. One or more of: `critical`, `high`, `medium`, `low`, `informational`.
- Categories (`categories`, list): Only alerts in these categories. Leave empty for all.
- Alert type (`alert_type`, text): Only alerts of this type, such as aws_s3_bucket_public_read.
- Asset (`asset_id`, text): Only alerts on this asset.
- Title contains (`title_contains`, text): Only alerts whose title contains this text.
- Minimum Orca score (`min_orca_score`, number): Only alerts with at least this Orca score, from 0 to 10. From 0 to 10.
- Created on or after (`created_after`, date): Only alerts created on or after this day.
- Order (`sort`, text): The order to return them in. Leave empty for newest first. One of: `newest` (Newest first), `highest_score` (Highest Orca score first), `recently_updated` (Recently updated first).
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 50. From 1 to 1000.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "alerts": [
      {
        "AlertId": "example",
        "AlertType": "example",
        "Category": "example",
        "CreatedAt": "example",
        "Labels": [
          "example"
        ],
        "LastSeen": "example",
        "LastUpdated": "example",
        "OrcaScore": 1,
        "RiskLevel": "example",
        "Score": 1,
        "Source": "example",
        "Status": "example",
        "StatusTime": "example",
        "Title": "example",
        "group_unique_id": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      }
    ],
    "total_items": 1
  }
}
```

### Search assets

Find assets in your cloud inventory by name, type or Orca score.

**Inputs**

- Name contains (`name_contains`, text): Only assets whose name contains this text.
- Asset type (`asset_type`, text): Only assets of this type, such as AwsEc2Instance.
- Minimum Orca score (`min_orca_score`, number): Only assets with at least this Orca score, from 0 to 10. From 0 to 10.
- Order (`sort`, text): The order to return them in. Leave empty for highest score first. One of: `highest_score` (Highest Orca score first), `newest` (Newest first), `recently_seen` (Recently seen first).
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 50. From 1 to 1000.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "assets": [
      {
        "FirstSeen": "example",
        "GroupUniqueId": "example",
        "LastSeen": "example",
        "Name": "example",
        "OrcaScore": 1,
        "RiskLevel": "example",
        "Type": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      }
    ],
    "total_items": 1
  }
}
```

### Search cloud accounts

List the AWS, Azure, Google Cloud and other accounts connected to Orca.

**Inputs**

- Name contains (`name_contains`, text): Only accounts whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 50. From 1 to 1000.
- Skip (`start_at_index`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "cloud_accounts": [
      {
        "CloudProvider": "example",
        "Name": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      }
    ],
    "total_items": 1
  }
}
```

### Snooze alert

Hide an alert for a number of days; it reopens when the snooze ends.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Days (`days`, number, required): How many days to snooze it for. From 1 to 365.
- Reason (`reason`, text): Why you're making the change, kept in the alert's history.
- Justification (`justification`, text): More detail on the change, kept in the alert's history.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {}
}
```

### Update alert status

Move an alert to open, in progress, closed or dismissed.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.
- Status (`status`, text, required): The alert's new status. One of: `open`, `in_progress` (In progress), `closed`, `dismiss` (Dismissed).
- Reason (`reason`, text): Why you're making the change, kept in the alert's history.
- Justification (`justification`, text): More detail on the change, kept in the alert's history.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "alert_id": "example",
    "asset_unique_id": "example",
    "create_time": "example",
    "details": {
      "comment": "example",
      "description": "example",
      "severity": "example",
      "to": "example"
    },
    "id": "example",
    "type": "example",
    "unique_id": "example",
    "user_email": "example",
    "user_name": "example"
  }
}
```

### Verify alert

Ask Orca to re-check an alert's asset now, to confirm whether the issue is fixed.

**Inputs**

- Alert (`alert_id`, text, required): The alert's ID, such as orca-12345.

**Outputs**

- `data` (object): The response from Orca Security.

**Example output**

```json
{
  "data": {
    "status": "example"
  }
}
```
