Giter Site home page Giter Site logo

jetbrains / format-ripper Goto Github PK

View Code? Open in Web Editor NEW
13.0 9.0 5.0 28.19 MB

Library for ELF / Mach-O / Fat-Mach-O / PE / Compound / MSI formats parsing and checking signatures

License: Apache License 2.0

C# 67.30% Kotlin 32.69% Shell 0.01%
kotlin elf linux mach-o macos msi netcore netframework windows portable-executable

format-ripper's Introduction

JetBrains format-ripper official JetBrains project

Build and run tests

NuGet Badge NuGet Badge Maven Central

JetBrains format-ripper library is applicable for:

  • detect the type of software binaries
  • determine the origin of software binaries via verification the cryptographic signatures
  • determine the integrity of software binaries via computation and comparing the binaries hashes

Following types of software binaries files are supported:

  • Portable executable (PE)
  • MS Windows Installer (MSI)
  • MachO
  • Fat-MachO (Universal binaries)
  • Executable and linking format (ELF)
  • Apple disk image (DMG)

See further descriptions:

format-ripper's People

Contributors

artemkar123 avatar dmpanov avatar k15tfu avatar konstantin-kretov avatar mfilippov avatar rayshade avatar ww898 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

format-ripper's Issues

machO chain signature verification not working

SignedMessageVerifier.VerifySignatureAsync fails for machO signed files, when verificationParams.BuildChain = true.

Verification fails with message "ERROR: Build chain for certificate was failed. Issuer= unable to find valid certification path to requested target" with result of InvalidChain instead of expected Valid

Relevant test MachoSignatureVerifierTests.VerifySignWithChainTest is added in #15.

.NET - Msi Signature Valid after patching Property->ProductName

Hello, I stumbled upon this behavior, I don't think it's expected. Can you please take a look? Thank you.

Repro steps:

  • Copy data\msi\2dac4b.msi to data\msi\2dac4b_broken_productname.msi
  • Open data\msi\2dac4b_broken_productname.msi in Orca
  • Change Property->ProductName from Microsoft Visual Studio 2013 VsGraphics Helper Dependencies to XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • Save data\msi\2dac4b_broken_productname.msi
  • Confirm in Windows Explorer that Digital Certificate is now invalid
  • Add following test case to net/JetBrains.SignatureVerifier/tests/MsiSignatureVerifierTests.cs
[TestCase(VerifySignatureStatus.InvalidSignature, "2dac4b_broken_productname.msi")]
  • Run test and confirm it fails with following error:
Expected: InvalidSignature
But was:  Valid

Expected behavior:

  • Test case succeeds ( == verification returns VerifySignatureStatus.InvalidSignature when checking 2dac4b_broken_productname.msi)

Screenshots:
image
image
image

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.