Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical Memory Forensics

You're reading from   Practical Memory Forensics Jumpstart effective forensic analysis of volatile memory

Arrow left icon
Product type Paperback
Published in Mar 2022
Publisher Packt
ISBN-13 9781801070331
Length 304 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Oleg Skulkin Oleg Skulkin
Author Profile Icon Oleg Skulkin
Oleg Skulkin
Svetlana Ostrovskaya Svetlana Ostrovskaya
Author Profile Icon Svetlana Ostrovskaya
Svetlana Ostrovskaya
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Basics of Memory Forensics
2. Chapter 1: Why Memory Forensics? FREE CHAPTER 3. Chapter 2: Acquisition Process 4. Section 2: Windows Forensic Analysis
5. Chapter 3: Windows Memory Acquisition 6. Chapter 4: Reconstructing User Activity with Windows Memory Forensics 7. Chapter 5: Malware Detection and Analysis with Windows Memory Forensics 8. Chapter 6: Alternative Sources of Volatile Memory 9. Section 3: Linux Forensic Analysis
10. Chapter 7: Linux Memory Acquisition 11. Chapter 8: User Activity Reconstruction 12. Chapter 9: Malicious Activity Detection 13. Section 4: macOS Forensic Analysis
14. Chapter 10: MacOS Memory Acquisition 15. Chapter 11: Malware Detection and Analysis with macOS Memory Forensics 16. Other Books You May Enjoy

Analyzing Bash history

The most commonly used shell on Linux systems is Bash, one of the most popular Unix shells. One of the reasons for this popularity is that it is preinstalled on the vast majority of Linux distributions. At the same time, it is quite functional, as it allows you to interactively execute many commands and scripts, work with the filesystem, redirect the input and output of commands, and much more.

Typically, if Bash history logging is enabled, it is stored in the user's home directory, in the .bash_history file. Naturally, attackers may perform various manipulations on both this file and the history-logging process in order to hide their traces. Nevertheless, we can try to recover this information from memory. Volatility has a specific plugin for this, linux_bash. Running this plugin looks like this:

Figure 8.9 – Bash history

As you can see, in our case, the user first tried to output the contents of the passwords file with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime