Splunk® Enterprise Security

Use Cases

The documentation for Splunk Enterprise Security versions 8.0 and higher have been rearchitected from previous versions, causing some links to have redirect errors. For documentation on version 8.0, see Splunk Enterprise Security documentation homepage.
This documentation does not apply to the most recent version of Splunk® Enterprise Security. For documentation on the most recent version, go to the latest release.

Monitor privileged accounts for suspicious activity

Use Splunk Enterprise Security to identify, search, and report on the activities of users with privileged accounts and help protect your environment from malicious attackers. Privileged accounts are user or system accounts with elevated privileges, such as users with Domain Administrator rights or root privileges. An attacker that gains access to privileged user credentials can take control of an organization's infrastructure to modify security settings, exfiltrate data, create user accounts, and more. If an attacker gains privileged account access credentials, their activities appear more legitimate and become harder to detect. Attackers attempt to gain access to privileged accounts by using social engineering techniques, sending spear-phishing messages, using malware, or "passing the hash" attacks.

Prerequisites

  • A Splunk platform instance with Splunk Enterprise Security installed and configured.
  • An identity lookup that contains user accounts with a category field of category=privileged. Use this search to view the user accounts:

    | datamodel "Identity_Management" High_Critical_Identities search |stats count by All_Identities.identity

Identify privileged user accounts

In order to monitor privileged account activity and identify suspicious actions that could indicate an adversary moving around in the network, define privileged accounts in your identity lookup using the Category field. You can use a search with the ldapsearch command to populate the identity.csv with privileged users.

  1. Create an identity lookup that includes users who have Domain Admin privileges or who are in the VIP group.
  2. Modify the example search below for your specific environment, or create your own.
    This example search takes users with a group membership of Domain Admins or VIPs and adds them to the privileged category. Depending on your environment, you can modify the search to focus on specific organizational units (OUs) rather than group membership.

| ldapsearch domain=Acme search="(&(objectclass=user)(!(objectClass=computer)))" | eval suffix="" | eval priority="medium" | eval category="normal" | eval watchlist="false" | eval endDate="" | eval category=case(match(memberOf, "(?i)^.*?Domain\sAdmins?.+"),"privileged", match(memberOf, "(?i)^.*?VIP?.+"), "privileged") | table sAMAccountName,personalTitle,displayName,givenName,sn,suffix,mail, telephoneNumber,mobile,manager,priority,department,category,watchlist,whenCreated,endDate | rename sAMAccountName as identity, personalTitle as prefix, displayName as nick, givenName as first, sn as last, mail as email, telephoneNumber as phone, mobile as phone2, manager as managedBy, department as bunit, whenCreated as startDate |outputlookup my_identity_lookup

See more about the Category lookup field in Format an asset or identity list as a lookup in Splunk Enterprise Security in Administer Splunk Enterprise Security. To add a new identity lookup, see Configure the new asset or identity list in Splunk Enterprise Security in Administer Splunk Enterprise Security.

Review current privileged account activity

Splunk Enterprise Security includes two reports that depict privileged user activity. Review them to determine the current state of privileged account usage in your environment.

  1. On the Splunk Enterprise Security menu bar, select Search > Reports.
  2. In the filter, type the word privileged to locate the privileged user reports.
  3. Click the Access - Privileged Account Usage Over Time report to open it and review the total count of events over time that included a privileged user account to see the pattern of normal privileged account usage and identify unusual or unexpected activity.
  4. Click the Access - Privileged Accounts In Use report to open it and review privileged accounts in use during the selected time frame, as well as how many times the accounts have been used to log in to identify rarely used accounts that suddenly show bursts of activity.
    You notice that the domain admin account bob has logged in 100,000 times in the last 24 hours.
  5. Select Configure > Incident Management > New Notable Event to create a notable event for a tier one analyst to investigate.
  6. In the new notable event, type a title of Privileged user bob has logged in 100,000 times in 24 hrs.
  7. Set the Urgency to Critical.
  8. Assign the notable event to a tier one analyst.
  9. The tier one analyst investigates bob and determines that it is an administrative account used to run scripts, so the authentications are legitimate.

Set up a dashboard to monitor privileged accounts

To allow the security analysts to more easily review and monitor privileged user accounts, create a privileged account dashboard from the two reports.

  1. Select Search > Reports and filter on privileged to see the privileged account reports.
  2. Click the title to view the Access - Privileged Accounts In Use report.
  3. Click Add to Dashboard and select a New dashboard.
  4. Type a Dashboard Title of Privileged Accounts. The Dashboard ID is set automatically.
  5. For Dashboard Permissions select Shared in App.
  6. Type a Panel Title of Privileged Accounts in Use.
  7. For Panel Powered By select Report.
  8. For Panel Content select Statistics to view the raw data rather than a graph.
  9. Click Save and View Dashboard to view your creation.
  10. Add the Access - Privileged Account Usage Over Time report to the new dashboard using the same steps, but select an Existing dashboard of Privileged Accounts instead of creating a new dashboard.

After you create the dashboard, make it easy to find by adding it to the Splunk Enterprise Security menu bar.

  1. Select Configure > General > Navigation to view the navigation editor.
  2. Locate the Identity security domain navigation collection.
  3. Click the Add View icon and select the Privileged Accounts dashboard.
  4. Click Save to save the dashboard navigation location.
  5. Click Save to update the menu bar.

Monitor privileged accounts with notable events

In the case of bob, you manually created a notable event in order for a tier one analyst to investigate the account activity. By using a correlation search, you can automate privileged account activity monitoring and generate alerts as notable events. See Create correlation searches in Splunk Enterprise Security in Administer Splunk Enterprise Security.

You want to alert tier one analysts when a privileged user account makes concurrent access attempts to the same application from different hosts. This search creates notable events to identify potentially shared privileged credentials. This example uses a modified version of the existing correlation search, Concurrent Login Attempts Detected, to do this.

  1. Select Configure > Content > Content Management.
  2. Select Create New Content > Correlation Search.
  3. Type a Search Name of Shared Privileged Account Credentials.
  4. Use the following search as your Search:
    | datamodel "Identity_Management" High_Critical_Identities search | rename  All_Identities.identity as "user" | fields user | eval cs_key='user' | join type=inner cs_key [| tstats `summariesonly` count from datamodel=Authentication by _time,Authentication.app,Authentication.src,Authentication.user span=1s | `drop_dm_object_name("Authentication")` | eventstats dc(src) as src_count by app,user | search src_count>1 | sort 0 + _time | streamstats current=t window=2 earliest(_time) as previous_time,earliest(src) as previous_src by app,user | where (src!=previous_src) | eval time_diff=abs(_time-previous_time) | where time_diff<300 | eval cs_key='user']
    
  5. Type a Cron Schedule for how often you want the search to run.
  6. Select Add New Response Action and select a Notable.
  7. Type a Title, a Description, and other important fields for the notable event.
  8. Click Save.

Summary

You needed to monitor privileged account activity to identify suspicious activity indicating data exfiltration, lateral movement by an attacker, shared privileged credentials, and more. After configuring the identity data stored in Splunk Enterprise Security to categorize privileged users, you reviewed the two privileged account reports to identify any current users acting suspiciously. Then you created a dashboard to more easily review those reports in the future and keep a close eye on user accounts like bob. Finally, you set up a correlation search so that the tier one analysts would be notified of definitive suspicious activity such as concurrent login attempts from a privileged account.

Last modified on 22 November, 2021
Using Enterprise Security to find data exfiltration   Monitor threat activity in your environment with a glass table

This documentation applies to the following versions of Splunk® Enterprise Security: 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.3.1, 6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.2.0, 6.3.0 Cloud only, 6.4.0, 6.4.1, 6.5.0 Cloud only, 6.5.1 Cloud only, 6.6.0, 6.6.2


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters