If a hacker has your password, how do you spot the intruder?
A stolen password can make a hacker look just like any other employee. Two cybersecurity experts explain the clues attackers leave behind, and why businesses cannot rely on keeping them out.
A fake email that looks as though it came from your company's IT department may be all it takes. You click a link and enter your username and password on a website that looks genuine. But your login details have just landed in a hacker's hands.
In many cases, that may be enough for the hacker to gain access to your account. Fortunately, companies use security systems designed to detect suspicious activity. But how can those systems tell the difference between a hacker and an employee who happens to be working late one evening?
"If security systems flag every tiny deviation from normal behaviour, they'll also raise the alarm when employees are simply doing their jobs. But if they only respond to highly suspicious activity, hackers may be able to move around unnoticed," says Jens Myrup Pedersen, professor of cybersecurity at Aarhus University.
He believes companies need to take a broader view of cybersecurity:
"We shouldn't just ask how to stop attackers getting in. We also need to ask what they could do once they're inside, and how quickly we want to detect them."
Zero trust
Keld Norman is a cybersecurity consultant at IT company Conscia, where he investigates and responds to cyberattacks.
He recalls a case in which an employee was using an AI tool to complete a work task. The tool visited a website where hackers had planted hidden instructions designed to manipulate the AI – a technique known as prompt injection. The AI followed those instructions and recommended installing additional software, which the employee approved.
The software contained a backdoor that gave the attackers access to the computer.
What happened next was remarkably fast. The attackers gained administrator privileges, extracted large amounts of data, deleted files and tampered with security logs.
All of this took just eight minutes.
This particular attack did not begin with a stolen password. But it illustrates how quickly attackers can cause damage once they have gained access.
And even when companies protect their employees' accounts, attackers may find other ways in.
Many organisations now use multi-factor authentication, which requires employees to verify their identity in more than one way. But that protection can have weaknesses.
"I've repeatedly come across companies that have configured their conditional access controls incorrectly. For example, I've seen organisations where additional login verification was only required on Windows computers. If an attacker used a Linux computer instead, those security requirements didn't apply," says Keld Norman.
In other cases, hackers can hijack a session in which an employee has already logged in.
"If an attacker gets hold of a session cookie or digital authentication token, they can sometimes take over a session in which the employee has already verified their identity. That means the attacker doesn't have to complete another security check."
This is one reason why the security principle known as Zero Trust has gained ground. The idea is that a successful login should not automatically mean that everything a user does can be trusted. Companies can restrict access so employees only reach the systems and information they need for their work. They can also limit how much data a user or application can retrieve, making it harder for an attacker to extract large amounts of information through a compromised account.
Because no company can count on keeping every attacker out.
Following the digital trail
So how do you tell whether it's a hacker or the employee themselves using an account?
An unusual login may be the first clue.
"We can search a company's security logs for unfamiliar IP addresses, unknown devices and activity at times when things are normally quiet. We pay particular attention to where in the world users are logging in from," explains Keld Norman.
Security logs record activity across a company's computers and servers. Using systems known as SIEM (Security Information and Event Management), cybersecurity specialists can collect and analyse information from different parts of an organisation's IT infrastructure.
One suspicious pattern is known as impossible travel: when the same account is accessed from two locations so close together in time that the employee could not possibly have travelled between them.
"For example, we see cases where an employee logs in from their computer in Denmark. A few seconds later, a hacker uses a stolen authentication token to access the same account from the United States. That could indicate that someone has taken over the employee's account."
But not necessarily. A VPN connection can also make it appear as though an employee is logging in from another country.
Investigators therefore need to look for other clues. Has someone created new user accounts or changed access permissions? Have unfamiliar programs been installed?
"We also examine email accounts. Which emails have been sent, and what files were attached? We look for rules that automatically delete incoming messages, move them into specific folders or forward them to addresses outside the organisation."
Several seemingly innocent events can therefore add up to evidence of an intrusion.
But only if the evidence is there to begin with.
According to Keld Norman, many companies lack security logs from critical systems, even though they believe they are recording everything. Attackers may also try to delete or manipulate the records that could expose their activities.
Companies can also set traps for intruders. One approach is to create a so-called honeypot: a decoy system or resource designed to attract attackers. Because legitimate employees have no reason to access it, any attempt to do so can trigger an alert, giving the security team an early warning and a chance to respond before the attack spreads.
At the same time, identifying which of the countless recorded events are genuinely suspicious remains a major challenge.
This is one of the problems Jens Myrup Pedersen is tackling in his research. He studies how machine learning can combine different types of data to help security systems detect attacks without overwhelming companies with false alarms.
AI is accelerating the threat
Even with the right information, another challenge remains: how quickly can a company respond?
According to Keld Norman, artificial intelligence is now helping hackers develop tools that exploit security vulnerabilities much faster than before.
"Two years ago, it might take hackers a couple of days to develop a program demonstrating how a vulnerability could be exploited. A year ago, they could sometimes turn that knowledge into an attack tool within a day. Today, we're seeing examples where it takes as little as 15 minutes from a vulnerability becoming known to hackers developing a tool that could give them access," says Keld Norman, pointing to AI as one factor behind the trend.
Google's cybersecurity report M-Trends 2026 also illustrates how the pace of exploitation has changed.
In 2018, an average of 63 days passed between the public disclosure of a security vulnerability and attackers beginning to exploit it. By 2025, that figure had fallen to minus seven days.
In other words, across the cases examined, attackers had on average begun exploiting vulnerabilities seven days before they were publicly disclosed.
The figures do not, in themselves, establish how much of this change can be attributed to AI. But they illustrate why companies can no longer assume they will have time to close security gaps before attackers try to exploit them.
"If a company thinks it's secure simply because it has made it difficult for hackers to get in, it has misunderstood the challenge. We have to assume that some attackers will get through. What matters is whether we detect them before they can do serious damage – and, if things still go wrong, how we respond," says Jens Myrup Pedersen.
Contact
Professor Jens Myrup Pedersen
Department of Electrical and Computer Engineering, Aarhus University
Mail: jensmyrup@ece.au.dk
Tel.: +4521847931