BEC TunerUser manual
All manuals
Free · Beta · Microsoft 365 · Windows

BEC Tuner

BEC stands for business email compromise: someone gets into a company mailbox and uses it to steer a payment to their own bank account. BEC Tuner checks a Microsoft 365 tenant for the signs of it and explains what it finds in plain language, with step-by-step fixes. It only reads; the audit changes nothing. This manual is for business owners, office managers and the IT people who help them.

Version 261205-1258Updated December 2026Windows 10 / 11 · Microsoft 365

01Overview

What is business email compromise?

A typical attack goes like this:

  1. A convincing sign-in page. Someone gets an email that looks like a shared document or a voicemail. The link opens a page that looks exactly like the Microsoft sign-in. Behind it, the attacker passes the password and the MFA code to Microsoft in real time and keeps the signed-in session. MFA alone does not stop this.
  2. A way back in. The attacker registers a device or adds their own sign-in method to the account, so changing the password later is not enough to lock them out.
  3. Hiding. An inbox rule quietly moves replies from a customer or supplier into a folder nobody looks at, so the real person never sees the conversation.
  4. The payment. The attacker reads the invoices, then sends new bank details from the real mailbox, or from a domain that is one letter off the real one. Money goes to the attacker, usually by wire transfer, and is hard to recover.

Business email compromise is one of the costliest kinds of online crime. In the FBI's 2025 Internet Crime Report it was second only to investment fraud, at about $3 billion in reported losses in one year (ic3.gov). Small and mid-size businesses are frequent targets, and often don't find out until a supplier asks where their payment went.

What BEC Tuner does

  • Reads 30 days of history from Microsoft 365: sign-ins, the audit log, inbox rules, mailbox permissions, devices, sign-in methods, app permissions and mail flow.
  • Runs 12 checks that look for each stage of the attack above (section 08).
  • Connects the dots. Findings for the same person that line up as an attack (break-in, a way back in, hiding, payment) become one incident, so you see the story, not a pile of alerts.
  • Writes one report you can open in any browser: a verdict, a timeline for each affected person, and the fixes in the order to do them, each explained in plain words.
Read only

The audit only reads. Nothing in your tenant is changed, no mail is opened, and nothing is sent anywhere except to Microsoft to sign in. The report and all the data stay on your computer. The commands the report suggests do make changes; you decide whether to run them.

Beta

BEC Tuner is in beta. It has been tested on real incidents and real tenants, but expect rough edges. Findings are signs to look into, not proof, and no audit catches every attack. Please tell us what it missed or flagged wrongly: info@taucher.llc.

Requirements

  • A Windows 10 or Windows 11 computer with Windows PowerShell 5.1 (included with Windows). PowerShell 7 also works.
  • An internet connection.
  • An admin account in the Microsoft 365 tenant you want to audit: a Global Administrator, or a Global Reader that also has the Exchange View-Only Audit Logs role (section 05).
  • Microsoft's free ExchangeOnlineManagement and Microsoft.Graph.Authentication PowerShell modules. BEC Tuner offers to install them the first time.
  • For the sign-in check to see every sign-in, the tenant needs Microsoft Entra ID P1 (included in Microsoft 365 Business Premium and E3/E5). Without it, BEC Tuner uses the audit log instead and says so in the report.

License

Copyright © 2026 WalterTaucher LLC. All rights reserved. BEC Tuner is free to use on any number of computers and to audit any number of tenants you are authorized to audit, including by IT service providers for their clients. It is source-available software, not open-source software. The full terms are in section 13, Terms of use, and in LICENSE.txt in the download.

You may share the complete, unmodified download under its original name, as long as you don't charge for it. IT providers may put their own branding on reports, keeping the "Generated by CCI BEC Tuner" credit. Selling, rebranding the tool, distributing modified versions or building it into another product requires written permission from WalterTaucher LLC. BEC Tuner is provided "as is", without warranty of any kind.

02Download and install

BEC Tuner is free. It is one zip file; there is no installer.

Download

Download BecTuner.zip (version 261205-1258).

  1. Download BecTuner.zip using the link above.
  2. Unblock it before you open it. Right-click the zip, choose Properties, tick Unblock at the bottom of the General tab, and click OK. This stops Windows asking about every file inside.
  3. Right-click the zip and choose Extract All. Put it somewhere you'll find again, for example Documents\BEC Tuner.
  4. Open the extracted folder. You'll see BEC Tuner.cmd, this manual, the license, and a CCI.BecTuner folder with the program itself.

Audits are saved in C:\BecTuner\Cases, one folder per tenant and run. To remove BEC Tuner, delete its folder and, if you no longer need the reports, C:\BecTuner.

03The short version

  1. Double-click BEC Tuner.cmd.
  2. Type the domain you want to audit, for example contoso.com, and press Enter.
  3. Sign in when the Microsoft sign-in window opens (it can hide behind other windows). It opens twice, a few minutes apart.
  4. Leave it running. The audit log takes 20 to 45 minutes. The report opens in your browser when it's done.
  5. Answer Y to go through the findings one at a time, and mark the ones you know are fine.

04Running an audit

Double-click BEC Tuner.cmd. A PowerShell window opens and BEC Tuner guides you through four steps. Everything it asks has a default in capitals, for example [Y/n]: pressing Enter picks it.

The first time

BEC Tuner checks the computer first. If Microsoft's PowerShell modules are missing it offers to install them (answer Y; it takes a minute or two). It also offers to download the free IP address data it uses to tell cloud servers apart from home and office internet connections. Nothing about your tenant is sent anywhere to do this.

Which tenant

Type the tenant's domain, such as contoso.com. Then type the admin account you will sign in with, or just press Enter to choose it in the sign-in window.

If you have audited this tenant before, BEC Tuner offers to continue an audit that didn't finish, or, for a finished one, to start a new audit, review its findings or open its report.

The four steps

StepWhat happensHow long
1. Microsoft GraphSign in and accept the read-only permissions. Reads devices, users, sign-in methods, app permissions, directory changes and sign-ins.A few minutes
2. Exchange OnlineSign in again. Reads mailboxes, inbox rules, permissions, the audit log and the message trace. A line is printed as each day of the audit log comes in.20 to 45 minutes
3. Checks and reportRuns the 12 checks, connects the findings into incidents and writes the report.Usually under 5 minutes
4. DoneShows the verdict and the number of findings, opens the report, and offers to go through the findings.
Tip

After the second sign-in you can walk away. If the computer sleeps, the window is closed or the internet drops, nothing is lost: double-click BEC Tuner.cmd again and choose C to continue. Only what's missing is collected again.

Note

Only one window can work on an audit at a time. If you start a second one, it says another window is already working on it. Let the first one finish, or close it, then try again.

05Permissions it needs

The account you sign in with must be able to read everything the checks need. The simplest choice is a Global Administrator. If you'd rather use a read-only account:

  • In the Microsoft 365 admin center, give it the Global Reader role.
  • In the Exchange admin center, under Roles > Admin roles, add it to the Compliance Management role group. That group holds the View-Only Audit Logs role, which searching the audit log needs.

Role changes can take up to an hour to apply. If a role is missing, BEC Tuner stops before collecting and says which one, in plain words, instead of failing halfway through.

When Microsoft Graph asks for permissions, it lists read-only ones such as reading users, devices, audit logs and sign-in methods. BEC Tuner asks for read permissions only.

The tenant's unified audit log must be turned on. It is on by default in new tenants; if it's off, the report says so and shows how to turn it on. Turning it on only helps from that day forward.

06Reading the report

The report is one file, report-<tenant>-<date>.html, in the audit's folder. It opens in any browser and can be emailed, printed or saved as PDF from the browser. It contains names, addresses and internal details, so share it only with people who need it.

The verdict

VerdictWhat it means
Compromise likelyAt least one person's account shows a full attack chain: a break-in plus a way back in, hiding or a payment attempt. Act now; start with the recommended response.
Suspicious activitySerious findings that need a person to look at them, but no full attack chain.
No indicators foundNone of the checks found signs of an attack in the period covered. This is good news, not a guarantee.
Cannot assessSomething the key checks need was missing, such as the audit log being turned off, so the audit cannot rule an attack out. The report says what was missing.

What's in it

  • What this means: a few sentences in plain language for the business owner.
  • Affected accounts: a timeline for each person involved, in UTC and the report's time zone (Pacific by default; change it with the ReportTimeZone setting).
  • Recommended response: the fixes in the order to do them. Each has the command to run, what it does, which window to run it in, what you'll see when it works, and the admin-portal clicks that do the same thing if you prefer not to use PowerShell.
  • How to run the commands: a step-by-step guide for people new to PowerShell, with the exact sign-in command the fixes need.
  • Findings: every finding with its severity, evidence and reasons. Each ends with a ready-to-paste command to mark it a false positive.
  • Posture: settings that make an attack easier, such as anyone being allowed to join devices or mail being auto-forwarded outside the company.
  • Coverage: which checks ran and anything that couldn't be read.
  • Appendix: the internet addresses involved, look-alike domains, findings marked false positive, and the version and fingerprint of the data.

Severity

Critical and High findings are the ones to act on. Medium needs a look. Low and Info are listed for completeness and to help with the story; they don't change the verdict on their own.

07Reviewing findings

Some findings will be things you know about: a security service everyone's traffic goes through, a forwarding rule your bookkeeper set up, an app the office uses. Marking them once means later audits of that tenant skip them.

At the end of an audit, answer Y to go through the findings. Later, double-click BEC Tuner.cmd, type the tenant, and press R. Each finding is shown, most serious first, and you answer:

KeyMeaning
FFine. Expected or harmless. You're asked for a one-line reason. It's marked a false positive and remembered for this tenant.
PA real problem that needs fixing. Marked confirmed in the report.
SSkip for now.
QStop. Your answers so far are kept.

When it helps, F also offers to trust what caused the finding, so related findings disappear too:

  • A network, when every address in the finding belongs to one provider, such as a secure web gateway or VPN service your company uses. You choose this tenant only or every tenant you audit.
  • A forwarding address that mail is meant to go to.
  • An app the company uses.
Important

BEC Tuner never offers to trust a whole cloud provider such as Amazon Web Services, Microsoft Azure or Google Cloud, because anyone can rent a server there, attackers included. It offers to trust just the specific addresses instead. Only trust something you're sure about.

At the end, BEC Tuner runs the checks again and refreshes the report. Reviewing findings changes only BEC Tuner's notes on your computer; nothing in Microsoft 365 is changed.

You can also mark a finding from the report: open the finding, expand Not a problem? Mark ... as a false positive, copy the command, replace the note with your reason, and paste it into a PowerShell window where BEC Tuner is loaded.

08The 12 checks

#CheckWhat it looks for
1Cloud-network sign-inA person signing in from a cloud server instead of a home, office or phone connection. Phishing relays run on cloud servers.
2Failures then successWrong passwords from a cloud address followed by a successful sign-in.
3Device sign-in from the cloudThe sign-ins used to register a device, coming from a cloud address.
4Password sprayMany failed sign-ins across several people from a few addresses.
5New device registrationA computer or phone added to a person's account, especially from a cloud address or with an unusual name.
6New sign-in methodA phone, authenticator app, passkey or Windows Hello key added to an account, especially right after a suspicious sign-in.
7Baseline postureSettings that make attacks easier: open device joining, auto-forwarding allowed, audit logging off, no conditional access.
8Suspicious inbox ruleRules that delete, hide, forward or mark-as-read mail, hidden rules, and mail moved by hand into folders nobody looks at.
9Sent then purgedMessages sent and then deleted for good, a sign of someone covering their tracks.
10Forwarding, delegation or consentMail forwarded outside the company, someone given access to another person's mailbox, and apps given permission to read mail.
11Look-alike domainMail to or from a domain that is one letter off a real customer's, supplier's or your own, the classic fake-invoice trick.
12Admin change off the allowlistRisky admin changes, such as new admins, new app secrets or changed security settings, from an unusual place.

09If it finds a compromise

Follow the report's Recommended response, in order. It is built around these steps:

  1. Delete devices the attacker registered.
  2. Sign the affected people out everywhere.
  3. Reset their passwords and confirm each MFA method is their own.
  4. Remove sign-in methods the attacker added.
  5. Remove hiding and forwarding rules, and put hidden mail back.
  6. Block the look-alike domains.
If money may have been sent

Call your bank immediately; the first hours matter most for recalling a wire. Then tell your insurer, and report it to law enforcement (in the United States, the FBI at ic3.gov). Warn the customers or suppliers involved by phone, using a number you already have, not one from the email.

The fixes change your tenant. If you're not comfortable with them, give the report to your IT provider. It is written so they can act on it directly.

10For IT administrators and MSPs

Running it step by step

The guided mode runs these commands for you. You can run them yourself, in Windows PowerShell, after Import-Module .\CCI.BecTuner. Exchange and Graph need separate windows.

# Window 1
$case = New-BecCase -Tenant contoso.com -Days 30
Connect-BecGraph -Case $case
Invoke-BecGraphCollection -Case $case

# Window 2
$case = Get-BecCase -Tenant contoso.com -Latest
Connect-BecExchange -Case $case -UserPrincipalName admin@contoso.com
Invoke-BecExoCollection -Case $case

# Either window, or a fresh one
Invoke-BecDetection -Case $case
New-BecReport -Case $case -Open
Invoke-BecTriage -Case $case

Trusting what's yours

Trust entries stop known-good things being flagged. They can apply to one tenant or to every tenant you audit:

Add-BecTrust -AllTenants -Ip '203.0.113.0/28' -Label 'Remote support relay' -Reason 'Our remote-support server'
Add-BecTrust -AllTenants -Asn 64500 -Label 'Secure web gateway' -Reason 'All user traffic goes through it'
Add-BecTrust -Tenant contoso.com -ForwardingAddress 'books@accountant.example' -Reason 'Bookkeeper'
Get-BecTrust
Remove-BecTrust -Id T-1234abcd

Mark findings with Set-BecFinding -Case ... -FindingId ... -Status FalsePositive -Note '...'. False positives are remembered for the tenant unless you add -ThisCaseOnly.

Where things are kept

WhatWhere
Audits (raw data, findings, reports)C:\BecTuner\Cases\<tenant>\<date-time>
Your settings, trust list and per-client files%APPDATA%\BecTuner
IP address data%LOCALAPPDATA%\BecTuner\IpData (refresh monthly with Update-BecIpData)

Settings go in %APPDATA%\BecTuner\BecTuner.local.psd1, using the same names as Config\BecTuner.config.psd1. Useful ones: CasesRoot, DefaultDays, ReportTimeZone, and Ual.RecordTypes. By default only the audit record types the checks read are collected; mail-access and SharePoint records can be 90% of a tenant's audit log, and none of the checks use them. Set it to @() to collect everything.

Your branding on reports

Copy Config\Branding\cci.psd1 and the logo, change the name, colors and logo, and point the Branding setting at your copy. Keep the "Generated by CCI BEC Tuner" credit (license section 3).

Privacy

BEC Tuner has no telemetry and no account. It talks only to Microsoft (to sign in and read the tenant) and, when you ask it to, downloads public IP address lists. Everything it collects stays in the audit folder on your computer.

11Troubleshooting and FAQ

The sign-in window never appeared

It is usually behind another window. Check the taskbar for a browser or Microsoft sign-in window. If the Graph sign-in fails once with "An error occurred when writing to a listener", run BEC Tuner again and choose Continue; the second try works.

"The account you signed in with is not allowed to ..."

The account is missing a role. See section 05. Role changes can take up to an hour.

"Another BEC Tuner window is already working on this audit"

A second window was started while the first was still collecting. Let the first finish, or close it, then try again.

The verdict is "Cannot assess"

Something the key checks need was missing. The report's Coverage section says what. Most often the audit log was turned off, or the account couldn't read it.

It flagged our VPN or security service

Review the finding and answer F. If all its addresses belong to that provider's network, BEC Tuner offers to trust the network for every tenant. See section 07.

Windows warned about the download

Browsers and SmartScreen may warn about zip files that contain scripts. Unblock the zip before extracting it (section 02).

Does it work on a Mac?

Not yet. It needs Windows. The report it produces opens anywhere.

How often should I run it?

Whenever something seems off, such as a supplier asking about an invoice you never sent, and monthly as a habit. Each run covers the last 30 days.

12Quick reference

ToDo this
Run an auditDouble-click BEC Tuner.cmd, or Start-BecAudit
Continue an unfinished auditRun it again, type the tenant, press C
Review findingsRun it again, type the tenant, press R, or Invoke-BecTriage -Case <folder>
Open the last reportRun it again, type the tenant, press O
Check this computerTest-BecPrereqs
Refresh the IP dataUpdate-BecIpData (monthly)
Trust a network, address or appAdd-BecTrust
Rebuild a reportNew-BecReport -Case <folder> -Open

Help for any command: Get-Help Start-BecAudit -Full. Questions and feedback: info@taucher.llc.

13Terms of use

Copyright © 2026 WalterTaucher LLC. All rights reserved.

BEC Tuner is free to use. It is source-available software, not open-source software. The rights granted below are the only rights granted, and all other rights remain with WalterTaucher LLC.

1. Use

You may install and use BEC Tuner free of charge on any number of computers, and to audit any number of Microsoft 365 tenants that you are authorized to audit, for personal, educational, commercial, or governmental purposes. IT service providers may use it to audit their clients' tenants.

No registration. No per-seat or per-tenant fees. No time limits.

2. Redistribution of unmodified copies

You may copy and redistribute BEC Tuner provided that:

  1. the complete, unmodified download (BecTuner.zip and everything in it) is distributed;
  2. this license and all copyright, version, and product notices are included;
  3. you do not charge for the software itself; and
  4. the software is distributed under its original name.

Reports that BEC Tuner produces belong to whoever ran the audit and may be shared freely.

3. Internal modification and report branding

You may modify BEC Tuner for use within your own organisation.

You may replace the branding profile used in reports (name, colors and logo in Config\Branding) with your own, provided that the "Generated by CCI BEC Tuner" credit in each report is kept.

Modified versions may not be distributed outside your organisation without prior written permission from WalterTaucher LLC.

4. Restrictions

Without prior written permission from WalterTaucher LLC, you may not:

  1. sell, license, rent, lease, or sublicense BEC Tuner;
  2. redistribute modified versions of BEC Tuner;
  3. distribute BEC Tuner under a different name;
  4. remove, alter, or obscure copyright notices, product names, trademarks, branding, or version information, except the report branding allowed in section 3;
  5. incorporate BEC Tuner, in whole or in part, into another product that you distribute.

You may use BEC Tuner only on Microsoft 365 tenants that you own or are authorized to audit.

5. Reservation of rights

All rights not expressly granted by this license are reserved by WalterTaucher LLC.

This license does not transfer ownership of BEC Tuner or any associated trademarks, copyrights, branding, or intellectual property.

6. No warranty and no liability

BEC TUNER IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, ACCURACY, AND NONINFRINGEMENT. WALTERTAUCHER LLC DOES NOT WARRANT THAT BEC TUNER WILL BE UNINTERRUPTED, ERROR-FREE, OR FREE OF HARMFUL COMPONENTS, OR THAT ANY DEFECT WILL BE CORRECTED.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WALTERTAUCHER LLC SHALL HAVE NO LIABILITY WHATSOEVER ARISING FROM, OUT OF, OR IN CONNECTION WITH BEC TUNER OR THE USE OF, OR INABILITY TO USE, BEC TUNER. THIS EXCLUSION APPLIES TO ANY CLAIM OF ANY KIND, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR OTHERWISE, AND TO ALL DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, AND PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF FUNDS, FRAUDULENT PAYMENTS, LOSS OR CORRUPTION OF DATA, EMAIL, OR FILES, LOSS OF PROFITS, REVENUE, OR GOODWILL, BUSINESS INTERRUPTION, COST OF SUBSTITUTE PRODUCTS OR SERVICES, AND THE COST OF INCIDENT RESPONSE, EVEN IF WALTERTAUCHER LLC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND EVEN IF ANY REMEDY FAILS OF ITS ESSENTIAL PURPOSE.

BEC TUNER IS SUPPLIED FREE OF CHARGE AND YOU ACCEPT ALL RISK ARISING FROM ITS USE. YOU ARE SOLELY RESPONSIBLE FOR DECIDING WHAT ITS FINDINGS MEAN, FOR ANY ACTION YOU TAKE OR DO NOT TAKE BECAUSE OF THEM, AND FOR VERIFYING ANY COMMAND BEFORE YOU RUN IT.

IF APPLICABLE LAW DOES NOT PERMIT THE FULL EXCLUSION OF WARRANTIES OR LIABILITY, THE EXCLUSIONS ABOVE APPLY TO THE GREATEST EXTENT THAT LAW ALLOWS, AND THE TOTAL AGGREGATE LIABILITY OF WALTERTAUCHER LLC SHALL NOT EXCEED ONE US DOLLAR (USD 1.00). VOLUNTARY DONATIONS ARE GIFTS IN SUPPORT OF DEVELOPMENT; THEY ARE NOT A PURCHASE OF BEC TUNER, NOT CONSIDERATION, AND DO NOT CREATE ANY WARRANTY, SUPPORT OBLIGATION, OR LIABILITY.

THIS SECTION SURVIVES ANY TERMINATION OF THIS LICENSE.

BEC Tuner only reads from a tenant; the audit itself changes nothing. Its findings are indicators, not proof. No audit can detect every attack, and a report with no findings does not mean a tenant is safe. Commands that the report suggests DO change the tenant: review each one, and test it where you can, before you run it. If you believe money or data has been stolen, contact your bank, your insurer and law enforcement (in the United States, https://www.ic3.gov), and consider a professional incident responder.

7. Source code

BEC Tuner source code may be published for transparency, educational purposes, and community review.

Publication of source code does not grant any rights beyond those granted by this license.

8. Commercial licensing

Licenses for redistribution, bundling, resale, rebranding, OEM use, or inclusion within another product are available by separate agreement.

WalterTaucher LLC
walter@taucher.llc
Coded Cadence Industries
Built for the rhythm of work.