Ethiack Docs

IP Address Validation

On Ethiack tests, we need to ensure that you own public IP addresses before adding them to scope.

Find out how to validate public IP addresses

On Ethiack tests, we need to ensure that you own public IP addresses before adding them to scope.

In order to do so, we need you to verify it by sending a request to our API by following the steps below.

  1. In the Ethiack Portal, go to Settings → API and create an API key. Copy it when it's shown: the key is displayed only once.

  2. Retrieve your organization ID with the command:

    curl -H "Authorization: Bearer [API_KEY]" https://api.ethiack.com/v1/organizations/
  3. Send a POST request from the IP address you want to add:

    curl -X POST https://api.ethiack.com/v1/assets/ \
    --header "Authorization: Bearer [API_KEY]" \
    --header 'Content-Type: application/json' --data '{
      "organization_id": [ORGANIZATION_ID],
      "asset_value": "[IP_ADDRESS]",
      "asset_type": "ip"
    }'

Ensure to replace [API_KEY] with the key created in step 1, [ORGANIZATION_ID] with your organization's id from step 2, and [IP_ADDRESS] with the current IP address. Once added, the IP address becomes part of your assets and can then be included in scope on the Ethiack Portal or through the API. If the request is refused, double-check that [IP_ADDRESS] matches the address you're sending the request from. For troubleshooting, you can use curl ifconfig.me.

Legacy API key and secret credentials still work in place of the Authorization header, as curl -u [API_KEY]:[API_SECRET], but they are deprecated. Create a new API key to replace them.

You can find the documentation of the Ethiack API here.

On this page