Creating a repository with all public Beacon Object Files (BoFs)
The idea is to collect all the Beacon Object Files (BoF ) projects that are out there (similar to my SharpAllTheThings project) that can be used in Cobalt Strike as inline execute command. Credit the name to the amazing PayloadAllTheThings github repo (https://github.com/swisskyrepo/PayloadsAllTheThings)
- TrustedSec BOFS
- BOFS - arp, adcs_enum, adcs_enum_com, adcs_enum_com2, adv_audit_policies, cacls, dir, driversigs, enum_filter_driver, enumLocalSessions, env, findLoadedModule, get_password_policy, ipconfig, ldapsearch, listdns, listmods, listpipes, netstat, netuser, netuse_add, netuse_delete, netuse_list, netview, netGroupList, netGroupListMembers, netLocalGroupList, netLocalGroupListMembers, nslookup, reg_query, reg_query_recursive, routeprint, schtasksenum, schtasksquery, sc_enum, sc_qc, sc_qfailure, sc_qtriggerinfo, sc_query, sc_qdescription, tasklist, whoami, windowlist, wmi_query, netsession, resources, uptime, vssenum
- Credit - https://twitter.com/ajpc500
- Link - https://github.com/trustedsec/CS-Situational-Awareness-BOF
- ajpc500 BOFs Collection
- BOFS - ETW Patching, Syscalls shellcode injection, API Function Utility, Spawn and Syscalls Shellcode Injection, Spawn and Syscalls Shellcode Injection (NtQuereApcThread), Static Syscalls Shellcode Injection, Static syscalls Process Dump, curl
- Credit - https://twitter.com/ajpc500
- Link - https://github.com/ajpc500/BOFs
- Riccardo Ancarani BOFs Collection
- BOFS - send_shellcode_via_pipe, cat , wts_enum_remote_processes, unhook
- Credit - https://twitter.com/ajpc500
- Link - https://github.com/ajpc500/BOFs
- rvrsh3ll BOFs Collection
- BOFS - GetDomainInfo, GetClipboard, dumpwifi, portscan, registryPersistence
- Credit - https://twitter.com/424f424f
- Link - https://github.com/rvrsh3ll/BOF_Collection
- tgtdelegation - obtain a usable TGT for the current user and does not require elevated privileges on the host
- BOF.NET - A .NET Runtime for Cobalt Strike's Beacon Object Files
- Credit - https://twitter.com/_EthicalChaos_
- Link - https://github.com/CCob/BOF.NET
- InlineExecute-Assembly - proof of concept Beacon Object File (BOF) that allows security professionals to perform in process .NET assembly execution as an alternative to Cobalt Strikes traditional fork and run execute-assembly module
- FindObjects-BOF - A Cobalt Strike Beacon Object File (BOF) project which uses direct system calls to enumerate processes for specific modules or process handles.
- DLL Image Resource Version Enumeration BOF - As the name suggest
- Firewall_Enumerator_BOF - This is meant as a supplement to interact with the Windows firewall via COM interfaces.
- Process Protection Level Enumerator BOF - A Syscall-only BOF file intended to grab process protection attributes, limited to a handful that Red Team operators and pentesters would commonly be interested in.
- xPipe - Cobalt Strike Beacon Object File (BOF) to list active Pipes & return their Owner & Discretionary Access Control List (DACL) permissions.
- Credit - https://twitter.com/0xBoku
- Link - https://github.com/boku7/xPipe
- WhereAmiI - Cobalt Strike Beacon Object File (BOF) that uses handwritten shellcode to return the process Environment strings without touching any DLL's.
- Credit - https://twitter.com/0xBoku
- Link - https://github.com/boku7/whereami
- Readfile - As the name suggests
- ChromiumKeyDump - BOF implementation of Chlonium tool to dump Chrome/Edge Masterkey and download Cookie/Login Data files
- WdToggle - A Proof of Concept Cobalt Strike Beacon Object File which uses direct system calls to enable WDigest credential caching and circumvent Credential Guard (if enabled).
- Credit - https://twitter.com/Cneelis
- Link - https://github.com/outflanknl/WdToggle
- InlineWhispers2 - Tool for working with Direct System Calls in Cobalt Strike's Beacon Object Files (BOF) via Syswhispers2.
- HOLLOW - Beacon Object File (BOF) that spawns an arbitrary process from beacons memory in a suspended state, inject shellcode, hijack main thread with APC, and execute shellcode; using the Early Bird injection
- Credit - https://twitter.com/0xBoku
- Link - https://github.com/boku7/HOLLOW
- secinject - Beacon Object File (BOF) that leverages Native APIs to achieve process injection through memory section mapping.
- unhook-bof - This is a Beacon Object File to refresh DLLs and remove their hooks. The code is from Cylance's Universal Unhooking research.
- Self_Deletion_BOF - BOF implementation of the research by @jonasLyk for executable self deletion.
- Toggle_Token_Privileges_BOF - An (almost) syscall-only BOF file intended to either add or remove token privileges within the context of your current process.
- Inject ETW Bypass - Inject ETW Bypass into Remote Process via Syscalls (HellsGate|HalosGate)
- Credit - https://twitter.com/0xBouk
- Link - https://github.com/boku7/injectEtwBypass\
- Inject AMSI Bypass - Cobalt Strike Beacon Object File (BOF) that bypasses AMSI in a remote process with code injection.
- Credit - https://twitter.com/0xBouk
- Link - https://github.com/boku7/injectAmsiBypass
- Trusted Path UAC Bypass - Beacon object file implementation for trusted path UAC bypass. The target executable will be called without involving "cmd.exe" by using DCOM object.
- Credit - https://twitter.com/netero_1010
- Link - https://github.com/netero1010/TrustedPath-UACBypass-BOF
- Detect-Hooks - Detect-Hooks is a proof of concept Beacon Object File (BOF) that attempts to detect userland API hooks in place by AV/EDR
- Cobalt-Clip - Cobalt-Clip is clipboard add-on for Cobalt Strike to interact with the victim's clipboard. With Cobalt-Clip you can dump, edit and monitor the content of a clipboard.
- Credit - https://github.com/DallasFR
- Link - https://github.com/DallasFR/Cobalt-Clip
- PPLDump BOF - A fully-fledged BOF to dump an arbitrary protected process.
- NoteThief - Grab unsaved Notepad contents with a Beacon Object File
- Credit - https://twitter.com/trainr3kt
- Link - https://github.com/trainr3kt/NoteThief
- CredManBOF - dumping the credential manager by abusing the SeTrustedCredmanAccess Privilege
- Credit - https://twitter.com/Pullerze
- Link - https://github.com/jsecu/CredManBOF
- CredBandit - redBandit is a proof of concept Beacon Object File (BOF) that uses static x64 syscalls to perform a complete in memory dump of a process and send that back through your already existing Beacon
- BofRoast - Beacon Object File repo for roasting Active Directory
- Credit - https://twitter.com/cube0x0
- Link - https://github.com/cube0x0/BofRoast
- Silent Lsass Dump - Dump Lsass using Slient Process method
- Credit - https://github.com/guervild
- Link - https://github.com/guervild/BOFs
- DCOM Lateral Movement - quick PoC that uses DCOM (ShellWindows) via beacon object files for lateral movement.
- WMI Lateral Movement - quick PoC that uses WMI (Win32_Process and Event Subscription) via beacon object files for lateral movement.
- ServiceMove-BOF - Lateral movement technique by abusing Windows Perception Simulation Service to achieve DLL hijacking
- DLL Exports Extraction BOF - As the name suggests
- DLL Hijack Search Order BOF - As the name suggests
- PE Import Enumerator BOF - As the name suggests
- Sleeper - BOF to call the SetThreadExecutionState function to prevent host from Sleeping
- BOF Template - This repository is meant to host the core files needed to create a Beacon Object File for use with Cobalt Strike.
- BOF-Builder - C# .Net 5.0 project to build BOF (Beacon Object Files) in mass based on them all being in a folder directory struct somewhere.
- Visual-Studio-BOF-template - baseline template that can be reused to develop BOFs with Visual Studio without having to worry about dynamic function resolution syntax, stripping symbols, compiler configurations, C++ name mangling, or unexpected runtime errors
- BOF Creation Helper - I knocked together this script to make the process of making BOFs slightly easier.
- Credit - https://dtm.uk/
- Link - https://github.com/dtmsecurity/bof_helper
- Invoke-Bof - Load any Beacon Object File using Powershell!
- BOF-Nim