Giter VIP home page Giter VIP logo

assemblyline-service-pefile's Introduction

This module has been deprecated in favor of PE

PEFile Service

This Assemblyline service runs the PEFile application against windows executables.

NOTE: This service does not require you to buy any licence

Execution

This services attempts to extract PE headers and provides the following information in the result output (when available):

  • Entry point address
  • Linker Version
  • OS Version
  • Time Date Stamp (AL tag: file.pe.linker.timestamp)
  • Machine Type
  • RICH HEADER Info
  • DATA DIRECTORY Info
  • SECTIONS Info, including:
    • hash (AL tag: file.pe.sections.hash)
  • DEBUG Info, including:
    • PDB Filename (AL tag: file.pe.pdb_filename)
  • IMPORTs Info, including:
    • Table Listing
    • Import Hashes (AL tags: file.pe.imports.md5, file.pe.imports.sorted_sha1)
    • Fuzzy import hashes (tags: file.pe.imports.fuzzy, file.pe.imports.sorted_fuzzy)
  • EXPORTs Info, including:
    • Module Name (AL tag: file.pe.exports.module_name)
  • RESOURCES Info, including:
    • Name (AL tag: file.pe.resources.name)
    • Language (AL tag: file.pe.resources.language)
    • VersionInfo:
      • LangID
      • Original Filename (AL tag: file.pe.version.filename)
      • File Description (AL tag: file.pe.version.description)
  • Authenticode Signature Information
    • Done using signify
    • Extracted to AL tags cert.* (only the certificate information for the signing certificate)
  • API Vector extraction

assemblyline-service-pefile's People

Contributors

cccs-aa avatar cccs-dawson avatar cccs-douglass avatar cccs-jh avatar cccs-kevin avatar cccs-rs avatar cccs-rushi avatar cccs-sgaron avatar ekkerri-cse avatar gdesmar avatar jdval avatar spelcha avatar

Stargazers

 avatar  avatar

Watchers

 avatar

assemblyline-service-pefile's Issues

PDB filename parse issue

Many pe sample pdb filenames are not terminated at the trailing null character; filenames often have have trailing characters after the null a long string of null characters.

Example samples:
md5: 0230204125c4d6aa06d152e0c862f318 - pdb: P:\Target\x86\ship\delivery\x-none\ose.pdb\x00ose.pdb\x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\x00

md5: 3530084c6c504b18052f430a5d2a35c3 - pdb: C:\Users\Administrator\Desktop\Client\Temp\KTmwkzEONI\src\obj\Debug\MuiResourceIdLookupMapEntryFieldId.pdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00

md5: 00000080bfb695f567501209406f62ef - pdb: c:\stout.pdb\x00

UnidentifiedImageError: cannot identify image file '/tmp/working_directory/tmpx7zwz0px/RT_ICON_GROUP_0_ICON_0.ico'

Hey,
I'm a tech guy that helps our IR team to upgrade their Infra' for improving their capabilities with AL4.
They are still using AL3 and are craving to make the upgrade stable as possible.

After I've done the setup and tried to scan some sample files I notice that there is an error that occurs for some awkward causes.

The service PEfile (4.1.0.stable5) keep crashing for the following tray:

File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_v4_service/common/base.py", line 133, in handle_task
self.execute(request)
File "/opt/al_service/pe_file/pe_file.py", line 710, in execute
self.get_pe_info(G_LCID)
File "/opt/al_service/pe_file/pe_file.py", line 333, in get_pe_info
image_section.add_image(path, name, 'Extracted RT_ICON')
File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_v4_service/common/result.py", line 320, in add_image
res = self.request.add_image(path, name, description, classification)
File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_v4_service/common/request.py", line 67, in add_image
img = Image.open(path)
File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/PIL/Image.py", line 3030, in open
raise UnidentifiedImageError(
UnidentifiedImageError: cannot identify image file '/tmp/working_directory/tmpx7zwz0px/RT_ICON_GROUP_0_ICON_0.ico'

I've asked for help on the discord channel associated with AL4 - but no answers came from there :)
I would like to know if there could be a work-around to this issue.

Thanks for your contribution :)

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.