SPF, DKIM and DMARC: A Plain-English Setup Guide

Illustration of a verified email passing a security gate while a fake one is blocked

Anyone can send an email that claims to come from your domain. The three DNS records that stop that, SPF, DKIM and DMARC, have existed for over a decade, yet plenty of small businesses still have none of them or only one. Since February 2024 it has also become a deliverability problem: Gmail and Yahoo require authentication from bulk senders, and Microsoft started applying similar rules to Outlook.com in May 2025.

What each record does

SPF (Sender Policy Framework) is a TXT record listing the servers allowed to send mail for your domain. The receiving server checks the sender’s IP address against that list. A typical record for Microsoft 365 looks like v=spf1 include:spf.protection.outlook.com -all. Every service that sends as you, such as a newsletter platform, helpdesk or invoicing tool, needs its own include. SPF allows at most 10 DNS lookups, a limit that is easy to hit once you add a few services.

DKIM (DomainKeys Identified Mail) signs each outgoing message with a private key. The matching public key sits in DNS, so the receiver can confirm the message came from an authorised system and was not altered on the way. You turn it on in each sending service, which then gives you a CNAME or TXT record to publish.

DMARC ties the two together. It tells receivers to check that the domain in the visible From address matches, or aligns with, the domain that passed SPF or DKIM, and says what to do with mail that fails. It also asks receivers to send you reports, which is how you find every service that sends as your domain.

What the big mailbox providers require

Google’s rules took effect in February 2024 and apply to anyone sending close to 5,000 or more messages a day to personal Gmail accounts. Those senders need SPF, DKIM and a DMARC record of at least p=none, plus one-click unsubscribe and a spam complaint rate below 0.3%. Once a sender crosses the threshold, Google treats it as a bulk sender permanently. Yahoo introduced matching requirements at the same time. Microsoft’s rules for Outlook.com, Hotmail and Live addresses cover domains sending more than 5,000 messages a day. From 5 May 2025, non-compliant mail from those domains started going to Junk, with rejection to follow.

Even if you send far less than that, these providers use authentication as a trust signal. An unauthenticated domain is easier to spoof in phishing and more likely to land in spam.

A safe rollout in five steps

  1. List everything that sends email as your domain: your mail platform, website contact forms, CRM, marketing tool, accounting software, scanners and printers.
  2. Publish one SPF record that includes the services you actually use. Two SPF records on the same domain is an error and breaks both.
  3. Turn on DKIM in each service and publish the records it gives you. In Microsoft 365 the setting is in the Defender portal under email authentication settings.
  4. Publish DMARC in monitoring mode, for example v=DMARC1; p=none; rua=mailto:[email protected]. Read the aggregate reports for two to four weeks (a free report viewer helps, since they arrive as XML) and fix any legitimate source that fails.
  5. Move to p=quarantine, then to p=reject. If you want to go gradually, the pct tag applies the policy to a percentage of failing mail first.

Domains that never send mail should still get records: v=spf1 -all and a DMARC record with p=reject, so nobody can spoof them either. Attackers like parked domains for exactly that reason.

Sources

AI Coding Assistants Are Now Part of Your Software Supply Chain

Illustration of an AI assistant feeding code blocks into a software build pipeline

Developers now ask an assistant for code, accept its suggestion to install a package, and let an agent run commands in their terminal. Each of those steps is a supply-chain decision, and the assistant makes some of them faster than anyone reviews them. Three pieces of research and incidents from 2025 show where the gaps are.

Packages that do not exist yet

Researchers presenting at USENIX Security 2025 tested 16 code-generating models across 576,000 Python and JavaScript samples. Of the packages the models recommended, 19.7% did not exist, and the study counted 205,474 unique made-up names. The hallucinations were also repeatable: when the same prompt ran ten times, 43% of the invented names came back every time.

That repeatability is what makes it dangerous. An attacker can ask the same kinds of questions, collect the names the models invent, and register them on npm or PyPI with malicious code inside. The industry has started calling this slopsquatting. Commercial models hallucinated far less often than open-source ones on average, but none of the models tested was at zero.

Malware that drives your AI tools

On 26 August 2025, attackers used a stolen npm token to publish malicious versions of Nx, a popular JavaScript build system. Snyk reported that the bad releases were live for roughly five hours. A post-install script looked for Claude Code, Gemini CLI and Amazon Q on the developer’s machine. If it found one, it ran the tool with flags that skip permission prompts, such as --dangerously-skip-permissions and --yolo, and asked it to search the file system for wallets, tokens and keys. The stolen data was pushed to public GitHub repositories named s1ngularity-repository, and researchers counted more than a thousand valid GitHub tokens in the leak.

The malware needed no flaw in the AI tools themselves. It used agents that already had access to the developer’s home directory and ran them in their least restricted mode.

Connectors that change under you

Model Context Protocol (MCP) servers let assistants call tools such as email, ticketing systems or databases. In September 2025, Koi Security found an npm package called postmark-mcp that copied the code of Postmark’s legitimate MCP server and used the same name. Fifteen versions behaved normally. Version 1.0.16 added one line that blind-copied every email sent through it to an outside address. Koi estimated around 1,500 downloads a week. Anyone whose setup pulled the update automatically was leaking invoices, password resets and internal mail with nothing visibly wrong.

This ties back to prompt injection. An agent’s tools are part of its attack surface, and a connector is third-party code running with your agent’s permissions.

What to lock down

  1. Check every package an assistant suggests before installing it: that it exists, how old it is, who maintains it and how many people download it. A package created last week with a plausible name is a warning sign.
  2. Use lockfiles and pinned versions, and install in CI with npm ci. Consider turning off install scripts by default with npm config set ignore-scripts true and allowing them only for packages that need them.
  3. Put a dependency scanner or package firewall in front of your registry so newly published or flagged packages are blocked until reviewed.
  4. Never run coding agents in permission-skipping modes on a machine that holds production credentials. Use a container or development VM that holds only the secrets that project needs.
  5. Treat MCP servers like any other dependency. Install them from the vendor’s official source, pin versions, review changes before upgrading, and give each server the narrowest token that works.
  6. Keep long-lived tokens off developer laptops. Short-lived credentials from your cloud provider or a secrets manager limit what any stolen file is worth.

Sources

MFA Fatigue: How Push Bombing Works and How to Stop It

Illustration of a phone buried under repeated sign-in approval prompts

Multi-factor authentication stops most account takeovers, which is why attackers have learned to work around its weakest form. If your staff approve sign-ins by tapping a push notification on their phone, an attacker who already has a password can keep sending prompts until someone taps Approve to make them stop. CISA calls this MFA fatigue. You will also see it called push bombing.

How the attack plays out

The attacker starts with a valid username and password, bought from an infostealer log, reused from an old breach or phished. They sign in, the identity provider sends a push to the real user, and the user declines. The attacker tries again, and again, often late at night. Some add a phone call or chat message pretending to be IT support, telling the user the prompts will stop once they approve one.

That is close to what happened at Uber in September 2022. Uber said an attacker linked to the Lapsus$ group obtained a contractor’s password, probably because malware on the contractor’s personal device had exposed it. The attacker triggered repeated login approval requests. The contractor blocked the early ones and eventually accepted one. Reporting at the time said the attacker had also messaged the contractor on WhatsApp posing as Uber IT. From there the attacker reached other employee accounts and internal tools, including Slack and G-Suite.

Nothing in that chain needed a software vulnerability. The password was already stolen, and the second factor was defeated by a tired person.

Number matching is the minimum

A basic push prompt asks one question: approve or deny. Number matching changes the question. The sign-in screen shows a number, and the user has to type that number into the authenticator app. Someone at home who never started a sign-in has no number to type, so a stray tap does nothing.

CISA published a fact sheet on number matching in October 2022 and describes it as one of the best interim mitigations for organisations that cannot yet move to phishing-resistant MFA. Microsoft turned number matching on for all Microsoft Authenticator push notifications from 8 May 2023, and admins can no longer switch it off. Other MFA vendors offer the same feature, often under a different name. If you use something other than Microsoft Authenticator, check that it is enabled for every user.

Phishing-resistant MFA removes the prompt

Number matching still relies on a person reading a screen. A convincing fake login page can show the victim the right number and relay their approval to the real site. CISA’s first recommendation is phishing-resistant MFA: FIDO2 security keys, passkeys or smart cards. These bind the login to the real website’s domain, so there is no prompt for an attacker to spam and no code to relay. I covered the practical side in Passkeys vs Passwords: A Practical Migration Plan. Start with admins and finance staff, the accounts attackers most want.

What to do this week

  1. Confirm number matching, or your vendor’s equivalent, is enforced for every account, including contractors and service desk staff.
  2. Turn on any setting that limits repeated push requests, and alert on bursts of denied prompts. CISA’s fact sheet specifically recommends investigating denied push notifications, since a run of denials usually means someone else has the password.
  3. Tell staff plainly: if you get a sign-in prompt you did not start, deny it and report it. IT will never ask you to approve a prompt over the phone or in chat.
  4. When someone reports unexpected prompts, reset their password straight away. The prompt means an attacker already has it.
  5. Move privileged accounts to security keys or passkeys first, then widen the rollout.
  6. Look for weaker fallbacks. If users can still choose SMS or voice codes, an attacker can steer them towards those instead.

Sources

Using AI Chatbots at Work Without Leaking Company Data

Most people who use AI chatbots at work do it to save time: summarising a long document, drafting an email, fixing a spreadsheet formula, explaining an error message. Those are good uses. The risk lies in what gets pasted into the chatbot and where that data goes next.

The cautionary tale

In 2023, Samsung engineers pasted confidential source code and internal meeting notes into ChatGPT while asking for help. Nobody hacked anything. They sent sensitive data to an external service under consumer terms, and Samsung responded by restricting staff use of generative AI tools on company devices. In most organisations, the biggest AI data risk is ordinary employees trying to get their work done.

OWASP’s Top 10 for LLM Applications ranks sensitive information disclosure second, right after prompt injection.

Where your data can go

Some consumer AI services may use your conversations to train their models unless you opt out. Business and enterprise plans from the major providers generally exclude customer data from training by default, but check the terms of the plan you actually use. Conversations may also be stored for a period and, in some cases, reviewed for abuse or safety monitoring.

Data can also leave through side doors. A “share” link, a browser extension or a third-party plugin can expose a conversation far beyond the person who started it. And if someone takes over a staff member’s AI account, they get its entire chat history.

Five rules for anyone using AI at work

  1. Use the company-approved tool, signed in with your work account, and keep personal free accounts out of work.
  2. Never paste secrets: passwords, API keys, private keys, connection strings, or anything from a .env file. If you do paste one, treat it as compromised and rotate it.
  3. Strip personal data before you paste. Replace customer names, ID numbers, addresses and health or financial details with placeholders; the model rarely needs them to help you.
  4. Keep contracts, unreleased financials, M&A material and source code in tools your organisation has approved for that classification of data.
  5. Check the output before you use it. AI can be confidently wrong, and you remain responsible for what you send to a customer or commit to production.

A one-page AI policy for small businesses

Banning AI rarely works. People use it on their phones anyway, and then you have no visibility at all. A short, clear policy works better, and it only needs four parts.

Name the one or two AI services staff may use, on business plans with training on customer data switched off and with single sign-on and MFA enforced. Set data rules as a simple traffic light: public information is fine (green), internal information goes only into approved tools (amber), and secrets and regulated personal data never go in (red). Treat AI output as a draft, with a named person reviewing anything that goes to a customer or into a system. And ask staff to report a mistaken paste immediately, without blame, so secrets can be rotated.

With a few simple guardrails, AI chatbots are among the best productivity tools a small team can have, and the company’s data stays with the company.

Sources

Passkeys vs Passwords: A Practical Migration Plan

Illustration of a passkey fingerprint key replacing a crumpled password note on a dark navy background

Stolen and phished credentials are still one of the most common ways attackers get in. Multi-factor authentication helps, but some kinds help more than others. A convincing fake login page can capture SMS codes and authenticator-app codes and relay them to the real site in real time. Passkeys close that gap. Here’s how they work and how to move to them without locking yourself out.

What a passkey is

A passkey is a login credential based on the FIDO2 and WebAuthn standards. Instead of a shared secret that you type, your device holds a private key, and the website holds only the matching public key. When you sign in, you unlock your device with your fingerprint, face or device PIN, and the device proves it has the private key.

That design has two advantages over a password. Nothing reusable is sent or stored, so a breach of the website leaks only public keys, which are useless to an attacker. And the passkey is bound to the real domain. A passkey created for login.example.com won’t work on login-example.co, and your browser won’t even offer it there, so a phishing page has nothing to capture. That is what “phishing-resistant” means.

Synced vs device-bound passkeys

Synced passkeys are backed up and synchronised by a platform or password manager: Apple’s iCloud Keychain, Google Password Manager, or a third-party manager such as 1Password or Bitwarden. If you lose your phone, they’re still there. That convenience makes them the right default for most people.

Device-bound passkeys live on one piece of hardware, typically a security key such as a YubiKey, and cannot be copied off it. They are the stronger choice for administrators and other high-risk accounts.

The US National Institute of Standards and Technology draws the same line in its latest digital identity guidelines, SP 800-63-4. Syncable authenticators are acceptable up to Authenticator Assurance Level 2, provided the sync service encrypts the keys and protects access to them with multi-factor authentication. The highest level, AAL3, requires a non-exportable key, which in practice means a device-bound authenticator.

A migration plan for a small organisation

Step 1 is to start with the accounts that matter most: email and the identity provider (Microsoft 365 and Entra ID, or Google Workspace), then admin consoles, banking, the domain registrar and DNS, the password manager, and backup systems.

Step 2 is hardware keys for admins. Give each administrator two security keys, one to carry and one stored safely as a backup, and register both before removing any other sign-in method.

Step 3 is rolling out synced passkeys to staff. Enable passkeys in your identity provider, then walk people through registering one on their phone or laptop in a short session. Most people are done in five minutes.

Step 4 is recovery, planned before you need it. Lost devices are the main operational risk. Make sure every user has at least two registered sign-in methods, and decide how IT verifies someone’s identity before resetting their access. Social engineers rely on helpdesks that accept a phone call alone as proof.

Step 5 is phasing out the weak methods. Once most people use passkeys, use conditional access or authentication-strength policies to require phishing-resistant methods for admins first, then for everyone. Remove SMS as a fallback where you can.

For your own accounts, today

  1. Add a passkey to your Google, Microsoft and Apple accounts.
  2. Add one to your password manager, if it supports passkey sign-in.
  3. Keep your existing recovery codes somewhere safe and offline.

Passwords won’t disappear overnight. Each account you move to a passkey is one a phishing email can no longer take from you.

Sources