Security Policy Errors

Fix Custom Login Page Errors in Microsoft Attack Simulation Training

Chanuka GeekiyanageChanuka Geekiyanage Oct 26, 2026 869 views

Question details

The user is unable to proceed past the login page configuration step because the Next button fails when using a custom HTML login page for a simulation campaign.

How to Fix Custom Login Page Errors in Attack Simulation Training
Product
Microsoft Attack Simulation Training
Device & OS
not provided
Scenario
Creating a custom login page for a phishing simulation campaign in Microsoft 365 Defender.
Observed behavior
An error occurs preventing the 'Next' button from working during the setup of a custom login page, while Microsoft-curated templates function correctly.
Before you start

Ensure you have the necessary Security Administrator permissions in the Microsoft 365 Defender portal to configure payloads and manage Attack Simulation Training campaigns.

Solution 1Recommended

Test with Curated Login Pages and Inspect Custom Code

Determine if the error is widespread or isolated to your custom code by testing default Microsoft templates, then fix the HTML markup.

Often, configuration errors on the 'Next' button stem from missing required variables or incorrectly formatted HTML within the custom payload code. Isolating the issue using curated pages confirms the platform is working correctly.

1
Select a curated login page

In your payload configuration menu, temporarily switch your login page selection to a Microsoft-curated page such as the Microsoft, LinkedIn, GitHub, or a non-branded template.

2
Test the Next button

Click the 'Next' button to see if the configuration proceeds without errors. If it works, the issue is strictly isolated to your custom page.

3
Inspect custom webpage code

Open your custom HTML code in a text editor. Ensure that all required fields and the mandatory compromise button are correctly formatted and included in the markup.

4
Verify against Microsoft documentation

Compare your code against the official Microsoft TechCommunity guide for customizing login pages in Attack Simulation Training to ensure no required tags were omitted.

Test with Curated Login Pages and Inspect Custom Code
Required Elements: Your custom HTML must include the specific compromise button action mapping required by the simulation training validator, otherwise the Next button will remain disabled or throw an error.
Free Microsoft Office alternative

Looking for a Lightweight and Free Office Suite?

While Microsoft 365 provides complex enterprise security tools, you might just need a powerful, reliable suite for creating everyday documents, spreadsheets, and presentations. WPS Office is an excellent, cost-effective choice that provides a seamless offline and online experience without heavy enterprise overhead.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Free, lightweight, and fast-loading alternative to standard Microsoft Office applications.Familiar user interface requiring no steep learning curve for immediate productivity.Built-in robust PDF editor for comprehensive document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Next button fail only on my custom login page?

This usually happens if the custom HTML code is missing required interactive elements, such as the designated compromise button or specific input fields required by the Attack Simulation Training configuration validator.

What are Microsoft-curated login pages?

These are pre-built, tested login page templates provided by Microsoft (e.g., Microsoft, LinkedIn, GitHub, or non-branded pages) that are guaranteed to work perfectly within the simulation training environment.

Do I need special permissions to customize simulation login pages?

Yes, you typically need to be assigned the Attack Simulation Administrator or Security Administrator role in the Microsoft 365 Defender portal to create and modify payloads and login pages.

How do I ensure my custom login page meets all Microsoft requirements?

You must carefully follow the official Microsoft documentation for customizing login pages in Attack Simulation Training, ensuring all required variables, tags, and form actions are correctly mapped in your HTML source code.