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, adcs_request, chromeKey, enableuser, procdump, ProcessDestroy, ProcessListHandles, reg_delete, reg_save, reg_set, sc_config, sc_create, sc_delete, sc_description, sc_start, sc_stop, schtaskscreate, schtasksdelete, schtasksstop, setuserpass, shspawnas
- Credit - https://twitter.com/ajpc500
- Link - https://github.com/trustedsec/CS-Situational-Awareness-BOF and https://github.com/trustedsec/CS-Remote-OPs-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/dottor_morte
- Link - https://github.com/RiccardoAncarani/BOFs
- rvrsh3ll BOFs Collection
- BOFS - GetDomainInfo, GetClipboard, dumpwifi, portscan, registryPersistence
- Credit - https://twitter.com/424f424f
- Link - https://github.com/rvrsh3ll/BOF_Collection
- Outflank BOFs Collection
- BOFS - AddMachineAccount, Askcreds, Domaininfo, Kerberoast, Lapsdump, Psw, Smbinfo, SprayAD, StartWebClient, Winver
- Credit - https://twitter.com/OutflankNL
- Link - https://github.com/outflanknl/C2-Tool-Collection
- REDMED-X - OperatorsKit
- BOFS - BlindEventlog, DllEnvHijacking, FindDotnet, FindHandle, FindLib, FindRWX, FindSysmon, HideFile, LoadLib, PSremote, SilenceSysmon
- Credit - Unknown at the moment
- Link - https://github.com/REDMED-X/OperatorsKit
- 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
- 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
- Inject-assembly - Execute .NET in an Existing Process. This tool is an alternative to traditional fork and run execution for Cobalt Strike. The loader can be injected into any process, including the current Beacon. Long-running assemblies will continue to run and send output back to the Beacon, similar to the behavior of execute-assembly.
- BokuLoader - A proof-of-concept Cobalt Strike Reflective Loader which aims to recreate, integrate, and enhance Cobalt Strike's evasion features!
- 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.
- WhereAmiI - Cobalt Strike Beacon Object File (BOF) that uses handwritten shellcode to return the process Environment strings without touching any DLL's.
- Readfile - As the name suggests
- ChromiumKeyDump - BOF implementation of Chlonium tool to dump Chrome/Edge Masterkey and download Cookie/Login Data files
- LdapSignCheck - Beacon Object File to scan a Domain Controller to see if LdapEnforceChannelBinding or LdapServerIntegrity has been modified to mitigate against relaying attacks.
- ScreenshotBOF - An alternative screenshot capability for Cobalt Strike that uses WinAPI and does not perform a fork & run. Screenshot downloaded in memory.
- ASRenum - Identify ASR rules, actions, and exclusion locations
- PersistBOF - A tool to help automate common persistence mechanisms. Currently supports Print Monitor (SYSTEM), Time Provider (Network Service), Start folder shortcut hijacking (User), Junction Folder (User), Xll Add-In (User).
- BOF_Collection - Persistence via Registry
- kernel-mii - Cobalt Strike (CS) Beacon Object File (BOF) foundation for kernel exploitation using CVE-2021-21551.
- amd-ryzen-master-driver-v17-exploit - Cobalt Strike (CS) Beacon Object File (BOF) for kernel exploitation using AMD's Ryzen Master Driver (version 17).
- PrivKit - PrivKit is a simple beacon object file that detects privilege escalation vulnerabilities caused by misconfigurations on Windows OS.
- 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).
- 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
- 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)
- Inject AMSI Bypass - Cobalt Strike Beacon Object File (BOF) that bypasses AMSI in a remote process with code injection.
- 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
- Credit - https://twitter.com/anthemtotheego
- Link - https://github.com/xforcered/Detect-Hooks
- Defender Exclusions BOF - A BOF to determine Windows Defender exclusions.
- ASRenum-BOF - Cobalt Strike BOF that identifies Attack Surface Reduction (ASR) rules, actions, and exclusion locations.
- CobaltWhispers - CobaltWhispers is an aggressor script that utilizes a collection of Beacon Object Files (BOF) for Cobalt Strike to perform process injection, persistence and more, leveraging direct syscalls (SysWhispers2) to bypass EDR/AV.
- 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.
- PPLDump BOF - A fully-fledged BOF to dump an arbitrary protected process.
- NoteThief - Grab unsaved Notepad contents with a Beacon Object File
- CredManBOF - dumping the credential manager by abusing the SeTrustedCredmanAccess Privilege
- 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
- Silent Lsass Dump - Dump Lsass using Slient Process method
- aad_prt - extract Azure AD PRT tokens
- Cookie-Graber-BOF - C or BOF file to extract WebKit master key to decrypt user cookie.
- 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
- DelegationBOF - This tool uses LDAP to check a domain for known abusable Kerberos delegation settings. Currently, it supports RBCD, Constrained, Constrained w/Protocol Transition, and Unconstrained Delegation checks.
- RDPHijack-BOF - Cobalt Strike Beacon Object File (BOF) that uses WinStationConnect API to perform local/remote RDP session 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.
- Invoke-Bof - Load any Beacon Object File using Powershell!
- BOF-Nim