Skip to main content
Glama
DynamicEndpoints

BOD-25-01-CSA-Microsoft-Policy-MCP

enforce_alternative_mfa

Enforces an alternative multi-factor authentication method when phishing-resistant MFA is not implemented, ensuring compliance with BOD 25-01 requirements for Microsoft 365 services.

Instructions

Enforce alternative MFA method if phishing-resistant MFA not enforced (MS.AAD.3.2v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the 'enforce_alternative_mfa' tool. It uses the Microsoft Graph client to patch the authenticationMethodsPolicy, enabling the Microsoft Authenticator as an alternative MFA method.
    private async enforceAlternativeMFA() { try { // Configure alternative MFA using Microsoft Graph API await this.graphClient .api('/policies/authenticationMethodsPolicy') .patch({ policies: { microsoftAuthenticator: { isEnabled: true, isSelfServiceRegistrationAllowed: true, }, }, }); return { content: [ { type: 'text', text: 'Alternative MFA method enforced successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to enforce alternative MFA: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Registers the 'enforce_alternative_mfa' tool with the MCP server in the listTools handler, providing name, description, and input schema.
    { name: 'enforce_alternative_mfa', description: 'Enforce alternative MFA method if phishing-resistant MFA not enforced (MS.AAD.3.2v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Defines the input schema for the 'enforce_alternative_mfa' tool, which is an empty object indicating no input parameters are required.
    inputSchema: { type: 'object', properties: {}, },
  • Dispatches the tool call to the enforceAlternativeMFA handler in the CallToolRequestSchema handler.
    case 'enforce_alternative_mfa': return await this.enforceAlternativeMFA();
  • Helper check in get_policy_status tool to determine if alternative MFA is enforced.
    alternativeMFA: { enforced: authMethods.policies.microsoftAuthenticator.isEnabled, compliant: true, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DynamicEndpoints/Automated-BOD-25-01-CISA-Microsoft-Policies-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server