GithubHelp home page GithubHelp logo

nopper / maltrace Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 8.0 2.75 MB

Maltrace is a simple syscall tracer for Windows implemented through the use of PIN.

Python 8.97% Shell 0.01% C 88.15% C++ 2.87%

maltrace's Introduction

Maltrace

Maltrace is a simple syscall tracer for Windows implemented through the use of PIN. In addition to this a series of Python scripts in the pymal directory can be used to collect, parse and analyze trace logs produced by the maltrace' tracer to analyze the behavior of unknown programs.

Take a look at the docs/ folder for more information about how to use the tracer and the set of scripts.

Build the tracer

In order to build the tracer you first have to generate some logging specific code, by using our code generator.

$ python codegen/generator.py > generated.c

The code generator exploits definitions coming from header files contained in the headers/ directory, in order to automatically generate logging code. If you want to follow only certain syscalls you can simply modify the file syscalls.h and remove the proper line. After having generated the generated.c file, you can build your tracer.dll library, by typing the following command:

$ ..\nmake tracer.dll

Custom Hooks

Custom hooks can be definied using the hooks directory. Hooks are used to customize logging output for certain functions. As an example take in consideration the hooks/DeviceIoControlFile.hook that is used to log IP address during a IOCTL_AFD_CONNECT operation.

Trace an executable

To trace an executable:

$ ..\..\..\pin -t obj-ia32\tracer.dll -- malware.exe arguments

maltrace's People

Contributors

nopper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.