ArticleslgStudy

computer science

Memory forensics

Memory forensics is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Memory forensics rather than just read about it. In short: Memory forensics is forensic analysis of a computer's memory dump. Its primary application is investigation of advanced cyberattacks which are stealthy enough to avoid leaving data on the computer's hard drive.

Key takeaways

  • Memory forensics belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Memory forensics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Memory forensics from memory before moving on to harder problems.

Reference excerpt

Memory forensics is forensic analysis of a computer's memory dump. Its primary application is investigation of advanced cyberattacks which are stealthy enough to avoid leaving data on the computer's hard drive. Consequently, the memory (e.g. RAM) must be analyzed for forensic information.

History

Zeroth generation tools Until the early 2000s, memory forensics was done on an ad hoc basis (termed unstructured analysis), often using generic data analysis tools like strings and grep. These tools are not specifically created for memory forensics, and therefore are difficult to use. They also provide limited information. In general, their primary usage is to extract text from the memory dump. Many operating systems provide features to kernel developers and end-users to actually create a snapshot of the physical memory for either debugging (e.g. core dump or Blue Screen of Death) purposes or experience enhancement (e.g. hibernation). In the case of Microsoft Windows, crash dumps and hibernation had been present since Microsoft Windows NT. Microsoft crash dumps had always been analyzable by Microsoft WinDbg, and Windows hibernation files (hiberfil.sys) can be converted into Microsoft crash dumps using utilities like MoonSols Windows Memory Toolkit designed by Matthieu Suiche.

First generation tools One significant step towards structured analysis was in a February 2004 article in SysAdmin Magazine, where Michael Ford demonstrated a more rigorous practice of memory forensics. In that article, he analyzes a memory-based rootkit utilizing the existing Linux crash utility as well as two tools developed specifically to recover and analyze the memory forensically, memget and mempeek. In 2005, DFRWS issued a Memory Analysis Forensics Challenge. In response to this challenge, more tools in this generation, specifically designed to analyze memory dumps, were created - such as MoonSols, KntTools, the FATKit, VolaTools, and Volatility. These tools had knowledge of the operating system's internal data structures, and were thus capable of reconstructing the operating system's process list and process information. Although intended as research tools, they demonstrated that operating-system-level memory forensics is feasible in practice.

Second generation tools Subsequently, several memory forensics tools intended for practical use were developed. Examples include Responder PRO, Memoryze, winen, Belkasoft Live RAM Capturer. New features have been added, such as analysis of Linux and Mac OS X memory dumps, and substantial academic research has been carried out. Unlike Microsoft Windows, Mac OS X interest is relatively new and had only been initiated by Matthieu Suiche in 2010 during Black Hat Briefings security conference. Currently, memory forensics is a standard component of incident response.

Third generation tools Beginning in 2010, more utilities focused on the visualization of memory analysis, such as MoonSols LiveCloudKd presented by Matthieu Suiche at Microsoft BlueHat Security Briefings that inspired a new feature in Microsoft LiveKd written by Mark Russinovich to allow virtual machines introspection by accessing the memory of guest virtual machine from the host virtual machine in order to either analyze them directly with the assistance of Microsoft WinDbg or to acquire a memory dump in a Microsoft crash dump file format.

See also Computer forensics Data breach Data erasure Data loss Data recovery Data remanence Data sanitization Digital forensics File carving

References

External links The History of Memory Forensics & The Volatility Framework

Worked examples

Example 1 — a first encounter with Memory forensics

Start with the simplest possible case. Write down what Memory forensics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Memory forensics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Memory forensics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Memory forensics

In research
Memory forensics appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Memory forensics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Memory forensics is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer forensics, so understanding it makes those chapters shorter.
In everyday life
Look for Memory forensics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Memory forensics” →

How to study Memory forensics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Memory forensics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Memory forensics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Memory forensics in simple terms?

Memory forensics is forensic analysis of a computer's memory dump. Its primary application is investigation of advanced cyberattacks which are stealthy enough to avoid leaving data on the computer's hard drive.

Why does Memory forensics matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Memory forensics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Memory forensics.

Tags

  • Computer forensics

Keep exploring