Giter Site home page Giter Site logo

debloat's People

Contributors

gdesmar avatar nazywam avatar squiblydoo 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar

debloat's Issues

Integration issue - NSIS processing path divergence

With 1.5.0 the ability to extract NSIS Installer contents the Debloat execution flow does not follow the normal execution path when a NSIS execution is detected. The plan is to solve this in a coming version (SOON).

Diverting from the normal execution path originally was intentional for the following reasons:

  1. NSIS files will always result in multiple files. It is unclear how multiple file output is handled by karton or assembly-line.
  2. With the multiple files, debloat is unable to determine if any are suspicious/malicious and chooses to return all of them to the user.
  3. The current main execution flow is only expected to return 1 file. Normally a file that has had bytes removed.

Because of these reasons, Debloat has unique output and writes the files at a unique place.
The plan is to explore options to help maintain the expected return path for consistency and to maintain compatibility with tools like karton and assembly-line.

(I am writing about it here so that others are aware it is a problem, that is is a problem that I am aware of, and that it is a problem that I plan to solve.)

.NET Single File Binaries

Another method of bloat that cannot be solved at this time includes use of the .NET Single File feature.
Tony wrote about analyzing such a DuckTail sample here: https://forensicitguy.github.io/analyzing-net-core-single-file-ducktail/

The following samples are being used as a POC for a solution:
7b9779a86781667aef8bfd44225deb0aaa61e0e7dbaa1ec1f3d3e3ec99bf5282
9a55f8490f17e095899df8bd57cbc2e8a451f01573d3763fb87d9186addc7d4e

These samples both have 460 DLL included in the Single File .NET binary. The sample Tony analyzed had 94 PE. In my observation, this number is growing over time with the result of binaries getting larger.
The files identified by those hashes are 184 MB.

NSIS sample does not extract- failure not handled

In using debloat I identified that this NSIS installer did not extract properly: SHA256: F4A2677E8411FCE6307CDC54A814331BB281D3DD9EA797A4F4BB9D4A496A92CE

The NSIS file could be extracted with Binary Refinery.

  • Review current errors, implement error handling for future.
  • Resolve issue causing error.
  • Find additional NSIS files to confirm that issue is resolved and confirm that other NSIS files extract successfully.

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.