> ## Documentation Index
> Fetch the complete documentation index at: https://docs.app.strix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Desktop app pentests

> Test a Linux build of an Electron app in an isolated sandbox

![](https://static.scarf.sh/a.png?x-pxid=831669b6-b4bd-42cb-8832-2122c03e1d5f)

A desktop app pentest tests an Electron app. You upload a Linux build of the app. Strix unpacks the build, reviews the packaged code, and runs the app in an isolated sandbox.

Desktop app pentests are available on the Pro and Enterprise plans.

On the Pro plan, a desktop app pentest costs 150 credits. Each backend domain, each repository, and each additional uploaded file adds 30 credits.

## What Strix tests

* The renderer, the preload scripts, the IPC handlers, and the main process.
* Navigation rules, custom protocols, permissions, and local storage.
* Secrets in the package, native modules, and the update configuration.
* The network traffic of the app.

Strix attacks a backend server only when you add its domain to the pentest. Without a domain, Strix tests the app and does not attack its servers.

## Supported builds

| Format | File name |
| - | - |
| AppImage | `.AppImage` |
| Debian package | `.deb` |
| Unpacked app in an archive | `.tar.gz` or `.tgz` |

* The build must be an x86-64 Linux build.
* The maximum file size is 500 MB.
* A pentest accepts one build.
* Windows and macOS builds are not supported. Strix rejects `.exe`, `.msi`, `.dmg`, and `.pkg` files.

## 1. Upload the build

Request a signed upload URL. Set `category` to `application`.

```bash theme={null}
curl -X POST "https://app.strix.ai/api/v1/uploads/request" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "myapp-1.4.2.AppImage",
    "file_size": 104857600,
    "category": "application"
  }'
```

Strix selects `application` from the file name for `.AppImage` and `.deb` files. For a `.tar.gz` or `.tgz` file, you must set `category` to `application`. If you do not, Strix stores the file as documentation.

Send the file to the signed URL, then finalize the upload. The [Uploads guide](https://docs.app.strix.ai/guides/uploads.md) shows the two calls. When you finalize the upload, Strix examines the stored file. Strix rejects and deletes a file that does not agree with its format.

**Required scope:** `uploads:write`

## 2. Start the pentest

Set `engagement_type` to `desktop_app` and put the upload ID in `upload_ids`.

```bash theme={null}
curl -X POST "https://app.strix.ai/api/v1/scans" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "engagement_type": "desktop_app",
    "upload_ids": ["<UPLOAD_ID>"]
  }'
```

Strix does not select `desktop_app` automatically. You must set it.

You can add these optional fields:

* `domain_ids`: the backend domains that Strix can attack.
* `repository_ids`, or a source ZIP in `upload_ids`: the source code of the app. Strix uses it to help the review.

**Required scope:** `scans:write`

## Launch rules

Strix returns `400` when:

* A `desktop_app` pentest has no completed application upload.
* A `desktop_app` pentest has more than one application upload.
* A `desktop_app` pentest has internal targets or a container image.
* A different engagement type has an application upload.

Strix returns `403` when the workspace is not on the Pro or Enterprise plan.

A desktop app pentest cannot run on a schedule. Start a new pentest for each build.

## Results

The report shows static coverage and live coverage separately. If the app did not start in the sandbox, the report says so, and the findings come from the static review only.

To let the app start in the sandbox, Strix can disable the Chromium process sandbox and open local debugger ports. These are test conditions. Strix does not report them as findings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.