Ceplin Command Identifier

Identifier / Programs / Linux and Unix

apt

Package manager for Debian-based distributions. Intended as a user-friendly alternative to apt-get for interactive use. For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>. tldr-pages

GTFOBins inherit, shell 3 Sigma rules name it 2 ATT&CK techniques 3 documented commands

Opens the identifier with your command. It is read in your browser and sent nowhere.

How apt is abused

documented by GTFOBins

inherit

changelog

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-y
-c

shell T1059.004 Command and Scripting Interpreter: Unix Shell

update

-o

Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for apt.

3 documented commands

from GTFOBins, each read by the identifier

GTFOBins documents apt with the commands of apt-get.

inherit unprivileged, with sudo

apt-get changelog apt
Identify

Trips no Sigma process-creation rule.

shell with sudo, as SUID

For this to work the target package (i.e., sl) must not be already installed.

echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' >/path/to/temp-file
apt-get -y install -c /path/to/temp-file sl
Identify

Trips no Sigma process-creation rule.

shell with sudo, as SUID

When the shell exits the update command is actually executed.

apt-get update -o APT::Update::Pre-Invoke::=/bin/sh
Identify

Trips 1 Sigma rule: mediumShell Invocation via Apt - Linux by Nasreddine Bencherchali (Nextron Systems)

1 of the 3 commands the identifier reads trips a Sigma process-creation rule; 2 trip none. These commands are, with GTFOBins’ notes, from GTFOBins, at commit acd524623f9c of 2026-05-27, under the GPL-3.0, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on GTFOBins’s page for apt. The identifier reads the line of each that runs apt-get.

What detects it

Sigma process creation rules
mediumShell Invocation via Apt - LinuxNasreddine Bencherchali (Nextron Systems)
mediumSuspicious Package Installed - LinuxNasreddine Bencherchali (Nextron Systems)
lowLinux Package UninstallTuan Le (NCSGroup), Nasreddine Bencherchali (Nextron Systems)
T1059.004Command and Scripting Interpreter: Unix Shell
T1083File and Directory Discovery

Everyday use

from tldr-pages, CC BY 4.0

Update the list of available packages and versions (recommended before running other apt commands)

sudo apt updateIdentify

Search packages by name or description

apt search packageIdentify

Search packages by name only (supports wildcards like *)

apt list packageIdentify

None of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.