예제 #1
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description="Memory layer for the kernel",
             architectures=["Intel32", "Intel64"]),
         requirements.BooleanRequirement(
             name="insensitive",
             description="Makes the search case insensitive",
             default=False,
             optional=True),
         requirements.BooleanRequirement(
             name="wide",
             description="Match wide (unicode) strings",
             default=False,
             optional=True),
         requirements.StringRequirement(
             name="yara_rules",
             description="Yara rules (as a string)",
             optional=True),
         requirements.URIRequirement(name="yara_file",
                                     description="Yara rules (as a file)",
                                     optional=True),
         requirements.IntRequirement(
             name="max_size",
             default=0x40000000,
             description="Set the maximum size (default is 1GB)",
             optional=True)
     ]
예제 #2
0
 def get_requirements(cls):
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.PluginRequirement(name='pslist',
                                        plugin=pslist.PsList,
                                        version=(2, 0, 0)),
         requirements.VersionRequirement(name='info',
                                         component=info.Info,
                                         version=(1, 0, 0)),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process ID to include (all other processes are excluded)",
             optional=True),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed processes",
             default=False,
             optional=True),
         requirements.BooleanRequirement(
             name='physical',
             description="Display physical offset instead of virtual",
             default=False,
             optional=True)
     ]
예제 #3
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.StringRequirement(
             name='plugins',
             description="Comma separated list of plugins to run",
             optional=True,
             default=None),
         requirements.BooleanRequirement(
             name='record-config',
             description=
             "Whether to record the state of all the plugins once complete",
             optional=True,
             default=False),
         requirements.ListRequirement(
             name='plugin-filter',
             description="Only run plugins featuring this substring",
             element_type=str,
             optional=True,
             default=[]),
         requirements.BooleanRequirement(
             name='create-bodyfile',
             description=
             "Whether to create a body file whilst producing results",
             optional=True,
             default=False)
     ]
예제 #4
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(name = 'primary',
                                                  description = "Memory layer for the kernel",
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.BooleanRequirement(name = "insensitive",
                                         description = "Makes the search case insensitive",
                                         default = False,
                                         optional = True),
         requirements.BooleanRequirement(name = "wide",
                                         description = "Match wide (unicode) strings",
                                         default = False,
                                         optional = True),
         requirements.StringRequirement(name = "yara_rules",
                                        description = "Yara rules (as a string)",
                                        optional = True),
         requirements.URIRequirement(name = "yara_file", description = "Yara rules (as a file)", optional = True),
         # This additional requirement is to follow suit with upstream, who feel that compiled rules could potentially be used to execute malicious code
         # As such, there's a separate option to run compiled files, as happened with yara-3.9 and later
         requirements.URIRequirement(name = "yara_compiled_file",
                                     description = "Yara compiled rules (as a file)",
                                     optional = True),
         requirements.IntRequirement(name = "max_size",
                                     default = 0x40000000,
                                     description = "Set the maximum size (default is 1GB)",
                                     optional = True)
     ]
예제 #5
0
 def get_requirements(cls):
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.BooleanRequirement(
             name='physical',
             description='Display physical offsets instead of virtual',
             default=cls.PHYSICAL_DEFAULT,
             optional=True),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process ID to include (all other processes are excluded)",
             optional=True),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed processes",
             default=False,
             optional=True)
     ]
예제 #6
0
 def get_requirements(cls):
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.PluginRequirement(name='pslist',
                                        plugin=pslist.PsList,
                                        version=(2, 0, 0)),
         requirements.VersionRequirement(name='info',
                                         component=info.Info,
                                         version=(1, 0, 0)),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process ID to include (all other processes are excluded)",
             optional=True),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed processes",
             default=False,
             optional=True)
     ]
예제 #7
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.PluginRequirement(name='hivelist',
                                        plugin=hivelist.HiveList,
                                        version=(1, 0, 0)),
         requirements.IntRequirement(name='offset',
                                     description="Hive Offset",
                                     default=None,
                                     optional=True),
         requirements.StringRequirement(name='key',
                                        description="Key to start from",
                                        default=None,
                                        optional=True),
         requirements.BooleanRequirement(
             name='recurse',
             description='Recurses through keys',
             default=False,
             optional=True)
     ]
예제 #8
0
 def get_requirements(cls):
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process IDs to include (all other processes are excluded)",
             optional=True),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract injected VADs",
             default=False,
             optional=True),
         requirements.VersionRequirement(name='pslist',
                                         component=pslist.PsList,
                                         version=(2, 0, 0)),
         requirements.VersionRequirement(name='vadinfo',
                                         component=vadinfo.VadInfo,
                                         version=(2, 0, 0))
     ]
예제 #9
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     ## TODO: we might add a regex option on the name later, but otherwise we're good
     ## TODO: and we don't want any CLI options from pslist, modules, or moddump
     return [
         requirements.PluginRequirement(name='pslist',
                                        plugin=pslist.PsList,
                                        version=(2, 0, 0)),
         requirements.PluginRequirement(name='modules',
                                        plugin=modules.Modules,
                                        version=(1, 0, 0)),
         requirements.VersionRequirement(name='dlllist',
                                         component=dlllist.DllList,
                                         version=(2, 0, 0)),
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.BooleanRequirement(
             name="extensive",
             description="Search physical layer for version information",
             optional=True,
             default=False),
     ]
예제 #10
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                            architectures = ["Intel32", "Intel64"]),
             # TODO: Convert this to a ListRequirement so that people can filter on sets of ranges
             requirements.IntRequirement(name = 'address',
                                         description = "Process virtual memory address to include " \
                                                       "(all other address ranges are excluded). This must be " \
                                                       "a base address, not an address within the desired range.",
                                         optional = True),
             requirements.ListRequirement(name = 'pid',
                                          description = 'Filter on specific process IDs',
                                          element_type = int,
                                          optional = True),
             requirements.PluginRequirement(name = 'pslist', plugin = pslist.PsList, version = (2, 0, 0)),
             requirements.BooleanRequirement(name = 'dump',
                                             description = "Extract listed memory ranges",
                                             default = False,
                                             optional = True),
             requirements.IntRequirement(name = 'maxsize',
                                         description = "Maximum size for dumped VAD sections " \
                                                       "(all the bigger sections will be ignored)",
                                         default = cls.MAXSIZE_DEFAULT,
                                         optional = True),
             ]
예제 #11
0
 def get_requirements(cls):
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.VersionRequirement(name='netscan',
                                         component=netscan.NetScan,
                                         version=(1, 0, 0)),
         requirements.VersionRequirement(name='modules',
                                         component=modules.Modules,
                                         version=(1, 0, 0)),
         requirements.VersionRequirement(name='pdbutil',
                                         component=pdbutil.PDBUtility,
                                         version=(1, 0, 0)),
         requirements.VersionRequirement(name='info',
                                         component=info.Info,
                                         version=(1, 0, 0)),
         requirements.VersionRequirement(name='verinfo',
                                         component=verinfo.VerInfo,
                                         version=(1, 0, 0)),
         requirements.BooleanRequirement(
             name='include-corrupt',
             description=
             "Radically eases result validation. This will show partially overwritten data. WARNING: the results are likely to include garbage and/or corrupt data. Be cautious!",
             default=False,
             optional=True),
     ]
예제 #12
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.VersionRequirement(name='pslist',
                                         component=pslist.PsList,
                                         version=(2, 0, 0)),
         requirements.VersionRequirement(name='info',
                                         component=info.Info,
                                         version=(1, 0, 0)),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process IDs to include (all other processes are excluded)",
             optional=True),
         requirements.BooleanRequirement(name='dump',
                                         description="Extract listed DLLs",
                                         default=False,
                                         optional=True)
     ]
예제 #13
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.IntRequirement(
             name='block_size',
             description="Size of blocks to copy over",
             default=cls.default_block_size,
             optional=True),
         requirements.BooleanRequirement(
             name='list',
             description='List available layers',
             default=False,
             optional=True),
         requirements.ListRequirement(
             name='layers',
             element_type=str,
             description=
             'Names of layers to write (defaults to the highest non-mapped layer)',
             default=None,
             optional=True)
     ]
예제 #14
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Linux kernel',
                                        architectures = ["Intel32", "Intel64"]),
         requirements.ListRequirement(name = 'pid',
                                      description = 'Filter on specific process IDs',
                                      element_type = int,
                                      optional = True),
         requirements.BooleanRequirement(name="threads",
                                         description="Include user threads",
                                         optional=True,
                                         default=False),
         requirements.BooleanRequirement(name="decorate_comm",
                                         description="Show `user threads` comm in curly brackets, and `kernel threads` comm in square brackets",
                                         optional=True,
                                         default=False),
     ]
예제 #15
0
 def get_requirements(cls):
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                        architectures = ["Intel32", "Intel64"]),
         requirements.BooleanRequirement(name = 'physical',
                                         description = 'Display physical offsets instead of virtual',
                                         default = cls.PHYSICAL_DEFAULT,
                                         optional = True),
         requirements.ListRequirement(name = 'pid',
                                      element_type = int,
                                      description = "Process ID to include (all other processes are excluded)",
                                      optional = True),
         requirements.BooleanRequirement(name = 'dump',
                                         description = "Extract listed processes",
                                         default = False,
                                         optional = True)
     ]
예제 #16
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(name = 'primary',
                                                  description = 'Memory layer for the kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.BooleanRequirement(name = 'extra',
                                         description = 'Outputs whole configuration tree',
                                         default = False,
                                         optional = True)
     ]
예제 #17
0
 def get_requirements(cls):
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.BooleanRequirement(name = 'physical',
                                         description = 'Display physical offsets instead of virtual',
                                         default = pslist.PsList.PHYSICAL_DEFAULT,
                                         optional = True),
         requirements.VersionRequirement(name = 'pslist', component = pslist.PsList, version = (2, 0, 0)),
         requirements.ListRequirement(name = 'pid',
                                      element_type = int,
                                      description = "Process ID to include (all other processes are excluded)",
                                      optional = True)
     ]
예제 #18
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.BooleanRequirement(
             name='full',
             description=
             "It analyzes and provides all the information in the partition entry and bootcode hexdump. (It returns a lot of information, so we recommend you render it in CSV.)",
             default=False,
             optional=True)
     ]
예제 #19
0
 def get_requirements(cls):
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.VersionRequirement(name = 'poolerscanner',
                                         component = poolscanner.PoolScanner,
                                         version = (1, 0, 0)),
         requirements.VersionRequirement(name = 'pslist', component = pslist.PsList, version = (2, 0, 0)),
         requirements.VersionRequirement(name = 'dlllist', component = dlllist.DllList, version = (2, 0, 0)),
         requirements.BooleanRequirement(name = 'dump',
                                         description = "Extract listed modules",
                                         default = False,
                                         optional = True)
     ]
예제 #20
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.StringRequirement(name = 'tags',
                                        description = "Comma separated list of pool tags to filter pools returned",
                                        optional = True,
                                        default = None),
         requirements.BooleanRequirement(name = 'show-free',
                                         description = 'Show freed regions (otherwise only show allocations in use)',
                                         default = False,
                                         optional = True)
     ]
예제 #21
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.ModuleRequirement(name = 'kernel', description = 'Windows kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.StringRequirement(name = 'filter',
                                        description = "String to filter hive names returned",
                                        optional = True,
                                        default = None),
         requirements.PluginRequirement(name = 'hivescan', plugin = hivescan.HiveScan, version = (1, 0, 0)),
         requirements.BooleanRequirement(name = 'dump',
                                         description = "Extract listed registry hives",
                                         default = False,
                                         optional = True)
     ]
예제 #22
0
 def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [
         requirements.TranslationLayerRequirement(name = 'primary',
                                                  description = 'Memory layer for the kernel',
                                                  architectures = ["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(name = "nt_symbols", description = "Windows kernel symbols"),
         requirements.ListRequirement(name = 'pid',
                                      description = 'Filter on specific process IDs',
                                      element_type = int,
                                      optional = True),
         requirements.BooleanRequirement(name = 'silent',
                                         description = 'Suppress common and non-persistent variables',
                                         optional = True),
         requirements.PluginRequirement(name = 'pslist', plugin = pslist.PsList, version = (2, 0, 0)),
         requirements.PluginRequirement(name = 'hivelist', plugin = hivelist.HiveList, version = (1, 0, 0))
     ]
예제 #23
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description="Memory layer for the kernel",
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.BooleanRequirement(
             name="wide",
             description="Match wide (unicode) strings",
             default=False,
             optional=True),
         requirements.StringRequirement(
             name="yara_rules",
             description="Yara rules (as a string)",
             optional=True),
         requirements.URIRequirement(name="yara_file",
                                     description="Yara rules (as a file)",
                                     optional=True),
         # This additional requirement is to follow suit with upstream, who feel that compiled rules could potentially be used to execute malicious code
         # As such, there's a separate option to run compiled files, as happened with yara-3.9 and later
         requirements.URIRequirement(
             name="yara_compiled_file",
             description="Yara compiled rules (as a file)",
             optional=True),
         requirements.IntRequirement(
             name="max_size",
             default=0x40000000,
             description="Set the maximum size (default is 1GB)",
             optional=True),
         requirements.PluginRequirement(name='pslist',
                                        plugin=pslist.PsList,
                                        version=(2, 0, 0)),
         requirements.VersionRequirement(name='yarascanner',
                                         component=yarascan.YaraScanner,
                                         version=(2, 0, 0)),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process IDs to include (all other processes are excluded)",
             optional=True)
     ]
예제 #24
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.VersionRequirement(name='pslist',
                                         component=pslist.PsList,
                                         version=(2, 0, 0)),
         requirements.VersionRequirement(name='dlllist',
                                         component=dlllist.DllList,
                                         version=(2, 0, 0)),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed modules",
             default=False,
             optional=True)
     ]
예제 #25
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.ListRequirement(
             name='filter',
             description=
             'String that must be present in the file URI to display the ISF',
             optional=True,
             default=[]),
         requirements.URIRequirement(
             name='isf',
             description="Specific ISF file to process",
             default=None,
             optional=True),
         requirements.BooleanRequirement(
             name='validate',
             description='Validate against schema if possible',
             default=False,
             optional=True)
     ]
예제 #26
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.VersionRequirement(name='pslist',
                                         component=pslist.PsList,
                                         version=(2, 0, 0)),
         requirements.VersionRequirement(name='dlllist',
                                         component=dlllist.DllList,
                                         version=(2, 0, 0)),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed modules",
             default=False,
             optional=True)
     ]
예제 #27
0
 def get_requirements(cls):
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.VersionRequirement(name='poolscanner',
                                         component=poolscanner.PoolScanner,
                                         version=(1, 0, 0)),
         requirements.VersionRequirement(name='info',
                                         component=info.Info,
                                         version=(1, 0, 0)),
         requirements.BooleanRequirement(
             name='include-corrupt',
             description=
             "Radically eases result validation. This will show partially overwritten data. WARNING: the results are likely to include garbage and/or corrupt data. Be cautious!",
             default=False,
             optional=True),
     ]
예제 #28
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description="Memory layer for the kernel",
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.BooleanRequirement(
             name="wide",
             description="Match wide (unicode) strings",
             default=False,
             optional=True),
         requirements.StringRequirement(
             name="yara_rules",
             description="Yara rules (as a string)",
             optional=True),
         requirements.URIRequirement(name="yara_file",
                                     description="Yara rules (as a file)",
                                     optional=True),
         requirements.IntRequirement(
             name="max_size",
             default=0x40000000,
             description="Set the maximum size (default is 1GB)",
             optional=True),
         requirements.PluginRequirement(name='pslist',
                                        plugin=pslist.PsList,
                                        version=(2, 0, 0)),
         requirements.VersionRequirement(name='yarascanner',
                                         component=yarascan.YaraScanner,
                                         version=(2, 0, 0)),
         requirements.ListRequirement(
             name='pid',
             element_type=int,
             description=
             "Process IDs to include (all other processes are excluded)",
             optional=True)
     ]
예제 #29
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     # Since we're calling the plugin, make sure we have the plugin's requirements
     return [
         requirements.ModuleRequirement(
             name='kernel',
             description='Windows kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.BooleanRequirement(
             name='PARSE_ALL',
             description='Parse every directory under the root dir',
             optional=True),
         requirements.StringRequirement(
             name='SUPPLY_ADDR',
             description='Parse directories under specific addresses',
             optional=True),
         requirements.StringRequirement(
             name='FULL_PATH',
             description='Parse a directory found by full path location',
             optional=True),
     ]
예제 #30
0
 def get_requirements(
         cls) -> List[interfaces.configuration.RequirementInterface]:
     return [
         requirements.TranslationLayerRequirement(
             name='primary',
             description='Memory layer for the kernel',
             architectures=["Intel32", "Intel64"]),
         requirements.SymbolTableRequirement(
             name="nt_symbols", description="Windows kernel symbols"),
         requirements.StringRequirement(
             name='filter',
             description="String to filter hive names returned",
             optional=True,
             default=None),
         requirements.PluginRequirement(name='hivescan',
                                        plugin=hivescan.HiveScan,
                                        version=(1, 0, 0)),
         requirements.BooleanRequirement(
             name='dump',
             description="Extract listed registry hives",
             default=False,
             optional=True)
     ]