Configuring Rapid7 InsightVM safely means treating its scan credentials as some of the most privileged non-human identities in your estate, placing scan engines deliberately, and keeping console roles and the vulnerability exception process under tight control. A vulnerability scanner that logs in to thousands of hosts holds keys that an attacker would love to have. This guide covers how InsightVM handles shared and site-specific credentials, how permission elevation works on Unix and network devices, where scan engines should sit and how they talk to the Security Console, and how to set up roles and the exception workflow so that remediation stays honest.
The audience is vulnerability management leads, security engineers who run the InsightVM console, and identity teams who own the scanning service accounts. It assumes you already have InsightVM deployed and want a hardened baseline.
This is an independent guide from NHI Mgmt Group, based on Rapid7's public documentation as of November 2026. It is not sponsored or reviewed by Rapid7. Product features change, so confirm settings against Rapid7's current documentation.
Key takeaways
- Scan credentials are privileged service accounts. Authenticated scanning needs them, so the job is to scope, store, rotate and monitor them, not to avoid them.
- InsightVM supports shared credentials, managed by a Global Administrator, and site-specific credentials. Restrict every credential to the hosts, ports or tags it is meant for so it is never offered to anything else.
- For Unix targets, Rapid7 recommends sudo over su so the administrator password is not shared, and advises restricting sudo to only the programs required.
- Rapid7 does not recommend relying on the local Scan Engine in most cases. Use distributed engines placed close to the assets they scan.
- Standard engine communication needs inbound port 40814 on the engine; reverse communication needs inbound port 40815 on the console. Pick the direction that fits your network trust boundaries.
- Global Administrator is the only role that can manage shared scan credentials, users and roles. Keep it to a small named group and use custom roles for everyone else.
- Separate the people who submit vulnerability exceptions from the people who review them, so that remediation cannot be closed by paperwork alone.
Why scan credentials are high-value non-human identities
Authenticated scanning finds far more than a network-only scan, because the scanner can read installed packages, configuration files and registry settings. The Authenticated vs Unauthenticated Scanning Guide explains the trade-off in general terms. The cost is that the scanner must hold credentials that work across a large part of the estate, and often with elevated rights.
That makes the scanning account a textbook non-human identity risk. It is used by a machine, not a person. It is typically valid on many hosts at once. It may hold root or local administrator rights through elevation. And its password is stored in a console that many people can reach. If an attacker takes over the account or the console, the technique is simply Valid Accounts (T1078): they log in where the scanner logs in.
The controls in this guide aim to make a stolen scan credential worth as little as possible. Each credential should work only where it must, carry only the rights it needs, change regularly, and leave a trail in target logs that someone actually reviews.
Shared and site-specific scan credentials
InsightVM gives you two ways to store scan credentials. Site-specific credentials live in a single site's configuration and are edited from the Sites table. Shared credentials can authenticate multiple sites with one set of values. Rapid7's documentation says shared credentials reduce repetitive configuration and help when credentials change often, giving a 90-day rotation policy as an example.
The governance model is different for each. Rapid7 states that to configure shared credentials you need a Global Administrator role or a custom role with Manage Site permissions, and that shared credentials must be edited by the Global Administrator from the Administration page. Assigning a shared credential to a site only makes it appear in that site's list: Site Owners still have to enable it in the site configuration.
Choosing between them
| Consideration | Shared credentials | Site-specific credentials |
|---|---|---|
| Who edits | Global Administrator, from the Administration page | Users who can manage the site, from the Sites table |
| Rotation effort | One change updates every site that uses it | Each site must be updated separately |
| Blast radius if exposed | Every site that has it enabled | One site |
| Good fit | Domain scanning accounts used across many sites | Accounts that are local to one environment, such as a lab or a single business unit |
NHI Mgmt Group recommends using shared credentials for a small number of centrally owned scanning accounts that you rotate on a schedule, and site-specific credentials where an account is only valid in one environment. Either way, give each credential a clear owner and purpose, and record which sites have it enabled.
Restricting credentials to the right targets
An unrestricted credential is offered to every host in a scan. That wastes time, as Rapid7 notes, and it also sends a privileged password to systems that have no business receiving it, including any rogue host an attacker has placed on the network.
InsightVM lets you restrict credentials by single IP address, IP range, CIDR, hostname, and IPv6 address or range, as well as by port number and by tag. You can also carve specific addresses out of a defined scope with exclusion lists. Rapid7 states that restricted credentials are not used on other assets or ports and are excluded from all other scan targets.
A few details from the documentation are worth building into your process:
- CIDR notation is accepted in the user interface but is not supported on the API, so API-driven configuration should use dash-based ranges.
- Hostname restrictions depend on DNS. If the scan engine cannot resolve the hostname, the credentials will not be used.
- Rapid7 says tag-based restrictions work best on static assets, because dynamic assets can apply restricted credentials inconsistently during long scans.
Once a credential is in place, test it. On the credential's Account tab you can expand Test Credentials, choose a scan engine and a target, and run a test. Rapid7 warns that a successful test on one asset does not guarantee success on every site that uses the credential, so check the Authentication column in scan history after real scans. Statuses such as Credential Failure and No Credentials Supplied tell you where coverage has quietly dropped.
Permission elevation on Unix and network devices
Many checks need root, including Unix-based CIS benchmark checks. Rapid7 documents five elevation options for SSH credentials: su, sudo, sudo+su, pbrun and privileged exec mode.
- su authenticates a non-root account and then needs the target user's password, such as the root password, in the Permission Elevation area.
- sudo uses the password of the account you log in with. Rapid7 says sudo protects your administrator password and lets administrators control which programs a user can run.
- sudo+su uses sudo to run su, so no root password is entered. It fails if access to su is restricted.
- pbrun uses BeyondTrust PowerBroker on Unix and Linux targets, with a configuration file deployed to each host.
- Privileged exec mode is for Cisco IOS, IOS XE and ASA devices. The scanner logs in with a non-privileged account and supplies the enable password. The device must run SSH version 2.
For sudo, Rapid7's template sudoers entry is <nexpose_user> ALL=(root) <user_shell>, placed in /etc/sudoers or a dedicated file under /etc/sudoers.d/. Rapid7 recommends preferring sudo over su and restricting sudo to only the programs required.
Recommended practice
- Avoid su wherever possible, because it puts a root password into the scanner.
- Use a dedicated scan user on each platform, never a shared administrator or a person's account.
- Deploy sudoers entries through configuration management so they are consistent and reviewable, and keep them in a dedicated file under
/etc/sudoers.d/. - Forward su and sudo logs from targets to central logging. Rapid7 notes that failed elevation attempts appear in system logs; so will any use of the scan account outside scan windows, which should raise an alert.
- For network devices, treat the enable password as a separate secret with its own rotation, not as part of the login credential.
Rotating and storing scan credentials
Rapid7's documentation positions shared credentials as the answer to frequent rotation, because one change updates every site. NHI Mgmt Group recommends a written rotation schedule for every scanning account, aligned with your privileged account policy, and recommends the following:
- Change passwords at the directory or host first, then update InsightVM immediately, then confirm the next scan shows successful authentication.
- Where your privileged access tooling can manage the scanning account password, let it own the secret and keep InsightVM up to date rather than relying on a manual change.
- Remove credentials from InsightVM when a site is retired. Old credentials that nobody uses are still valid passwords sitting in a database.
- Keep an inventory: account name, platform, elevation method, owner, sites enabled, last rotation date.
The Service Account Security Guide covers the wider lifecycle for accounts like these.
Scan engine types and placement
Rapid7 describes four engine options. Every Security Console has a local engine, but Rapid7 does not recommend relying on it in most cases, and says it suits very small deployments and trials. Distributed engines run on separate hosts and are, in Rapid7's words, essential for any production scanning deployment. The External Scanning Service is provisioned by Rapid7 to show what attackers can see on internet-facing assets. Engine pools, where your licence supports them, group distributed engines to speed up site scanning.
Engines operate at the direction of the Security Console. Rapid7 states that they store scan data only temporarily, and the console writes it to its PostgreSQL database. Every site must name at least one engine or engine pool. By default, the setting Always use the selected engine is on; turning it off makes scans use the engine most recently used for each asset, which can help with geographically spread assets.
Engines are available in the AWS and Azure marketplaces and as a virtual appliance. Rapid7 notes that it does not support the underlying operating system of these prebuilt images and recommends deleting and redeploying the instance if an OS issue occurs.
Placement guidance
- Place a distributed engine in each network zone you scan, so that credentials travel over as few trust boundaries as possible.
- Do not reuse a single engine across zones of very different trust, such as a production data centre and a partner network.
- Harden engine hosts like any other privileged server: minimal access, patched, monitored, and not used for anything else.
- Treat redeploy as the repair path for marketplace and appliance engines, as Rapid7 suggests, and automate it.
Engine to console communication
Rapid7 documents two communication directions. With standard communication, the console starts the connection, and engines must allow inbound traffic on port 40814. Rapid7 calls this the most common method for distributed engines. With reverse communication, the engine routinely contacts the console to see whether a scan job needs to run, and the console must allow inbound traffic on port 40815. Reverse communication is useful when policy blocks inbound connections to the network that hosts the engine.
You set the direction when you pair the engine, and you can change it later from Administration, Vulnerability Management, Console Administration, Manage scan engines. Rapid7 warns that if you change the method you should adjust your firewall rules to match.
NHI Mgmt Group recommends choosing direction by trust: an engine in a less trusted zone should usually call out to the console rather than accept inbound connections from it. Allow only the single required port between console and each engine, and alert on engines whose connection status or version changes unexpectedly.
Console roles and authentication
InsightVM roles control who can change credentials, sites and engines. Rapid7's documentation describes these built-in roles:
- Global Administrator has all permissions and is not limited by site or asset group access. It alone can manage user accounts, roles and permissions, Dynamic Discovery connections, Security Console maintenance and shared scan credentials.
- Security Manager and Site Owner share the same listed permissions; Rapid7 says the only difference is the Security Manager's ability to work in accessible sites and asset groups.
- Asset Owner can create reports, start unscheduled scans and view data for accessible sites and asset groups.
- User is the only role without scanning permissions.
- Custom roles can be built from selected permissions, such as Manage Site Credentials, Manage Scan Engines or Review Vulnerability Exceptions.
The console can authenticate users through LDAP (including Microsoft Active Directory), Kerberos and SAML 2.0, as well as internal accounts. Rapid7 notes that a built-in account can log on in maintenance mode when other access fails, and that the console's own two-factor authentication is not currently compatible with Active Directory (LDAP) and Kerberos methods. Global Administrators can set a password policy; changes apply to new users and when existing users change passwords, but existing users are not forced to change.
Recommended practice
- Keep Global Administrator to a few named people, because it controls shared credentials and user management.
- Give Manage Site Credentials only to the people who own those sites, through custom roles.
- Prefer SAML single sign-on with multi-factor authentication at the identity provider, given the stated two-factor limitation with LDAP and Kerberos.
- Protect the built-in maintenance account as a break-glass credential and alert on its use.
- After tightening the password policy, require existing internal users to change passwords, since the policy does not force it.
- Review the last logon date on each account and deactivate accounts that are no longer used.
Remediation workflow and exception governance
Scanning only reduces risk if findings are fixed or formally accepted. InsightVM separates vulnerability exception permissions into Submit, Review and Delete Vulnerability Exceptions, which lets you build a clear approval chain.
NHI Mgmt Group recommends this workflow:
- Route findings to the owning team through reports or your ticketing integration, scoped by site or asset group so each team sees its own assets.
- Set remediation targets by severity and exposure, and track them against scan results rather than ticket status alone.
- Let asset owners submit exceptions with a reason and an expiry date, but give Review rights only to a separate risk or security function.
- Restrict Delete rights to administrators, and log every exception change.
- Rescan after remediation to confirm the fix, and check that the rescan authenticated successfully. A finding that disappears because the credential failed has not been remediated.
Findings on the scanning infrastructure itself, including the console, engines and their hosts, deserve the shortest targets, because those systems hold the credentials described above. For programme-level design, see the Vulnerability Management Guide.
Common failure patterns
- Unrestricted domain admin credential. One powerful account is offered to every host in every scan.
- su with a root password. The root password sits in the console because sudo was never set up.
- Silent authentication failure. Scans run with Credential Failure for weeks, and dashboards show fewer vulnerabilities than really exist.
- Local engine in production. All scanning runs from the console host, against Rapid7's guidance.
- Too many Global Administrators. Many people can read and change shared credentials.
- Self-approved exceptions. The same team submits and reviews exceptions, and they never expire.
- Stale credentials. Retired sites keep valid passwords in the console.
Practitioner checklist
- Inventory every scan credential with owner, platform, elevation method, sites and last rotation.
- Restrict every credential by address, hostname, port or tag, and avoid tag restrictions on dynamic assets.
- Use sudo with a narrow sudoers entry instead of su, and log elevation on targets.
- Rotate scanning passwords on a schedule and confirm authentication in scan history afterwards.
- Run production scans from distributed engines in each network zone, not the local engine.
- Open only port 40814 or 40815 as needed between console and each engine.
- Keep Global Administrator small, use custom roles and SAML with multi-factor authentication.
- Separate exception submit and review rights, and give every exception an expiry.
Standards and references
- Rapid7: Managing shared scan credentials
- Rapid7: Elevating permissions
- Rapid7: Scan engines
- Rapid7: Scan engine communication methods
- Rapid7: Managing users and authentication
- NIST: SP 800-53 Rev. 5 (RA-5 Vulnerability Monitoring and Scanning, IA-5 Authenticator Management, AC-6 Least Privilege)
- CIS: CIS Controls v8.1
- MITRE ATT&CK: Valid Accounts (T1078)
Related NHI Mgmt Group resources: Authenticated vs Unauthenticated Scanning Guide · Vulnerability Management Guide · Service Account Security Guide