> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/h/hackerone.md).

# HackerOne

HackerOne is a bug bounty and vulnerability disclosure platform. OctoXLabs reads the organization members and the assets in scope of your HackerOne programs and adds them to the user and domain inventories.

## Use cases

* List HackerOne organization admins.

```
Adapters = hackerone AND AdminStatus = true
```

* List in-scope URL assets of your programs.

```
Adapters = hackerone AND Type = url
```

## Before you begin

### Network

| Source              | Destination         | Port | Protocol |
| ------------------- | ------------------- | ---- | -------- |
| OctoXLabs connector | `api.hackerone.com` | 443  | HTTPS    |

If you use a proxy, enter it in the Proxy URL parameter.

### Required permissions

| Scope or role                              | Permission                | Needed for |
| ------------------------------------------ | ------------------------- | ---------- |
| Organization admin (creates the API token) | Read organization members | Users      |
| API token of the organization              | Read organization assets  | Domains    |

The vendor instruction says to sign in as an admin user to create the token. The exact token permissions are not verified.

## Create credentials in HackerOne

{% stepper %}
{% step %}

### Open organization settings

Sign in to HackerOne as an admin user and open your organization settings.
{% endstep %}

{% step %}

### Create the API token

Go to **API Tokens**, enter a name and create the token.
{% endstep %}

{% step %}

### Copy the identifier and the value

Copy the token identifier (used as API username) and the token value (used as API token). The value is shown only once. If you lose it, revoke the token and create a new one.
{% endstep %}

{% step %}

### Find the organization ID (optional)

Send `GET /v1/me/organizations` and copy the `id` of your organization. This is only needed when the token has access to more than one organization.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type    | Default | Description                                                                                                                                               |
| --------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Api Username          | Yes      | Text    | None    | Identifier of the API token. Used as the basic authentication username.                                                                                   |
| Api Token             | Yes      | Text    | None    | Value of the API token. Used as the basic authentication password.                                                                                        |
| Organization Id       | No       | Text    | Empty   | Organization to collect. If empty, the first organization returned by `/v1/me/organizations` is used and a warning is logged when there is more than one. |
| Fetch all asset types | No       | Boolean | `false` | By default only `domain`, `url`, `wildcard`, `cidr` and `api` assets are collected. When enabled, all asset types are collected.                          |
| Proxy URL             | No       | Text    | None    | Proxy in `host:port` form. The connector prefixes it with `http://`.                                                                                      |
| Timeout               | No       | Integer | `30`    | Seconds to wait for API responses.                                                                                                                        |

## Troubleshooting

| Error message                                                                                                                                               | Cause                                             | Fix                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ----------------------------------------------------------------------------- |
| `No organization could be read from /v1/me/organizations. Set organization_id in the configuration, or make sure the API token belongs to an organization.` | The organizations call returned no organization.  | Enter the Organization Id or use a token that belongs to an organization.     |
| `Max retries exceeded for <url>`                                                                                                                            | The API kept returning HTTP 429 after 5 attempts. | Run discovery again later. HackerOne limits reads to 600 requests per minute. |

## Change history

{% hint style="info" %}
Available starting from version 6.6.2.
{% endhint %}
