GithubHelp home page GithubHelp logo

jhftss / cidlldemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ido-moshe-github/cidlldemo

0.0 1.0 0.0 1.34 MB

Use ci.dll API for validating Authenticode signature of files

License: MIT License

C++ 64.34% C 35.66%

cidlldemo's Introduction

CiDemoDriver

A joint effort of Liron Zuarets and I, CiDemoDriver is a very simple driver which demonstrates using ci.dll API in order to validate files. This repository complements a write-up we published about the subject.

Logic

The driver registers a ProcessCreateProcessNotify routine and whenever a new process is created, it tries to verify its Authentocide signature using two ci.dll APIs:

  • CiValidateFileObject: which acts directly on the file object
  • CiCheckSignedFile: which requires the caller to provide a file digest. Since file digest calculation is beyond the scope of this demo, we hard-coded the file digest of Notepad++.exe (this PE is included under "ExecutablesForTesting" folder) and the function will only succeed for this file.

If the file's signature was verified successfully, the driver will parse the output PolicyInfo structure in order to extract the signing certificate and its details.

Requirements

  • Supports Windows 10. If you want to use earlier OS versions, you need to remove the dependency in CiValidateFileObject from the code and the lib files, and change the project properties to the appropriate OS.
  • Supports x86, x64 architectures
  • Can be compiled using Visual Studio 2019. The solution file is included.
  • In case you need to link against additional ci.dll functions, refer to the README inside GeneratingLibFiles.
  • In order to run the driver, use the .inf file to install and then load the driver by: sc start CiDemoDriver

License

This software is open-source under the MIT license. See the LICENSE.txt file in this repository.

cidlldemo's People

Contributors

ido-moshe-github avatar

Watchers

 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.