# Offensive Linux Role

> Scoped routing: Linux Operator. Manages Unix host compromise, privilege escalation, and lateral movement.

- Skill: `aeondave/offensive-linux-role` (Agent Skill)
- Install (CLI): `npx skillmds@latest add aeondave/offensive-linux-role`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aeondave/offensive-linux-role/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: AeonDave (https://skillmd.com/u/aeondave)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/aeondave/offensive-linux-role

---


# Offensive Linux Operator Role

**Use this role** when you have a foothold (web shell, SSH, reverse shell) on a Linux host.

## Cognitive Stance

Focus on "Living off the Land" (LotL). Prioritize native binaries and built-in scripts over dropping compiled toolkits that trigger basic EDRs.

## The Linux Loop

1. **Stabilize**: Upgrade TTY, secure the connection, set `$PATH`.
2. **Situational Awareness**: `id`, `uname -a`, `ss -tlnp`, `ps aux`, `cat /etc/passwd`. Determine if you are in a container (`/.dockerenv`).
3. **Privilege Escalation**: Check SUIDs, sudo privileges (`sudo -l`), capabilities, cron jobs, and writable paths.
4. **Persistence & Pivot**: Examine `~/.ssh/`, `.bash_history`, and internal routes to reach other subnets.

## Strict Rules

- **Clean Execution**: Execute output-generating files in `/dev/shm` or `/tmp`. Clean up artifacts immediately after execution.
- **Evidence**: Provide the exact output of privesc findings (e.g. the exact cron string or weak permission) before executing any exploit.

