Skip to main content
Version: 6.2

UBA Configuration Example

This example configures detection of a user signing in to a host that is not in their profile. Use the values as a template, replacing asset, index, and field names with those in your environment.

What the example includes

A working scenario consists of an object category, a profiling policy with a reaction, and an anomaly detection rule. Score calculation uses global values immediately after the module is initialized.

Source Data​

SourceFieldsRequirement
Inventory asset Employeeslogin - base field, full_name, department, statusasset data is stored in PostgreSQL
Index auth-events-*@timestamp, user.name, host.name, event.actionuser sign-in events

The user.name value in events must match the asset object's base login field, for example AkimovML in both sources. For details, see End-to-End Object Identifier.


1. Object Category​

Create a category under Main Menu - User Behavior Analytics - Objects, on the Categories tab.

ParameterValue
NameUsers
AssetEmployees
Filtersstatus = active

Before saving, check the preview: it must contain only active employees. In License Impact, make sure the category does not exceed the license limit.

For details, see Object Categories.


2. Profiling Policy​

Create a policy under Main Menu - User Behavior Analytics - Policies.

Policy Settings​

ParameterValue
Policy NameUsers: sign-in hosts
Object CategoryUsers
Indicesauth-events-*
Object Identification Fieldsuser.name
Ignore Caseenabled
Time Intervallast 30 days
Time Field@timestamp
Run ScheduleInterval, every 24 hours

Dictionary Algorithm​

On the Profiling tab, add a Dictionary algorithm:

ParameterValue
NameSign-in hosts
Filtersevent.action = logged-in
Result Fieldhost_name ← host.name
Accumulate Dictionarydisabled, so the profile is rebuilt for the last 30 days

The result index and lookup name are suggested automatically.

Save the policy and run it manually. After a successful run, the Sign-in hosts algorithm with the user's hosts should appear on the Profile tab of the object card.

Important

Before the first successful run, the profile is empty: a reaction to a New Combination will treat every sign-in as new. Enable the reaction after the policy has run.


3. Profile Reaction​

On the policy's Reactions tab, click Add Reaction and select the Sign-in hosts algorithm.

SectionParameterValue
Sources and FieldsEvent Sourceauth-events-*
Sources and FieldsFiltersevent.action = logged-in
ConditionTrigger ConditionNew Combination
ConditionFields to Comparehost_name
ClassificationSeverityMedium
ClassificationRule FamilyCybersecurity Index
ClassificationLifetime24 hours
Alert CardViolation Text{{_source.user.name}}: sign-in to {{_source.host.name}} - this host is not in the user's profile
RunSchedule and Windowdefault: every 15 minutes, checking the last 15 minutes

Click Check, then Save. The rule appears in Job Scheduler and starts working immediately.

If the required family does not exist, add it to the Rule Families lookup. For more on the settings, see Reactions.

note

The reaction rule compares values case-sensitively even if Ignore Case is enabled in the policy. The host.name values in events and in the profile must use the same case.


4. Score Calculation​

You do not need to enable score calculation separately: scores are calculated for objects in all categories using global values.

If needed, open Main Menu - User Behavior Analytics - Score Calculation and set custom zone thresholds or severity weights for the Users category on the Overrides tab. For details, see Score Calculation.


5. Anomaly Detection Rule​

Create a rule under Main Menu - User Behavior Analytics - Anomaly Detection Rules.

ParameterValue
NameHigh user risk
Rule TypeScore Threshold
Object CategoriesUsers
Minimum Anomaly Score40
Window24 hours

If you configured several reactions with different families, use Family Set so an anomaly is formed only when alerts from several families occur. For details, see Anomaly Detection Rules.


6. Watchlist​

This step is optional. To give alerts for privileged users more weight, connect a watchlist:

  1. Create a watchlist in Inventory for the Employees asset, for example Privileged IT Employees
  2. Under Main Menu - User Behavior Analytics - Watchlists, click Connect List and select it
  3. Set Scoring Effect to Multiplier 1.5

For details, see Watchlists.


7. End-to-End Verification​

  1. On the Objects tab, select the Users category and make sure the user is in the list
  2. Check for Completed in the policy run statistics and for hosts in the Sign-in hosts algorithm on the object's Profile tab
  3. Sign in as the user to a host already in the profile; no alert should appear
  4. Sign in to a new host and wait for the rule to run; its alert appears in Active Alerts on the object's Scoring tab
  5. Make sure the object score increased. Why This Score shows its breakdown
  6. Once the anomaly score reaches the threshold, the anomaly appears in the anomaly feed

If there is no alert, compare user.name in the event with the object's base login field, and compare host.name with the profile. Common causes are different letter case, a domain prefix, and different identification fields in the policy and reaction.