{"id":19390639,"url":"https://github.com/mandiant/win10_auto","last_synced_at":"2025-04-24T00:31:27.657Z","repository":{"id":38286125,"uuid":"201272962","full_name":"mandiant/win10_auto","owner":"mandiant","description":null,"archived":true,"fork":false,"pushed_at":"2019-08-30T15:31:51.000Z","size":84,"stargazers_count":24,"open_issues_count":0,"forks_count":19,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-13T12:32:10.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandiant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-08T14:14:14.000Z","updated_at":"2024-10-25T07:00:19.000Z","dependencies_parsed_at":"2022-08-25T02:31:52.957Z","dependency_job_id":null,"html_url":"https://github.com/mandiant/win10_auto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fwin10_auto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fwin10_auto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fwin10_auto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fwin10_auto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandiant","download_url":"https://codeload.github.com/mandiant/win10_auto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250539415,"owners_count":21447305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T10:22:31.795Z","updated_at":"2025-04-24T00:31:25.339Z","avatar_url":"https://github.com/mandiant.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Win10Deflate Automated Structure Extraction\n`Win10Deflate` currently consists of the FLARE team's Volatility \u0026 Rekall plugins designed to support the extraction of compressed pages located in the RAM-backed virtual store. The structures required to decompress these pages are undocumented and ever-changing. The `Win10Deflate Auto` project locates these structures and extracts the corresponding magics \u0026 field-offsets of interest for use in FLARE's Volatility \u0026 Rekall plugins. The project leverages Tom Bennett's `FLARE-EMU` utility, which provides a series of helper functions to lower the barrier of entry to using the `Unicorn Engine` for emulation.\n\n## Setup\n1. Clone repository\n2. If `flare_emu` is installed on your machine, skip to `Usage`\n3. Use `git submodule init` \u0026 `git submodule update` to clone the `FLARE-EMU` repository locally\n\n## Usage\nThe `Win10Deflate Auto` script is designed to work in an `IDA Pro 7.x` environment in the context of a Windows 10 `ntoskrnl.exe`. Use `Alt+F7` or `File \u003e Script File` to load `win10deflate_auto.py`.\n\n## Output\nExpected output will look similar to the output below (`Win10.1809.x64`).\n```\nINFO:Magic:MAGIC.SmGlobals: 0x55a9c0\nINFO:Magic:MAGIC.MmPagingFile: 0x43e5e0\nINFO:SMKM_STORE_MGR:SMKM_STORE_MGR.sSmKm: 0x0\nINFO:SMKM_STORE_MGR:SMKM_STORE_MGR.sGlobalTree: 0x1c0\nINFO:SMKM:SMKM.SmkmStoreMetadataArray: 0x0\nINFO:SMKM_STORE_METADATA:SMKM_STORE_METADATA.Size: 0x28\nINFO:SMKM_STORE_METADATA:SMKM_STORE_METADATA.pSmkmStore: 0x0\nINFO:SMKM_STORE:SMKM_STORE.StStore: 0x0\nINFO:SMKM_STORE:SMKM_STORE.pCompressedRegionPtrArray: 0x1848\nINFO:SMKM_STORE:SMKM_STORE.StoreOwnerProcess: 0x19a8\nINFO:ST_STORE:ST_STORE.StDataMgr: 0x50\nINFO:ST_STORE:ST_DATA_MGR.sLocalTree: 0x0\nINFO:ST_STORE:ST_DATA_MGR.ChunkMetadata: 0xc0\nINFO:ST_STORE:ST_DATA_MGR.SmkmStore: 0x320\nINFO:ST_STORE:ST_DATA_MGR.RegionSizeMask: 0x328\nINFO:ST_STORE:ST_DATA_MGR.RegionLSB: 0x32c\nINFO:ST_STORE:ST_DATA_MGR.CompressionFormat: 0x3e0\n```\n\n## Functionality\nThe `Win10Deflate` automation script relies on known function arguments, callstacks, order of operation, and data manipulation within `ntoskrnl.exe`'s Store Manager functions. By leveraging emulation via `FLARE-EMU`, arguments and structures can be injected into the system, traced, and then located to calculate field offsets in structures of interest.\n\n## Additional Reading\n1. [Part 1 - Rekall \u0026 Volatility Announcement Blog](https://www.fireeye.com/blog/threat-research/2019/07/finding-evil-in-windows-ten-compressed-memory-part-one.html)\n1. Part 2 - Virtual Store Deep Dive Blog\n1. Part 3 - Automating Undocumented Structure Extraction Blog\n1. BlackHat USA 2019 Whitepaper","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandiant%2Fwin10_auto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandiant%2Fwin10_auto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandiant%2Fwin10_auto/lists"}