Skip to content

haggj/pyforensicstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyforensicstore

build coverage Documentation Status

The forensicstore project contains Python libraries to create, access and process forensic artifacts bundled in so called forensicstores (a database for metadata and subfolders with forensic artifacts).

The forensicstore format

The forensicstore format implements the following conventions:

  • The forensicstore is a folder containing an item.db file and an arbitrary number of other folders.
  • The item.db file contains metadata for all extracted artifacts in a forensic investigation in jsonlite format (flattened json objects in a sqlite database).
  • Items are represented as json objects.
  • Items are valid STIX 2.0 Observable Objects where applicable.
  • Items must not have dots (".") in their json keys.
  • Files stored in the forensicstore are referenced by item attributes ending in _path, e.g. export_path, stdout_path and wmi_path.
  • Any item stored in the forensicstore can have an errors attribute that contains errors that are related to retrival or pro-cessing of this item.

Structure

An example directory structure for a forensicstore:

example.forensicstore/
├── ChromeCache
│   ├── 0003357376fd75df_0
│   └── ...
├── ChromeHistory
│   └── History
├── ...
└── item.db

Installation

Python installation can be easily done via pip:

pip install forensicstore

Usage

import forensicstore

if __name__ == '__main__':
    store = forensicstore.connect("example1.forensicstore")
    store.insert({"type": "file", "name": "test.txt"})
    store.close()

Contact

For feedback, questions and discussions you can use the Open Source DFIR Slack.

Acknowledgment

The development of this software was partially sponsored by Siemens CERT, but is not an official Siemens product.

About

Python library to handle forensicstores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors