Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add docs

Matheus Nogueira7f991db55e7d
diff --git a/docs/docs.json b/docs/docs.json
index c8703ba396..2ba5a8bd5c 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -523,6 +523,14 @@
"documentation/platform/dynamic-secrets/vertica"
]
},
+ {
+ "group": "Honey Tokens",
+ "pages": [
+ "documentation/platform/honey-tokens/overview",
+ "documentation/platform/honey-tokens/setup",
+ "documentation/platform/honey-tokens/usage"
+ ]
+ },
"documentation/platform/webhooks",
"documentation/platform/secret-validation-rules"
]
diff --git a/docs/documentation/platform/honey-tokens/overview.mdx b/docs/documentation/platform/honey-tokens/overview.mdx
new file mode 100644
index 0000000000..c157dfd3f6
--- /dev/null
+++ b/docs/documentation/platform/honey-tokens/overview.mdx
@@ -0,0 +1,31 @@
+---
+title: "Honey Tokens"
+sidebarTitle: "Overview"
+description: "Detect unauthorized access to your secrets by planting decoy AWS credentials monitored by Infisical."
+---
+
+Honey tokens are decoy credentials that act as tripwires. When an attacker gains access to your secrets and attempts to use a honey token, Infisical detects the activity via AWS CloudTrail and immediately alerts your team.
+
+Each honey token consists of a real but unprivileged AWS IAM user and access key pair. The credentials are planted alongside your real secrets so they appear genuine. Any API call made with these credentials triggers an alert.
+
+## How It Works
+
+1. Infisical creates a no-permission IAM user in your AWS account via an [AWS App Connection](/integrations/app-connections/aws).
+2. A CloudFormation stack monitors CloudTrail for any API calls made with that IAM user's access key.
+3. When activity is detected, a signed webhook notifies Infisical.
+4. Infisical marks the honey token as **Triggered** and sends an email alert to organization admins.
+
+## Getting Started
+
+<Steps>
+ <Step title="One-Time Setup">
+ An organization admin configures the AWS connection and deploys the CloudFormation stack. This only needs to be done **once per organization**.
+
+ Follow the [Setup Guide](/documentation/platform/honey-tokens/setup).
+ </Step>
+ <Step title="Create and Manage Tokens">
+ Once setup is complete, any project member with the appropriate permissions can create, monitor, and manage honey tokens across projects.
+
+ Follow the [Usage Guide](/documentation/platform/honey-tokens/usage).
+ </Step>
+</Steps>
diff --git a/docs/documentation/platform/honey-tokens/setup.mdx b/docs/documentation/platform/honey-tokens/setup.mdx
new file mode 100644
index 0000000000..77c36bbcd6
--- /dev/null
+++ b/docs/documentation/platform/honey-tokens/setup.mdx
@@ -0,0 +1,106 @@
+---
+title: "AWS Honey Tokens Setup"
+sidebarTitle: "Setup"
+description: "One-time organization setup for AWS honey tokens."
+---
+
+<Info>
+ This setup is performed **once per organization** by an admin. After
+ completing these steps, any project member can [create honey
+ tokens](/documentation/platform/honey-tokens/usage) without repeating this
+ process.
+</Info>
+
+## Prerequisites
+
+- Create an [AWS App Connection](/integrations/app-connections/aws) with the following IAM permissions:
+
+```json
+{
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "HoneyTokenIAMManagement",
+ "Effect": "Allow",
+ "Action": [
+ "iam:CreateUser",
+ "iam:DeleteUser",
+ "iam:CreateAccessKey",
+ "iam:DeleteAccessKey"
+ ],
+ "Resource": "arn:aws:iam::*:user/inf_ht_*"
+ },
+ {
+ "Sid": "HoneyTokenStackVerification",
+ "Effect": "Allow",
+ "Action": ["cloudformation:DescribeStacks"],
+ "Resource": "*"
+ }
+ ]
+}
+```
+
+<Note>
+ The IAM permissions are scoped to users prefixed with `inf_ht_`, which is the
+ naming convention Infisical uses for honey token IAM users.
+</Note>
+
+## Configure the Organization
+
+<Steps>
+ <Step title="Navigate to Organization Settings">
+ Go to **Organization Settings** → **Product Settings** and scroll to the **Honey Tokens** section.
+
+ {/* <!-- Screenshot: Organization Settings page showing the Honey Tokens section with empty form fields --> */}
+ </Step>
+ <Step title="Select an AWS App Connection">
+ Choose the AWS App Connection that has the IAM permissions listed in the prerequisites above.
+
+ {/* <!-- Screenshot: The App Connection dropdown with an AWS connection selected --> */}
+ </Step>
+ <Step title="Deploy the CloudFormation stack">
+ The page displays a pre-filled AWS CLI command. Copy and run it in your terminal:
+
+ ```bash
+ aws cloudformation create-stack \
+ --region us-east-1 \
+ --stack-name infisical-honey-tokens \
+ --template-url https://infisical-static-assets.s3.us-east-1.amazonaws.com/honey-tokens/honey-tokens-v1.yaml \
+ --capabilities CAPABILITY_NAMED_IAM \
+ --parameters \
+ ParameterKey=WebhookUrl,ParameterValue=<your-webhook-url> \
+ ParameterKey=WebhookSigningKey,ParameterValue=<your-signing-key>
+ ```
+
+ <Tip>
+ The webhook URL, signing key, and stack name are automatically populated
+ in the UI — just copy the command directly from the settings page.
+ </Tip>
+
+ This stack provisions:
+ - A CloudTrail trail that monitors IAM API calls from honey token users
+ - An EventBridge rule that forwards matching events to Infisical via a signed webhook
+
+ Wait for the stack to reach `CREATE_COMPLETE` status before proceeding. You can check with:
+
+ ```bash
+ aws cloudformation describe-stacks \
+ --stack-name infisical-honey-tokens \
+ --query "Stacks[0].StackStatus"
+ ```
+
+ {/* <!-- Screenshot: The Deploy CloudFormation Stack section showing the generated CLI command --> */}
+ </Step>
+ <Step title="Save the configuration">
+ Click **Save**. Infisical verifies that the CloudFormation stack is deployed before saving.
+
+ {/* <!-- Screenshot: The completed form with all fields filled and the Save button --> */}
+ </Step>
+</Steps>
+
+<Accordion title="Advanced Options">
+ **CloudFormation Stack Name** — defaults to `infisical-honey-tokens`. You can customize this if
+ you have naming conventions or need multiple stacks. The name must be 1–128 characters.
+</Accordion>
+
+Setup is complete. You can now [create honey tokens](/documentation/platform/honey-tokens/usage) in any project.
diff --git a/docs/documentation/platform/honey-tokens/usage.mdx b/docs/documentation/platform/honey-tokens/usage.mdx
new file mode 100644
index 0000000000..1de90589ee
--- /dev/null
+++ b/docs/documentation/platform/honey-tokens/usage.mdx
@@ -0,0 +1,87 @@
+---
+title: "Using Honey Tokens"
+sidebarTitle: "Usage"
+description: "Create, monitor, and manage AWS honey tokens in your projects."
+---
+
+<Note>
+ Before creating honey tokens, an organization admin must complete the
+ [one-time setup](/documentation/platform/honey-tokens/setup).
+</Note>
+
+## Creating a Honey Token
+
+<Steps>
+ <Step title="Open the Secrets Dashboard">
+ Navigate to your project's Secret Manager dashboard and select the environment and secret path where you want to plant the honey token.
+ </Step>
+ <Step title="Add a Honey Token">
+ Click the **Add Honey Token** button to open the creation dialog.
+
+ {/* <!-- Screenshot: The Secrets Dashboard showing the Add Honey Token button --> */}
+ </Step>
+ <Step title="Configure the honey token">
+ Fill in the creation form:
+
+ - **Name** — a slug-friendly identifier for this honey token (must be unique within the folder).
+ - **Description** (optional) — a note about this honey token's purpose.
+ - **Environment** — the target environment where the decoy secrets will be planted.
+ - **Secret Path** — the folder path where the decoy secrets will appear.
+ - **Secrets Mapping** — the secret key names that will hold the decoy credentials:
+ - **Access Key ID** — the name of the secret that will store the AWS access key ID (e.g., `AWS_ACCESS_KEY_ID`).
+ - **Secret Access Key** — the name of the secret that will store the AWS secret access key (e.g., `AWS_SECRET_ACCESS_KEY`).
+
+ {/* <!-- Screenshot: The honey token creation form showing all fields filled out --> */}
+ </Step>
+ <Step title="Review and create">
+ Review the configuration summary, then click **Create**. Infisical will:
+ 1. Create a no-permission IAM user in your AWS account.
+ 2. Generate an access key pair for that user.
+ 3. Store the credentials as secrets in the specified environment and path.
+
+ {/* <!-- Screenshot: The review step of the creation dialog --> */}
+ </Step>
+</Steps>
+
+The honey token is now **Active**. The decoy secrets appear alongside your real secrets and are included in any secret syncs or integrations.
+
+## Notifications
+
+When someone uses a honey token's credentials to make any AWS API call:
+
+1. AWS CloudTrail logs the API call.
+2. The CloudFormation stack's EventBridge rule forwards the event to Infisical via the signed webhook.
+3. Infisical marks the honey token as **Triggered**.
+4. An email alert is sent to all organization admins with:
+ - The name of the triggered honey token and its project
+ - The AWS API call that was made (e.g., `GetUser`, `ListBuckets`)
+ - The source IP address and AWS region
+ - The time of the event
+ - A direct link to the honey token in the Infisical dashboard
+
+<Note>
+ To avoid alert fatigue, Infisical sends at most one email notification per
+ honey token every 24 hours. All trigger events are still recorded and
+ viewable in the event log.
+</Note>
+
+## 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.
+
+{/* <!-- Screenshot: The honey token detail page showing the events list --> */}
+
+### Resetting a Triggered Token
+
+If a honey token is in **Triggered** status and you've addressed the incident, click **Reset** to return it to **Active** status. This clears the event log view (events are still stored) and re-enables email notifications.
+
+### Revoking a Honey Token
+
+To permanently deactivate a honey token, click **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**
+
+Revocation is irreversible.