Added T1062

This commit is contained in:
Swelc
2018-07-01 14:50:26 -05:00
parent b0170998df
commit 6063e0efac
+34
View File
@@ -0,0 +1,34 @@
---
attack_technique: T1062
display_name: Hypervisor
atomic_tests:
- name: Installing Hyper-V Feature
description: |
PowerShell command to check if Hyper-v is installed .
Install Hyper-V feature.
Create a New-VM
supported_platforms:
- windows
input_arguments:
hostname:
description: Host to query to see if Hyper-V feature is installed.
type: string
default: test-vm
vm_name:
description: Create a new VM.
type: string
default: testvm
file_location:
description: Location of new VHDX file
type: string
default: C:\Temp\test.vhdx
executor:
name: powershell
command: |
Get-WindowsFeature -Name Hyper-V -ComputerName #{hostname}
Install-WindowsFeature -Name Hyper-V -ComputerName #{hostname} -IncludeManagementTools
New-VM -Name #{vm_name} -MemoryStartupBytes 1GB -NewVHDPath #{file_location} -NewVHDSizeBytes 21474836480