Giter Site home page Giter Site logo

ircollect's Introduction

ircollect

ircollect is a Python tool designed to collect files of interest in an incident response investigation or triage effort. Running as local admin, it:

  • Opens the raw disk
  • Reads the master boot record, collects a copy of it, and uses the MBR to find partition and disk information
  • Using the MBR information, it finds the NTFS partitions.
  • Working from the start of the NTFS partition, it finds the $MFT
  • It collects a copy of the $MFT and then builds a list of all the files on the system and their data runs
  • Using the file list and data runs, it collects interesting files through direct reads from the disk, bypassing access controls.

All collected files are stored in a directory specified with the -d option. They are further organized by hostname and the date-time the script was run.

Requirements:

pip install analyzemft

Status:

VERY beta. Active development daily, often hourly.

Currently collects master boot record, $MFT, and live (corrupted) registry hives. User can modify table in ircollect.py to specify any files they desire.

Upcoming features:

File an issue, please, if there is something you'd like.

  • Windows executable
  • Netcat support
  • Handle Win7 vs XP hive location differences
  • Add configuration file support
  • Collect uncorrupted registry hives

Notes:

Unless I am missing something, you cannot recover the live registry hives through direct disk reads. Well, you can, but they are corrupted. I'm currently getting them via a created snapshot. But, if you're going to create a snapshot, you might as well get all of the interesting files from the snapshot.... Yes? No? Could rebuild the corrupted hives, but that is a completely different problem.

Bugs:

Many

Thank you to:

  • Jamie Levy for mbr_parser
  • Willi Ballenthin - bit manipulation code, lots of useful tips for analyzeMFT

Questions and Answers:

Q: Will this read any file, regardless of access controls? A: Yes.

Q: Doesn't this tool give malicious actors access to information they shouldn't have? A: This isn't rocket science. The method used is documented in many places and several other tools use it. Not publishing this out of fear of misuse is doing a disservice to those who can really use it to help stop malicious actors.

ircollect's People

Contributors

dkovar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.