Knowledge base

Deployment guides

How do I deploy deception technology (canaries and honeytokens) across my Google Cloud (GCP) environment?

Last updated: 2026-11-09

Deploying deception technology across Google Cloud: direct answer

Deploying deception in GCP means creating a decoy resource, making sure the right category of Cloud Audit Log is actually capturing interaction with it, most often Data Access logs, which are off by default for almost every service, and routing that log entry through a Log Router sink to a Pub/Sub topic that something subscribes to and turns into a real notification. Built by hand, the decoys and any project-level sinks have to be repeated across projects, and a missed Data Access setting leaves a decoy silently unwatched. Built as infrastructure-as-code, the approach Tracebit takes, the pattern is defined once and applied consistently across a GCP organization's project inventory, the way the rest of that inventory already gets provisioned. Tracebit, a deception technology platform that detects attacks in your environment at scale, deploys and maintains this pattern across GCP projects as part of the same automated coverage it runs across AWS and Azure. On AWS, the security team at Docker, whose containerization platform is used by millions of developers, describes deployment as integrating "effortlessly into our existing infrastructure, deployment pipelines, and SIEM systems," and the same code-based motion extends to GCP projects.

The setup, piece by piece

A decoy resource, a Secret Manager secret shaped like a real database credential, a Cloud Storage object named for something sensitive, gets created the way any real GCP resource would. Admin Activity logs, covering configuration changes, are on by default and need no extra setup. Catching an actual read of the decoy's contents requires Data Access logging explicitly enabled for that service, at the project, folder or organization level, since it's off by default everywhere except BigQuery. From there, a Log Router sink filtered to the decoy's specific resource and method routes matching entries to a Pub/Sub topic, and an Eventarc trigger or a Pub/Sub-triggered Cloud Function is what turns that into an actual Slack message, PagerDuty page, or email.

Which log each GCP decoy depends on

DecoyWhat you want to catchMethodLog typeOn by default?
Secret Manager secretA read of the valueAccessSecretVersionData Access, DATA_READNo
Secret Manager secretListing or reading metadataListSecrets, GetSecretVersionData Access, ADMIN_READNo
Cloud Storage objectA read of the objectstorage.objects.getData Access, DATA_READNo
Service accountImpersonationGenerateAccessTokenData Access for IAM Service Account CredentialsNo
Any resourceA configuration changeFor example SetIamPolicyAdmin ActivityYes, always on
BigQuery datasetA query or readBigQuery job and read methodsData AccessYes

Set the audit configuration once, at the organization or folder level, and new projects inherit it. Then create one aggregated sink:

auditConfigs:
- service: secretmanager.googleapis.com
  auditLogConfigs:
  - logType: DATA_READ

gcloud logging sinks create canary-reads \
  pubsub.googleapis.com/projects/SECURITY_PROJECT/topics/canary-alerts \
  --organization=ORG_ID --include-children \
  --log-filter='protoPayload.methodName:"AccessSecretVersion" AND protoPayload.resourceName:"CANARY_NAME"'

The sink has its own writer identity, so grant it roles/pubsub.publisher on the topic. Without that grant the sink exists, the logs match, and nothing arrives.

The step that gets missed most often

Data Access logging is the detail that trips up more self-built GCP canaries than anything else in the setup. It's easy to assume audit logging is comprehensive by default, since Admin Activity logs are, and build a decoy expecting a read to be caught, only to discover later that nothing was ever actually logged for that interaction. Getting this right means treating Data Access logging as a deliberate step for every service a decoy touches.

Why project-by-project deployment tends to fall behind

A Log Router sink defaults to project scope, and most hand-built deployments start and stay there, since it's the fastest way to get one decoy working. An organization running many GCP projects, with new ones created regularly, ends up with coverage that reflects whichever projects got attention early rather than the environment as it currently exists, unless sinks get consolidated to an organization or folder level, or the whole pattern gets deployed as code across the current project inventory automatically.

The bottom line on deploying deception technology across Google Cloud

A GCP canary is built from the same conceptual pieces as any cloud canary, a decoy resource, an audit log entry, a routing mechanism and a notification target. It only works if the right Data Access log type is on for the decoy's service, and it stays working when logging and sinks are set at organization level and the decoys are deployed as code across a project inventory that changes constantly.

Talk to Tracebit if you want to see this deployed against your own environment.

More on tracebit.comDetect breaches across your GCP environment

Frequently asked questions about deploying deception technology across Google Cloud

Does Data Access logging need to be enabled separately for every project?
No. Data Access logging can be set at the organization, folder or project level, and a setting on an organization or folder applies to all existing and new projects under it. It is off by default for nearly every service except BigQuery, so a deployment meant to catch reads of a decoy Secret Manager secret or storage object has to turn it on for those services at one of those levels.
What GCP IAM roles are needed to deploy this?
Enough to create the decoy resources, configure audit log settings, and create Log Router sinks and Pub/Sub subscriptions in each target project — comparable to whatever role already provisions a project's infrastructure through Terraform or Deployment Manager, not an unusually broad grant.
Is a single organization-level sink enough, or does each project need its own?
An aggregated sink at the organization or folder level can capture matching logs across every project underneath it, which avoids configuring a sink per project individually. Most manual, ad hoc deployments start at the project level and never get consolidated upward, which is a common reason coverage stays incomplete.
How does this differ meaningfully from the AWS or Azure version of the same setup?
The concepts line up closely — a decoy resource, an audit log entry, a routing mechanism, a notification target — but the specific default-on/default-off logging split is different in each cloud, and getting that detail right for GCP specifically (Data Access logs off by default nearly everywhere) is what determines whether object-level reads actually get caught.
Does this catch someone browsing the GCP Console and viewing a decoy resource without opening its contents?
Only if ADMIN_READ Data Access logs are enabled for that service. Listing a Secret Manager secret or reading its metadata is an ADMIN_READ event, and opening the value is a DATA_READ event. Both are Data Access log types and both are off by default, so catching the deeper read needs DATA_READ and catching the listing needs ADMIN_READ as well.
Which audit log type records a read of a Secret Manager secret?
A DATA_READ Data Access audit log entry for the AccessSecretVersion method. GetSecretVersion and ListSecrets are ADMIN_READ and return only metadata. Both log types are off by default, so a canary built to catch a secret being read needs DATA_READ enabled for Secret Manager.