# Keyword search : PST (mail with 7z attached file) 

**URL:** <https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271>\
**Category:** Autopsy Help\
**Created:** [April 28, 2020, 2:18pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271 "2020-04-28T14:18:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 28, 2020, 2:18pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/1 "2020-04-28T14:18:19Z")

</div>

Hi all,

```
 consider this SCENARIO 1 : 

```

- Embedded File Extraction Module
- Keyword Search
- PST-mail (pst file has only one mail with only one ZIP attached file)

![ZIPPED](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/d13642c085b0982a676176b1f4c2e11b4dcffeaf.png)

Everything works fine on Scenario N.1 :

```
Results - Keywors Hits = 1 
Indexed Text is "Intelligible"

```

Consider this SCENARIO 2 :

- Embedded File Extraction Module
- Keyword Search
- PST-mail (pst file has only one mail with only one 7Z attached file)

In Scenario N.2 :

```
Results - Keywors Hits = 0 (searching the same "Scenario 1 keyword")
Indexed Text is NOT "Intelligible"

```

 ![SEVENZIP](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/9e334bd0177c2a4fb916b962d9f8ff0e5ea31163.png)

So my question :

Are attached 7z files (zipped with LZMA or BZip2 compression method) supported in Embedded File Extraction Module + Keyword Search on PST files?

Thanks in advance for your suggestions

Luca

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 28, 2020, 2:36pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/2 "2020-04-28T14:36:09Z")

</div>

I made two 7z files with bzip2 and lzma and they seemed to work.

 ![7zFiles](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/5cf986eeca5c4d6a1084544decf221db7478fe6f.png)

For trying to figure out where the issue is, I’d suggest trying something simpler than going through the email parser then embedded file extractor and then keyword search. You can right click and extract your .7z files to disk and then make a new case adding them as a logical data source, and then you can just run the embedded file extractor and see if any files got extracted instead of running keyword search.

---

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 28, 2020, 4:09pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/3 "2020-04-28T16:09:17Z")

</div>

I’ve made a new case adding 7z files as a logical data source.  
Then i’ve run the embedded file extractor and all files got correctly extracted.

Instead, processing (keyword+embedded file extractor) a Outlook-pst file having a mail with **same** 7z attached fails …

Thanks in advance for your support.

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 28, 2020, 4:56pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/4 "2020-04-28T16:56:52Z")

</div>

Any chance you can share your pst file? Send me a PM if it’s possible.

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 28, 2020, 5:59pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/5 "2020-04-28T17:59:39Z")

</div>

Meanwhile, I’m confused about what I’m seeing in your second screenshot. If the email parser found the attachment I believe it should show up in its compressed form as a child of the .pst file, like these gifs:

 ![pstImage](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/d8fa28dfb9121bd03647ad4ef6f09b5e1129596e.png)

But I don’t see any children under your SEVENZIP.pst, so it doesn’t seem like there was even anything for the embedded file extractor to run on. This would suggest it’s a problem with the email parser. What did it look like in your working case? (I can’t seem to make your first screenshot larger)

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 29, 2020, 11:23am UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/6 "2020-04-29T11:23:41Z")

</div>

Thank your for sharing your .pst files. They both work for me. I’m using Autopsy 4.14.0 on Windows 10. Here’s what I did:

Added both .pst files as a logical file set:

 ![p1](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/96cd0b013f19df0ea286c3fa37314a8837db7a34.png)

Ran embedded file extractor, email parser, and keyword search (and hash lookup to verify that the files were different):

 ![p2](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/52f4b957bc3acbe17d527b332ed95b6b9ca249bb.png)

In the tree, I can see the .7z files extracted by the email parser under each of the .pst files. If I click on them, I can then look at the pdf extracted by the embedded file extractor module. I can see “zanzara” in the indexed text in both, and doing a keyword search for it does work.

 ![p3](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/1X/2e5f480b00ee327524d4b01dbdb87492680d6a88.png)

Can you try again doing that exact procedure? If it doesn’t work, see if there’s anything in the log (go to Help-\>Open log folder to find the logs)

---

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 29, 2020, 12:13pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/7 "2020-04-29T12:13:57Z")

</div>

Hi Ann,

```
 I'm using ONLY embedded file extractor + keyword search (both flagged in configure ingest module window). No e-mail parser.

```

Suppose for a moment that email-parser ingestion doesn’t exist.

The combo “embedded file extractor and keyword search” work always perfectly and always intercept all my keywords except with 7z file attached in mails…

Do you “replicate” using only embedded file extractor + keyword search ingestion process ?

Luca

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 29, 2020, 12:59pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/8 "2020-04-29T12:59:40Z")

</div>

I wouldn’t expect it to work without email parser. The email parser pulls out the 7zip file - Autopsy wouldn’t know about it otherwise. Then the 7zip file is decompressed by the embedded file extractor. Without email parser you can still run keyword search on the original pst file but it’s just going to see the compressed data so you probably won’t see anything.

Is there some reason you don’t want to run email parser?

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 29, 2020, 1:18pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/9 "2020-04-29T13:18:33Z")

</div>

Note that the embedded file extractor only runs on archives and documents, not .pst files. So it’s not going to extract the archives from the .pst, but it will extract files from the archive attachment extracted from the email parser module.

[http://sleuthkit.org/autopsy/docs/user-docs/4.15.0/embedded\_file\_extractor\_page.html](http://sleuthkit.org/autopsy/docs/user-docs/4.15.0/embedded_file_extractor_page.html)

---

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 29, 2020, 1:18pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/10 "2020-04-29T13:18:51Z")

</div>

If file are zipped with zip extension it works … and keyword is “intercepted”

Check first video.mp4 part.

---

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 29, 2020, 1:55pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/11 "2020-04-29T13:55:18Z")

</div>

Now you can find also in Dropbox :

[https://www.dropbox.com/sh/dxor8wz8owa3dqv/AAC5FRXyZRzw9jHVblhdCc8sa?dl=0](https://www.dropbox.com/sh/dxor8wz8owa3dqv/AAC5FRXyZRzw9jHVblhdCc8sa?dl=0)

a file named ZIPPED\_ANN.pst : mail is the same, file zipped is the same pdf file, but pdf file is “zip compressed” NOT “7z compressed”.

Now Scenario A : create a case with only ZIPPED\_ANN.pst and run embedded file extractor, email parser, and keyword search.

Now SCENARIO B : create a case with only SEVENZIP\_LZMA.pst and run embedded file extractor, email parser.

Autopsy behaviour is different , keyword hits are different, and so on …

Can you explain me why ?

---

<div class="post-metadata">

**Author:** ![apriestman](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/apriestman/32/24_2.png) [@apriestman](https://sleuthkit.discourse.group/u/apriestman)\
**Post date:** [April 29, 2020, 2:17pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/12 "2020-04-29T14:17:46Z")

</div>

If I run only keyword search on ZIPPED\_ANN.pst, I do indeed see nice indexed text. So it has nothing to do with our embedded file extractor. My guess is that Solr/Tika (which is what we use for keyword search indexing) can do some basic parsing of .pst files and decompression, but probably doesn’t support LZMA.

---

<div class="post-metadata">

**Author:** ![mandelbrot](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/mandelbrot/32/107_2.png) [@mandelbrot](https://sleuthkit.discourse.group/u/mandelbrot)\
**Post date:** [April 29, 2020, 4:23pm UTC](https://sleuthkit.discourse.group/t/keyword-search-pst-mail-with-7z-attached-file/1271/13 "2020-04-29T16:23:47Z")

</div>

Thanks Ann.

My feeling is that there is some overlap between the parsing and decompression of Solr / Tika (used by keyword search indexing) and Autopsy e-mail-parser ingest process.

This overlap can undeniably lead to some confusion and double result indexing …

I really appreciate your suggestion/support

Best regards.  
Luca
