Note: This integration is only available to Enterprise programs.
You can configure a Splunk integration to log events from HackerOne in Splunk. The Splunk integration enables data to be logged based on the configured event trigger. This integration is flexible and can be used to log data for any of the following events:
Report submissions
Report state changes (triaged, retesting, resolved, etc.)
Report assigned
Report comments
Report disclosures
Report rewards
Creating the HTTP Event Collector
In the top menu of Splunk, go to Settings > Data Inputs
Click on HTTP Event Collector
Click on New Token
Enter a name and click Next until you have completed the setup of the connector
Copy the token from the overview of data inputs and save it for the next step of the setup
β
Setup on HackerOne
Go to Program Settings > Program > Integrations
Click Connect to Splunk
Click on Set up new integration
Click on New authentication
βIn the popup enter the Event Collector URL and the HEC token (This is the same token you created earlier in the setup). See the information below for details on how to construct the URL.
Click Create to save the authentication
Enter a name for the integration
Click Finish to complete the integration
Now click Enable to start using the integration
Once you've successfully added the integration, you can retrieve data from HackerOne in your Splunk instance.
Constructing the Event Collector URL
The standard form for the HEC URI in Splunk Cloud free trials is as follows:
<protocol>://inputs.<host>:<port>/<endpoint>
The standard form for the HEC URI in Splunk Cloud is as follows:
<protocol>://http-inputs-<host>:<port>/<endpoint>
The standard form for the HEC URI in Splunk Cloud on Google Cloud is as follows:
<protocol>://http-inputs.<host>:<port>/<endpoint>
<protocol>
is either http or httpsYou must add
http-inputs-
before the<host>
<host>
is the Splunk Cloud instance that runs HEC<port>
is the HEC port number8088
on Splunk Cloud free trials443
by default on Splunk Cloud instances<endpoint>
is the HEC endpoint you want to use. In many cases, you use the/services/collector/event
endpoint for JavaScript Object Notation (JSON)-formatted events or theservices/collector/raw
endpoint for raw events
Example Event
Below is an example of an event that gets pushed from HackerOne to Splunk.
{ "data": { "id": "1337", "type": "activity-comment", "attributes": { "message": "Comment!", "created_at": "2016-02-02T04:05:06.000Z", "updated_at": "2016-02-02T04:05:06.000Z", "internal": false }, "relationships": { "actor": { "data": { "id": "1337", "type": "user", "attributes": { "username": "api-example", "name": "API Example", "disabled": false, "created_at": "2016-02-02T04:05:06.000Z", "profile_picture": { "62x62": "/assets/avatars/default.png", "82x82": "/assets/avatars/default.png", "110x110": "/assets/avatars/default.png", "260x260": "/assets/avatars/default.png" } } } }, "attachments": { "data": [ { "id": "1337", "type": "attachment", "attributes": { "expiring_url": "/system/attachments/files/000/001/337/original/root.rb?1454385906", "created_at": "2016-02-02T04:05:06.000Z", "file_name": "root.rb", "content_type": "text/x-ruby", "file_size": 2871 } } ] } } } }
β