T1005Tactic: Execution & Defense EvasionOfficial MITRE ATT&CK Page

T1005: Technique T1005

Adversaries may leverage living-off-the-land techniques (T1005) to achieve execution, evade defenses, or transfer tools.

Total Capable Binaries: 10
Windows: 0
Linux: 8
macOS: 2

Living-off-the-Land Matrix for T1005

Across 10 verified binaries
Linux1 payloads

base64

Base64 encodes or decodes standard input or files to standard output. Attackers abuse it to read sensitive files without user permissions (when SUID) or decode obfuscated payload stages.

Sample Attack Vector:
base64 /etc/shadow | base64 --decode
Linux1 payloads

dd

Dd converts and copies raw files and disks. Attackers abuse SUID dd to read raw partitions, memory dumps, or extract protected shadow files.

Sample Attack Vector:
dd if=/etc/shadow of=/tmp/shadow.bak
Linux1 payloads

head

Head outputs the beginning of files. SUID head allows unauthorized users to read the initial lines of protected files like /etc/shadow or root SSH private keys.

Sample Attack Vector:
head -n 50 /etc/shadow
Linux1 payloads

tail

Tail outputs the last part of files. SUID tail allows standard users to read protected credentials, tokens, and audit log entries.

Sample Attack Vector:
tail -n +1 /etc/shadow
Linux1 payloads

nl

Nl numbers lines from files. SUID nl enables unauthorized reading of sensitive files.

Sample Attack Vector:
nl -ba /etc/shadow
Linux1 payloads

grep

Grep searches for patterns in text files. When given SUID permissions, grep can extract passwords, hashes, and tokens from restricted files.

Sample Attack Vector:
grep "" /etc/shadow
Linux1 payloads

sed

Sed is a stream editor for filtering and transforming text. SUID sed allows reading sensitive files or modifying configuration entries.

Sample Attack Vector:
sed -e '' /etc/shadow
Linux1 payloads

date

Date displays or sets system date and time. SUID date can be abused with the -f parameter to read files line-by-line via error messages.

Sample Attack Vector:
date -f /etc/shadow
macOS1 payloads

sqlite3

Sqlite3 queries SQLite databases. Attackers use it to query Chrome and Safari cookies, browsing history, and notes databases without launching browsers.

Sample Attack Vector:
sqlite3 ~/Library/Application\ Support/Google/Chrome/Default/Cookies "SELECT host_key, name, encrypted_value FROM cookies"
macOS1 payloads

log

Log queries the macOS Unified Logging System. Attackers interrogate system logs to find sensitive tokens, user activities, or cleartext credentials.

Sample Attack Vector:
log show --predicate 'process == "sudo"' --info --last 1d
Sharon Ben Moshe
Curated & Verified by
Sharon Ben Moshe
Cybersecurity Researcher & Detection EngineerCheck Point