dumpscan-0.1.1


توضیحات

Scanning memory dumps for secrets using volatility and yara
ویژگی مقدار
سیستم عامل -
نام فایل dumpscan-0.1.1
نام dumpscan
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Leron Gray
ایمیل نویسنده daddycocoaman@gmail.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/dumpscan/
مجوز MIT
<p align="center"> <img width="500" height="500" src="https://raw.githubusercontent.com/daddycocoaman/dumpscan/main/docs/dumpscan.png"> </p> **Dumpscan** is a command-line tool designed to extract and dump secrets from kernel and Windows Minidump formats. Kernel-dump parsing is provided by [volatility3](https://github.com/volatilityfoundation/volatility3). ## Features - x509 Public and Private key (PKCS #8/PKCS #1) parsing - [SymCrypt](https://github.com/microsoft/SymCrypt) parsing - Supported structures - **SYMCRYPT_RSAKEY** - Determines if the key structure also has a private key - Matching to public certificates found in the same process - More SymCrypt structures to come - Environment variables - Command line arguments **Note**: Testing has only been performed on Windows 10 and 11 64-bit hosts and processes. Feel free to file an issue for additional versions. Linux testing TBD. ## Installation As a command-line tool, installation is recommended using [pipx](https://github.com/pypa/pipx). This allows for easy updates and well and ensuring it is installed in its own virtual environment. ``` pipx install dumpscan pipx inject dumpscan git+https://github.com/volatilityfoundation/volatility3#39e812a ``` ## Usage ``` Usage: dumpscan [OPTIONS] COMMAND [ARGS]... Scan memory dumps for secrets and keys ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ --help Show this message and exit. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ kernel Scan kernel dump using volatility │ │ minidump Scan a user-mode minidump │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ``` In the case for subcommands that extract certificates, you can provide `--output/-o <dir>` to output any discovered certificates to disk. ### Kernel Mode As mentioned, kernel analysis is performed by Volatility3. `cmdline`, `envar`, and `pslist` are direct calls to the Volatility3 plugins, while `symcrypt` and `x509` are custom plugins. ``` Usage: dumpscan kernel [OPTIONS] COMMAND [ARGS]... Scan kernel dump using volatility ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ --help Show this message and exit. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ cmdline List command line for processes (Only for Windows) │ │ envar List process environment variables (Only for Windows) │ │ pslist List all the processes and their command line arguments │ │ symcrypt Scan a kernel-mode dump for symcrypt objects │ │ x509 Scan a kernel-mode dump for x509 certificates │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ``` ### Minidump Mode Supports Windows Minidump format. **Note**: This has only been tested on 64-bit processes on Windows 10+. 32-bit processes requires additional work but isn't a priority. ``` Usage: dumpscan minidump [OPTIONS] COMMAND [ARGS]... Scan a user-mode minidump ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ --help Show this message and exit. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ cmdline Dump the command line string │ │ envar Dump the environment variables in a minidump │ │ symcrypt Scan a minidump for symcrypt objects │ │ x509 Scan a minidump for x509 objects │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ``` ## Built With - [volatility3](https://github.com/volatilityfoundation/volatility3) - [construct](https://github.com/construct/construct) - [yara-python](https://github.com/VirusTotal/yara-python) - [typer](https://github.com/tiangolo/typer) - [rich](https://github.com/Textualize/rich) - [rich_click](https://github.com/ewels/rich-click) ## Acknowledgements - Thanks to [F-Secure](https://github.com/FSecureLABS) and the [physmem2profit](https://github.com/FSecureLABS/physmem2profit) project for providing the idea to use `construct` for parsing minidumps. - Thanks to [Skelsec](https://github.com/skelsec) and his [minidump](https://github.com/skelsec/minidump) project which helped me figure out to parse minidumps. ## To-Do - Verify use against 32-bit minidumps - Create a coredump parser for Linux process dumps - Verify volatility plugins work against Linux kernel dumps - Add an HTML report that shows all plugins - Code refactoring to make more extensible - MORE SECRETS


نیازمندی

مقدار نام
>=0.4.1,<0.5.0 typer
>=12.3.0,<13.0.0 rich
>=3.8.0 yara-python
>=37.0.2,<38.0.0 cryptography
>=1.15.0,<2.0.0 cffi
>=2.10.68,<3.0.0 construct
>=1.4,<2.0 rich-click[typer]
>=3.14.1,<4.0.0 pycryptodome
>=4.5.1,<5.0.0 jsonschema
>=5.0.0rc2,<6.0.0 capstone
>=1.2.2,<2.0.0 arrow
>=2022.5.30,<2023.0.0 pefile


زبان مورد نیاز

مقدار نام
>=3.9,<4.0 Python


نحوه نصب


نصب پکیج whl dumpscan-0.1.1:

    pip install dumpscan-0.1.1.whl


نصب پکیج tar.gz dumpscan-0.1.1:

    pip install dumpscan-0.1.1.tar.gz