Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.32 KB

T1120.md

File metadata and controls

39 lines (20 loc) · 1.32 KB

T1120 - Peripheral Device Discovery

Adversaries may attempt to gather information about attached peripheral devices and components connected to a computer system. Peripheral devices could include auxiliary resources that support a variety of functionalities such as keyboards, printers, cameras, smart card readers, or removable storage. The information may be used to enhance their awareness of the system and network environment or may be used for further actions.

Atomic Tests


Atomic Test #1 - Win32_PnPEntity Hardware Inventory

Perform peripheral device discovery using Get-WMIObject Win32_PnPEntity

Supported Platforms: Windows

Attack Commands: Run with powershell!

Get-WMIObject Win32_PnPEntity | Format-Table Name, Description, Manufacturer > $env:TEMP\T1120_collection.txt
$Space,$Heading,$Break,$Data = Get-Content $env:TEMP\T1120_collection.txt
@($Heading; $Break; $Data |Sort-Object -Unique) | ? {$_.trim() -ne "" } |Set-Content $env:TEMP\T1120_collection.txt

Cleanup Commands:

Remove-Item $env:TEMP\T1120_collection.txt -ErrorAction Ignore