On a Friday afternoon, the head of treasury receives a message from the CEO: “We need to finalise a confidential acquisition and the payment cannot wait until Monday.” The email is flawless, the signature is the usual one and, as if that weren’t enough, her voice comes through on the other end of the phone.
In previous articles, we looked at what the Criminal Code penalises and how those who target businesses operate. Now it’s time for the practical side: how to avoid falling victim to cyber fraud.
The good news is that a large investment is almost never required: in most cases that have reached the courts, there was a simple measure that would have prevented the problem. The bad news is that the risk is constantly growing. According to the report for the first half of 2026 from 017, the Cybersecurity Helpline run by the National Cybersecurity Institute (INCIBE), which provides free and confidential support to citizens and businesses, enquiries almost doubled compared with the same period the previous year. Among businesses, the most common reason (30.6 per cent) was fraud where someone impersonates a trusted organisation or individual over the phone, by text message or by email[1].
All the measures that follow are based on the same principle. The criminal does not break into the system: they get someone on the inside to do what they want, and quickly. That is why defence consists of introducing checks that the deception cannot overcome and of buying the time that the criminal is trying to take away from us.
1. Prevention also means deciding who pays
Before we look at the advice, it is worth understanding why these measures also matter in a court of law. Supreme Court Judgment (First Chamber) 787/2026, of 25 May, dealt with a case involving CEO fraud amounting to over one and a half million euros. The bank itself carried out the transfers, bypassing the agreed protocol, which required them to be confirmed by telephone with the finance director. Even so, the Supreme Court confirmed that the compensation should be reduced to 50 per cent, due to the company’s internal shortcomings and the actions of its employee. In other words: although the bank failed, the company bore half the loss because its own controls had also failed. What the company did – or failed to do – prior to the attack is precisely what will be examined to determine the amount of compensation to be paid.
And the loss does not always arise from a payment made by the company itself. If a criminal hacks into the company’s email system and asks its customers to pay into a different account, those customers may be released from liability: Article 1164 of the Civil Code protects a payment made in good faith to a person appearing to be the creditor, provided that the debtor demonstrates that they acted with due diligence (SAP Madrid (10th Section) 501/2019, of 28 October). The courts examine each case individually, but when the message is plausible and there was nothing in it to arouse suspicion, the company may end up not being paid, even if it was others who were deceived.
In short, internal controls are no longer merely a matter of good practice; they constitute both evidence and a safeguard.
2. Procedures: ensure no payment depends on a single message
CEO fraud and falsified invoices work because a single convincing message is enough to move the money. Procedures serve to break that dependency: if the payment requires steps beyond the fraudster’s control, the deception falls short.
- Always verify via a different channel. Any request to pay, change an account or send data must be confirmed by calling the usual contact, using the number already on file – never the one given in the email or during the call.
The reason is simple: the fraudster controls the channel through which the request arrives (a spoofed email, a fake number, or even a cloned voice), but not the actual telephone number of the executive or supplier.
- Dual authorisation. Transactions involving larger sums must require two people, so that the person who approves is not the same as the one who carries out the transaction. The scam usually targets a single person and relies on isolating them. With two signatures, the criminal would have to deceive two people at once, and the second person – who has not been under pressure – is usually the one to notice that something is amiss.
- Secure supplier details. New IBANs and account changes must go through a verification procedure handled by a single department, and payment should not be made to the new account until it has been confirmed with the contact listed on the supplier’s file. A change of account is the exact moment when a manipulated invoice is finalised: if anyone can alter this information via an email, the fraudster only needs a credible email address.
- Approved, well-known and implemented protocols. A protocol gathering dust in a drawer offers no protection. In the case of the Madrid High Court of Justice (Social Chamber) ruling 172/2020 of 14 February, the treasury protocol had not actually been approved and the company lost 3.5 million euros, even though months earlier it had warned its departments by email about the CEO’s fraud. Simply issuing a warning is not enough: if the procedure is not mandatory and no one checks that it is being followed, under the pressure of the moment the employee will do whatever is asked of them by whoever appears to be their boss.
Economic Criminal Law and Criminal Compliance
Specialists in economic and corporate crimes. Criminal defence in complex cases and plans for the prevention of crimes and money laundering. We act before national and European courts with total rigour. Learn more3. People: urgency and secrecy are the hallmarks of deception
No procedure is effective if the person responsible for implementing it fails to recognise the attack or does not dare to stop it. These measures aim to ensure that employees recognise the pattern and feel supported in putting a stop to it.
- Training tailored to each role. A generic annual course rarely prepares staff for a real-life situation, as each department faces different types of attack: administration, fake invoices; Human Resources, requests for data or changes to payslip details; senior management, urgent crises.
Brief, specific reminders and simulation exercises work best: an urgent request from the ‘chief financial officer’ on a Friday afternoon allows us to check, without risk, for procedural flaws and to identify who can halt the payment.
- Be wary of anything labelled ‘urgent and confidential’. The attacker claims the transaction is ‘confidential’ to prevent the victim from consulting anyone else, and pressures them to act quickly so they have no time to think or verify. These are the two tactics that bypass controls. That is why the rule must be the opposite: the more urgent and secretive the request, the more verification is required – with no exceptions based on seniority.
- Permission to say ‘no’. Management must make it clear in writing that no one will be reprimanded for delaying a payment in order to verify it. Without that guarantee, employees fear upsetting their boss more than they fear making a mistake, and the criminal knows this. Furthermore, if the CEO himself can bypass protocol ‘because he is in a hurry’, the criminal will use exactly that argument.
- Rules for dealing with fake banks. No bank ever asks for passwords via email, text message or phone call, and its legitimate messages do not include links to its login page. You access your bank by typing in its address or via its official app, because the link in the message leads to a fake version of the website designed to capture your passwords. And if you receive a call ‘from the bank’, hang up and call the official number, because the number displayed on the screen may be fake.
- Check the sender’s address letter by letter. Changing just one letter in the domain name is enough to deceive you, because the eye reads what it expects to read. In a case reported by INCIBE, the email from the supposed supplier had two ‘o’s where there should have been two ‘e’s. Checking the full address – and not just the name displayed by your email programme – is the easiest way to spot an impersonation.
- Be careful with public information. The most effective scams are crafted using information published by the company itself: who the finance director is, when the chief executive is travelling, or what deal is being negotiated. The less that is known about internal processes and staff absences, the harder it is to construct a credible hoax.
4. Technology: closing the most obvious loopholes
Technology is no substitute for procedures, but it makes it harder for criminals to gain access to the company’s systems and easier to detect them when they try.
- Protect accounts. Most email frauds begin with a stolen password. If an employee uses the same password across several services and one of those websites suffers a data breach, the criminal will try it on the corporate email account. That is why a password manager is advisable – it allows you to use different, strong passwords – as well as two-factor authentication, so that the password alone is not enough to gain access.
For email, online banking and cloud services, it is advisable to move towards security keys or passkeys: these only work on the genuine website, so an employee cannot accidentally enter them on a fake page. And access rights are revoked as soon as someone changes role or leaves the company, because a forgotten account is an open door that nobody is monitoring.
- Email and systems. Email filters detect messages that claim to come from the company or a known domain but do not, whilst monitoring domains similar to our own allows us to detect if anyone has registered an almost identical address to impersonate us. Keeping systems up to date and antivirus software active closes the vulnerabilities through which malicious software that enables email spying is installed; and ensuring that employees do not work with administrator permissions prevents such software from being installed without further ado. Backups, for their part, allow operations to be restored if the attack results in data hijacking.
Finally, the organisation must retain access logs: if it cannot be established how the offender gained access, it will not be possible to prosecute for unauthorised access to the system (Section 197a of the Criminal Code).
- Verification of the beneficiary. From 9 October 2025, Regulation (EU) 2024/886 requires banks in the eurozone to issue a warning, before executing a transfer, if the beneficiary’s name does not match the holder of the IBAN. This is a direct defence against manipulated invoices, where payment is made to a genuine supplier but into an account belonging to the criminal.
However, the warning does not block the transaction: the payer may proceed, and anyone who ignores it will find it difficult to argue that they acted with the due diligence required by Article 1164 of the Civil Code. That is why a ‘mismatch’ is a warning, not a formality, and it is advisable to ask the bank how this applies to batch payments, which are common in businesses.
- Further tools provided by the bank. Alerts for every transaction in the app make it possible to detect an unauthorised transfer within minutes, and in these fraud cases, those minutes determine whether the money can be retained. Furthermore, daily transfer limits ensure that an unusual transaction involving a large sum requires additional authorisation, providing a further opportunity to uncover the fraud.
- Devices.
- Avoid public Wi-Fi These networks allow third parties to intercept or redirect your connection, so they should not be used without protection.
- Do not use public USB ports or memory sticks of unknown origin. These can be used to install malicious software or extract data from the device (juice jacking). If you ever need to charge your device in a public place, it is important to use a cable that only transmits power and not data.
- Only download apps from official app stores. They should never be installed from a link or a QR code you have received, as this is a common way of introducing malicious software.
- Protect devices with a lock, encryption and remote wipe. If a work mobile phone or laptop is lost or stolen, it must be possible to wipe it and log out of all sessions immediately.
- Have devices repaired only by trusted service providers. Before doing so, log out of all sessions and wipe the data, as whoever has the device in their possession also has access to the company’s email.
5. If the fraud has already taken place…
Time is of the essence, as funds tend to disappear quickly: notify the bank without delay to try to stop the transfer; report the incident and request that the recipient’s account be frozen; preserve evidence securely (forensic copy, IT expert report or notarial certificate) so that it can be admissible in court; and notify customers and suppliers to prevent further payments. These are examples of essential steps to take in order to respond effectively to cyber fraud.
Furthermore, there are two time limits that are often overlooked: the one relating to cyber risk insurance, which requires the claim to be reported within seven days unless the policy specifies a longer period (Article 16 of the Insurance Contracts Act), and the one regarding the notification of the data breach to the Spanish Data Protection Agency (AEPD), which must be made within seventy-two hours (Article 33 of the General Data Protection Regulation).
We will therefore examine how to recover the lost money in our next publication.
6. Conclusion
None of the measures outlined are expensive. What they do require is discipline: that the verification call is always made, that the dual-signature requirement has no exceptions, and that no one can bypass the procedure simply because ‘the boss says so’. Today, a CEO’s voice can be cloned and their signature copied; the only thing a criminal cannot imitate is a sound procedure. And that procedure provides double protection: against deception and in the subsequent dispute over who should bear the loss.
That is why, at Ayuela Jiménez, we have lawyers specialising in Economic Criminal Law and Criminal Compliance who advise companies on both fraud prevention and how to respond to it. When faced with any doubts or incidents, having an expert team makes all the difference.
