Add Multifactor to Active Directory

Published
Length
3 min read

Luis Felipe Dias

All posts

To add multifactor to Active Directory, link your domain to an identity provider. Then enforce a second login check for your users and admin groups. Many teams set this up by syncing local domain accounts to the cloud. They also add radius servers or agent tools on local domain hosts. This step stops attackers who only have a stolen password. Yet most teams still assign broad domain roles to engineers. Once a user logs in, those wide permissions let them run any command. How to add multifactor

Active Directory + End-to-End Encryption: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

To add multifactor to Active Directory, link your domain to an identity provider. Then enforce a second login check for your users and admin groups. Many teams set this up by syncing local domain accounts to the cloud. They also add radius servers or agent tools on local domain hosts. This step stops attackers who only have a stolen password. Yet most teams still assign broad domain roles to engineers. Once a user logs in, those wide permissions let them run any command.

How to add multifactor to active directory architectures

A standard Active Directory domain uses tickets and password hashes to check users. It does not have built-in prompts for phone apps or hardware keys. To add multifactor to Active Directory, you must add an external check. Teams do this in one of two ways.

First, you can sync local directory accounts to a cloud identity provider. When a user logs in, the domain forwards the request to the cloud. The cloud service checks the password and sends a prompt to a phone. Once the user approves the prompt, the login finishes.

Second, you can put a local agent on your domain servers. This agent catches the login request before the server opens a session. It talks to your multifactor service to check a hardware token or push alert. Teams also map directory groups to specific security rules. For example, admins might need a hardware key while standard users use a phone app.

Why directory groups fail to control live sessions

Adding a second login factor fixes weak password security. It stops attackers from using stolen credentials to enter your network. It also helps your team meet basic audit rules for user logins. Still, directory groups only decide who can log in to a host.

Active Directory cannot see what an engineer does after the session starts. A user passes the multifactor check and gets a valid domain ticket. That ticket often grants broad admin rights on databases or Linux servers. The user can now run destructive queries or read private tables without another check.

If an engineer runs a query on user tables, the domain does not know. Raw emails, phone numbers, card numbers, and national IDs flow back in plain text. You cannot mask those fields with a directory group rule. You also cannot pause a single dangerous command for peer approval.

Active Directory + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Managing service accounts and legacy tools

Active Directory domains also hold many service accounts for background apps and scripts. These non-human accounts cannot tap a phone screen or press a hardware key. Teams often put these accounts in bypass groups to keep scripts running.

Attackers target these bypass groups because they only need a password to work. Even worse, engineers often share these service logins to skip daily multifactor prompts. This habit breaks your audit trail because many people use the same login.

Legacy database tools and command line apps also struggle with modern login prompts. When a tool cannot show a push prompt, teams often weaken the security rule. True control requires moving checks from the initial domain login to the actual command level. You need to inspect queries and mask data in flight, where directory rules stop.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can native Active Directory enforce multifactor on its own?

On-premises Active Directory only supports cards out of the box. For phone push alerts or hardware keys, you must link an external identity provider.

What happens to service accounts when we enforce multifactor?

Service accounts cannot complete interactive phone prompts during automated runs. Teams must exclude them from prompt rules and restrict them to specific host networks.

Does Active Directory multifactor protect database queries after login?

No, the multifactor check only gates the initial login to the network or server. It does not inspect, log, or mask the SQL queries an engineer runs later.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.