← Documentation / Operator Guide

BOF Reference

All built-in BOFs by category with descriptions and arguments

All 458 built-in BOFs (227 Windows + 123 Linux + 125 macOS) organized by category. Each BOF is called by its short name at the operator console. Linux BOFs run natively on macOS — the same POSIX .so format is loaded by the agent’s module loader on both platforms. 18 Linux-only BOFs (cgroup_escape, nsenter_host, persist_systemd, persist_preload, persist_systemd_remove, persist_preload_remove, etc.) are filtered from macOS. macOS ships with platform-specific overrides for persist-cron and persist-bashrc, plus 3 macOS-native BOFs: keychain-dump, tcc-check, and gatekeeper-enum.

Windows BOFs (227)

Recon (18 BOFs)

BOFDescriptionUsage
catDisplay remote file contentscat <path>
clipboardRead clipboard text contentsclipboard
drivesEnumerate logical drives (type, free/total)drives
get-privEnable privilege (~prefix for thread token)get_priv <privilege>
get-productidRead Windows ProductId for —machine-lock buildsget-productid
handlesList open handles for current processhandles
hostnamePrint computer hostnamehostname
keylogKeylogger (GetAsyncKeyState, tracks window title)keylog start, keylog stop, keylog dump
listhandlesList open handles for target processlisthandles <pid>
lsList directory (default: .\*)ls [path]
pidShow current process IDpid
ppidShow current PID, parent PID, and parent nameppid
psList running processes (PID, name, user, arch)ps
pwdPrint remote working directorypwd
screenshotCapture desktop to BMPscreenshot [path]
sysinfoOS version, hostname, domain, archsysinfo
tokeninfoToken details for current processtokeninfo
whoamiCurrent user, privileges, and group membershipswhoami

Host Enumeration (15 BOFs)

BOFDescriptionUsage
adv-audit-policiesQuery advanced audit policy settingsadv_audit_policies
driversigsEnumerate loaded driver signaturesdriversigs
enum-local-sessionsEnumerate local interactive sessionsenum_local_sessions
envEnvironment variablesenv
find-loaded-moduleFind processes with specific DLL loadedfind_loaded_module <dll>
get-dpapi-systemRetrieve DPAPI system master keysget_dpapi_system
get-session-infoCurrent session info (ID, user, state)get_session_info
ipconfigNetwork adapter configurationipconfig
listmodsList loaded modules for processlistmods <pid>
localeSystem locale and language infolocale
resourcesSystem resource usage statsresources
uptimeSystem uptimeuptime
useridletimeUser idle/last input timeuseridletime
whoami-fullDetailed whoami (all tokens, groups, privileges)whoami_full
windowlistEnumerate visible windowswindowlist

Execution (4 BOFs)

BOFDescriptionUsage
cmdRun shell command (cmd.exe /C)cmd <command>
execute-assembly-inprocRun .NET assembly in-process (full evasion)execute-assembly [-r <ver>] <path> [args]
execute-peRun native EXE in-memory (in-process, no disk write)execute-pe <exe> [args] [--timeout N] [--zero-headers]
powershellRun PowerShell command (hidden, no profile)powershell <command>

File Operations (7 BOFs)

BOFDescriptionUsage
cdChange remote working directorycd <path>
cpCopy remote filecp <src> <dst>
mkdirCreate remote directorymkdir <path>
motw-removeRemove Mark of the Web (Zone.Identifier ADS)motw_remove <path>
mvMove/rename remote filemv <src> <dst>
rmDelete remote filerm <path>
uploadUpload local file to remote pathupload <local> <remote>

File & Hash (6 BOFs)

BOFDescriptionUsage
caclsFile/folder ACL permissionscacls <path>
dirDirectory listing with depth controldir <path> [depth]
md5MD5 hash of filemd5 <path>
sha1SHA1 hash of filesha1 <path>
sha256SHA256 hash of filesha256 <path>
vssenumEnumerate Volume Shadow Copiesvssenum

Network (16 BOFs)

BOFDescriptionUsage
arpARP table (neighbor cache)arp
list-firewall-rulesEnumerate Windows Firewall ruleslist_firewall_rules
listdnsDNS client cache entrieslistdns
netloggedonEnumerate logged-on usersnetloggedon [host]
netloggedon-wtsLogged-on users (WTS API)netloggedon_wts [host]
netsessionEnumerate net sessions (level 0 or 10)netsession [host]
netsession-sweepNet sessions — domain-wide DC sweepnetsession_sweep
netsharesEnumerate network sharesnetshares [host]
netstatActive TCP/UDP connections and listenersnetstat
netuptimeRemote host uptime via NetRemoteTODnetuptime <host>
netuseMap/list network drives (NetUseEnum)netuse [host]
netviewEnumerate network shares and machinesnetview
nslookupDNS lookup (A/AAAA/ANY)nslookup <domain>
probeTCP port connectivity checkprobe <host> <port>
routeprintIP routing tablerouteprint

Lateral Movement (5 BOFs)

BOFDescriptionUsage
psexecLateral move via SCM service create/startpsexec <host> <cmd>
smb-uploadCopy file to remote host via SMB/UNCsmb_upload <local> <\\host\share\path>
ssh-pivotDeploy agent on remote host via SCP+SSH (cross-platform)ssh-pivot <user@host> [key] [--cleanup]
winrmRemote exec via WinRM (port 5985)winrm <host> <command>
wmi-execRemote exec via WMI (Win32_Process.Create)wmi_exec <host> <user> <pass> <cmd>

Privilege Escalation (3 BOFs)

BOFDescriptionUsage
getsystem-tokenAdmin→SYSTEM via winlogon.exe token theftgetsystem_token
uacbypass-comUAC bypass via CMSTPLUA COM + PEB masqueradeuacbypass_com <command>
uacbypass-taskschedUAC bypass via VFServer factory + TaskScheduleruacbypass_tasksched <command>

Privesc Enumeration (7 BOFs)

BOFDescriptionUsage
enum-autorunsAutorun entries with path/permission checksenum_autoruns
enum-netlistenersTCP/UDP listening ports with owning processenum_netlisteners
enum-patchesInstalled hotfixes/KBs for exploit matchingenum_patches
enum-persistenceWMI subs, writable PATH, extension handlersenum-persistence [all|wmi|path|ext]
enum-schtasksNon-MS scheduled tasks with writable actionsenum_schtasks
enum-servicesServices with unquoted paths, modifiable configsenum_services
privesc-checksAlwaysInstallElevated, UAC, WDigest, LAPS, LSAprivesc_checks

Credential Dumping (12 BOFs)

BOFDescriptionUsage
dump-chromeDump Chrome cookies/logins (App-Bound Encryption v20+)dump-chrome [cookies|logins|all]
dump-chromiumDump all Chromium browser creds (Chrome/Edge/Brave/Opera/Vivaldi)dump-chromium [logins|cookies] [browser]
dump-firefoxDump Firefox cookies/logins from all profilesdump-firefox [cookies|logins|all]
dump-certsExport certs with private keys as PFX from cert storesdump-certs [user|machine|all]
dump-vaultDecrypt Windows Vault/Credential Manager entriesdump-vault
hashdumpDump SAM/SYSTEM/SECURITY hives (parse with secretsdump)hashdump
nanodumpDump LSASS to filenanodump [path]
nanodump-handledupLSASS dump via handle duplicationnanodump-handledup
nanodump-speLSASS dump via WerFault Silent Process Exit (LOLBin)nanodump-spe <dump|check|cleanup> [folder]
nanodump-spe-nopdataLSASS dump via SPE without ProcDatananodump-spe-nopdata
racecond-dumpLSASS dump via race conditionracecond-dump
rdp-thiefRDP credential theft via HWBP hooks in mstsc.exerdp-thief <inject|collect|eject> [pid]
samdumpIn-memory SAM hash extraction via registry API (no files)samdump
spe-dumpLSASS dump via Silent Process Exitspe-dump

Credential Hunting (7 BOFs)

BOFDescriptionUsage
autologonAuto-logon creds in Winlogon registryautologon
cred-filesScan for credential files (web.config, .kdbx, etc)cred_files
dpapi-credsDPAPI decrypt Credential Manager entriesdpapi_creds
dpapi-keysDPAPI master key file enumerationdpapi_keys
enum-credsCredential Manager entries (generic/domain)enum_creds
psh-historyPowerShell ConsoleHost_history.txt (all users)psh_history
wifi-passwordsSaved WiFi profiles and plaintext keyswifi_passwords

Token Manipulation (4 BOFs)

BOFDescriptionUsage
getuidShow current identity (thread or process token)getuid
make-tokenCreate token with alternate network credentialsmake_token <domain\user> <password>
rev2selfRevert to original process identityrev2self
steal-tokenSteal and impersonate token from target processsteal_token <pid>

Persistence (8 BOFs)

BOFDescriptionUsage
chrome-persist-installSilent Chrome/Edge extension install (HMAC recalc)chrome-persist-install [--browser chrome|edge] --server URL [--profile name] [--cover name] [--force]
chrome-persist-removeRemove silently installed Chrome/Edge extensionchrome-persist-remove [--browser chrome|edge] [--force]
persist-comhijackCOM hijack persistence (install/remove/check)persist-comhijack install <dll_path>, persist-comhijack remove, persist-comhijack check
persist-registryRegistry persistence (run/userinit/shell/ifeo/appinit/activeset)persist-registry <method> <install|remove|check> [name] [payload]
persist-schtaskScheduled task persistence (logon trigger)persist_schtask <name> <exe_path>
persist-wmiWMI event subscription persistence (survives reboot)persist-wmi <install|remove|check> <name> [trigger] [payload]
inject-ai-agentInject persistence into AI coding tool instruction filesinject-ai-agent <tool|all> <payload>

Evasion (3 BOFs)

BOFDescriptionUsage
detect-hooksScan ntdll/kernel32/kernelbase for EDR hooksdetect_hooks
etw-hijackBlind ETW sessions by restarting with fake logetw-hijack
unhook-dllnotifRemove EDR DLL load notification callbacksunhook_dllnotif

Injection (4 BOFs)

BOFDescriptionUsage
createremotethreadInject shellcode via CreateRemoteThreadcreateremotethread <pid> <bin_path>
knowndll-poisonReplace \KnownDlls handle, hijack DLL loadknowndll-poison <pid> <dll> <payload>
shspawnasSpawn-as with creds + APC shellcode injectshspawnas <domain\user> <pass> <bin_path>
threadless-injectThreadless injection via export hookthreadless-inject <pid> <dll> <export> <shellcode>

Process Operations (3 BOFs)

BOFDescriptionUsage
procdumpMiniDump process memory to fileprocdump <pid> [path]
processdestroyClose handles in target processprocessdestroy <pid>
suspendresumeSuspend or resume a processsuspendresume <pid> suspend, suspendresume <pid> resume

User Management (5 BOFs)

BOFDescriptionUsage
adduserAdd local/remote user accountadduser <name> <password> [host]
addusertogroupAdd user to group (global, falls back local)addusertogroup <user> <group>
disableuserDisable user accountdisableuser <user>
enableuserEnable/unlock user accountenableuser <user>
setuserpassSet user passwordsetuserpass <user> <password>

Service Control (5 BOFs)

BOFDescriptionUsage
sc-createCreate Windows servicesc_create <name> <binpath>
sc-deleteDelete servicesc_delete <name>
sc-startStart servicesc_start <name>
sc-stopStop service (handles dependents)sc_stop <name>
sc-triggerAdd device-arrival trigger to servicesc-trigger <name> <device>

Services & Tasks (9 BOFs)

BOFDescriptionUsage
enum-filter-driverEnumerate filesystem filter drivers (EDR)enum_filter_driver
sc-enumEnumerate servicessc_enum
sc-qcQuery service configurationsc_qc <name>
sc-qdescriptionQuery service descriptionsc_qdescription <name>
sc-qfailureQuery service failure actionssc_qfailure <name>
sc-qtriggerinfoQuery service trigger infosc_qtriggerinfo <name>
sc-queryQuery service statussc_query <name>
schtasksenumEnumerate scheduled tasksschtasksenum
schtasksqueryQuery specific scheduled taskschtasksquery <name>

Registry (4 BOFs)

BOFDescriptionUsage
reg-deleteDelete registry key or valuereg_delete <key> [value]
reg-queryQuery registry key/value remotelyreg_query <host> <key> [value]
reg-saveSave registry key to filereg_save <key> <path>
reg-setSet registry valuereg_set <key> <value> <data> <type>

Environment Recon (9 BOFs)

BOFDescriptionUsage
defender-configDefender status, exclusions, ASR rules, tamperdefender_config
defender-ctrlDisable/enable RTP, add/remove path exclusionsdefender-ctrl <action> [path]
enum-dns-cacheDNS resolver cache dump (internal host mapping)enum_dns_cache
enum-firewallFirewall profiles, default actions, enabled rulesenum_firewall
enum-pipesNamed pipes (services, IPC, impersonation targets)enum_pipes
path-hijackWritable PATH directories for DLL hijackingpath_hijack
sysmon-detectDetect Sysmon service, driver, event log, binarysysmon_detect
wsus-configWSUS HTTP server check (WSUS injection)wsus_config
enum-ai-agentsDiscover AI coding tools (Claude, Codex, Cursor, Copilot, Windsurf)enum-ai-agents

AD Recon (2 BOFs)

BOFDescriptionUsage
enum-adcsAD CS template misconfigs (ESC1-ESC4, ESC6, ESC8)enum_adcs
enum-kerberoastKerberoastable accounts (users with SPNs)enum_kerberoast

Active Directory (15 BOFs)

BOFDescriptionUsage
aadjoininfoAzure AD join info for hostaadjoininfo
adcs-enumEnumerate AD Certificate Services templatesadcs_enum
adcs-enum-comADCS enumeration via COM interfaceadcs_enum_com
adcs-enum-com-altADCS enumeration via COM (alternate method)adcs_enum_com_alt
get-password-policyQuery domain/local password policyget_password_policy
ldapsearchLDAP search with custom filterldapsearch <filter> [attrs]
ldapsecuritycheckLDAP security config auditldapsecuritycheck
netgroupEnumerate domain groups / membersnetgroup [group]
netlocalgroupEnumerate local groups / membersnetlocalgroup [group]
netlocalgroup-apiLocal group membership (NetLocalGroupGetMembers)netlocalgroup_api <group>
netuserDetailed user account infonetuser <user>
netuserenumEnumerate domain/local usersnetuserenum
regsessionEnumerate registry-based sessionsregsession
tasklistWMI process list (remote capable)tasklist [host]
wmi-queryRun arbitrary WMI querywmi_query <query>

System (1 BOF)

BOFDescriptionUsage
shutdownShutdown or reboot (local/remote)shutdown [host]

Chrome Extension (6 BOFs)

Commands available when a Chrome extension is installed via chrome-persist-install. These execute in the browser context, not the implant process.

BOFDescriptionUsage
ext-cookiesDump browser cookies (optional domain filter)ext-cookies [domain]
ext-historyBrowse history (default 100, optional search)ext-history [query] [max]
ext-navigateNavigate active tab to URLext-navigate <url>
ext-nmhExecute commands via Native Messaging Host proxyext-nmh <cmd|whoami|ps|ping> [cmdline]
ext-screenshotCapture visible tab as PNG screenshotext-screenshot
ext-tabsList open browser tabs (URL, title)ext-tabs

Cloud — AWS (15 BOFs)

BOFs for on-prem to cloud lateral movement. Discover cloud credentials on compromised hosts, validate and pivot into AWS infrastructure, and access cloud resources — all from the implant with no external tools. Both Windows COFF and Linux .so variants.

Credential Discovery & Validation:

BOFDescriptionUsage
aws-whoamiSTS GetCallerIdentity — validate creds, show account/ARNaws-whoami [AK SK [token] [region]]
aws-imds-credsExtract IAM role credentials from EC2 IMDS (v1/v2)aws-imds-creds
aws-iam-enumEnumerate IAM user/role policies and permissionsaws-iam-enum [AK SK [token] [region]]
aws-assume-roleSTS AssumeRole to pivot into higher-privilege roleaws-assume-role <role_arn> [AK SK [token] [region]]
aws-cred-searchScan filesystem, env vars, SSO caches, Credential Manager, and process memory for AWS credentialsaws-cred-search

Cloud Resource Access:

BOFDescriptionUsage
aws-s3-lsList S3 buckets and objectsaws-s3-ls [bucket[/prefix]] [AK SK [token] [region]]
aws-s3-getDownload S3 object contentsaws-s3-get <bucket> <key> [AK SK [token] [region]]
aws-ec2-enumEnumerate EC2 instances (ID, type, IP, state)aws-ec2-enum [AK SK [token] [region]]
aws-lambda-enumList Lambda functionsaws-lambda-enum [AK SK [token] [region]]
aws-secrets-managerList and read Secrets Manager secretsaws-secrets-manager [secret_name] [AK SK [token] [region]]
aws-ssm-paramsRead SSM Parameter Store parameters by pathaws-ssm-params [path] [AK SK [token] [region]]
aws-ec2-userdataRead EC2 user-data scripts via IMDS (often contains creds)aws-ec2-userdata

Lateral Movement:

BOFDescriptionUsage
aws-ssm-execExecute commands on EC2 via SSM SendCommand (no direct connection)aws-ssm-exec <instance_id> <command> [AK SK [token] [region]]
aws-lambda-execInvoke Lambda function with controlled inputaws-lambda-exec <function_name> [payload] [AK SK [token] [region]]
aws-ec2-connectPush temporary SSH key via EC2 Instance Connect (60s window)aws-ec2-connect <instance_id> <ssh_pubkey> [user] [AK SK [token] [region]]

All AWS BOFs support explicit credentials (AK SK [token] [region]) or auto-discover from IMDS/environment when run on EC2. JSON response parsing is built-in — no external tools or libraries required.

Cloud — Azure (8 BOFs)

BOFs for Azure resource enumeration and lateral movement via the Azure Resource Manager API. Authenticate with a managed identity token from IMDS or an operator-supplied Bearer token. Both Windows COFF and Linux .so variants.

BOFDescriptionUsage
azure-imds-tokenRequest managed identity OAuth2 token from Azure IMDSazure-imds-token [resource]
azure-cred-searchSearch environment and metadata for Azure credentialsazure-cred-search
azure-whoamiIdentify current Azure principal (subscriptions + tenant)azure-whoami [token]
azure-keyvaultList Key Vault secrets and retrieve secret valuesazure-keyvault <vault> [secret] [token]
azure-storage-lsList Azure Storage containers and blobsazure-storage-ls <account> [container] [token]
azure-blob-getDownload blob content from Azure Storageazure-blob-get <account> <container> <blob> [token]
azure-vm-enumEnumerate Azure VMs across subscriptionsazure-vm-enum [subscription] [token]
azure-vm-runcommandExecute commands on Azure VMs via Run Command APIazure-vm-runcommand <vm> <rg> <subscription> <cmd> [token]

Cloud — Entra ID (14 BOFs)

BOFs for Microsoft Entra ID (Azure AD) identity-plane enumeration, credential access, and privilege escalation via the Microsoft Graph API. Authenticate with a managed identity token from IMDS or an operator-supplied Bearer token. Both Windows COFF and Linux .so variants.

Identity Enumeration:

BOFDescriptionUsage
entra-whoamiShow current Entra ID identity (tenant, UPN, roles)entra-whoami [token]
entra-usersList Entra ID users with key attributesentra-users [token]
entra-groupsList Entra ID groupsentra-groups [token]
entra-group-membersList members of an Entra ID groupentra-group-members <group_id> [token]
entra-rolesList Entra ID directory roles and assignmentsentra-roles [token]
entra-role-membersList members of a specific directory roleentra-role-members <role_id> [token]
entra-spsList Entra ID service principalsentra-sps [token]
entra-condaccessList conditional access policiesentra-condaccess [token]

Credential & Secret Access:

BOFDescriptionUsage
entra-app-secretsList application registrations with credentialsentra-app-secrets [token]
entra-app-add-secretAdd a client secret to an application registrationentra-app-add-secret <object_id> [token] [display_name]
entra-oauth-grantsList OAuth2 permission grants (delegated permissions)entra-oauth-grants [token]

Privilege Escalation:

BOFDescriptionUsage
entra-role-assignAssign a directory role to a principalentra-role-assign <role_id> <principal_id> [token]
entra-app-rolesList app role assignments for a service principalentra-app-roles <sp_id> [token]
entra-pimList PIM eligible role assignmentsentra-pim [token]

All Azure and Entra ID BOFs support explicit Bearer tokens or auto-discover from Azure IMDS when run on an Azure VM with a managed identity. JSON response parsing is built-in — no external tools or Azure CLI required.

Cloud — GCP (8 BOFs)

BOFs for GCP resource enumeration and lateral movement via GCP REST APIs. Authenticate with a service account OAuth2 token from the GCP metadata server or an operator-supplied Bearer token. Both Windows COFF and Linux .so variants.

Credential Discovery & Validation:

BOFDescriptionUsage
gcp-metadata-tokenSteal service account OAuth2 token from GCP metadata servergcp-metadata-token
gcp-cred-searchScan filesystem for GCP credential files (ADC, service account keys, gcloud configs)gcp-cred-search
gcp-whoamiIdentify current GCP principal, project, and token scopesgcp-whoami [token]

Cloud Resource Access:

BOFDescriptionUsage
gcp-vm-enumEnumerate GCE instances across all zonesgcp-vm-enum [token [project_id]]
gcp-storage-lsList GCS buckets or objectsgcp-storage-ls [bucket] [token [project_id]]
gcp-storage-getDownload object from GCS (up to 4MB)gcp-storage-get <bucket> <object> [token]
gcp-secretsList or retrieve secrets from Secret Managergcp-secrets [secret_name] [token [project_id]]
gcp-iam-enumEnumerate service accounts and IAM policygcp-iam-enum [token [project_id]]

All GCP BOFs support explicit Bearer tokens or auto-discover from the GCP metadata server when run on a GCE instance with a service account. JSON response parsing is built-in — no gcloud CLI required.


Linux/macOS BOFs (123 Linux / 125 macOS)

Recon (18 BOFs)

BOFDescriptionUsage
arp-tableARP/neighbor cache for host discoveryarp-table
catRead file contents (1MB max)cat <path>
cloud-detectDetect AWS/GCP/Azure/DO via DMI/cloud-initcloud-detect
containerDetect Docker/K8s/LXC/VM environmentcontainer
cronsEnumerate crontabs, systemd timers, at jobscrons
dmesg-leaksScan dmesg for kernel pointers and credentialsdmesg-leaks
dnsDNS lookup (forward or reverse)dns <host|ip> [-r]
envEnvironment variablesenv
fstab-mountsParse fstab/mounts for nosuid gaps, cred leaksfstab-mounts
hostnameSystem hostnamehostname
iduid/gid/groups (like id command)id
ifconfigNetwork interfaces (IPv4/IPv6, flags)ifconfig
lsDirectory listing with permissionsls [path]
netstatTCP/UDP connections from /proc/netnetstat
pidAgent PID and image pathpid
ppidAgent PID, parent PID, and parent imageppid
psList processes from /procps
pwdCurrent working directorypwd
uname-modKernel version and system infouname
unix-socketsFind writable UNIX sockets owned by rootunix-sockets
whoamiCurrent user (uid/euid)whoami

File Operations (7 BOFs)

BOFDescriptionUsage
cdChange agent working directorycd <path>
chmodChange file permissions (octal mode)chmod <mode> <path>
cpCopy file (preserves permissions)cp <src> <dst>
mkdirCreate directory (-p for recursive)mkdir <path> [-p]
mvMove/rename file or directorymv <src> <dst>
rmRemove file/directory (-r recursive)rm <path> [-r]
uploadUpload file to remote pathupload <local> <remote>

Execution (2 BOFs)

BOFDescriptionUsage
bashExecute command via /bin/bash -c (stderr merged)bash <command>
shExecute command via /bin/sh (stderr merged)sh <command>

Credential Access (8 BOFs)

BOFDescriptionUsage
backup-filesFind .bak, .sql, .db, .kdbx backup filesbackup-files
historyRead shell history files for all usershistory
kerberos-enumKeytabs, krb5cc caches, Samba/SSSD credential DBskerberos-enum
mail-enumRead user mail for credentials (/var/mail)mail-enum
passwd-policyPassword aging, complexity, login.defs policypasswd-policy
proc-credsFind cred files in /proc/fd and secrets in environproc-creds
shadowRead /etc/shadow password hashesshadow
sshkeysHarvest SSH keys from all userssshkeys

Privilege Escalation (11 BOFs)

BOFDescriptionUsage
capsEnumerate process and file capabilitiescaps
kernel-suggestSuggest kernel exploits by version (CVE database)kernel-suggest
ldso-hijackCheck ld.so.preload/conf for writable pathsldso-hijack
pam-auditAudit PAM configs for rogue auth modulespam-audit
passwd-addAdd uid=0 user to /etc/passwd (needs write access)passwd-add <user> <pass>
profile-d-permsWritable scripts in profile.d, init.d, cron.dprofile-d-perms
sudo-checkCheck sudo -l for NOPASSWD and GTFOBins abusesudo-check
sudo-tokensCheck for reusable sudo timestamp tokenssudo-tokens
suidFind SUID/SGID binariessuid
svc-misconfigAudit systemd services for writable ExecStartsvc-misconfig
sys-protectionsASLR, ptrace, seccomp, AppArmor, SELinux statussys-protections
writableFind writable sensitive files and PATH binarieswritable

Persistence (8 BOFs)

BOFDescriptionUsage
persist-bashrcShell profile hook (.bashrc/.profile injection)persist-bashrc <cmd> [target]
persist-bashrc-removeRemove shell profile persistence linespersist-bashrc-remove <cmd> [target]
persist-cronCrontab persistence (default */5 * * * *)persist-cron <cmd> [sched]
persist-cron-removeRemove cron entries matching commandpersist-cron-remove <cmd>
persist-preloadLD_PRELOAD persistence (requires root)persist-preload <so_path>
persist-preload-removeRemove .so from /etc/ld.so.preload (Linux only)persist-preload-remove <so_path>
persist-systemdSystemd service (user if non-root, system if root)persist-systemd <name> <cmd>
persist-systemd-removeRemove systemd service unit file (Linux only)persist-systemd-remove <name>

Lateral Movement (5 BOFs)

BOFDescriptionUsage
portscanTCP connect scan with async socketsportscan <host> [ports]
ssh-copyCopy file to remote host via SCPssh-copy <src> <user@host:dst> [key]
ssh-execExecute command via SSH on remote hostssh-exec <user@host> <cmd> [key]
ssh-pivotDeploy agent on remote host via SCP+SSH (cross-platform)ssh-pivot <user@host> [key] [--cleanup]
ssh-spraySpray all discovered SSH keys against targetssh-spray <host> [users]

Evasion (4 BOFs)

BOFDescriptionUsage
filehideHide file (dot rename, immutable attr, or both)filehide <path> [method]
logcleanScrub utmp/wtmp/btmp/lastlog + auth.log/securelogclean <user> [host]
procmaskChange process name via prctl (e.g. kworker/0:1)procmask <name>
timestompCopy timestamps from reference file or set explicittimestomp <file> <ref|time>

Container Escape (5 BOFs)

BOFDescriptionUsage
cgroup-escapeCgroup v1 release_agent host command executioncgroup-escape <cmd>
docker-sockDocker socket escape — run cmd on host via containerdocker-sock [sock] [cmd]
k8s-tokensFind K8s service account tokens and kubeconfigsk8s-tokens
mount-escapeMount namespace escape via /proc/1/root or remountmount-escape [file]
nsenter-hostNsenter into host PID 1 namespaces for cmd executionnsenter-host [cmd]

Kubernetes (3 BOFs)

BOFDescriptionUsage
k8s-enumEnumerate pods, services, namespaces, and deploymentsk8s-enum <host> <port> <token>
k8s-secretsList and dump Kubernetes secretsk8s-secrets <host> <port> <token>
k8s-rbacEnumerate roles, cluster roles, and bindingsk8s-rbac <host> <port> <token>

All K8s BOFs use bearer token authentication (from a mounted service account or supplied via args) and parse JSON responses from the Kubernetes API server. No kubectl or external tools required.

macOS-Native (3 BOFs)

Apple-native BOFs using Security.framework and system APIs. These run only on macOS agents.

BOFDescriptionUsage
keychain-dumpDump passwords, certificates, and keys via SecItemCopyMatchingkeychain-dump
tcc-checkRead TCC database for app permission audittcc-check
gatekeeper-enumGatekeeper status, SIP status, quarantine attribute inspectiongatekeeper-enum

Cloud — AWS (15 BOFs)

BOFs for on-prem to cloud lateral movement. Discover cloud credentials on compromised hosts, validate and pivot into AWS infrastructure, and access cloud resources — all from the implant with no external tools. Both Windows COFF and Linux .so variants.

Credential Discovery & Validation:

BOFDescriptionUsage
aws-whoamiSTS GetCallerIdentity — validate creds, show account/ARNaws-whoami [AK SK [token] [region]]
aws-imds-credsExtract IAM role credentials from EC2 IMDS (v1/v2)aws-imds-creds
aws-iam-enumEnumerate IAM user/role policies and permissionsaws-iam-enum [AK SK [token] [region]]
aws-assume-roleSTS AssumeRole to pivot into higher-privilege roleaws-assume-role <role_arn> [AK SK [token] [region]]
aws-cred-searchScan filesystem, env vars, SSO caches, and process memory for AWS credentialsaws-cred-search

Cloud Resource Access:

BOFDescriptionUsage
aws-s3-lsList S3 buckets and objectsaws-s3-ls [bucket[/prefix]] [AK SK [token] [region]]
aws-s3-getDownload S3 object contentsaws-s3-get <bucket> <key> [AK SK [token] [region]]
aws-ec2-enumEnumerate EC2 instances (ID, type, IP, state)aws-ec2-enum [AK SK [token] [region]]
aws-lambda-enumList Lambda functionsaws-lambda-enum [AK SK [token] [region]]
aws-secrets-managerList and read Secrets Manager secretsaws-secrets-manager [secret_name] [AK SK [token] [region]]
aws-ssm-paramsRead SSM Parameter Store parameters by pathaws-ssm-params [path] [AK SK [token] [region]]
aws-ec2-userdataRead EC2 user-data scripts via IMDS (often contains creds)aws-ec2-userdata

Lateral Movement:

BOFDescriptionUsage
aws-ssm-execExecute commands on EC2 via SSM SendCommand (no direct connection)aws-ssm-exec <instance_id> <command> [AK SK [token] [region]]
aws-lambda-execInvoke Lambda function with controlled inputaws-lambda-exec <function_name> [payload] [AK SK [token] [region]]
aws-ec2-connectPush temporary SSH key via EC2 Instance Connect (60s window)aws-ec2-connect <instance_id> <ssh_pubkey> [user] [AK SK [token] [region]]

Cloud — Azure (8 BOFs)

BOFs for Azure resource enumeration and lateral movement via the Azure Resource Manager API. Authenticate with a managed identity token from IMDS or an operator-supplied Bearer token.

BOFDescriptionUsage
azure-imds-tokenRequest managed identity OAuth2 token from Azure IMDSazure-imds-token [resource]
azure-cred-searchSearch environment and metadata for Azure credentialsazure-cred-search
azure-whoamiIdentify current Azure principal (subscriptions + tenant)azure-whoami [token]
azure-keyvaultList Key Vault secrets and retrieve secret valuesazure-keyvault <vault> [secret] [token]
azure-storage-lsList Azure Storage containers and blobsazure-storage-ls <account> [container] [token]
azure-blob-getDownload blob content from Azure Storageazure-blob-get <account> <container> <blob> [token]
azure-vm-enumEnumerate Azure VMs across subscriptionsazure-vm-enum [subscription] [token]
azure-vm-runcommandExecute commands on Azure VMs via Run Command APIazure-vm-runcommand <vm> <rg> <subscription> <cmd> [token]

Cloud — Entra ID (14 BOFs)

BOFs for Microsoft Entra ID (Azure AD) identity-plane enumeration, credential access, and privilege escalation via the Microsoft Graph API. Authenticate with a managed identity token from IMDS or an operator-supplied Bearer token.

Identity Enumeration:

BOFDescriptionUsage
entra-whoamiShow current Entra ID identity (tenant, UPN, roles)entra-whoami [token]
entra-usersList Entra ID users with key attributesentra-users [token]
entra-groupsList Entra ID groupsentra-groups [token]
entra-group-membersList members of an Entra ID groupentra-group-members <group_id> [token]
entra-rolesList Entra ID directory roles and assignmentsentra-roles [token]
entra-role-membersList members of a specific directory roleentra-role-members <role_id> [token]
entra-spsList Entra ID service principalsentra-sps [token]
entra-condaccessList conditional access policiesentra-condaccess [token]

Credential & Secret Access:

BOFDescriptionUsage
entra-app-secretsList application registrations with credentialsentra-app-secrets [token]
entra-app-add-secretAdd a client secret to an application registrationentra-app-add-secret <object_id> [token] [display_name]
entra-oauth-grantsList OAuth2 permission grants (delegated permissions)entra-oauth-grants [token]

Privilege Escalation:

BOFDescriptionUsage
entra-role-assignAssign a directory role to a principalentra-role-assign <role_id> <principal_id> [token]
entra-app-rolesList app role assignments for a service principalentra-app-roles <sp_id> [token]
entra-pimList PIM eligible role assignmentsentra-pim [token]

All Azure, Entra ID, and AWS BOFs support explicit tokens/credentials or auto-discover from IMDS when run on a cloud VM. JSON response parsing is built-in — no external tools or CLIs required.

Cloud — GCP (8 BOFs)

BOFs for GCP resource enumeration and lateral movement via GCP REST APIs. Authenticate with a service account OAuth2 token from the GCP metadata server or an operator-supplied Bearer token.

Credential Discovery & Validation:

BOFDescriptionUsage
gcp-metadata-tokenSteal service account OAuth2 token from GCP metadata servergcp-metadata-token
gcp-cred-searchScan filesystem for GCP credential files (ADC, service account keys, gcloud configs)gcp-cred-search
gcp-whoamiIdentify current GCP principal, project, and token scopesgcp-whoami [token]

Cloud Resource Access:

BOFDescriptionUsage
gcp-vm-enumEnumerate GCE instances across all zonesgcp-vm-enum [token [project_id]]
gcp-storage-lsList GCS buckets or objectsgcp-storage-ls [bucket] [token [project_id]]
gcp-storage-getDownload object from GCS (up to 4MB)gcp-storage-get <bucket> <object> [token]
gcp-secretsList or retrieve secrets from Secret Managergcp-secrets [secret_name] [token [project_id]]
gcp-iam-enumEnumerate service accounts and IAM policygcp-iam-enum [token [project_id]]

All AWS, Azure, Entra ID, and GCP BOFs support explicit tokens/credentials or auto-discover from IMDS/GCP metadata server when run on a cloud VM. JSON response parsing is built-in — no external tools or CLIs required.