The short answer

If you only have time for one decision, enable phishing-resistant multifactor authentication (MFA) on the accounts that can change your infrastructure or product: your cloud console, source-control organization, deployment platform, domain registrar, secrets manager, MCP server administration, and production incident-response tools.

For many developer entrepreneurs, the best starting point is a password manager or authenticator app that generates time-based one-time passwords (TOTP). The stronger architecture is to reserve hardware security keys for privileged administration, especially cloud control planes, deployment pipelines, signing systems, and accounts that can reach customer data.

The goal is not simply to add a second login step everywhere. It is to keep a stolen password from becoming a route into production.

What MFA protects in an agent and infrastructure stack

MFA adds an authentication factor to a password-based login. A typical implementation uses something the user knows, such as a password, together with another factor such as a one-time code, an approval on a trusted device, or a cryptographic security key.

This matters because developer infrastructure is unusually interconnected. A compromised email account may enable password resets. A compromised cloud-console account may expose deployments, stored credentials, logs, or customer data. A compromised source-control organization may expose deployment workflows or secrets. A compromised MCP server or agent-management console may provide a path into tools that can execute privileged actions.

CISA guidance cited in the supplied sources recommends MFA for business accounts and identifies phishing-resistant authentication as the stronger goal. The practical interpretation for founders is simple: protect the small number of accounts that can modify, inspect, or operate the system more carefully than the long tail of business software.

The main authentication methods, and how they differ

The original guidance described five distinct approaches, not four. They should not be treated as interchangeable.

SMS text codes. These require receiving a code through the mobile network. They are convenient, but they are also the weakest of the methods discussed here because the security of the phone number and carrier account can become part of the attack path. Use SMS when the service offers no stronger option, especially for lower-impact accounts, rather than treating it as the preferred solution for privileged access.

Email codes. These send a code to an email account. That creates a dependency when the email account is already one of the systems being protected. Email-based MFA is therefore generally unsuitable for cloud-console or production administration unless the email account has stronger protections and independent recovery controls.

TOTP authenticator codes. A TOTP app generates a temporary code from a shared secret. TOTP is widely supported, does not depend on mobile network delivery, and is practical for routine access to CI/CD systems, registries, dashboards, and developer tools.

Hardware security keys. FIDO2/WebAuthn security keys authenticate through cryptographic credentials bound to the legitimate relying party. In the terms used by the supplied CISA source, they are phishing-resistant. This makes them a stronger choice for privileged console access, production administration, code-signing identities, and accounts that can trigger deployments.

Push approvals. A service sends an approval request to a trusted device or browser. Push approval is separate from email codes and SMS. A basic push prompt can create fatigue or approval-confusion risk. Number matching, where the user verifies a number shown by the service, adds protection against some MFA-fatigue attacks. CISA’s supplied guidance specifically warns against relying on simple push notifications and recommends number matching.

For a founder, the decision is not “which method is universally best?” It is “which method is proportionate to the blast radius of this account?”

Separate routine access from privileged production access

A practical architecture has three access tiers.

Routine developer access covers source control, issue tracking, documentation, staging environments, and non-sensitive dashboards. TOTP is usually a reasonable balance of security and convenience. Each person should enroll their own authenticator rather than sharing one device or one set of credentials.

Deployment access covers CI/CD configuration, artifact registries, infrastructure-as-code workflows, secrets, and environment promotion. Protect these accounts with phishing-resistant MFA where supported. A password or TOTP compromise should not automatically grant the ability to deploy to production.

Break-glass production access covers emergency administration, cloud-console access, database operations, incident tooling, and MCP servers with production capabilities. Use hardware-backed or otherwise phishing-resistant authentication, narrowly scoped roles, and separate emergency credentials. Keep the number of people and services holding this access small.

This separation reduces the chance that one compromised developer laptop becomes a path to every environment. It also gives you a clearer decision when a provider supports several methods: use TOTP for lower-risk daily work and reserve the strongest method for production-changing privileges.

Protect the control plane before adding more agents

An agent can be useful only if its permissions are intentional. Before connecting an MCP server or granting an AI agent access to internal tools, inventory what that integration can reach.

Start with these questions:

  • Can it read production data, mutate infrastructure, rotate credentials, or trigger deployments?
  • Can its actions be restricted by environment, resource, role, or operation?
  • Which human approval is required before a sensitive action executes?
  • Are credentials scoped to the specific integration rather than reused across systems?
  • Are tool calls and administrative actions logged in a place the agent cannot alter?
  • Is there a tested way to revoke the integration without disabling unrelated workloads?

MFA on the human account protects the administrator’s console. It does not automatically protect an API key, service account, OAuth token, or MCP credential issued to an agent. Those credentials need separate lifecycle controls: limited scope, limited lifetime where supported, controlled storage, usage monitoring, and a documented rotation or revocation process.

For an MCP server, treat its production permissions as part of the security boundary. A server that can query databases or invoke deployment tools should not inherit broad human credentials by default. Prefer scoped service identities, read-only permissions where the task permits, separate staging and production configurations, and human approval for destructive actions.

Use separate credentials for CI/CD

CI/CD often becomes the path from a source commit to a running product. A leaked pipeline credential can therefore be more consequential than a leaked dashboard password.

Keep deployment credentials distinct from personal administrator credentials. Use short-lived credentials where the deployment platform supports them. Restrict a pipeline to the repositories, environments, and artifact registries it actually needs. Avoid embedding reusable secrets in workflow files, container images, build logs, or shared developer notes.

Where possible, require protected environment approvals before production deployment. The approving identity should use phishing-resistant authentication, while the pipeline itself uses a scoped service identity. This divides the task across two controls: the machine receives limited deployment rights, and a human authorizes the sensitive transition.

The same principle applies to cloud-native access. Do not let every engineer use the same cloud administrator account. Define roles around actual responsibilities, separate production from non-production duties, and review which identities can alter logging, networking, secrets, or billing. If your agent platform uses a long-lived API key, make that key a monitored exception rather than the default architecture.

Contractor and teammate access

The moment another person joins, shared credentials become a liability. Use platform-native users, groups, and roles so access can be granted, reviewed, and revoked centrally. Do not share a founder’s account or a common authentication device.

Each person should register their own TOTP credential or security key. If an engagement ends, remove that enrollment and the associated role. Record which environments and tools the person can reach. For MCP integrations operated by a contractor, connect the server through a dedicated service identity rather than through that contractor’s personal credentials.

Shared team vaults can help distribute access to non-sensitive credentials, but a vault should not become an unreviewed repository of production secrets. Define what belongs in the vault, who can retrieve it, and how access changes when responsibilities change.

Recovery paths are part of the architecture

When MFA is enabled, save the provider’s recovery codes according to its documented process. Treat them as break-glass credentials: store them in a password manager or another protected location, restrict access to the people who need them, and do not leave them in plaintext desktop files or ordinary shared notes.

Do not assume recovery codes need to be rotated on a fixed schedule. Rotate them when they may have been exposed, when a device or backup containing them is lost, when personnel who had access leave, or when the provider’s recovery policy changes. The relevant question is not how old the codes are; it is whether the current copies remain controlled.

For accounts with broad production authority, record the recovery procedure before an incident. The runbook should identify the account owner, backup administrator, approved authenticators, recovery location, and escalation path. Test the process before it becomes necessary.

The same discipline applies to the loss of a phone, hardware key, or trusted browser. Maintain at least two registered authenticators for critical accounts, including a backup method that does not depend solely on the lost device. For hardware keys, keep one in active use and a second in a controlled backup location.

A practical rollout order

Start with the accounts that can stop or alter the product:

  1. Primary email and identity provider. These accounts can trigger password resets for the rest of the stack. Use phishing-resistant MFA where supported.
  2. Domain registrar and DNS provider. Protect the ability to redirect or disrupt the product’s domain.
  3. Cloud console and organization account. Use hardware-backed or phishing-resistant authentication for administrators.
  4. Source-control organization. Require MFA for members and protect personal access tokens with appropriate scopes and expiration.
  5. CI/CD platform and artifact registries. Separate user administration from machine deployment permissions, and require protected production approvals.
  6. Secrets manager, signing keys, and incident-response tools. These can grant direct control over production behavior or evidence.
  7. MCP servers and agent integrations. Verify the human admin path, service identity, tool permissions, approval gates, logs, and revocation process.
  8. Lower-impact business tools. Apply TOTP or the strongest supported method consistently, but prioritize them after the production control plane.

If a platform only supports SMS, enable it rather than leaving the account unprotected, then plan an upgrade if the provider adds stronger options. The priority, however, remains the same: improve the authentication of privileged production accounts first.

Incident response when a credential may be compromised

Do not treat a suspicious MFA prompt as a routine login attempt. An unexpected push, repeated code request, or unfamiliar device registration can indicate that an attacker has the password and is trying to trigger the second factor.

The response sequence should be:

  1. Deny the prompt and do not approve it to make it stop.
  2. Review recent sign-ins, registered devices, recovery methods, API tokens, OAuth grants, and changed security settings.
  3. Revoke active sessions and suspicious authenticators or recovery codes.
  4. Rotate the password and any credentials exposed to the same account, including API keys, service-account tokens, or MCP credentials.
  5. Check deployment history, cloud audit logs, CI/CD runs, infrastructure changes, and agent tool calls for unauthorized activity.
  6. Restore access with a trusted device and phishing-resistant method.
  7. Document what changed and add controls for the path that enabled the compromise.

This sequence is more useful than adding MFA to one account and stopping. The objective is to contain the full chain of access, including credentials and automation identities that MFA on the human login cannot cover.

Minimal operating checklist

For a solo founder or small team, a workable baseline is:

  • A password manager for unique passwords and protected recovery information.
  • TOTP or a stronger supported method for routine developer tools.
  • Phishing-resistant MFA for cloud administration, CI/CD, signing, secrets, and production incident access.
  • Individual accounts and authenticators for every person.
  • Scoped service identities and short-lived tokens for agents, MCP servers, and CI/CD.
  • Separate credentials for routine deployment and break-glass production administration.
  • Log retention and alerts for privileged console activity, deployment changes, token creation, and agent tool calls.
  • A documented revocation and recovery runbook tested before an incident.

The highest-value decision is not securing every account equally. It is protecting the few identities and machine credentials that can reach production, then ensuring that a compromised password cannot silently become a compromised deployment or agent workflow.

FAQ

Is SMS MFA good enough?

It is better than no MFA, but it should be a fallback for important accounts when stronger methods are unavailable. Prioritize TOTP or phishing-resistant methods for privileged infrastructure access.

What happens if I lose my phone with the authenticator app?

Use a previously registered backup authenticator or the account’s documented recovery process. Recovery codes can help, but only if they were stored securely and remain controlled.

Do I need a hardware security key?

It is most valuable for cloud-console administrators, deployment pipelines, code-signing identities, production incident access, and MCP administration. TOTP can remain appropriate for lower-impact developer tools.

Can I use the same authenticator for everything?

You can, but a single registration or device failure creates a shared lockout risk. Register at least two methods for critical accounts and protect each person’s credentials independently.

How often should recovery codes be rotated?

Rotate them when exposure is suspected, a backup is lost, access permissions change, or the provider requires it. There is no need to rotate them merely because a calendar interval has passed.

Does MFA protect an MCP server or API key?

Not by itself. MFA protects human authentication to an administration interface. MCP server credentials, API keys, service accounts, OAuth grants, and CI/CD tokens need separate scopes, storage, monitoring, rotation, and revocation controls.

Sources