# Pivot and investigate

> Start an OpenCTI investigation from a few entities, expand it along their relationships, enrich them, roll back an expansion, and turn the findings into a report or a case.

- URL: https://filigran.io/docs/lts/7.260309-lts/opencti/use/analyze/pivot/
- Products: OpenCTI 7.260309.0-lts.8
- OpenCTI line: 7.260309 LTS · 7.260309.0-lts.8
- For: SOC analysts, CTI analysts
- Type: How-to guide

Start from the domain or the IP address of an alert and see, in a few double-clicks, which infrastructure, malware and threat it connects to. An investigation is a private graph workspace for this: you add a few entities, expand them along their relationships, roll back what leads nowhere, and move what you found into a case or a report. This page walks you through a full investigation; [Work with graphs](https://filigran.io/docs/lts/7.260309-lts/opencti/use/analyze/graphs/) covers the graph controls themselves.

## Before you start {#before-you-start}

- Your role has the **Access investigations** capability to open investigations, **Create / Update investigations** to create and change them, and **Delete investigations** to delete them.
- An investigation is visible only to its creator until they share it. To share it, open its menu and choose **Manage access restriction**, as for [dashboards](https://filigran.io/docs/lts/7.260309-lts/opencti/use/dashboards/share/).
- Creating a relationship inside an investigation writes it to the knowledge base, so it also needs **Create / Update knowledge**.

## Start an investigation {#start-an-investigation}

1. Open **Investigations** and click **Create Investigation**. Give it a name and, optionally, a description.
2. Click **Add an entity to this investigation** and pick the entities to start from, such as a suspicious domain name and the intrusion set it was reported with.

   ![An investigation graph with a domain name and an intrusion set, each with a counter of relationships not drawn yet, and the side panel showing the details of the selected entity.](https://filigran.io/docs/shots/27c22e8408c85093cfec8285c50a8498bf023cd9a09fe162d8c0fd2e961e726c.webp)

You can also start from the graph of a container. Select entities, right-click one of them and choose **Start an investigation**: the investigation opens with the selected entities. The **Start an investigation** button in the page header starts one with every entity of the container instead.

## Expand along relationships {#expand-along-relationships}

A counter on a node says how many of its relationships are not drawn yet. The number is an estimate. No counter means there is nothing to expand.

1. Select one or more entities, then open the expansion dialog: click **Expand** in the toolbar, double-click an entity, or right-click it and choose **Expand this entity**.
2. Choose the target types and relationship types to bring in, for example **Malware** through **uses** relationships, then click **Expand**. Leave **All types of target** and **All types of relationship** to bring in everything.

3. Repeat on the new entities that look relevant. Click an entity to read its details in the side panel without leaving the graph.

### Roll back an expansion {#roll-back-an-expansion}

An expansion can bring in more than you need. Click the roll back button in the toolbar to return the graph to the state before the last expansion. The dialog **Revert to Pre-Expansion State** shows the date of that expansion.

> **Warning**
>
> Rolling back also undoes every entity you added or removed since that expansion. The history lives in your browser tab and keeps the last 20 operations, so close the tab and it is gone.

## Capitalize on the investigation {#capitalize-on-the-investigation}

When the graph tells a story worth keeping, keep it:

- **Add it to a container.** Open the investigation menu, choose **Add to a container**, then pick an existing container or create one: a report, a grouping, an incident response, a request for information or a request for takedown. Every entity and relationship of the investigation goes into the container, and OpenCTI opens the container's knowledge graph.
- **Export it.** The page header exports a PDF of the visible area, or a STIX 2.1 bundle in which all objects of the investigation are wrapped in a report. The graph toolbar exports a high-resolution image.

**Example: Pivot from a look-alike booking domain**

A member hotel's proxy reports visits to `booking-velvetharbor.example`. Before you search the logs, you want every address and malware family tied to that domain, so that one search covers them all.

1. In **Investigations**, click **Create Investigation** and name it `Velvet Harbor pivot`, with the description `Pivot from the look-alike booking domain.`
2. Click **Add an entity to this investigation** and add the domain `booking-velvetharbor.example` and the intrusion set **Velvet Harbor**.
3. Double-click the domain. In the expansion dialog, choose **IPv4 address** as target type and click **Expand**: `203.0.113.10` appears through a **resolves to** relationship.
4. Double-click Velvet Harbor, choose **Malware** and **Infrastructure** as target types and **uses** as relationship type, then click **Expand**. Velvet Loader, Harbor Stealer, HarborGate backdoor and the infrastructure Velvet Harbor C2 appear.
5. Open the investigation menu, choose **Add to a container**, and pick the incident response `Sighting of booking-velvetharbor.example`.

The case now holds the domain, the address it resolves to, the intrusion set and its malware, so you search the proxy and EDR logs for `203.0.113.10` and the three malware families at once.

![The Add to container dialog of an investigation, with a container type selector and the choice between an existing container and a new one.](https://filigran.io/docs/shots/65a92629ee2145b2d6359f45dda6c41a6bf6b481bb2e6dff550a94a163ad9d37.webp)

## What's next {#what-s-next}

- [Work with graphs](https://filigran.io/docs/lts/7.260309-lts/opencti/use/analyze/graphs/), for layouts, filters, selection and shortcuts.
- [Handle incidents and requests in cases](https://filigran.io/docs/lts/7.260309-lts/opencti/use/analyze/cases/), to act on what the investigation found.
- [Containers](https://filigran.io/docs/lts/7.260309-lts/opencti/concepts/containers/), to choose between a report, a grouping and a case.
