Skip to content

Dun4ev/HID-NetAudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HID-NetAudit

๐Ÿ›ก๏ธ HID-NetAudit is a standalone PowerShell HID script that runs from a USB device (based on ATmega32u4 with SD card), designed for local network connection, port, and process audit on Windows systems without requiring administrator rights.


๐Ÿ“ฆ Project Structure

File Description
HID-NetAudit.ino Arduino sketch for ATmega32u4 with HID + SD
script.txt PowerShell command script for analysis
README.md Documentation
README.ru.md Documentation on Russian

๐Ÿงฐ Hardware Used

The setup uses a simple and accessible configuration based on Arduino:

Component Description
๐Ÿ”Œ ATmega32u4 HID Board with ATmega32u4 chip supporting USB HID + microSD slot
๐Ÿ’พ SD card Any microSD card (FAT32 format)

๐Ÿ“ฆ Example board on Aliexpress:
โžก๏ธ ATmega32u4 with SD slot (AliExpress)

๐Ÿ’ก Connects directly via USB and works driver-free.
The SD card stores the script.txt file which is executed as keyboard input by the HID device.

HID-NetAudit Icon


๐Ÿง  Process Architecture

๐Ÿ–ฅ USB HID (ATmega32u4)
โฌ‡๏ธ
โŒจ๏ธ Keyboard input emulation
โฌ‡๏ธ
๐Ÿ’ป PowerShell launch
โฌ‡๏ธ
๐Ÿ“„ Execute script.txt
โฌ‡๏ธ
๐Ÿ“ก Get IP addresses
๐Ÿ“Š Show connection table
๐Ÿ›ก Check RDP / listening ports


๐ŸŽฎ Arduino Sketch HID-NetAudit.ino

Sketch functionality:

  • Uses Keyboard.h and SD.h
  • Automatically launches PowerShell (Win+R โ†’ powershell)
  • Reads and executes script.txt from SD card
  • Types PowerShell commands symbol by symbol
  • Does not require admin privileges on the target

๐Ÿ“Ž Compatible with:

  • Arduino Leonardo
  • Teensy 2.0++
  • Any HID + SD compatible device

โšก PowerShell Script script.txt

Key features:

  • ๐ŸŒ Retrieve local IPs
  • ๐Ÿ”— Analyze active TCP connections (Established)
    • Show PID and process name
    • Highlight external IPs
    • Color-code trusted / known / unknown processes
  • ๐Ÿ”Ž Scan LISTEN ports
    • Match against trusted whitelist
    • Highlight suspicious services
  • ๐Ÿ” Detect RDP status (optional)
  • ๐Ÿงฉ Requires no extra PowerShell modules

๐Ÿ“‹ Example Output:

Local IPs: 192.168.1.10

ESTABLISHED CONNECTIONS
8.8.8.8         443    3120   chrome          
212.45.66.1     445    4444   unknown.exe     

LISTENING PORTS CHECK
445   4      System           Trusted 
5555  1111   backdoor         โš  Unknown โš 

Example output: ESTABLISHED CONNECTIONS

HID-NetAudit Output

Example output: LISTENING PORTS CHECK

HID-NetAudit Output


๐Ÿ›ก Purpose

  • ๐Ÿ’ป Quick local system audit
  • ๐Ÿ” Silent network inspection (no logs)
  • ๐Ÿ” SOC/BlueTeam investigation & monitoring
  • ๐Ÿ“š Education & live demonstrations

๐Ÿšจ Legal Disclaimer

This project is intended strictly for audit, educational, and defensive purposes.
Unauthorized use may violate local laws or organizational policies.


๐Ÿ–ผ Project Icon

HID-NetAudit Icon

๐Ÿ‡ท๐Ÿ‡บ Read in Russian

Releases

No releases published

Packages

No packages published

Languages