Beamgun is a Windows program that watches for USB devices that should not be connected to a machine and takes action against them. It is aimed at security-minded users who want to protect Windows computers from unauthorised USB hardware.
The source code is published on GitHub under the GNU Affero General Public License v3.0, and the project is written in C# on .NET. The project includes an installer, and a project page on the maker's site gives more detail. Windows is the only platform listed.
Alternatives to beamgun
Products that do a similar job in Security & Privacy.
Malwarebytes
Malware, spyware and virus scanner and remover for macOS
osquery
SQL interface for querying operating system state and logs
Bitwarden
Open source password manager with an encrypted vault for the desktop
Clash Verge Rev
Desktop GUI client for managing Clash and Mihomo proxy rules
Tailscale
Mesh VPN that connects your devices over WireGuard
Gitleaks
Command-line scanner that finds hardcoded secrets in git repositories
ProtonVPN
VPN client for macOS focused on security and privacy
Infisical
Open-source platform for managing secrets, certificates and access