The insight behind behavioral anomaly detection is that attackers, regardless of their sophistication, have to do things. They have to access files, authenticate to systems, move data, and communicate with external infrastructure. If they are using compromised credentials, they are doing those things as that user. And the user has a history. The user logs in at certain times from certain locations, accesses certain file shares, communicates with certain systems, generates certain amounts of network traffic. When the behavior changes significantly enough, the change is detectable even if the specific actions taken do not match any known attack signature.
This is why anomaly detection is particularly valuable against two threat categories that signature systems handle poorly. The first is the malicious insider: an employee who already has legitimate access to systems and data, whose actions generate the same kind of log entries as normal business activity. There is no malware to detect, no external C2 traffic, no unusual process execution. There is just a trusted employee doing things that look superficially like work, except that the scale, timing, or pattern has changed in ways that suggest something other than normal business activity. The second is the attacker who has compromised valid credentials, often through phishing or credential stuffing, and is now operating within the network as that user. Again, no signatures match, no rules fire, because the authentication was legitimate. What is detectable is that the stolen credentials are being used in ways the real user never used them.
UEBA (User and Entity Behavior Analytics) formalizes this approach into a systematic capability. It builds behavioral baselines for users, endpoints, applications, and other entities, tracks deviations from those baselines, and produces risk scores that help analysts focus on the people and systems whose behavior has changed most significantly.