offensive-coding/linux-internals-dev/SKILL.md
Auth/lab dev: Linux internals; ELF loader, procfs, namespaces/caps, eBPF verifier/maps, LSM hooks for tooling/telemetry design.
npx skillsauth add aeondave/malskill linux-internals-devInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Deep Linux internals for practitioners who need to reason below libc and framework abstractions.
This skill is for structural mechanics: what the kernel and loader actually do, what invariants hold, what breaks across versions, and where detection surfaces appear.
/proc for process, memory, mount, or namespace intelligence and need race-safe interpretationclone, unshare, setns, or pidfd flowsIf the task is ordinary userland API usage, this skill is overkill. If the task is ABI and kernel boundary mechanics, use this skill first.
| Domain | File | Covers |
|---|---|---|
| ELF and dynamic linking | references/elf-format.md | ELF headers, program headers vs sections, dynamic tags, relocation flow, loader order, practical invariants |
| procfs semantics | references/procfs.md | /proc layout, ptrace-gated visibility, maps and smaps races, hidepid, mountinfo and pidns interactions |
| Namespaces and isolation | references/namespaces.md | namespace APIs, ownership and capability checks, pid and user namespace rules, lifetime pinning |
| Syscall dispatch internals | references/syscall-dispatch-linux.md | x86-64 syscall ABI details, vDSO-sourced syscall gadgets, fallback chains, errno handling, and telemetry implications |
| eBPF architecture | references/ebpf.md | bpf() command families, map and program lifecycle, verifier model, helper constraints, attach and pin patterns |
| LSM model | references/lsm.md | LSM stacking and ordering, active module discovery, process attr interfaces, hook surfaces and development implications |
| Area | Invariant |
|---|---|
| ELF | Runtime loading is driven by program headers, not section headers |
| ELF | PT_LOAD: p_filesz <= p_memsz; trailing bytes are zero-filled in memory |
| procfs | Access to many /proc/pid/* files for other processes is ptrace capability gated |
| procfs | Reading maps and smaps is inherently racy except single-read snapshots |
| namespaces | Joining namespaces requires capability checks in both current and owning user namespaces |
| pid namespaces | A process cannot move to an ancestor PID namespace |
| syscalls (x86-64) | Arg4 is in r10, not rcx; syscall clobbers rcx and r11 |
| eBPF | Verifier must prove termination, type safety, bounds safety, and reference release on all paths |
| eBPF | Helper calls can invalidate packet pointer proofs; bounds checks often must be redone |
| LSM | Active LSM order matters; checks run in configured order, capability module first |
| LSM | /sys/kernel/security/lsm reflects the active stack and check order |
Issue is binary load or symbol resolution behavior
elf-format.mdPT_INTERP, DT_NEEDED, DT_RPATH and DT_RUNPATH, then relocation type flowIssue is process or memory inspection mismatch
procfs.mdhidepid mode, and map-read race conditionsIssue is container boundary or namespace transition
namespaces.mdIssue is syscall origin, anti-hooking, or low-level ABI behavior
syscall-dispatch-linux.mdr10/rcx), dispatch source (vDSO vs libc vs direct), and fallback implicationsIssue is eBPF load rejection or runtime attach surprises
ebpf.mdIssue is policy enforcement or security hook behavior
lsm.mdUse this whenever implementing a low-level technique.
DT_RPATH and DT_RUNPATH are equivalent in dependency traversal/proc/pid/maps partial reads are stable under concurrent VMA changeshidepid and ptrace gating when process inventory appears incompletesetns to move the caller itself into a new PID namespace instead of affecting future childrenrcx instead of r10 on x86-64 and then debugging phantom failuresreferences/elf-format.md for loader and relocation mechanicsreferences/procfs.md for process and memory introspection semanticsreferences/namespaces.md for isolation model and transition constraintsreferences/syscall-dispatch-linux.md for syscall ABI, dispatch-source tradeoffs, and fallback designreferences/ebpf.md for verifier and syscall-level eBPF operationsreferences/lsm.md for LSM architecture and policy interaction modeldata-ai
Scoped routing: Linux operator; hosts, sessions, users, services, packages, logs, containers, SSH, network paths, privilege evidence.
development
Offensive methodology for ICS/OT/SCADA environments in authorized industrial penetration testing and red team operations. Use when assessing PLCs, RTUs, HMIs, engineering workstations, historians, or field devices running Modbus, DNP3, EtherNet/IP, S7comm/S7+, Profinet, IEC 60870-5-104, BACnet, or OPC-UA. Covers passive OT network enumeration, protocol-level device interrogation, PLC coil/register read-write attacks, HMI session exploitation, historian and engineering workstation compromise, and safe escalation rules for critical infrastructure scope. Does not cover: general IT network exploitation (network-technique), physical hardware interfaces UART/JTAG/SPI (hardware-technique), wireless sensor network attacks (wireless-technique), RF/SDR signal analysis (hardware-ctf or wireless-technique), or CTF-framed ICS lab tasks (ics-ctf).
tools
Offensive methodology for authorized game security assessments, game client security research, and game-adjacent penetration testing in real-world engagements. Use when assessing game clients for cheating vulnerabilities, testing anti-cheat effectiveness, auditing game server protocols for score manipulation or economic fraud, reverse engineering game DRM or license validation, analyzing game save file protection, or assessing game mod/plugin security. Covers: process memory scanning and manipulation (Cheat Engine methodology), game binary reversing for license and DRM bypass, game network protocol analysis and packet replay, anti-cheat mechanism analysis, save file format reversing and tampering, speed hack and value injection techniques. Does NOT cover: CTF game challenges (game-ctf), game engine source code auditing (web-exploit-technique or vuln-search-technique for the backend), or general binary exploitation (pwn-ctf or reversing-technique).
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.