yaklang avatar

Linux Security Bypass

This is a post-exploitation playbook for breaking out of Linux security restrictions. It walks through rbash escapes (via editors, language interpreters, SSH tricks), noexec filesystem bypasses (DDexec for fileless execution, memfd_create, ld.so tricks), and evasion techniques for AppArmor, SELinux, seccomp filters, and audit logs. The seccomp section covers architecture confusion attacks where 32-bit syscalls slip past 64-bit filters. Honestly, this is pure red team material. If you're doing authorized pentesting or CTFs where you've landed a shell but hit restrictions, it's a solid reference. The techniques are real and widely used, but this is explicitly offensive security content with no defensive angle.

skills.sh installs
3.7K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill linux-security-bypass --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Linux Security Bypass — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert techniques for bypassing Linux security mechanisms. Covers restricted shell escape, noexec bypass, AppArmor/SELinux evasion, seccomp circumvention, and audit evasion. Base models miss DDexec, memfd_create fileless execution, and architecture-confusion seccomp bypass.

0. RELATED ROUTING

Before going deep, consider loading:


1. RESTRICTED BASH (rbash) BYPASS

1.1 SSH-Based Bypass

# Force a different shell via SSH
ssh user@host -t "bash --noprofile --norc"
ssh user@host -t "/bin/sh"
ssh user@host -t "bash -l"

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Security, DevOps & CI/CD, CLI & Terminal
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Recommended

More Security
1vercel-labs avataroauthvercel-labs/portlessConfigure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixi3.1Kskills.sh installs
2elastic avatarcloud-network-securityelastic/agent-skillsManage Serverless network security (traffic filters): create, update, and delete IP filters and AWS PrivateLink VPC filters. Use when restricting network access2.8Kskills.sh installs
3mapbox avatarmapbox-token-securitymapbox/mapbox-agent-skillsSecurity best practices for Mapbox access tokens, including scope management, URL restrictions, rotation strategies, and protecting sensitive data. Use when cre2Kskills.sh installs
4github avatarmcp-security-auditgithub/awesome-copilotAudit MCP (Model Context Protocol) server configurations for security issues. Use this skill when: - Reviewing .mcp.json files for security risks - Checking MCP1.1Kskills.sh installs
5ruvnet avataragent-security-managerruvnet/rufloAgent skill for security-manager - invoke with $agent-security-manager1.1Kskills.sh installs
6ruvnet avataragent-v3-security-architectruvnet/rufloAgent skill for v3-security-architect - invoke with $agent-v3-security-architect1.1Kskills.sh installs