# Export knowledge to a file

> Export an OpenCTI entity, a list or part of a container to a STIX, CSV, text or PDF file, choose what markings it may contain, and download it from the platform.

- URL: https://filigran.io/docs/opencti/use/share/export/
- Products: OpenCTI 7.261119.0
- For: CTI analysts
- Type: How-to guide

Export turns what you know into a file you can hand over: a report as STIX 2.1 for a partner CERT's tools, a spreadsheet of indicators for the SOC, or a finished advisory in PDF. For each file, you decide the highest marking its content may carry, so that it holds nothing your sharing agreement forbids, and the marking of the file itself, so that only the right colleagues can download it from the platform. To publish data continuously instead, see [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/).

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

- Your role has the **Generate knowledge export** capability, to create exports, and the **Download knowledge export** capability, to download them.
- An export connector for the format you want runs on the platform, such as `ExportFileStix` for STIX 2.1, `ExportFileCsv` for CSV or `ExportFileTxt` for text. Your administrator deploys them from the [connector catalog](https://filigran.io/docs/opencti/use/ingest/connectors/). The formats offered are those of the running connectors.
- You are not in a draft: exports are not available in drafts.

## Choose what the file contains {#choose-what-the-file-contains}

| Setting | What it does |
| --- | --- |
| **Export type** | **Simple export (just the entity)** exports the entity alone. **Full export (entity and first neighbours)** adds every entity directly related to it |
| **Content max marking definition levels** | Leaves out what is marked higher. Choose one level per marking type: with TLP:GREEN, objects marked TLP:AMBER or TLP:RED are left out. For a marking type you leave empty, such as PAP, your own maximum shareable marking of that type applies, and objects of a type you may not share at all are always left out. You can only choose up to your own maximum shareable markings |
| **File marking definition levels** | Marks the file itself: only users who have these markings can see and download it |

See [Markings](https://filigran.io/docs/opencti/administer/markings/) for maximum shareable markings.

## Export an entity {#export-an-entity}

1. Open the entity and click the export button at the top of the page, **Generate an export**.

   ![The Generate an export window opens on the Format step, with one card per available format, such as PDF and HTML.](https://filigran.io/docs/shots/24a86bf655f192b55860a5dcc22f8380be3eff75e684e44d28be3d85086b1139.webp)

2. Choose the format.
3. Choose the **Connector** that produces the file, and the **Export type**.
4. Set the **Content max marking definition levels** and the **File marking definition levels**.
5. Click **Create**.

The export runs in the background. When it ends, the file appears in **Exported files**, in the **Data** tab of the entity. Click it to download it.

**Example: Send the Velvet Harbor report to a partner CERT as STIX**

Saltmarsh CERT asks for the report **Velvet Harbor targets hotel booking systems** to load it into its own tools, and your sharing agreement with them stops at TLP:GREEN. Open the report and click **Generate an export**:

- Format: the STIX 2.1 format, `application/vnd.oasis.stix+json`.
- **Connector**: the STIX export connector, such as `ExportFileStix`.
- **Export type**: **Full export (entity and first neighbours)**, so the file carries the objects of the report with it.
- **Content max marking definition levels**: **TLP:GREEN**.
- **File marking definition levels**: **TLP:GREEN**.

The file holds the report, its sector, countries, techniques, indicators and malware such as Velvet Loader. The intrusion set Velvet Harbor and the malware Harbor Stealer, both marked TLP:AMBER, are left out, so check that the file still makes sense before you send it.

## Export a list {#export-a-list}

1. Open a list, such as **Analyses > Reports**, and filter it. To export some rows only, select them.
2. Click the export button of the list. The **Exports list** panel opens with the earlier exports of this list.
3. Click **Generate an export**.
4. Choose the **Export format** and the markings.

   *(OpenCTI 7.260811 and later)*

   For CSV, **Choose column to export**: **All attributes**, or **Current view** for the columns shown in the list.

5. Click **Create**. The file appears in the **Exports list** when it is ready; click it to download it.

**Example: Give the detection team the hotel-sector indicators as CSV**

The SOC wants a spreadsheet of the indicators the CTI team tagged for the hospitality sector. In **Observations > Indicators**, add **Label**, operator **Equals**, value `hotel-sector`, and keep in the list only the columns the SOC needs. Click the export button, then **Generate an export**, and choose:

- **Export format**: **CSV**
- **Content max marking definition levels**: **TLP:AMBER**, the highest level the SOC may receive.

*(OpenCTI 7.260811 and later)*

- **Choose column to export**: **Current view**, so the file has the columns of your view only.

The CSV file lists the hotel-sector indicators, such as `reservations-velvet.example`, `203.0.113.31` and `checkin-velvet.example`.

To export part of a container, such as the attack patterns and indicators of a report for a detection team, open its **Entities** tab, select the objects, and export them the same way.

## Generate a finished intelligence document {#generate-a-finished-intelligence-document}

In reports, groupings and cases, an Enterprise Edition platform can fill a fintel template with the container's data and produce an HTML or PDF document. Your administrator sets the templates per entity type in [entity type customization](https://filigran.io/docs/opencti/configure/entities/), and their look in [Brand your PDF reports](https://filigran.io/docs/opencti/configure/fintel-designs/).

1. Open the container and click **Generate an export**. You can also start from its **Content** tab.
2. Choose **HTML** or **PDF**.
3. Choose **Generate FINTEL from template** as the **Connector**, then the **Template**.

   *(OpenCTI 7.261030 and later)*

   For a PDF, you can also choose **HTML content files to PDF** with **Export as fintel** turned on, then the **Template**, the **Fintel design** and the **Page options**: **Include cover page**, **Include back page** and **Remove empty sections**.

4. Enter the **Export file name**, the file markings and the **Content max marking definition levels**: a template can list the container's objects, such as its indicators, and this setting leaves out those marked higher.
5. Click **Create**.

An HTML document opens in the **Content** tab of the container, where you can edit it. To turn an edited HTML file into a PDF, export it again with the **HTML content files to PDF** connector and choose it in **File to export**. Both built-in connectors need the **Upload knowledge files** capability. From the **Content** tab, you can then [send the document by email](https://filigran.io/docs/opencti/use/share/dissemination-lists/).

> **With XTM One: Write a report with AI**
>
> On reports, incident response cases and requests for information, the format step also offers **Ask AI (multiple formats supported)** when AI is available on your platform. It writes a text about the container in the tone, language and number of paragraphs you choose, as HTML, Markdown, plain text or JSON, and saves it as a new file or in the main content of the container. See [XTM One in OpenCTI](https://filigran.io/docs/xtm-one/use/in-opencti/).

## Check that it works {#check-that-it-works}

The new file shows in **Exported files** or in the **Exports list**, with a progress indicator while the connector works. If it never appears, check in the list of connectors that the export connector runs, and read the error of its last work. See [Import with connectors](https://filigran.io/docs/opencti/use/ingest/connectors/) for where connectors are listed.

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

- [Send intelligence by email](https://filigran.io/docs/opencti/use/share/dissemination-lists/), to email a document to recipients outside the platform.
- [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/), to share data continuously.
- [Brand your PDF reports](https://filigran.io/docs/opencti/configure/fintel-designs/), for the look of PDF documents.
