Giter Club home page Giter Club logo

sflock's Introduction

sflock

example workflow

Sample staging & detonation utility to be used as unpacking engine for other analysis tools. Since version 0.3.14 sflock is compatible with Python >= 3.6

Birds tend to move around in flocks, therefore the sflock utility can digest a flock of samples, but also inverse flocks, i.e., sflock unpacks various archive file formats to extract embedded samples.

Simply put, sflock provides a staging area where binary data is investigated and split into one or more files to be analyzed further by other tools. In particular sflock focuses on integration and usage with Cuckoo Sandbox.

Installation

As-is sflock has been designed to be used to its full extent on Ubuntu/Debian-like systems. For optimal usage it is recommended to install the following packages alongside sflock. It is currently not possible to run the unpackers that require native tooling support on non-Linux platforms.

$ sudo apt-get install p7zip-full rar unace-nonfree cabextract lzip libjpeg8-dev zlib1g-dev

Installation of sflock itself may be done as follows.

$ sudo pip install -U sflock2

Or in a virtualenv environment.

(venv)$ pip install -U sflock2

Supported archives

SFlock supports a number of (semi-)archive types, sorted by extension:

  • .7z (7-Zip archive, requires native tooling)
  • .ace (ACE archive, requires native tooling)
  • .bup (McAfee quarantine files)
  • .cab (Microsoft Cabinet archive, requires native tooling)
  • .daa (PowerISO, requires included Linux native tooling)
  • .eml (MIME RFC 822 email representation)
  • .gzip (gzip compressed data, requires native tooling)
  • .iso (ISO file container, requires native tooling)
  • .lzh (LZH/LHA archive, requires native tooling)
  • .lz (Lzip compressed data, requires native tooling)
  • .msg (Outlook mail message)
  • .mso (Microsoft Office Macro reference file)
  • .pdf (Attachments embedded in PDF files)
  • .rar (RAR archive, requires native tooling)
  • .tar (Unix file archive)
  • .tar.bz2 (bzip2 compressed Unix file archive)
  • .tar.gz (gzip compressed Unix file archive)
  • .zip (ZIP archive)
  • .win (Windows imaging (WIM) image)

Security

Due to its nature of unpacking malicious archives with, depending on the extension, native tools (i.e., .7z, .ace, .cab, .daa, .gzip, .iso, .lzh, and .rar), it is important that such operations happen securely. SFlock therefore wraps execution of the native tools in zipjail, a usermode sandbox written exactly for this purpose.

sflock's People

Contributors

jbremer avatar doomedraven avatar evert0x avatar sanderfoobar avatar alange avatar n1nesun avatar enzok avatar nazywam avatar threathive avatar psrok1 avatar conitrade-as avatar heishihc0519 avatar nbargnesi avatar ricovz avatar wmetcalf avatar

Watchers

James Cloos 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.