StackHawk
Visualize StackHawk Organization, User, Application, Code Repository, and Application Findings, and monitor changes through queries and alerts.
- Installation
- Authorization
- Data Model
- Types
- Release Notes
Installation
Requirements
- A StackHawk user whose role grants organization-wide read access to members, applications, repositories, and findings. The least-privilege role that covers every read this integration performs is View Only; Admin and Owner also work.
- A personal API key created by that user. StackHawk service keys are not supported, because the Scan Only role they carry cannot read findings or manage applications.
- Permission in JupiterOne to install new integrations.
A StackHawk API key inherits the permission set of the user who created it, so create the key with a user who holds the required role.
Configuration in StackHawk
Generate an API key and collect your Organization ID
- Sign in to your StackHawk account at https://app.stackhawk.com.
- Navigate to Settings > API Keys.
- Create a new API key. The key is long-lived, so store it securely.
- Find your Organization ID under Settings > Organization Details.
Configuration in JupiterOne
- From the top navigation of the J1 Search homepage, select Integrations.
- Search for StackHawk and select it.
- Select Add Instance and configure the following settings:
- Enter the API Key you generated in StackHawk.
- Enter the Organization ID you collected from StackHawk.
- Enter the Account Name by which you'd like to identify this StackHawk
instance in JupiterOne. Ingested entities will have this value stored in
tag.AccountNamewhen Tag with Account Name is enabled. - Enter a Description that will further assist your team when identifying the integration instance.
- Select a Polling Interval that you feel is sufficient for your monitoring
needs. You may leave this as
DISABLEDand manually execute the integration.
- Select Create Instance once all values are provided.
Next steps
Now that your integration instance has been configured, it will begin running on the polling interval you provided, populating data within JupiterOne. Continue on to our Instance management guide to learn more about working with and editing integration instances.
Permissions
IAM permissions that must be granted to the integration principal for data ingestion.
Show Permissions (4)
read:applicationread:memberread:reportread:repository
Endpoints
API endpoints that the integration makes requests to.
Show Endpoints (4)
https://api.stackhawk.com/api/v1/org/{organizationId}/membershttps://api.stackhawk.com/api/v1/org/{organizationId}/reposhttps://api.stackhawk.com/api/v1/reports/org/{organizationId}/findingshttps://api.stackhawk.com/api/v2/org/{organizationId}/apps
Documentation Links
Links to provider documentation relevant to setup and configuration.
Show Documentation Links (4)
Per-Step Breakdown
Detailed authorization requirements for each ingestion step.
Show all steps (2)
| Step | Permissions | Endpoints |
|---|---|---|
| Fetch Code Repositories | read:repository | https://api.stackhawk.com/api/v1/org/{organizationId}/repos |
| Fetch Findings | read:report | https://api.stackhawk.com/api/v1/reports/org/{organizationId}/findings |
Entities
The following entities are created:
| Resources | Entity _type | Entity _class |
|---|---|---|
| Application | stackhawk_application | Application |
| CodeRepo | stackhawk_code_repo | CodeRepo |
| Finding | stackhawk_finding | Finding |
| Organization | stackhawk_account | Account |
| User | stackhawk_user | User |
Relationships
The following relationships are created:
Source Entity _type | Relationship _class | Target Entity _type |
|---|---|---|
stackhawk_account | HAS | stackhawk_user |
stackhawk_account | HAS | stackhawk_application |
stackhawk_application | HAS | stackhawk_code_repo |
stackhawk_application | HAS | stackhawk_finding |
Stackhawk Account
stackhawk_account inherits from Account
| Property | Type | Description | Specifications |
|---|---|---|---|
orgId * | string |
Stackhawk Application
stackhawk_application inherits from Application
| Property | Type | Description | Specifications |
|---|---|---|---|
environment * | string | ||
environmentId * | string | ||
organizationId * | string | ||
riskLevel | string |
Stackhawk Code Repo
stackhawk_code_repo inherits from CodeRepo
| Property | Type | Description | Specifications |
|---|---|---|---|
apiDiscoveryScore | number | The StackHawk API Discovery Score. | |
apiDiscoveryStatus | string | The StackHawk API Discovery Status. | |
archived | boolean | ||
commitCount | number | ||
frameworkNames | array of strings | ||
hasGeneratedOpenApiSpec | boolean | ||
hidden | boolean | Whether or not this repository is hidden. | |
integrationId | string | The Integration Id this repository is associated to. | |
isFork | boolean | Whether or not this repository is a fork. | |
isInAttackSurface | boolean | ||
isNewRepository | boolean | ||
isNewToAttackSurface | boolean | ||
lastCommitBranch | string | ||
lastCommitTimestamp | number | ||
namespace | string | Provider dependent, namespace/group/subgroup/folder the repository belongs to. | |
namespaceId | string | ||
providerOrgId | string | ||
providerOrgName | string | The repository providers top level entity this repository is associated with. | |
repoSource | string | The source of the repository. e.i. UNKNOWN, GITHUB, AZURE_DEVOPS, BITBUCKET, GITLAB. |
Stackhawk Finding
stackhawk_finding inherits from Finding
| Property | Type | Description | Specifications |
|---|---|---|---|
applicationId | string | ||
applicationName | string | ||
cweId | string | ||
environmentId | string | ||
environmentName | string | ||
findingEvidence | string | ||
findingMethod | string | ||
findingOtherInfo | string | ||
findingUrl | string | ||
firstSeenOn | number | ||
lastSeenOn | number | ||
pluginId | string | ||
pluginName | string | ||
remediationAdvice | string | ||
risk | string | ||
scanDuration | number | ||
scanId | string | ||
scanUserName | string | ||
team | string |
Stackhawk User
stackhawk_user inherits from User
| Property | Type | Description | Specifications |
|---|---|---|---|
accessProvider | string | User access provider. For example: GITHUB, GOOGLE, STACKHAWK, SAMLIDP | |
applicationIds | array of strings | ||
avatarUrl | string | ||
providerClientId | string |
Release Notes
- 2025-04-10 — Added StackHawk integration, ingesting applications, scans, and vulnerability findings with organization and user relationships.