Skip to main content
On Infisical Cloud, Infisical creates each honey token’s decoy credentials in an AWS account that Infisical manages, so you can create honey tokens without connecting an AWS account first. You can also keep the decoy credentials in your own AWS account.

Prerequisites

  • Permission to create honey tokens in the project, which only project Admins have by default
  • If you self-host Infisical, your own AWS account connected to Infisical

Creating a honey token

1
Go to your project’s secrets overview and open the secret path where you want to plant the honey token.
2
Select Add New > Add Honey Token.Add Honey Token
3
Select the type of honey token you want to create.Select Honey Token Type
4
In the Configuration step, choose the Environment to plant the honey token in. Infisical uses the secret path you’re currently in.For AWS account, select Infisical Managed. To use your organization’s own AWS account, or if you self-host Infisical, select Self hosted.Honey Token Environment Step
5
In the Mapping step, enter the names of the secrets that hold the decoy credentials. Infisical creates these secrets in the selected environment and path.
  • Access Key ID: the secret name for the AWS access key ID, such as AWS_ACCESS_KEY_ID.
  • Secret Access Key: the secret name for the AWS secret access key, such as AWS_SECRET_ACCESS_KEY. Honey Token Mapping Step
6
In the Details step, enter details that help you identify the honey token later.
  • Name: a slug-friendly identifier, unique within the selected folder.
  • Description (optional): context for this honey token. Honey Token Details Step
7
In the Alerts step, choose who Infisical notifies when someone uses the honey token. By default, Alert When Triggered is on, with an email to the project’s admins. To change the recipients or add channels, see Get alerted when a honey token is triggered.
8
Select Create Honey Token. Infisical provisions the decoy credentials in the selected AWS account and stores them as secrets in the selected environment and path.
The honey token is now Active. The decoy secrets appear alongside your real secrets and are included in any secret syncs or integrations.

Get alerted when a honey token is triggered

When someone uses a honey token’s credentials to make an AWS API call, Infisical marks the honey token as Triggered, records the event, and sends the honey token’s alert to your team by email, Slack, webhook, or PagerDuty. Project admins also get an in-app notification, even if the honey token has no alert. The alert includes:
  • The name, environment, and path of the honey token
  • The AWS API call that was made, such as GetUser or ListBuckets
  • The source IP address and AWS region
  • The time AWS recorded the call, and the time Infisical received it
  • A link to the honey token in Infisical
If you create a honey token in the Infisical UI and can edit honey tokens in its environment and path, the alert is on by default, with an email to the project’s admins. If a honey token existed before honey token alerts were available, it has the same alert.
To avoid alert fatigue, Infisical sends at most one alert and one in-app notification per honey token every 24 hours. Infisical still records every use of the credentials in the event log.
To set up or change a honey token’s alert, you need permission to edit honey tokens in the honey token’s environment and path.
1
For a new honey token, go to your project’s secrets overview and select Add New > Add Honey Token. For an existing honey token, open the menu on the honey token’s row and select Edit.
2
Go to the Alerts step and make sure Alert When Triggered is on.
3
Select Add channel and set up at least one notification channel. The Project Admins recipient emails members who have the Admin role directly on the project, and All Project Members emails everyone in the project. If someone is an admin only through a group, add the group as a recipient too.
4
Select Create Honey Token for a new honey token, or Update Honey Token for an existing one.
If you create honey tokens through the API, create each honey token’s alert with the Create alert endpoint, using secret.honey-token as the resource type, the honey token’s ID as the resource ID, and secret.honey-token.triggered as the event.

Managing honey tokens

Viewing events

Open a honey token’s detail page to see a chronological log of all trigger events since the last reset. Each event shows the AWS API call, source IP, region, and timestamp. Honey Token View Details

Resetting a triggered token

If a honey token is in Triggered status and you’ve addressed the incident, select Reset to return it to Active status. This hides previous events from the event log view (events are still stored in the database), and Infisical sends an alert the next time someone uses the credentials, without waiting out the 24-hour limit. Honey Token Events

Revoking a honey token

To permanently deactivate a honey token, select Revoke. This will:
  • Delete the IAM user and access key from AWS
  • Remove the decoy secrets from the project
  • Mark the honey token as Revoked
  • Delete the honey token’s alert
Revocation is irreversible. Honey Token Events