Skip to content

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

docs: discovery

Sheen Capadngan5f5f67a49830
diff --git a/docs/docs.json b/docs/docs.json
index fb864e7fd1..116a688e40 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -996,6 +996,13 @@
"documentation/platform/pam/accounts/windows-ad"
]
},
+ {
+ "group": "Discovery",
+ "pages": [
+ "documentation/platform/pam/discovery/overview",
+ "documentation/platform/pam/discovery/active-directory"
+ ]
+ },
{
"group": "Sessions",
"pages": [
diff --git a/docs/documentation/platform/pam/discovery/active-directory.mdx b/docs/documentation/platform/pam/discovery/active-directory.mdx
new file mode 100644
index 0000000000..fbb494c842
--- /dev/null
+++ b/docs/documentation/platform/pam/discovery/active-directory.mdx
@@ -0,0 +1,106 @@
+---
+title: "Active Directory Discovery"
+sidebarTitle: "Active Directory"
+description: "Scan an Active Directory environment for domain and local Windows accounts."
+---
+
+Active Directory discovery scans an AD environment to enumerate privileged accounts, stages them for review, and lets you import them into PAM. It finds two kinds of accounts:
+
+| Discovered type | What it is | When it is found |
+|-----------------|------------|------------------|
+| **Windows AD** | Domain user accounts from Active Directory | Always |
+| **Windows** | Local accounts on domain-joined Windows servers | Only when local account discovery is enabled and the server is reachable |
+
+All scan traffic (LDAP, DNS, and WinRM) is tunneled through an Infisical [Gateway](/documentation/platform/gateways/overview).
+
+## How It Works
+
+Behind the scenes, an Active Directory scan connects entirely through the Gateway:
+
+1. **Domain accounts** are enumerated by querying the domain controller over LDAP (or LDAPS) using the credential account's connection settings.
+2. **Windows servers** are located in the same LDAP query when local account discovery is enabled.
+3. Each server's hostname is resolved to an IP through the **domain controller's DNS**, so the Gateway can reach it.
+4. Each reachable server is queried over **WinRM** to list its local users.
+
+## Prerequisites
+
+Before creating an Active Directory discovery source, make sure you have:
+
+- A [Gateway](/documentation/platform/gateways/overview) (or Gateway pool) with network access to your domain controller and, for local account discovery, to your Windows servers.
+- A [Windows AD account](/documentation/platform/pam/accounts/windows-ad) in PAM to use as the **credential account**. Discovery authenticates to your domain as this account. Its FQDN, DC address, ports, and LDAP/LDAPS settings define how the scan connects.
+- The **Product Admin** role. See [Access Control](/documentation/platform/pam/concepts/access-control).
+
+<Note>
+To discover local Windows accounts, the credential account must include a **password**, WinRM must be enabled on your servers, and your domain controller's DNS must resolve each server's hostname so the Gateway can reach it.
+</Note>
+
+## Creating a Source
+
+<Steps>
+ <Step title="Start adding a source">
+ Go to **Privileged Access Management → Discovery** and click **Add Source**, then choose **Active Directory**.
+ </Step>
+ <Step title="Configure the source">
+ | Field | Description |
+ |-------|-------------|
+ | **Name** | A descriptive name (e.g., `corp-active-directory`) |
+ | **Credential Account** | The [Windows AD account](/documentation/platform/pam/accounts/windows-ad) used to authenticate and scan |
+ | **Gateway** | The [Gateway](/documentation/platform/gateways/overview) or Gateway pool that scan traffic tunnels through |
+ | **Scan Schedule** | How often to scan automatically: **Manual**, **Daily**, or **Weekly** |
+ </Step>
+ <Step title="Configure local account discovery">
+ Leave **Discover local accounts** on to enumerate local users on your Windows servers over WinRM, or turn it off to discover domain accounts only. See [Local Account Discovery](#local-account-discovery) for the WinRM options.
+ </Step>
+ <Step title="Save">
+ Click **Create**. The source appears in the Discovery table.
+ </Step>
+</Steps>
+
+## Local Account Discovery
+
+When **Discover local accounts** is enabled, discovery locates domain-joined Windows servers, resolves each one through the domain controller's DNS, and queries it over WinRM to enumerate local users. These become **Windows** (local) staged accounts.
+
+The following WinRM options are available:
+
+| Field | Description |
+|-------|-------------|
+| **WinRM Port** | Port used to reach WinRM on each server (default: 5985) |
+| **Use HTTPS** | Connect to WinRM over HTTPS |
+| **Reject Unauthorized** | Verify the server's TLS certificate (HTTPS only) |
+| **CA Certificate** | Optional PEM certificate, needed only when WinRM HTTPS uses a private CA |
+
+<Note>
+If a scan cannot reach WinRM on a particular server, that server is skipped and the failure is reported on the run. The rest of the scan still completes.
+</Note>
+
+## Running a Scan
+
+Trigger a scan manually with **Scan Now** from the source's row menu or its detail panel. Scans run in the background, and a source can only have one scan running at a time.
+
+If the source is on a **Daily** or **Weekly** schedule, Infisical also scans it automatically when its interval has elapsed. **Manual** sources are only scanned when you trigger them.
+
+## Importing Accounts
+
+From the **Staged Accounts** tab, select the accounts you want and click **Import Accounts**. Then choose:
+
+| Field | Description |
+|-------|-------------|
+| **Destination Folder** | The [folder](/documentation/platform/pam/folders/overview) to import the accounts into |
+| **Template** | An [account template](/documentation/platform/pam/templates/overview) for each account type in your selection |
+
+Once imported, the accounts become regular PAM accounts in the chosen folder and inherit their template's rules.
+
+<Warning>
+Imported accounts arrive without a credential because discovery finds accounts with a username but no password. Open each imported account and add a credential before connecting.
+</Warning>
+
+## Next Steps
+
+<CardGroup cols={2}>
+ <Card title="Discovery Overview" icon="radar" href="/documentation/platform/pam/discovery/overview">
+ Understand staging, importing, and schedules.
+ </Card>
+ <Card title="Windows AD Accounts" icon="windows" href="/documentation/platform/pam/accounts/windows-ad">
+ Learn about the account type used to authenticate scans.
+ </Card>
+</CardGroup>
diff --git a/docs/documentation/platform/pam/discovery/overview.mdx b/docs/documentation/platform/pam/discovery/overview.mdx
new file mode 100644
index 0000000000..e5725d58e5
--- /dev/null
+++ b/docs/documentation/platform/pam/discovery/overview.mdx
@@ -0,0 +1,100 @@
+---
+title: "Discovery"
+sidebarTitle: "Overview"
+description: "Scan external systems for privileged accounts and import them into PAM."
+---
+
+Discovery scans external systems to find privileged accounts you may not know exist, stages them for review, and lets you import the ones you want into PAM as managed [accounts](/documentation/platform/pam/accounts/overview). This gives you visibility into the accounts spread across your environment and a fast path to bringing them under management.
+
+<Note>
+Discovery is available to **Product Admins**. See [Access Control](/documentation/platform/pam/concepts/access-control) for how roles work.
+</Note>
+
+## How It Works
+
+<Steps>
+ <Step title="Configure a discovery source">
+ A **discovery source** is a connection to an external system that Infisical scans. You give it a credential to authenticate with and a [Gateway](/documentation/platform/gateways/overview) to reach the system through.
+ </Step>
+ <Step title="Run a scan">
+ Scanning a source enumerates the privileged accounts it can find. Scans run asynchronously and can be triggered manually or on a schedule.
+ </Step>
+ <Step title="Review staged accounts">
+ Accounts found by a scan are held as **staged accounts**. They are not yet managed by PAM. You review them before deciding which to bring in.
+ </Step>
+ <Step title="Import into a folder">
+ Select the staged accounts you want and import them into a [folder](/documentation/platform/pam/folders/overview) using an [account template](/documentation/platform/pam/templates/overview). Imported accounts become regular PAM accounts.
+ </Step>
+</Steps>
+
+## Discovery Sources
+
+<CardGroup cols={2}>
+ <Card title="Active Directory" icon="windows" href="/documentation/platform/pam/discovery/active-directory">
+ Scan an Active Directory environment for domain accounts and local Windows accounts.
+ </Card>
+</CardGroup>
+
+<Note>
+ Additional discovery sources will be added in future releases.
+</Note>
+
+## Staged Accounts
+
+A staged account is an account that a scan found but that has not been imported yet. Each staged account records its name and type but does not become usable until you import it.
+
+Discovery deduplicates accounts by a stable fingerprint per source. Re-running a scan updates existing staged accounts rather than creating duplicates, and accounts you have already imported are left untouched so they cannot be imported twice.
+
+## Importing Accounts
+
+When you import staged accounts, you choose:
+
+- A **destination [folder](/documentation/platform/pam/folders/overview)** for the imported accounts.
+- An **[account template](/documentation/platform/pam/templates/overview)** for each account type in your selection. The template determines the rules the imported accounts inherit.
+
+<Warning>
+Discovered accounts are found with a username but no password. Imported accounts arrive without a credential and stay unusable until you add one on the account.
+</Warning>
+
+## Scans and Schedules
+
+Each source can scan on demand or automatically:
+
+| Schedule | Behavior |
+|----------|----------|
+| **Manual** | The source is only scanned when you trigger it with **Scan Now**. |
+| **Daily** | Infisical scans the source about once per day. |
+| **Weekly** | Infisical scans the source about once per week. |
+
+Scheduled scans are evaluated once a day, so a source runs on its next scheduled check after its interval has elapsed. Every run is recorded in the source's **scan history** with its status, timestamps, and the number of accounts found.
+
+## FAQ
+
+<AccordionGroup>
+ <Accordion title="Do I need a Gateway to use Discovery?">
+ Yes. Discovery reaches external systems through an Infisical [Gateway](/documentation/platform/gateways/overview) (or Gateway pool). All scan traffic is tunneled through it, so a Gateway with network access to the target system is required.
+ </Accordion>
+ <Accordion title="Why is my imported account unusable?">
+ Discovery finds accounts with a username but no password. After importing, open the account and add a credential before connecting.
+ </Accordion>
+ <Accordion title="What happens if I scan the same source again?">
+ Existing staged accounts are updated in place, and accounts you have already imported are skipped. Discovery deduplicates by a per-source fingerprint, so scanning repeatedly is safe.
+ </Accordion>
+</AccordionGroup>
+
+## What's Next?
+
+<CardGroup cols={2}>
+ <Card title="Active Directory" icon="windows" href="/documentation/platform/pam/discovery/active-directory">
+ Configure an Active Directory discovery source.
+ </Card>
+ <Card title="Accounts" icon="user-lock" href="/documentation/platform/pam/accounts/overview">
+ Manage the accounts you import.
+ </Card>
+ <Card title="Account Templates" icon="layer-group" href="/documentation/platform/pam/templates/overview">
+ Define the rules imported accounts inherit.
+ </Card>
+ <Card title="Folders" icon="folder" href="/documentation/platform/pam/folders/overview">
+ Organize imported accounts and control access.
+ </Card>
+</CardGroup>