A CMDB or asset inventory platform is only as current as its connectors, and every connector is a non-human identity holding a token or account that reaches into your identity provider, SIEM, ticketing system, cloud accounts and security tools. Those connections are usually set up once by an implementation team, granted whatever scope made the first sync work, and then left alone for years. This guide works at the connector level: how to give each integration its own service account, how to scope and rotate its token, how to handle inbound and outbound data flows, and how to stop write-back from becoming a way to change records that drive patching, alert routing and access reviews. It is vendor-neutral and written for CMDB owners, integration engineers and the identity and security teams who approve their access. Securing the inventory as a whole, including discovery credentials and data quality, is covered in the Asset Inventory and CMDB Security Guide.
Key takeaways
- One connector, one identity. Shared integration accounts make it impossible to scope, rotate or attribute activity, so every connection gets its own service account or client with a named owner.
- Direction decides the risk. An inbound feed that only writes to the CMDB, an outbound pull by another tool and a bidirectional sync each need a different scope, and most connectors need far less than they were given.
- Write-back is a privileged change. A connector that can update owner, support group, criticality or scan scope fields can quietly change who gets paged and what gets scanned.
- Rotation must be routine, not heroic. Prefer federation, certificate or private key client authentication, and short-lived tokens; where a static secret remains, store it in a vault with an expiry and an owner.
- Connector logs are detection data. Each integration has a predictable source, schedule and volume, so deviations are cheap to alert on once the baseline exists.
The integration map
Start with a register of every connection, because most CMDBs have more integrations than anyone remembers. CIS Control 1 and NIST SP 1800-5 treat the inventory as the system that gives analysts visibility across physical and virtual assets; that visibility is assembled from these feeds, so they deserve the same scrutiny as the platform. Typical connections fall into the groups below.
| Integration | Typical direction | What the connector needs | What it is often given |
|---|---|---|---|
| Identity provider and directory | Inbound to CMDB (users, groups, device objects) | Read users, groups and device objects | Directory-wide read plus write, or a global admin role used during setup |
| Provisioning (SCIM) into the CMDB platform | Inbound to platform user store | Create, update and deactivate platform users | A bearer token with no expiry, shared with other applications |
| SIEM and log platform | Outbound from CMDB (asset context) and outbound of CMDB audit logs | Read selected CI classes and attributes; push audit events | Read on every table, including credential and user records |
| Ticketing and change management | Bidirectional | Read CIs, link CIs to tickets, update status on approved changes | Full write on all CI classes |
| Cloud provider inventory APIs | Inbound to CMDB | Read-only inventory and tag APIs per account or subscription | Organisation-wide read, sometimes contributor or editor roles |
| Endpoint, vulnerability and network tools | Inbound to CMDB, sometimes outbound scope lists | Read device and finding data; receive scan scope | Admin API keys that can also run actions on endpoints |
| Reporting, FinOps and analytics | Outbound from CMDB | Read a reporting view | Direct database or API read on everything |
| Automation and AI agents | Bidirectional | Read CIs; propose updates through a controlled path | A human administrator's token reused by a script |
For each row record the connector name, direction, credential type, scopes, owning team, where the secret lives, its expiry and the last time it was reviewed. That register is the input for everything else on this page, and it is also the evidence an auditor asks for under NIST SP 800-53 CA-3 Information Exchange, which expects interconnections to be approved and documented. The difference between a CMDB, an AI agent registry and identity governance is explained in AI Agent Registry vs CMDB vs IGA.
Service accounts and client identities per connector
OWASP's Non-Human Identities Top 10 for 2025 lists NHI9 NHI Reuse and NHI5 Overprivileged NHI as separate risks, and CMDB integrations tend to show both: one account named something like "integration" serving five tools, holding the union of their rights.
- Separate identities: create one service account or OAuth client per connector and per environment, so the production SIEM feed and the test ticketing sync never share a credential (NHI8 Environment Isolation).
- Non-interactive by design: block interactive and web console sign-in for integration accounts where the platform allows it, exclude them from human licences, and alert on any interactive session. See How to detect interactive logons by service accounts.
- Named owner and purpose: each identity has a human owner and a description that names the connector, so it can be reviewed and offboarded when the tool is retired (NHI1 Improper Offboarding).
- Dedicated roles, not admin: build a role per connector that grants only the tables, classes and API operations it uses. Platform admin is never an integration role.
- Source restriction: bind each identity to the network addresses or private connectivity of the tool that uses it, so a stolen credential does not work from elsewhere.
NIST SP 800-53 IA-9 Service Identification and Authentication and AC-6 Least Privilege are the controls behind these rules; PR.AA-01 in NIST CSF 2.0 covers identities and credentials for services as well as users.
Token types, scopes and rotation
Integrations authenticate in a handful of ways. The choice matters more than any rotation schedule, because a credential that cannot be replayed from another host is worth far less to an attacker.
| Credential type | Where it fits | Main risk | Preferred handling |
|---|---|---|---|
| Username and password for an integration user | Legacy connectors only | Reused, stored in connector config, cannot take MFA | Replace with a client credential; if unavoidable, vault it, restrict source and rotate on a schedule |
| Static API key or personal token | Simple pull connectors | Long-lived, often tied to a person who leaves | Service-owned key with an expiry, scoped to read-only, stored in a vault |
| OAuth client credentials with a shared secret | Server-to-server connectors | Secret copied into scripts and pipelines | Move to private key or mutual TLS client authentication; short access token lifetime |
| OAuth client with private_key_jwt or mutual TLS | Modern connectors and middleware | Private key theft from the connector host | Key in a hardware or managed key store, rotated with overlap |
| Workload identity federation | Cloud inventory pulls from cloud-hosted collectors | Over-broad trust policy | Trust bound to a specific workload, no stored secret |
| SCIM bearer token | Provisioning into the CMDB platform | Creates platform admins if group mapping is loose | Expiry, single use per IdP, treat mapped admin groups as tier 0 |
The OAuth 2.0 Security Best Current Practice (RFC 9700, BCP 240, January 2025) recommends restricting access tokens to the minimum privileges needed and to a specific resource server, and prefers asymmetric client authentication such as mutual TLS or private_key_jwt over shared secrets. It also recommends sender-constrained tokens through mutual TLS or DPoP so a stolen token is less useful. SCIM (RFC 7644) defines no authentication scheme of its own and relies on TLS and standard HTTP authentication; it advises avoiding HTTP Basic authentication and requires the service provider to map each authenticated client to an access control policy.
The OWASP Secrets Management Cheat Sheet adds the operational side: automate rotation where possible, set expiry dates, log who requested and used each secret, and remember that restarting an application does not revoke a stolen credential. For a step-by-step rotation record, use the Secrets Rotation Runbook Template.
Identity provider and SIEM connections
Identity provider
- Read, not write: the CMDB needs users, groups and device objects to populate owners and assignments. It does not need to create or modify directory objects, so the directory application should hold read permissions only.
- Single sign-on is separate: the SSO trust that lets people sign in to the CMDB and the connector that reads the directory are two integrations with two credentials. Do not reuse the SSO application's secret for directory reads.
- Provisioning path: group-to-role mappings in SCIM decide who becomes a CMDB administrator. Alert on membership changes to any group mapped to an admin or integration-management role. The Identity provider (IdP) and SSO platform integration security guide covers the IdP side.
SIEM and log platform
- Asset context feed: give the SIEM a read-only view of the CI classes and attributes it uses for enrichment (hostname, IP, owner, criticality, environment), not every table. Credential stores, user records and discovery configuration should be out of reach.
- Audit log export: the CMDB's own audit, login and record history logs should flow to a SIEM run by a team other than the CMDB administrators, so an administrator cannot alter the evidence of their own changes (AU-9 Protection of Audit Information).
- Prioritise the right logs: the joint CISA and Australian Cyber Security Centre Guidance for SIEM and SOAR Implementation includes a priority log sources resource; CMDB audit logs and connector authentication events belong with other identity and administration logs.
If the SIEM itself is suspected, see If your SIEM is compromised.
Ticketing, discovery and cloud connectors
- Ticketing and change: scope the connector to link CIs to tickets and update status on changes that have already been approved. Bulk updates to CI attributes should not be possible through the ticketing connector. Where the CMDB and service desk share a platform, these are internal permissions, so apply the same thinking to the platform roles.
- Endpoint and vulnerability tools: many security tool API keys can run actions (isolate a host, push a script, start a scan) as well as read data. Ask the tool owner for a read-only key or role for the CMDB feed, and keep action-capable keys out of the CMDB entirely.
- Cloud inventory: use read-only inventory roles per account, subscription or project, assumed through federation from the collector rather than a long-lived access key. Check that the role cannot read secrets, storage objects or key material, which inventory does not need.
- Discovery credentials: agentless discovery accounts are a separate subject with wider reach; see the Asset Inventory and CMDB Security Guide for how to scope and vault them.
- Third-party connectors: marketplace or vendor-hosted connectors hold your credentials in someone else's environment. Treat them under GV.SC-07 and SA-9 External System Services: know where the secret is stored, who at the supplier can reach it and how you revoke it (NHI3 Vulnerable Third-Party NHI).
Write-back abuse
Write-back is where a connector stops being a feed and becomes a control. A connector that can change a CI's support group can redirect alerts; one that can change environment or criticality can move a production server out of a scanning or monitoring scope; one that can retire records can make a host disappear from coverage reports. ATT&CK models this as T1565.001 Stored Data Manipulation.
| Attribute written back | Downstream effect if abused | Control |
|---|---|---|
| Owner, support group, on-call contact | Alerts and incident tickets go to the wrong team or an attacker-controlled contact | Only the authoritative source may write; changes on critical services need approval and alert |
| Environment, criticality, scan or monitoring group | Assets drop out of vulnerability scanning, endpoint coverage checks or alert rules | Field-level write restricted to one connector; daily reconciliation against endpoint and cloud sources |
| Status (retired, disposed) | Hosts vanish from coverage and patching scopes | Bulk status change threshold with approval; compare with live sources before retirement |
| Relationships and service maps | Wrong blast radius in incident response; wrong population for access reviews | Relationship writes limited to discovery and service owners |
| Tags used by security tool exclusions | Suppression or maintenance rules silence alerts for re-tagged hosts | Exclusion tags writable only by security operations, with audit |
Set an authoritative source per attribute (for example, the directory owns user records, the cloud API owns cloud resource status, the service owner owns criticality) and reject writes from any other connector. NIST SP 800-53 AC-4 Information Flow Enforcement and SI-7 integrity monitoring are the closest control references.
How to implement
- Inventory connections: export the platform's integration, OAuth client, API key and integration user lists, and match each to a tool and owner. Anything unmatched is a candidate for disablement.
- Observe before changing: for two to four weeks, record which tables, classes and API operations each connector actually uses, from platform API and transaction logs.
- Split shared accounts: create a dedicated identity per connector, cut the tool over, then disable the shared account. Do the lowest-risk read-only feeds first.
- Narrow scopes: build a per-connector role from the observed usage, apply it in test, then in production with the old role kept disabled but available for a defined rollback window.
- Change the credential type: move from passwords and shared secrets to private key, mutual TLS or federation where both ends support it; set expiries on what remains and move secrets into a vault.
- Lock write-back: define authoritative sources per attribute and remove write permissions from every other connector.
- Turn on detection: forward connector authentication and change events to the SIEM and alert on the signals below.
- Review quarterly: confirm owner, scope, expiry and last use for every connector, and retire any with no use in 90 days.
Rollback is simple if each step keeps the previous identity disabled rather than deleted until the new one has run cleanly through at least one full sync cycle.
Decision guidance
- Pull or push: when the CMDB pulls from a tool, the CMDB holds the credential; when the tool pushes, the tool holds a CMDB credential. Choose the direction that puts the credential on the better protected side, usually the one with a vault and private connectivity.
- Federation or vaulted secret: use federation whenever both ends support it. A vaulted static secret is the fallback, with an expiry no longer than your rotation automation can sustain.
- Middleware or direct: an integration platform reduces the number of credentials the CMDB holds but concentrates many tokens in one place; protect it as privileged infrastructure.
- Small organisations: focus on the identity provider, ticketing and one security tool feed; split the shared account and set expiries before anything else.
- Large estates: expect dozens of connectors across regions and business units. Assign connector ownership to the tool owner, not the CMDB team, and make the register part of change management.
Detection and measurement
| Signal or metric | Why it matters |
|---|---|
| Connector identity authenticating from a new source address or outside its schedule | Stolen token or key in use (T1550.001 Application Access Token, T1078.004 Cloud Accounts) |
| Connector reading tables or classes outside its baseline | Scope abuse or reconnaissance (T1213 Data from Information Repositories) |
| New OAuth client, API key or credential added to an integration identity | Persistence (T1098.001 Additional Cloud Credentials) |
| Writes to owner, criticality, status or exclusion tags by a non-authoritative connector | Write-back abuse (T1565.001) |
| Percentage of connectors with a dedicated identity and named owner | Target 100 percent |
| Percentage of connector secrets vaulted with an expiry, or replaced by federation | Target 100 percent, trending upward each quarter |
| Connectors unused for 90 days still enabled | Target zero |
Metrics for the inventory as a whole, including overall connector hygiene, are in the CMDB and asset inventory health check.
Common failure patterns
- The setup account never leaves: the administrator credential used during implementation stays in the connector configuration for years.
- One integration user for everything: rotating it breaks five tools, so nobody rotates it.
- Read means read everything: an enrichment feed that needs ten attributes can export credential and user tables.
- Action-capable keys in the CMDB: a security tool admin key stored for a data pull can isolate hosts or push scripts if stolen.
- Unrevoked tokens after an upstream breach: the Cloudflare Thanksgiving Breach 2023 shows an attacker using a service token and service account credentials that had not been rotated after a third-party compromise.
Framework mapping
| Area | NIST CSF 2.0 | NIST SP 800-53 Rev 5 | OWASP NHI Top 10 2025 |
|---|---|---|---|
| Connector register | ID.AM-02 | CA-3, CM-8 | NHI1 Improper Offboarding |
| Identity per connector and least privilege | PR.AA-01, PR.AA-05 | AC-2, AC-6, IA-9 | NHI5 Overprivileged NHI, NHI9 NHI Reuse |
| Credential type and rotation | PR.AA-01 | IA-5 | NHI4 Insecure Authentication, NHI7 Long-Lived Secrets |
| Write-back and data flow | PR.DS-01 | AC-4, SI-7 | NHI5 Overprivileged NHI |
| Third-party connectors | GV.SC-07 | SA-9 | NHI3 Vulnerable Third-Party NHI |
| Monitoring | DE.CM-03 | AU-6, AU-9 | NHI10 Human Use of NHI |
Practitioner checklist
- Every connector is in a register with direction, credential type, scopes, owner, secret location and expiry.
- No two connectors or environments share an identity or secret.
- Integration identities cannot sign in interactively, and any attempt alerts.
- Each connector role grants only the tables, classes and operations seen in use.
- Shared-secret clients are moving to private key, mutual TLS or federation; remaining secrets are vaulted with expiries.
- Each security-relevant attribute has one authoritative writer, and other writes are rejected.
- CMDB audit and connector events reach a SIEM run by another team.
- Connectors unused for 90 days are disabled, and quarterly reviews are recorded.
Standards and references
- IETF: RFC 9700 Best Current Practice for OAuth 2.0 Security
- IETF: RFC 7644 System for Cross-domain Identity Management Protocol
- OWASP: Non-Human Identities Top 10 2025
- OWASP: Secrets Management Cheat Sheet
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- NIST: Cybersecurity Framework 2.0
- NIST: SP 1800-5 IT Asset Management
- CISA and partners: Guidance for SIEM and SOAR Implementation
Related NHI Mgmt Group resources: Asset Inventory and CMDB Security Guide, If your CMDB and asset inventory is compromised, CMDB and asset inventory health check, OAuth Apps vs Integration Service Accounts, Non-Human Identity (NHI) Guide.