Giter Site home page Giter Site logo

reverseame / sigcheck Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 4.0 65 KB

Volatility plugin to validate Authenticode-signed processes, either with embedded signature or catalog-signed

Home Page: https://doi.org/10.1016/j.fsidi.2020.300917

License: GNU General Public License v3.0

Shell 0.88% Python 99.12%
volatility volatility-plugins sigcheck authenticode openssl python

sigcheck's People

Contributors

duroz avatar martinidelimon avatar ricardojrdez avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

sigcheck's Issues

JSON output

`
def render_json(self, outfd, data):
for gen in data:
for key in gen:
root = key['root']
filtered_keys = self.filter_key(key['key'], key['value'])
for filtered_key in filtered_keys:
if not self._config.MATCH or (self._config.MATCH and filtered_key['reason']):
#if filtered_key['reason']:
# outfd.write('\nWARNING: {0}'.format(warning_message(', '.join(filtered_key['reason']))))
#outfd.write('\n{0}{1}\n'.format(root, self.regapi.reg_get_key_path(filtered_key['key'])))

                    tp, dt = rawreg.value_data(filtered_key['value'])
                    if tp == 'REG_BINARY' or tp == 'REG_NONE':
                        dt = "\n" + "\n".join(["{0:#010x}  {1:<48}  {2}".format(o, h, ''.join(c)) for o, h, c in
                                               utils.Hexdump(dt[:0x40])])
                    dic = {'key': '{0}{1}'.format(root, self.regapi.reg_get_key_path(filtered_key['key'])),
                           'name': self.get_value_name(filtered_key['value']),
                           'type': tp,
                           'value': dt,
                           'warning': ', '.join(filtered_key['reason']) if filtered_key['reason'] else None
                           }

                    #outfd.write('{0}: {1}: {2}\n'.format(self.get_value_name(filtered_key['value']), tp, dt))
                    outfd.write('{0}\n'.format(json.dumps(dic)))

`

*** Failed to import volatility.plugins.sigcheck (ImportError: No module named pefile)

Hi, I tried to run plugin sigcheck in Volatility 2.6.

When I run sigcheck.py in Python, there is no 'import pefile' error.
However, when I run it as a plugin in Volatility, an 'import pefile' error occurs.
Do you know why this error is happening?
For reference, I am using Python 3.8 and Volatility 2.6.

Volatility Foundation Volatility Framework 2.6 *** Failed to import volatility.plugins.sigcheck (ImportError: No module named pefile) *** Failed to import volatility.plugins.sigvalidator (ImportError: No module named pefile)

Thank you.

File type error

for new_imagebase in self.frequent_addresses[file_type]:

'DRV' isn't in address.json
Manage when the file type is not defined in the json.

for new_imagebase in self.frequent_addresses.get(file_type): # 'get' returns None if the key isn't in the dictionary
new_imagebase = int(new_imagebase, 16)
...

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\username\\AppData\\Local\\Temp\\tmp3v6qi352'

I tried to execute sigvalidator.py without success.

This is my code:

if __name__ == '__main__':

    sigv = sigvalidator.SigValidator()

Here is the error message that I got

Exception ignored in: <function SigValidator.del at 0x03637100>
Traceback (most recent call last):
File "C:\Users\ragehead\Yeager\venv\lib\site-packages\sigvalidator.py", line 62, in del
File "C:\Users\ragehead\Yeager\venv\lib\site-packages\sigvalidator.py", line 96, in clean_workin_dir
File "C:\Users\ragehead\Yeager\venv\lib\site-packages\sigvalidator.py", line 101, in delete_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\username\AppData\Local\Temp\tmp3v6qi352'

Thank you for your support

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.