Use this playbook to investigate incidents that indicate if someone was trying to remove the bash history file from a Linux server. The following steps give you a walkthrough of the actions, tasks, and subflows that are
available in the User Deleting the Bash History (.bash_history) playbook.
Avant de commencer
Role required:
sn_si.admin
flow_designer
Procédure
When the playbook is triggered and starts executing, in Action 1, check whether the server is a test or demo instance.
In Action 2, if the server isn’t a test or demo instance, perform the following steps:
In Action 3, collect the following information for the alert:
Username
IP Address
Malicious commands attempting to delete bash history
All the commands run by the user, if available on the CrowdStrike logs.
In Action 4, log in to the server and run the last command to view the most recent logged-in user.
In Action 5, identify if there were any lateral movement activities from the user (Source: Splunk, CrowdStrike, localhost).
In Action 6, examine the activities occurring around these suspicious actions.
Figure 1. User Deleting Bash History playbook
In Action 7, continue working with peers and involve the incident response Regional Manager in deciding whether to continue monitoring the user.
In Action 8, determine whether the activity is malicious or not.
In Action 9, if the activity is malicious, perform the following steps:
In Action 10, during the investigation, contact IT Support and request an account freeze.
In Action 11, ensure that the instance is restored to a normal state free of malicious activity.
In Action 12, lift containment and bring systems back to operational standards.
In Action 13, initiate a post incident review.
In Action 14, after the post incident review, the flow ends.
Figure 2. Using the User Deleting Bash History playbook
In Action 15, if the activity is not malicious, then in Action 16, reach out to the user’s manager.
You can use the provided email template to contact the user's manager and inform them about the recommended approach.
In Action 17, document the findings so far.
In Action 18, complete the post-incident review before closing the task.