Binary Planting & Execution Hijacking

Detects techniques for replacing or shadowing legitimate system binaries with malicious versions

7 rules in binary_planting.yml

CRITICAL: 2 | HIGH: 5

Rule IDSeverityTitleDescriptionRefs
binary_replace_system_pathCRITICALSystem Binary ReplacementCopies or writes a file to system binary directories, potentially replacing a legitimate binary
path_trojan_binaryCRITICALTrojan Binary in Early PATH DirectoryPlaces a binary in a directory that appears before system paths, shadowing legitimate commands
alias_command_hijackHIGHShell Alias Command HijackingCreates shell aliases that override system commands, potentially intercepting sensitive input
function_command_hijackHIGHShell Function Command HijackingDefines a shell function that shadows a system binary (sudo/su/ssh/docker/kubectl/aws/gcloud/az). A planted function intercepts privileged commands and is a classic persistence trick on shared shells.
git_hook_injectionHIGHGit Hook InjectionWrites to git hook directories, which auto-execute on git operations
npm_global_install_untrustedHIGHGlobal npm Install from Untrusted SourceInstalls npm packages globally from URLs or local paths instead of the registry
pip_install_editable_pathHIGHpip Install from Local Editable PathInstalls a Python package in editable mode from a suspicious local path