Skip to main content

Imago is a python tool that extract digital evidences from images.

Project description

forthebadge forthebadge

Build Status Requirements Status GitHub license

imago-forensics 🕵️

Imago is a python tool that extract digital evidences from images recursively. This tool is useful throughout a digital forensic investigation. If you need to extract digital evidences and you have a lot of images, through this tool you will be able to compare them easily. Imago allows to extract the evidences into a CSV file or in a sqlite database. If in a JPEG exif are present GPS coordinates, Imago can extract the longitude and latitude and it can convert them to degrees and to retrieve relevant information like city, nation, zip code... Imago offers also the possibility to calculate Error Level Analysis, and to detect nudity these functionalities are in BETA.

Setup

Setup via pip

  1. Install imago:
$ pip install imago
  1. Once installed, one new binary should be available: :
$ imago 

And then it should output the imago's banner

Requirements:

python 2.7
exifread 2.1.2
python-magic 0.4.15
argparse 1.4.0
pillow 5.2.0
nudepy 0.4
imagehash 4.0
geopy 1.16.0

Usage

usage: imago.py [-h] -i INPUT [-x] [-g] [-e] [-n] [-d {md5,sha256,sha512,all}]
                [-p {ahash,phash,dhash,whash,all}] [-o OUTPUT] [-s]
                [-t {jpeg,tiff}]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input directory path
  -x, --exif            Extract exif metadata
  -g, --gps             Extract, parse and convert to coordinates, GPS exif
                        metadata from images (if any)It works only with JPEG.
  -e, --ela             Extract, Error Level Analysis image,It works only with
                        JPEG. *BETA*
  -n, --nude            Detect Nudity, It works only with JPEG, *BETA*
  -d {md5,sha256,sha512,all}, --digest {md5,sha256,sha512,all}
                        Calculate perceptual image hashing
  -p {ahash,phash,dhash,whash,all}, --percentualhash {ahash,phash,dhash,whash,all}
                        Calculate hash digest
  -o OUTPUT, --output OUTPUT
                        Output directory path
  -s, --sqli            Keep SQLite file after the computation
  -t {jpeg,tiff}, --type {jpeg,tiff}
                        Select the image, this flag can be JPEG or TIFF, if
                        this argument it is not provided, imago will process
                        all the image types(i.e. JPEG, TIFF)



The only required argument is -i which is the base directory from which imago will start to search for image file. You should also provide at least one type of extraction (i.e. exif, data, gps, digest).

Example:

$ imago -i /home/solvent/cases/c23/DCIM/ -o /home/solvent/cases/c23/ -x -s -t jpeg -d all

Where:

  • -i path: is the base directory, where imago will search for file
  • -o path: the output directory where imago will save the CSV file, with the extracted metadata
  • -x : imago will extract EXIF metadata.
  • -s: the temporary SQLite database will not be deleted after the processing.
  • -t jpeg: imago will search only for jpeg images.
  • -d all: imago will calculate md5, sha256, sha512 for the jpeg images.

Features:

Task Status
Recursive directory navigation ✔️
file mtime (UTC) ✔️
file ctime (UTC) ✔️
file atime (UTC) ✔️
file size (bytes) ✔️
MIME type ✔️
Exif support ✔️
CSV export ✔️
Sqlite export ✔️
md5, sha256, sha512 ✔️
Error Level Analysis ✔️ BETA
Full GPS support ✔️
Nudity detection ✔️ BETA
Perceptual Image Hashing ✔️
aHash ✔️
pHash ✔️
dHash ✔️
wHash ✔️

ToDo:

Task Status
Test code
Comments and Suggestions are welcome 👍

📑 Copyright and Licenses

Code copyright 2018 Redaelli. Code released under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imago-1.0.5.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

imago-1.0.5-py2-none-any.whl (8.8 kB view details)

Uploaded Python 2

File details

Details for the file imago-1.0.5.tar.gz.

File metadata

  • Download URL: imago-1.0.5.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.12

File hashes

Hashes for imago-1.0.5.tar.gz
Algorithm Hash digest
SHA256 8ace7b4be5dd9b9aa656513d931b008e4eebaa72fd2954a0c10dae5db4c58806
MD5 1426db1a77b3072c66b675b18282fd49
BLAKE2b-256 46478bae781c56a87e8e6b3b1a6c332a185128b67a5080f3333f136537e90935

See more details on using hashes here.

File details

Details for the file imago-1.0.5-py2-none-any.whl.

File metadata

  • Download URL: imago-1.0.5-py2-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.12

File hashes

Hashes for imago-1.0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 8628d0f30fe891bdee46caed446295e2d33cf5e7dc47c29585fbef461e84e047
MD5 3fc79f30ed6be586ff551a10063791a1
BLAKE2b-256 f923e74f8fab20ec18452e86bf85259d79dbd6ccf0c46dbf582de55fead6ed58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page