TruffleHog Schema#

        graph LR
    

TruffleHogFinding#

A secret that TruffleHog found in a container image.

One finding exists per image, layer, file, and secret, so the same credential baked into several images yields one finding per image. TruffleHog reports are ingested from files rather than by running the binary, so there is no tenant-like node to scope cleanup to. Stale findings are removed across the graph, and only when every report was read, so a run must include a report for each image whose findings should stay.

Ontology Mapping: This node uses the ontology label SecurityIssue.

Properties#

Ontology-generated fields are shown in italics.

Field

Index

Description

id

Yes

Synthetic finding identifier. TruffleHog does not emit a stable finding ID, so this is a hash of the image digest, layer, file, detector, decoder, redacted identifier, and the finding’s position among results that share all of those. No secret value is part of it.

firstseen

Timestamp when a sync job first created this node.

lastupdated

Yes

Timestamp of the last sync that observed this node.

account

Provider account the credential belongs to, when TruffleHog can tell. For AWS this is the account ID decoded from the access key ID.

arn

ARN of the principal the credential authenticates as. Set only after successful AWS verification.

aws_access_key_id

Yes

AWS access key ID of the exposed credential. Set only for AWS findings.

decoder_name

Decoder that exposed the secret, such as PLAIN or BASE64. A value other than PLAIN means the secret was encoded in the file.

detector_description

TruffleHog’s description of the service the credential belongs to.

detector_name

Yes

Name of the TruffleHog detector that matched, such as AWS or Github.

detector_type

Numeric TruffleHog detector type.

file_path

Path of the file inside the image layer that contains the secret. Secrets found in the image build history use a synthetic path such as image-metadata:history:3:created-by.

image

Repository of the scanned image, as TruffleHog reported it.

image_digest

Yes

Manifest digest of the scanned image.

is_canary

Whether TruffleHog recognized the credential as a known canary token.

layer_digest

Digest of the image layer that contains the secret. The secret stays in the image even when a later layer deletes the file.

redacted

Display-safe identifier TruffleHog reports for the secret, such as an AWS access key ID or a URI with its password masked. Empty for detectors that have no safe identifier. Raw secret values are never stored.

resource_type

Kind of credential TruffleHog matched, such as Access key.

rotation_guide

Link to instructions for rotating this kind of credential.

title

Short title naming the kind of credential, such as AWS credential.

verification_error

Error TruffleHog hit while verifying the credential. When set, TruffleHog could not tell whether the credential works.

verified

Yes

Whether TruffleHog confirmed with the provider that the credential works. false when verification was off, the provider rejected the credential, or verification failed with an error.

_ont_source

Module that populated this node’s ontology fields.

_ont_title

Yes

Normalized field sourced from title.

_ont_type

Yes

Normalized field sourced from detector_name.

Relationships#

  • (:TruffleHogFinding)-[:AFFECTS]->(:AWSAccountAccessKey): Links an AWS finding to the IAM access key it leaks, which is the asset the finding affects.

The match uses the access key ID alone, so it holds whether or not TruffleHog verified the key, and it resolves only when the AWS module has ingested the account that owns the key.

  • (:TruffleHogFinding)-[:AFFECTS]->(:Image): Links a TruffleHog finding to the ontology image it was found in.