Skip to content

Instantly share code, notes, and snippets.

@scudette
Created March 23, 2022 06:50
Show Gist options
  • Save scudette/ffcd3ed2e589ebbdbe5c3edcf3914176 to your computer and use it in GitHub Desktop.
Save scudette/ffcd3ed2e589ebbdbe5c3edcf3914176 to your computer and use it in GitHub Desktop.
Sample flat disk image remapping configuration
remappings:
- type: permissions
permissions:
- COLLECT_CLIENT
- FILESYSTEM_READ
- FILESYSTEM_WRITE
- READ_RESULTS
- MACHINE_STATE
- SERVER_ADMIN
- type: impersonation
os: windows
hostname: Virtual Host
env:
- key: SystemRoot
value: C:\Windows
- key: WinDir
value: C:\Windows
disabled_functions:
- amsi
- lookupSID
- token
disabled_plugins:
- users
- certificates
- handles
- pslist
- interfaces
- modules
- netstat
- partitions
- proc_dump
- proc_yara
- vad
- winobj
- wmi
- type: mount
from:
accessor: raw_ntfs
prefix: |
{
"DelegateAccessor": "offset",
"Delegate": {
"DelegateAccessor": "file",
"DelegatePath": "/mnt/flat",
"Path":"122683392"
},
"Path": "/"
}
"on":
accessor: ntfs
prefix: '\\.\C:'
path_type: ntfs
- type: mount
from:
accessor: raw_ntfs
prefix: |
{
"DelegateAccessor": "offset",
"Delegate": {
"DelegateAccessor": "file",
"DelegatePath": "/mnt/flat",
"Path":"122683392"
},
"Path": "/"
}
"on":
accessor: file
prefix: 'C:'
path_type: windows
- type: mount
from:
accessor: raw_ntfs
prefix: |
{
"DelegateAccessor": "offset",
"Delegate": {
"DelegateAccessor": "file",
"DelegatePath": "/mnt/flat",
"Path":"122683392"
},
"Path": "/"
}
"on":
accessor: auto
prefix: 'C:'
path_type: windows
- type: mount
from:
accessor: raw_reg
prefix: |-
{
"Path": "/",
"DelegateAccessor": "raw_ntfs",
"Delegate": {
"DelegateAccessor":"offset",
"Delegate": {
"DelegateAccessor": "file",
"DelegatePath": "/mnt/flat",
"Path": "122683392"
},
"Path":"/Windows/System32/Config/SOFTWARE"
}
}
path_type: registry
- type: mount
from:
accessor: raw_reg
prefix: |-
{
"Path": "/",
"DelegateAccessor": "raw_ntfs",
"Delegate": {
"DelegateAccessor":"offset",
"Delegate": {
"DelegateAccessor": "file",
"DelegatePath": "/mnt/flat",
"Path": "122683392"
},
"Path":"/Windows/System32/Config/SYSTEM"
}
}
path_type: registry
"on":
accessor: registry
prefix: HKEY_LOCAL_MACHINE\System
path_type: registry
- type: shadow
from:
accessor: zip
"on":
accessor: zip
- type: shadow
from:
accessor: raw_reg
"on":
accessor: raw_reg
- type: shadow
accessor: raw_reg
- type: shadow
from:
accessor: data
"on":
accessor: data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment