Join our Newsletter — 33% off our NHI Course
Home› Guides› Edge Appliances as Credential Harvesters: Protecting LDAP and…
Guide Network Security

Edge Appliances as Credential Harvesters: Protecting LDAP and AD Bind Accounts on VPNs and Gateways

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 18 November 2026 12 min read
On this page

A VPN or gateway that authenticates users against Active Directory or LDAP holds a directory service account credential of its own, and when the appliance is compromised that credential becomes the attacker's first foothold inside the domain. This guide explains which secrets edge appliances store, how recent intrusions turned them into credential harvesters, and how to design, scope, monitor and rotate appliance bind accounts so that an edge compromise does not become a directory compromise.

Two investigations published in October 2026 show the pattern from different angles. Volexity reported that attackers exploiting Ivanti Connect Secure "extracted credentials stored on the ICS VPN appliance, such as domain credentials used with LDAP", then used the appliance's own AD service account to search for local administrator passwords. Palo Alto Networks Unit 42 reported that configurations for more than 500 managed FortiGate firewalls, including recoverable administrative and SSL VPN credentials, were taken from a compromised FortiManager. The broader edge programme, from inventory to end of life, is covered in our Edge Device Security Guide; this page focuses on the directory and VPN credentials that live on the appliance.

Key takeaways

  • Every edge appliance that talks to a directory is a non-human identity with domain access. Inventory its bind account like any other privileged service account.
  • Assume stored secrets are recoverable. Unit 42 confirmed that FortiGate administrative and SSL VPN passwords in stolen configurations could be brute-forced from their ciphertext.
  • Patching closes the hole, not the exposure. Unit 42 notes that stolen trust material "remains valid until it is rotated".
  • Scope bind accounts to read only the attributes authentication needs. In the Ivanti case, the appliance account was used to query LAPS passwords and BitLocker recovery information.
  • Monitor directory activity by appliance account. Bulk queries, sensitive attribute reads or logons from anywhere other than the appliance are high-fidelity signals.

What directory credentials an edge appliance holds

Remote access VPNs, SSL VPN portals, next-generation firewalls with user identification, secure web gateways and network access control appliances commonly hold several kinds of identity material:

  • LDAP or AD bind credentials. A service account distinguished name and password used to search the directory, resolve group membership and sometimes verify user passwords.
  • RADIUS shared secrets and Kerberos keytabs. Used when authentication is delegated to a RADIUS server or the appliance joins the domain.
  • Local administrator and SSL VPN user credentials. Stored in the running configuration, often in a reversible form so that the appliance can use them.
  • Certificates and private keys. For the VPN gateway, the management interface and sometimes SAML signing. Unit 42 lists "public certificates and private keys" among the material in the stolen FortiGate archive.
  • Integration tokens. API keys for management platforms, logging, threat feeds and cloud identity providers.

Unlike a user password, the appliance must be able to present these secrets automatically, so it stores them where its own processes can decrypt them. Anyone who gains root on the appliance, or who obtains a configuration backup and can brute-force or decrypt it, gains the same ability. Protecting the directory therefore means limiting what those credentials can do, not just hiding them better.

How the Ivanti intrusion used the appliance's directory account

Volexity's investigation, published on 13 October 2026, describes a threat actor it tracks as UTA0576 exploiting Ivanti Connect Secure from 3 October 2026, on an appliance running 22.8R2.4 that was fully patched at the time. The chain combined CVE-2026-104935, an authentication bypass that CISA added to its Known Exploited Vulnerabilities catalogue on 13 October 2026, with a separate privilege escalation flaw that Volexity reports was patched on 29 October.

After reaching root, the actor extracted stored domain credentials and moved straight into the directory. Volexity reports that the actor:

  • ran Active Directory queries and exported the results for exfiltration;
  • "deployed a custom Python LDAP tool to search Active Directory for LAPS local administrator passwords", authenticating with the appliance's AD service account;
  • also targeted BitLocker recovery information, userPassword and unixUserPassword attributes and logon script paths;
  • ran Kerberoasting-capable tooling, password spraying and LDAP packet capture to collect further credentials and hashes.

Volexity also warns that "the Ivanti Integrity Checker may not be able to identify device compromise", and recommends network and memory forensics where compromise is suspected. Our Ivanti Connect Secure Hardening and Integrity Checking Guide covers the appliance side; the identity lesson is that the bind account could read far more than authentication needs. An account able to read LAPS passwords from an appliance on the internet edge turns one appliance compromise into local administrator access across the estate.

How the FortiGate configurations exposed VPN credentials

Unit 42's PEERSTITCH research, published on 14 October 2026, describes an intrusion at a telecommunications managed service provider that began in September 2024. The attackers exploited CVE-2024-47575 in FortiManager, a missing authentication flaw in CISA's KEV catalogue since 23 October 2024, and exfiltrated an archive of running configurations for more than 500 managed FortiGate firewalls across internal and client networks.

Unit 42 says the archive held "ciphertext administrative, local and SSL/VPN credentials" stored as reversible ciphertext, and that it "confirmed that the credentials were recoverable by successfully brute-forcing administrative and SSL/VPN passwords from the exfiltrated configuration files". After a long dwell period, the attackers used legitimate credentials to open unauthorised SSL VPN sessions, pushed sniffer configurations to downstream firewalls, and used CVE-2025-61624 (added to KEV on 16 October 2026) for privilege escalation before deploying the memory-resident PEERSTITCH implant.

Two of Unit 42's conclusions matter most for identity teams. First, once a management platform is compromised, every credential and certificate it stores should be treated as compromised, because that material "remains valid until it is rotated". Second, "that compromise also does not end when the platform is patched." A central manager that holds configurations for hundreds of devices concentrates every one of their secrets in one place. For device-level settings, see our FortiGate Hardening Guide.

Designing least-privilege bind accounts

NHI Mgmt Group recommends treating each appliance's directory account as a tier 0 adjacent service account and building it with these properties:

  • One account per appliance or cluster. Shared bind accounts across VPNs, firewalls and proxies make attribution impossible and widen every rotation.
  • Read only, and only what is needed. Most appliances need user lookup, group membership and account status. They do not need read access to LAPS password attributes, BitLocker recovery objects or confidential attributes. Review delegated permissions and inherited ACLs, not just group membership.
  • No interactive or broad logon rights. Deny interactive logon, remote desktop and logon to servers. Where the directory supports it, restrict the account to authenticating from the appliance's addresses.
  • Scoped search base. Point the appliance at the organisational units containing VPN users, not the domain root.
  • Not a member of privileged groups. It is still common to find appliance bind accounts in Domain Admins or Account Operators because a wizard once needed it.
  • Prefer protocols that avoid stored passwords. Where the appliance supports SAML or OIDC to an identity provider for user authentication, the appliance can often drop its directory password entirely, leaving only group lookups via a narrower integration.

Our LDAP Security Deep Dive Guide covers signing, channel binding and LDAPS, which protect bind credentials in transit; the controls above limit what a stolen bind credential can do.

Protecting the configuration and management plane

Configuration files, backups and central managers are where appliance secrets are most concentrated. Practical controls include:

  • Keep management interfaces off the internet. Unit 42's advice is that "defenders must treat edge management interfaces with the highest level of zero trust isolation."
  • Store configuration backups as secrets: encrypted with keys held separately, with access logged and restricted to named administrators.
  • Set a strong, unique configuration encryption or master key where the platform supports one, so that a stolen backup cannot be decrypted with vendor defaults.
  • Remove unused local accounts, old SSL VPN users and stale certificates from configurations, so there is less to steal.
  • Track which central manager, automation account and backup system holds each appliance's configuration, and include them in the appliance's threat model.

Detecting misuse of appliance accounts

Because a bind account has a narrow, predictable job, deviations are unusually easy to spot. Useful detections in the directory and SIEM include:

  • authentication by the bind account from any source other than the appliance's known addresses;
  • LDAP searches with unusual breadth, such as domain-wide queries or large result sets;
  • reads of sensitive attributes, including LAPS password attributes, BitLocker recovery objects and userPassword;
  • Kerberos service ticket requests for many service accounts in a short period, a sign of Kerberoasting;
  • new SSL VPN sessions for administrator or local accounts from unfamiliar infrastructure, which Unit 42 observed in the FortiGate case;
  • configuration changes that add packet capture or sniffer settings on firewalls.

Enable directory auditing for attribute reads on the sensitive objects in advance; you cannot reconstruct these reads after the fact if auditing was off. For detection of directory enumeration more broadly, see the LDAP Reconnaissance Detection Guide.

Responding when an appliance may be compromised

Patching and integrity checks are necessary but not sufficient. The appliance has already handed over whatever it stored. A credential-centred response, based on the vendor and researcher findings above, should include:

  1. Preserve evidence first. Volexity recommends network and memory forensics; capture what you can before rebuilding.
  2. Rotate the bind account and every stored secret. Reset the directory service account password, RADIUS shared secrets, local administrator and SSL VPN credentials, API tokens and keytabs. Replace certificates and private keys and revoke the old certificates.
  3. Rotate what the bind account could read. If the account could read LAPS passwords, BitLocker recovery keys or other secret attributes, assume they were read and rotate them across the affected scope.
  4. Hunt for follow-on activity. Review directory logs for the account's queries, Kerberos ticket requests and logons elsewhere, from the earliest possible compromise date, which may be months before discovery.
  5. Treat the manager as part of the incident. If a central manager or backup store was exposed, every managed device's secrets are in scope, as in the 500-device FortiGate case.
  6. Rebuild trust deliberately. Reconnect the rebuilt appliance with a new, least-privilege bind account rather than the old one with a new password.

Our Edge Device Compromise Investigation Playbook covers the forensic steps in more depth.

Rotation map for appliance-held secrets

Rotation after an edge incident often stalls because nobody owns the full list. The table below, an NHI Mgmt Group working template, maps each secret type to where it is rotated and what usually breaks. Fill in owners and dates for your own estate before an incident, not during one.

Secret on the applianceWhere to rotateDependency to update
LDAP or AD bind passwordDirectory (reset service account)Appliance authentication server settings
RADIUS shared secretRADIUS server and appliance togetherEvery appliance using the same RADIUS client entry
Kerberos keytabDirectory (reset account, regenerate keytab)Appliance domain join or keytab upload
Local administrator and SSL VPN user passwordsAppliance configurationBreak-glass records and remote users
Gateway and management certificatesCertificate authority (reissue and revoke)VPN clients that pin or trust the old certificate
SAML signing certificateAppliance and identity providerIdentity provider trust configuration
Management and integration API tokensIssuing platformCentral manager, SIEM and automation accounts
Secrets readable by the bind account (LAPS, BitLocker recovery)Directory and endpoint managementEndpoint policy refresh

Two practical points make the map usable. First, pre-stage the rotation: know which change windows, client updates and helpdesk scripts each item needs, so a mass rotation can run in hours. Second, record rotation evidence, such as the reset timestamp and the first successful authentication with the new credential, so the incident can close on facts.

Common failure patterns

  • Patching and closing. Applying the fix and running the integrity checker, without rotating anything the appliance stored.
  • Privileged bind accounts. Appliance accounts in privileged groups, or with inherited read access to LAPS and BitLocker attributes.
  • One account everywhere. A single bind account reused by VPN, firewall and proxy, so one compromise exposes all and rotation breaks all.
  • Configurations treated as documents. Backups stored on file shares or ticket systems without encryption or access logging.
  • Internet-facing management. Management interfaces and central managers reachable from the internet.
  • No baseline for the account. Directory logs that cannot show what the bind account normally does, so misuse looks like noise.

Practitioner checklist

  • List every edge appliance that authenticates to AD, LDAP or RADIUS and the account or secret it uses.
  • Give each appliance its own bind account, read only, with a scoped search base and no privileged group membership.
  • Remove bind account read access to LAPS, BitLocker recovery and other confidential attributes, and verify with an effective permissions check.
  • Deny interactive logon and restrict the account's source addresses where possible.
  • Encrypt and access-control configuration backups and isolate management interfaces and central managers.
  • Audit sensitive attribute reads and alert on bind account use outside its baseline.
  • After any suspected appliance compromise, rotate every stored secret and every secret the bind account could read.
  • Prefer SAML or OIDC federation for user authentication where it removes the need for a stored directory password.

Standards and references

Related NHI Mgmt Group resources: Edge Device Security Guide · VPN Security Guide · Active Directory and LDAP Health Check · Ivanti Connect Secure Exploitation 2024

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.