packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection
GNU General Public License v3.0
44 stars 10 forks source link

Error using PyPeid #61

Closed RomainJennes closed 1 year ago

RomainJennes commented 1 year ago

The PyPeid detector does not seem to be installed in the box, but it shows up in the Detectors status

Detectors (9)
  ──────────────  ────────────  ──────  ──────────  ─────────  ─────────────  ───────────────────────────────────────────────
  Name            Targets       Status  Multiclass  Weak Mode  Superdetector  Source
  Bintropy        MSDOS,PE,ELF  ☑       ☒           ☒          ☒                https://github.com/packing-box/bintropy
  DIE             All           ☑       ☑           ☒          ☑                https://github.com/horsicq/Detect-It-Easy
  Manalyze        MSDOS,PE      ☑       ☑           ☑          ☒                https://github.com/JusticeRage/Manalyze
  PEiD            MSDOS,PE      ☑       ☑           ☒          ☑                https://github.com/packing-box/peid
  PePack          MSDOS,PE      ☑       ☑           ☒          ☒                https://github.com/merces/pev
  PyPackerDetect  MSDOS,PE      ☑       ☑           ☑          ☑                https://github.com/packing-box/pypackerdetect
  PyPeid          MSDOS,PE      ☑       ☑           ☒          ☒                https://github.com/FFRI/pypeid
  REMINDer        All           ☑       ☒           ☒          ☒                https://github.com/packing-box/reminder
  RetDec          All           ☑       ☑           ☒          ☑                https://github.com/avast/retdec
  ──────────────  ────────────  ──────  ──────────  ─────────  ─────────────  ───────────────────────────────────────────────
$ dataset make baseline -n 100 -f PE -p upx
$ detector baseline -b -d PyPeid
00:00:03.487 [ERROR] Traceback (most recent call last):
  File "/home/user/.opt/bin/pypeid", line 4, in <module>
    from pypeid import PEiDScanner
ModuleNotFoundError: No module named 'pypeid'
RomainJennes commented 1 year ago

Solved it with

$ packing-box setup detector PyPeid
dhondta commented 1 year ago

Hi @RomainJennes Indeed, it seems that PyPEiD failed to install during the provisioning of your Docker. I got this too.