HowTo: Set Up AttackPhish Direct Injection for Microsoft 365

2nd December 2026 | HowTo HowTo: Set Up AttackPhish Direct Injection for Microsoft 365

A phishing test that never reaches the inbox isn’t much of a test. If Microsoft 365 quarantines your AttackPhish simulation before anyone sees it, you’re measuring Microsoft’s filters, not your people.

That’s the problem Direct Injection solves. Here’s what it is, how it works, and how to set it up for Microsoft 365 in a few minutes.

What is Direct Injection?

Normally, AttackPhish sends a simulation by email, like any other message. Exchange Online Protection and Defender look at it on the way in, and they’re good at spotting phishing. That’s their job.

With Direct Injection, CyberHoot skips the mail route. AttackPhish uses Microsoft Graph to place the simulation straight into the user’s inbox. It shows up as an unread message from the sender the simulation uses. Nothing is sent over the wire, so there’s nothing for Microsoft’s phishing protection to quarantine.

Why it matters

  • Simulations reach the inbox. Your users actually get to see, and spot (or click), the test.
  • No allow-listing gymnastics. You don’t have to carve exceptions into your mail filters for every simulation.
  • It fails safe. If a message can’t be injected for any reason, AttackPhish sends it by email as usual. Nobody gets left out.

Before you start

  • Your users need to be synced from Entra ID. Direct Injection applies to users CyberHoot syncs from Microsoft Entra ID. If you haven’t set up the Entra ID sync yet, do that first (you can grant mail access in the same wizard, see below).
  • You need an Entra ID Global Administrator. They’ll accept one extra Microsoft consent on behalf of your organization.
  • Heads up on permissions. The consent is for a separate app called CyberHoot Mail Delivery. It gets one permission, Read and write mail in all mailboxes (Mail.ReadWrite), which is what lets it drop messages into inboxes. Today it’s used only when Deliver AttackPhish via Microsoft Graph is turned on. Your Entra ID sync app never gets mail access.

Set it up for Microsoft 365

  1. Open your Entra ID sync settings. In CyberHoot Autopilot, open the tenant, go to Tenant > Users > Entra ID, and open the Entra ID sync settings. Look for the AttackPhish Delivery section.
  2. Grant mail access. Click Grant mail access. A Microsoft sign-in opens. A Global Administrator signs in and accepts on behalf of the organization.
    • Setting up the Entra ID sync for the first time? On the grant step, tick Also grant mail access to the CyberHoot Mail Delivery app and both consents happen in one trip. The same checkbox sits next to Re-Grant Entra ID Access on existing integrations.
    • On a Microsoft government cloud tenant? Use the government cloud option when granting. CyberHoot uses the matching app for your cloud.
  3. Wait a few minutes. Microsoft needs a moment to apply the new permission everywhere.
  4. Send a test injection. Click Send test injection. CyberHoot places a test message in the inbox of the account you’re logged in with, so that address needs to be on one of your Entra ID-synced domains. The message says it came through Microsoft Graph, and you can delete it.
    • A success message means the permission is in place.
    • An “access denied” message means mail access hasn’t been granted yet. Ask a Global Administrator to click Grant mail access and accept.
  5. Turn it on. Tick Deliver AttackPhish via Microsoft Graph and save your sync settings.

From now on, AttackPhish simulations to your Entra ID-synced users go straight to their inboxes.

Good to know

  • Removing access. To take it away later, delete the CyberHoot Mail Delivery app under Enterprise applications in Entra ID, and untick the delivery option in CyberHoot.
  • Checking what happened. Injected messages are logged in the AttackPhish email logs as delivered through Microsoft Graph. If one fell back to email, the log says so and includes the reason.
  • Don’t see the options? If the settings say Microsoft Graph delivery isn’t available on your site yet, contact support and we’ll sort it out.
  • Using Google Workspace? See HowTo: Set Up AttackPhish Direct Injection for Google Workspace (Gmail).

Need a hand?

Stuck on the consent step, or the test message won’t land? Contact CyberHoot support at support@cyberhoot.com.

Not ready for Direct Injection? You can still allow-list CyberHoot’s AttackPhish simulation servers in M365.

Latest Blogs

Stay sharp with the latest security insights

Discover and share the latest cybersecurity trends, tips and best practices – alongside new threats to watch out for.

Android Malware – Godfather Tech – Wants Your Financial Credentials

Android Malware – Godfather Tech – Wants Your Financial Credentials

Author: Katie Boquetti | Editorial: Craig Taylor Editorial by Craig Taylor: If Hollywood pitched a movie...

Read more
CyberHoot Advisory: AI-Powered Cyberattacks are Growing

CyberHoot Advisory: AI-Powered Cyberattacks are Growing

What Businesses Need to Know about ARTEX and Your Defenses The takeaway: AI tools like ARTEX are making...

Read more
Speed Traps vs. Safe Driver Discounts: Why Rewards Build Better Security Habits

Speed Traps vs. Safe Driver Discounts: Why Rewards Build Better Security Habits

Picture yourself on the highway, cruising about 20 over the limit with the rest of traffic. Up ahead, brake...

Read more