Scanner deep dive
Webhook
Posts found-secret notifications to an HTTP endpoint so other systems can subscribe.
Is Webhook the right fit?
- Sends to
- Any HTTPS URL you choose
- Follow-up when rotated or resolved
- Yes, with notifyOnRotation
- Signed payloads
- Yes, with a token (X-Hub-Signature)
- Heartbeat
- Yes: every 1, 2, 6, 12 or 24 hours
- Reaches the leaker
- Source metadata can include an author email
When a secret is found
An HTTP POST to your URL for each new secret.
When a new secret is found, an HTTP POST payload will be sent to the webhook’s configured URL.
When it’s rotated Follow-up alert
Turn on Notify on rotation (notifyOnRotation) to get a second POST when the secret is rotated. It is off in the docs’ example.
notifyOnRotation Set to true to send follow-up webhook notification when secret is rotated
Read from Truffle’s docs page, updated 01 Jun 2026. “No” means the page documents no such option.
Need something else? Other notifiers (Atlas advice)
- A ticket for the team that owns the fix: Jira. One issue per secret, in the project you choose.
- A chat alert for the security team: Slack. Posts each finding to a channel through its webhook URL.
- An email, copying whoever committed the secret: Email. ccLeaker adds the leaker when their email is available where the secret was found.
- Scanner logs, or local testing: Stdout. Writes findings to the scanner's own output. Self-hosted only; also in open source.
What the Webhook payload looks like
Filesystem
{
"SourceType": "SOURCE_TYPE_FILESYSTEM",
"Metadata": {
"Data": {
"Filesystem": {
"file": "/Users/‹username, left out›/go/src/github.com/org/repo/file"
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET",
"Verified": false
}Microsoft Teams
{
"SourceType": "SOURCE_TYPE_TEAMS",
"Metadata": {
"Data": {
"Teams": {
"channelID": "channel-1",
"channelName": "some channel",
"timestamp": "2020-05-01T00:00:00Z",
"userId": "user-1",
"link": "https://teams.microsoft.com/l/message/19:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"file": "file-1",
"email": "test@microsoft.com"
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET",
"Verified": false
}GitHub
{
"SourceType": "SOURCE_TYPE_GITHUB",
"Metadata": {
"Data": {
"Github": {
"link": "https://github.com/org/repo/blob/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/file",
"username": "user-1",
"repository": "repo-1",
"commit": "ae3e9d0f0516d52113386c1e75032536143a241c",
"email": "test@example.com",
"file": "file.txt",
"timestamp": "2020-05-01T00:00:00Z",
"line": 42
}
}
},
"SecretType": "Github",
"Secret": "OTHERSECRET",
"Verified": true
}JIRA
{
"SourceType": "SOURCE_TYPE_JIRA",
"Metadata": {
"Data": {
"Jira": {
"issue": "issue-1",
"author": "user-1",
"location": "https://ourbusiness.atlassian.net/browse/issue-1",
"email": "user-1@atlassian.net",
"timestamp": "2020-05-01T00:00:00Z"
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET",
"Verified": false
}BitBucket
{
"SourceType": "SOURCE_TYPE_BITBITBUCKET",
"Metadata": {
"Data": {
"Bitbucket": {
"file": "file-1",
"repository": "repo-1",
"workspace": "workspace-1",
"snippetId": "snippet-1",
"title": "title-1",
"commit": "ae3e9d0f0516d52113386c1e75032536143a241c",
"email": "user-1@atlassian.net",
"link": "https://bitbucket.org/workspace-1/repo-1/src/ae3e9d0f0516d52113386c1e75032536143a241c/file-1",
"timestamp": "2020-05-01T00:00:00Z",
"line": 42
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET",
"Verified": false
}Confluence
{
"SourceType": "SOURCE_TYPE_CONFLUENCE",
"Metadata": {
"Data": {
"Jira": {
"page": "page-1",
"space": "space-1",
"version": "version-1",
"link": "http://confluence.example.com/pages/viewpage.action?pageId=page-1",
"email": "user-1@atlassian.net",
"timestamp": "2020-05-01T00:00:00Z"
}
}
},
"SecretType": "Github",
"Secret": "OTherSecret",
"Verified": true
}GitLab
{
"SourceType": "SOURCE_TYPE_GITLAB",
"Metadata": {
"Data": {
"Gitlab": {
"file": "file-1",
"link": "https://gitlab.com/org/repo/blob/ae3e9d0f0516d52113386c1e75032536143a241c/file-1",
"repository": "repo-1",
"line": 42,
"timestamp": "2020-05-01T00:00:00Z",
"commit": "ae3e9d0f0516d52113386c1e75032536143a241c",
"email": "test@example.com"
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET",
"Verified": false
}Slack
{
"SourceType": "SOURCE_TYPE_SLACK",
"Metadata": {
"Data": {
"Slack": {
"channelID": "channel-1",
"channelName": "some channel",
"timestamp": "2020-05-01T00:00:00Z",
"userId": "user-1",
"link": "https://slack.com/app_redirect?channel=channel-1",
"file": "file-1",
"email": "test@slack.com"
}
}
},
"SecretType": "Github",
"Secret": "SOMESECRET42",
"Verified": true
}‹…› marks a value left out because it identifies a real account or person. Everything else is as published, placeholders included.
What Truffle’s page says
When a new secret is found, an HTTP POST payload will be sent to the webhook’s configured URL.
What it shows
- Every example uses placeholder values: SecretType is always Github, and Secret is a word such as SOMESECRET, so the docs don’t show whether a real payload carries the raw secret.
- Metadata.Data holds one object named after the source, with that source’s own fields: a file path, a link, a commit, an author email, a line number and so on.
- The BitBucket example’s SourceType reads SOURCE_TYPE_BITBITBUCKET, and the Confluence example nests its fields under "Jira". Both are as published.
- The docs don’t show the rotation follow-up or a heartbeat payload.
Copied from the example payloads on Truffle’s Webhook docs page, one per source tab, with the docs’ own placeholder values. The only change is a local username in the Filesystem path, marked ‹left out›. Read 2026-11-27. See the original on the docs page
Decide before you set up
Each question below sets one or more settings. Work through them with whoever owns the receiving system.
1. What will receive the findings?
- Receiver URL · Hosted: form field “URL” · Config:
url
- Truffle docsEach new secret arrives as an HTTP POST to this URL.
- Truffle docsThe payload has a Secret field. The docs’ examples use placeholders, so they don’t show whether it carries the raw value. Treat the receiver and its logs as sensitive.
- MicrosoftMicrosoft Teams Workflows webhooks take Adaptive Card or MessageCard payloads, not this JSON, so Teams needs something in between. Source
- Atlas adviceA receiver you control, such as a SOAR, SIEM or small service, can check the signature and route findings.
- Receiver URL · Hosted: form field “URL” · Config:
2. How will the receiver know a request is genuine?
- Signing token · Hosted: form field “Token” · Config:
token - Base64 token · Hosted: form field “Token is base64 encoded” · Config:
base64EncodedToken - Signature method · Hosted: Not in the hosted form · Config:
signatureMethod
- Truffle docsWith a token set, TruffleHog sends an X-Hub-Signature header: a SHA-256 hash of the token followed by the body. Your receiver must recompute and compare it.
- Truffle docsReceivers that don’t accept X-Hub-Signature, such as Sumo Logic, can use a pre-signed URL instead.
- Hosted appThe hosted form doesn’t offer Signature method. (hosted)
- Atlas adviceKeep the token in a secret manager on both ends, and plan how you’ll rotate it.
- Signing token · Hosted: form field “Token” · Config:
3. Should the receiver hear when a secret is rotated?
- Rotation follow-up · Hosted: form field “Notify on rotation” · Config:
notifyOnRotation
- Truffle docsRotation follow-up sends a second notification when the secret is rotated.
- Atlas adviceSend a test before building automation on it, so you know how a follow-up differs from a new finding.
- Rotation follow-up · Hosted: form field “Notify on rotation” · Config:
4. How will you notice if notifications stop?
- Heartbeat · Hosted: form field “Heartbeat interval (optional)” · Config:
heartbeatInterval
- Truffle docsA heartbeat every 1, 2, 6, 12 or 24 hours shows the notifier is alive; 0 turns it off.
- Hosted appThe hosted form showed “None - heartbeat disabled”, so choose an interval there if you want one. (hosted)
- Atlas adviceAlert when a heartbeat is late. That catches a moved URL or a broken receiver before findings go missing.
- Heartbeat · Hosted: form field “Heartbeat interval (optional)” · Config:
5. Which findings should be sent?
- Unverified findings · Hosted: Not in the hosted forms captured · Config:
sendUnverified - Which sources · Hosted: Not in the hosted forms captured · Config:
sourcesToNotify
- Hosted appNeither setting appears in the hosted forms captured. (hosted)
- Truffle docsWhich sources defaults to the sources in the same config file; you can pick ALL or a list instead. (self-hosted)
- Atlas adviceIf the receiver starts automation, decide whether unverified findings should start it too.
- Unverified findings · Hosted: Not in the hosted forms captured · Config:
What you’ll fill in
Choose where your scanner runs to see the hosted form fields or the config keys.
Share these questions
0 of 5 answered. Copy them as a Markdown checklist, with your answers and sources, for a ticket or chat thread.
Not answered by the docs yet
- Whether the payload's Secret field carries the raw secret or a redacted value. The docs' examples show placeholder values only.
- Whether Bitbucket snippets are scanned: the Bitbucket example payload has a snippetId field, but the Bitbucket source page describes repositories only.
- What a heartbeat payload looks like.
“Atlas advice” is this site’s suggestion, not Truffle’s. Every setting is in the full settings table.
Send Webhook findings to Sumo Logic
Send each finding from TruffleHog’s Webhook notifier into a Sumo Logic HTTP Logs and Metrics Source, where you can search it, alert on it and, with Cloud SIEM, correlate it.
What you need
- Truffle docs
TruffleHog Enterprise. The Webhook notifier isn’t in the open-source CLI.
This feature is only available with TruffleHog Enterprise.
Truffle’s Webhook page - Sumo Logic docs
A Sumo Logic Hosted Collector you can add a source to, and someone who can manage collection.
In the Collectors page, click Add Source next to a Hosted Collector.
Sumo Logic: HTTP Logs and Metrics Source - Atlas advice
A place to keep the source’s URL as a secret, such as your secret manager. Whoever has the URL can send data to the source.
Set it up
- 1Sumo Logic docs
In Sumo Logic, open Collection, choose Add Source next to a Hosted Collector, and pick HTTP Logs & Metrics.
Select HTTP Logs & Metrics.
Sumo Logic: HTTP Logs and Metrics Source - 2Sumo Logic docs
Give it a name and a Source Category, such as security/trufflehog. Searches and alerts can then pick out TruffleHog findings by category.
Category metadata is stored in a searchable field called _sourceCategory.
Sumo Logic: HTTP Logs and Metrics Source - 3Atlas advice
Turn on One Message Per Request. TruffleHog sends one POST for each new secret, so each request is one finding, and its JSON stays one message even across lines.
When a new secret is found, an HTTP POST payload will be sent to the webhook’s configured URL.
Truffle’s Webhook pageSelect this option if you'll be sending a single message with each HTTP request.
Sumo Logic: HTTP Logs and Metrics Source - 4Sumo Logic docs
If the payload may carry the raw secret, add a mask rule so Sumo Logic stores # in its place. The masked part must be a capture group; this one matches the Secret field in all eight of Truffle’s sample payloads and leaves SecretType alone.
"Secret"\s*:\s*"([^"]+)"A mask rule is a type of processing rule that hides irrelevant or sensitive information from logs before ingestion.
Sumo Logic: Mask RulesExpressions that you want masked must be expressed as a capture group in the regex.
Sumo Logic: Mask Rules - 5Sumo Logic docs
If your account has Cloud SIEM, tick Forward to SIEM to send the findings there too.
Click the checkbox to send the logs collected by the source to Cloud SIEM.
Sumo Logic: HTTP Logs and Metrics Source - 6Sumo Logic docs
Save, and copy the Presigned URL. Sumo Logic also offers a URL plus an x-sumo-token header, but Truffle’s Webhook settings have no field for extra headers, so use the presigned URL.
Presigned URL. Select to copy a presigned URL with embedded authentication.
Sumo Logic: HTTP Logs and Metrics SourceToken to be used for authentication in an authorization header.
Sumo Logic: Upload Logs to an HTTP Source - 7Truffle docs
In TruffleHog, add a Webhook notifier and paste the presigned URL as its URL (config key url). Sumo Logic doesn’t check X-Hub-Signature, so Truffle’s docs point to the presigned URL for it; a signing token adds nothing Sumo Logic verifies.
For platforms such as Sumo Logic that do not accept X-Hub-Signature headers natively, then you may need to provide a pre-signed URL instead.
Truffle’s Webhook page - 8Truffle docs
Turn on Notify on rotation to get a second event when the secret is rotated, and a heartbeat so silence means something.
notifyOnRotation | Set to true to send follow-up webhook notification when secret is rotated
Truffle’s Webhook pageheartbeatInterval | One of: 0, 1, 2, 6, 12, 24. Set to 0 to disable heartbeats, set to any other value to enable heartbeats
Truffle’s Webhook page
Check it works
- Sumo Logic docs
Watch the source in Live Tail while the first finding or heartbeat arrives. Search can lag behind while data is indexed.
To immediately validate the reception of log data use Live Tail.
Sumo Logic: Upload Logs to an HTTP Source - Atlas advice
Then search for the findings and pull out the payload’s fields. Key names are case-sensitive, so match the payload: SourceType, SecretType, Verified.
_sourceCategory=security/trufflehog | json "SourceType", "SecretType", "Verified"Category metadata is stored in a searchable field called _sourceCategory.
Sumo Logic: HTTP Logs and Metrics Source
Watch out for
- Sumo Logic docs
If an Ingest Budget stops the collector, Sumo Logic drops the data but still answers 200, so TruffleHog sees success. Alert in Sumo Logic when heartbeats stop arriving.
When an Ingest Budget instructs a Hosted Collector to stop collecting data, HTTP Sources will drop data requests and still return a 200 response.
Sumo Logic: Troubleshooting HTTP Sources - Sumo Logic docs
When the account is over its burst rate, Sumo Logic answers 429 and drops the data; the sender must resend it. Truffle’s docs don’t say whether the webhook retries.
Data will be dropped during throttling. In that case, the sending HTTP client must re-send the data that was dropped
Sumo Logic: Troubleshooting HTTP Sources - Sumo Logic docs
The presigned URL is the credential. To rotate it, regenerate the URL in Sumo Logic, which kills the old one at once, then paste the new one into TruffleHog. A 401 right after regenerating can clear in a few minutes.
Generating a new URL completely invalidates the old URL.
Sumo Logic: Generate a New URL for an HTTP SourceIf you see a 401 (failed to authenticate) error message right after generating a new URL, wait a few minutes, then try the new URL again.
Sumo Logic: Generate a New URL for an HTTP Source - Sumo Logic docs
Sumo Logic says a token in a header is safer than one in the URL. TruffleHog’s webhook can’t send that header, so keep the URL out of tickets, chat and screenshots.
This option provides greater security than a presigned URL because placing the authentication token in the authorization header of a request prevents the token from being exposed in the URL.
Sumo Logic: HTTP Logs and Metrics Source
Open questions for Truffle
- Does the webhook retry when the receiver answers 429 or 5xx? Sumo Logic drops throttled data and expects the sender to resend it.
- Is each POST body one JSON object, and with which Content-Type? That decides how Sumo Logic splits and parses it.
- What does a heartbeat payload look like, so a Sumo Logic alert can watch for it stopping?
- Does the Secret field carry the raw secret? If not, the mask rule isn’t needed.
Sumo Logic quotes from Sumo Logic’s documentation source on GitHub (SumoLogic/sumologic-documentation), the text published on help.sumologic.com, version e0c97ff (MIT), read 2026-11-27. Truffle quotes from its Webhook page. The steps combine both; the Atlas hasn’t run this setup end to end. Sumo Logic docs source
Notification use case
Hand a finding to a remediation workflow
Configure the Webhook notifier with your team’s receiving endpoint. Have the receiver route an incoming finding to the responsible owner.
Related incident · No sourced report linked to Webhook yet.
Setup steps and settings reference
Notification setup guide
Local configuration
- 1Agree on the receiving URL and prepare it to accept the notifier’s HTTP POST payload.
- 2If using signed notifications, configure the matching token and signature method at both ends. Check the documented receiver requirements for integrations that use a pre-signed URL.
Suggested contact (Atlas suggestion) · Receiving application owner and findings triage team
Suggested first check (Atlas suggestion) · Check a sample POST against the receiver’s expected payload and signing configuration.
Setup reference checked 2026-11-22 · Scanner Configuration
Settings reference
Docs pageAuthentication methods
- token
What it sends
- HTTP POST payload
Payload fields
- SourceType
- Metadata
- SecretType
- Secret
- Verified
Capabilities
No Capabilities table.
Limits and docs issues
- Docs issue: the Bitbucket example payload's source type reads SOURCE_TYPE_BITBITBUCKET.
Settings
Behavior from Truffle’s docs. Hosted labels are from the app on 2026-11-24 and may change. Pairing a form label with a config key is the Atlas’s reading; most are near-literal.
| Setting | What it does | Hosted form | Config key |
|---|---|---|---|
| Receiver URL | The webhook endpoint to send the notification to | “URL” | url |
| Signing token | Token used to sign each payload in X-Hub-SignatureLeave it out for pre-signed URLs, per the docs. | “Token” | token |
| Base64 token | Set if the token is base64-encoded | “Token is base64 encoded” | base64EncodedToken |
| Signature method | sha256 (default) or hmac-sha256 | Not in the hosted form | signatureMethod |
| Rotation follow-up | Sends a follow-up notification when the secret is rotated | “Notify on rotation” | notifyOnRotation |
| Heartbeat | 0 (off), 1, 2, 6, 12 or 24 hoursThe hosted form showed “None - heartbeat disabled”. | “Heartbeat interval (optional)” | heartbeatInterval |
| NameShared | A label for this connection | “Name” | name |
| Custom message prefixShared | Your text added to each notification | “Custom message prefix (optional)” | customText |
| Link to the findingShared | Adds a link to the secret in TruffleHog | “Include secret link in notification” | includeSecretLink |
| Which sourcesShared | ALL, SOURCES_IN_THIS_CONFIG (default) or a list of sources in the config | Not in the hosted forms captured | sourcesToNotify |
| Unverified findingsShared | Also send findings TruffleHog couldn’t confirm are live | Not in the hosted forms captured | sendUnverified |
- Enterprise only.
- Platforms that reject X-Hub-Signature headers, like Sumo Logic, may need a pre-signed URL.
- This feature is only available with TruffleHog Enterprise.
Provider docs
The provider’s own pages for setting this up. Checked 2026-11-25.
- Call or trigger workflows with HTTP endpoints in Azure Logic Apps · Microsoft · notifier. A Logic App trigger URL, authenticated by a SAS signature in its query string.
- Create an incoming webhook (Microsoft Teams Workflows) · Microsoft · notifier. Teams Workflows webhooks accept Adaptive Card or MessageCard payloads, not this webhook’s JSON.
Recent changes
From TruffleHog’s release notes, after review. Tags show whether each change is in Enterprise, open source, or both.
2 release-note items mention this connector. The Atlas hasn’t checked them yet, so they aren’t listed here. See all release notes
Sources and related tools
Evidence
Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so.
- Notifier docs pageUpdated 01 Jun 2026