self-hosted-runner-hardening

Harden Linux-based self-hosted GitHub Actions runners with OS and network protections.

3|3|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill self-hosted-runner-hardening
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-hosted-runner-hardening
Source: https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/secure/skills/self-hosted-runner-hardening
Command: npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill self-hosted-runner-hardening

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Self-hosted GitHub Actions runners are exposed to OS-level and network vulnerabilities; this skill provides a comprehensive, defense-in-depth hardening guide to reduce attack surface and protect credentials.

Core Features & Use Cases

  • OS-level hardening, user and permission controls, and service isolation for runner processes.
  • Network isolation, process confinement (AppArmor), and file system restrictions to prevent data exfiltration and persistence.
  • Use Case: When you deploy self-hosted runners in CI, apply these steps to harden the host, isolate the runner, and enable auditable security controls.

Quick Start

Run the self-hosted-runner-hardening skill on a Linux host to bootstrap security baselines and runtime protections.

Frequently Asked Questions about self-hosted-runner-hardening

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I harden self-hosted GitHub Actions runners?

Harden self-hosted GitHub Actions runners by applying defense-in-depth controls including OS-level baselines, network isolation, credential protection, and audit logging to reduce the host attack surface.

What does defense in depth for CI runners involve?

Defense in depth for CI runners involves layering OS hardening, user permission controls, filesystem restrictions, AppArmor profiles, sudo rules, and runtime confinement to prevent persistence and data exfiltration.

Can I use AppArmor to confine GitHub Actions runner processes?

Yes, you can apply AppArmor profiles for process confinement on self-hosted GitHub Actions runners to restrict runtime capabilities and limit potential lateral movement from compromised workflows.

Does self-hosted runner hardening work on cloud environments or only on-premises?

Self-hosted runner hardening applies to Linux-based CI runners in both on-premises and cloud environments, enforcing consistent security baselines, network isolation, and auditable controls across deployments.

What's the best way to isolate self-hosted runners to prevent credential theft?

The best way to isolate runners and prevent credential theft is enforcing network isolation, filesystem restrictions, user permission controls, and runtime confinement to minimize exposure of sensitive tokens.

When do I need OS hardening for GitHub Actions runners?

You need OS hardening for GitHub Actions runners when deploying self-hosted infrastructure that executes untrusted workflows, requiring strict sudo rules and service isolation to mitigate OS-level vulnerabilities.