Giter Site home page Giter Site logo

koutheir / binary-security-check Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 8.0 157 KB

Moved: https://codeberg.org/koutheir/binary-security-check

Home Page: https://codeberg.org/koutheir/binary-security-check

License: MIT License

Rust 99.75% Shell 0.25%
appcontainer archive aslr control-flow-graph dynamic-loading elf executable-formats fortify-source nx pe32 pe32-plus security seh stack-overflow

binary-security-check's People

Contributors

koutheir 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

Watchers

 avatar  avatar  avatar  avatar

binary-security-check's Issues

Automatically detect proper libC

Feature-request, not a bug.

Compiling from 27beefd, it seems like the application is failing to automatically process pretty much any ELF I supply it with.

$ bsc /bin/bash
15:00:17 [ERROR] /bin/bash: Dependent C runtime library is not recognized.

$ bsc -l /lib/x86_64-linux-gnu/libc.so.6 /bin/bash
/bin/bash: +ASLR +STACK-PROT +READ-ONLY-RELOC !IMMEDIATE-BIND ~FORTIFY-SOURCE(+memmove,+strcpy,+strncpy,+sprintf,+fprintf,+asprintf,+snprintf,+memcpy,+vfprintf,+fdelt,+printf,+longjmp,+vsnprintf,!fgets,!mbstowcs,!readlink,!memmove,!strcpy,!wcsrtombs,!wcrtomb,!strcat,!mbsnrtowcs,!mbsrtowcs,!memcpy,!getgroups,!confstr,!wctomb,!strncpy,!memset,!getcwd,!read,!stpcpy,!gethostname)

System:

# Debian 11

$ uname -vr
5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10)

$ rustc -V
rustc 1.56.1 (59eed8a2a 2021-11-01)

binary-security-check command line invalid arguments

I am trying to run the binary after installing it on my system(Linux Ubuntu), but I get an invalid arguments error. How to use this binary correctly? Can you help me for this?

My usage:
(In my home directory):
cd .cargo/bin
./binary-security-check -l MYFILE

Generating a report

I would like to receive a report in the form of a table with a list of binary files and results. Or the translation in a beautiful form into a text file

Timestamp is always in UTC/GMT

Please disregard the "library not recognized", there is #4 for it.

$ bsc /bin/bash
14:58:12 [ERROR] /bin/bash: Dependent C runtime library is not recognized.

$ date
Sat 13 Nov 2021 01:28:34 ACDT

[QUESTION] Can this Analyze Static Binaries?

I have statically compiled binaries, that have no dynamically linked libc.

I get:

$ file "/home/runner/hugo/hugo"
/home/runner/hugo/hugo: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped

$ ldd "/home/runner/hugo/hugo"
        statically linked

$ binary-security-check "/home/runner/hugo/hugo"
07:49:57 [ERROR] /home/runner/hugo/hugo: dependent C runtime library is not recognized.

I have been using OfriOuzan/HardeningMeter which works even for static binaries.
Could a similar feature-set be implemented in binary-security-check as well?

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.