Skip to main content

TruffleHog

TruffleHog is a secret scanning platform that detects exposed credentials and sensitive data across repositories, cloud storage, and other sources. You can bring source, secret, and secret definition data from TruffleHog into Brinqa to gain a unified view of your attack surface, thus strengthening your cybersecurity posture.

This document details the information you must provide for the connector to authenticate with TruffleHog and how to obtain that information from TruffleHog. See create a data integration for step-by-step instructions on setting up the integration.

Required connection settings

When setting up a data integration, select TruffleHog from the Connector dropdown. If you cannot find the connector in the dropdown, make sure that you have installed it first. You must provide the following information to authenticate TruffleHog with Brinqa:

  • TruffleHog API Base URL: The base URL for the TruffleHog API (e.g., https://<instance>.trufflehog.com/).
  • API Key: The API key for authenticating requests to the TruffleHog API.
  • API Secret: The API secret for authenticating requests to the TruffleHog API.

The connector authenticates using custom API headers (X-Thog-Key and X-Thog-Secret), supporting TruffleHog's native key/secret authentication scheme.

Additional settings

The TruffleHog connector contains additional options for specific configuration:

  • Page size: The maximum number of records to get per API request. The default setting is 100. It is not recommended to go over 250.
  • Maximum retries: The maximum number of times that the integration attempts to connect to the TruffleHog API before giving up and reporting a failure. The default setting is 5.

Types of data to retrieve

The TruffleHog connector can retrieve the following types of data from the TruffleHog API:

Table 1: Data retrieved from TruffleHog

Connector ObjectRequiredMaps to Data Model
SecretYesViolation
Secret DefinitionYesViolation Definition
SourceYesCloud Resource
info

For detailed steps on how to view the data retrieved from TruffleHog in the Brinqa Platform, see How to view your data.

Attribute mappings

Expand the sections below to view the mappings between the source and the Brinqa data model attributes.

Secret

Table 2: Secret attribute mappings

Source Field NameSDM Attribute
Secret.analyze_idANALYZE_ID
Secret.analyzer_typeANALYZER_TYPE
Secret.created_dateCREATED_DATE
Secret.created_dateSOURCE_CREATED_DATE
Secret.date_rotatedDATE_ROTATED
Secret.distinct_source_namesDISTINCT_SOURCE_NAMES
Secret.distinct_source_typesDISTINCT_SOURCE_TYPES
Secret.idUID
Secret.last_seenLAST_SEEN
Secret.last_verifiedLAST_VERIFIED
Secret.modified_dateMODIFIED_DATE
Secret.modified_dateSOURCE_LAST_MODIFIED
Secret.redactedREDACTED
Secret.secret_locations_countLOCATIONS_COUNT
Secret.secret_typeCATEGORIES
Secret.secret_typeNAME
Secret.secret_typeSECRET_TYPE
Secret.secret_typeTYPE
Secret.triage_stateTRIAGE_STATE
Secret.triage_state (normalized)SOURCE_STATUS
Secret.triage_state or UNKNOWNPROVIDER_STATUS
Secret.user_definedIS_USER_DEFINED
Secret.verifiedIS_VERIFIED
SecretLocation[].account_nameRESULTS
SecretLocation[].azure_containerRESULTS
SecretLocation[].bucketRESULTS
SecretLocation[].build_numberRESULTS
SecretLocation[].build_stepRESULTS
SecretLocation[].channel_identifierRESULTS
SecretLocation[].channel_nameRESULTS
SecretLocation[].channel_visibilityRESULTS
SecretLocation[].commitRESULTS
SecretLocation[].created_dateRESULTS
SecretLocation[].decoder_typeRESULTS
SecretLocation[].emailRESULTS
SecretLocation[].extra_dataRESULTS
SecretLocation[].file_nameRESULTS
SecretLocation[].image_nameRESULTS
SecretLocation[].issueRESULTS
SecretLocation[].layer_hashRESULTS
SecretLocation[].lineRESULTS
SecretLocation[].linkRESULTS
SecretLocation[].locationRESULTS
SecretLocation[].location_metadataRESULTS
SecretLocation[].modified_dateRESULTS
SecretLocation[].orgRESULTS
SecretLocation[].package_nameRESULTS
SecretLocation[].pageRESULTS
SecretLocation[].pipelineRESULTS
SecretLocation[].project_nameRESULTS
SecretLocation[].regionRESULTS
SecretLocation[].registryRESULTS
SecretLocation[].release_nameRESULTS
SecretLocation[].repositoryRESULTS
SecretLocation[].snippet_idRESULTS
SecretLocation[].source.idTARGETS
SecretLocation[].source.nameRESULTS
SecretLocation[].spaceRESULTS
SecretLocation[].tagRESULTS
SecretLocation[].tagTAGS
SecretLocation[].timestampRESULTS
SecretLocation[].titleRESULTS
SecretLocation[].user_idRESULTS
SecretLocation[].usernameRESULTS
SecretLocation[].vcs_typeRESULTS
SecretLocation[].versionRESULTS
SecretLocation[].workspace_nameRESULTS
Generated (sync capture timestamp)LAST_CAPTURED
Secret Definition

Table 3: Secret Definition attribute mappings

Source Field NameSDM Attribute
Secret.rotation_guideRECOMMENDATION
Secret.rotation_guideROTATION_GUIDE
Secret.secret_typeNAME
Secret.secret_typeUID
Generated (sync capture timestamp)LAST_CAPTURED
Source

Table 4: Source attribute mappings

Source Field NameSDM Attribute
Source.idUID
Source.last_completedLAST_COMPLETED
Source.name or Source.idNAME
Generated (set to "Cloud Resource")CATEGORIES
Generated (set to "UNKNOWN")PROVIDER_STATUS
Generated (set to "active")SOURCE_STATUS
Generated (sync capture timestamp)LAST_CAPTURED

Operation options

The TruffleHog connector supports the following operation options:

Table 5: Operation options

Connector ObjectOptionAll Possible ValuesDescriptionExample
Secret,
Secret Definition
secret_typeN/AFilter secrets by secret type for targeted data collection.Key: secret_type Value: AWS. Filter to only retrieve AWS-related secrets.
triage_stateUNTRIAGED, FALSE_POSITIVE, RESOLVED, WILL_NOT_FIXFilter secrets by triage state.Key: triage_state Value: UNTRIAGED. Only retrieve untriaged secrets.
verifiedtrue, falseFilter secrets by verified status.Key: verified Value: true. Only retrieve verified secrets.

APIs

The TruffleHog connector uses the TruffleHog API. Specifically, it uses the following endpoints:

Table 6: TruffleHog API Endpoints

Connector ObjectAPI Endpoint
Secret,
Secret Definition
GET api/v2/secrets
SecretGET api/v2/secret_locations
SourceGET api/v1/sources

Changelog

The TruffleHog connector has undergone the following changes:

Table 7: TruffleHog Changelog

VersionDescriptionDate Published
3.0.0Initial Integration+ release.2026-04-28