Rittenhouse·10:00 AM – 10:50 AM
Friday, December 11, 2026
Action and Reaction: Pull Request, Push Secrets
Arnab Roy & Diptendu Kar
AppSec, CI/CD & supply chain
About this talk
A pull request was opened. Not merged. Not even reviewed, the CI checks just ran. An attacker walked out with the secrets. Attackers rarely break into a CI pipeline; the pipeline opens the door, hands them a token, and politely runs their code. This talk tells that story through three of the past year's worst GitHub Actions supply-chain breaches: Nx S1ngularity, the reviewdog/tj-actions cascade, and Shai-Hulud v2. We don't just recap them, we recreate their root causes live, watching untrusted pull-request data walk straight into a privileged workflow and chain from one careless pull_request_
A pull request is supposed to ask for a review, not for your secrets. Yet Nx S1ngularity, reviewdog/tj-actions, and Shai-Hulud v2 all misused `pull_request_target` to combine attacker-controlled execution with base-repository authority. Both workflow events begin with “pull request.” That is roughly where the similarity ends. The live demonstrations use four purpose-built GitHub repositories. The comparison lab shows the two intended designs side by side. From one external pull request, `pull_request` executes the contributor's changes with a read-only token and no secrets, while `pull_request_target` stays on trusted default-branch code and uses narrow permission to update PR metadata. The other three labs reproduce how `pull_request_target` was misused. Each uses a nonfunctional canary and stops after proving attacker-controlled execution and secret visibility. The first case study is Nx S1ngularity. The root cause was direct interpolation of attacker-controlled PR metadata inside a Bash `run:` block triggered by `pull_request_target`. GitHub substituted `${{ }}` before Bash parsed the script, so shell syntax in the title or body became part of the generated command stream. The lab reproduces only this root cause: an allowlisted fork PR creates harmless title/body marker files and reports whether a powerless canary is present. It deliberately uses `contents: read` and performs no repository write, workflow dispatch, token theft, or package publication. In the real incident, the vulnerable job had write-capable repository authority; that additional privilege enabled a release-workflow pivot, exposure of `NPM_TOKEN`, and later publication of malicious packages with a `postinstall` payload. The second case study is reviewdog/tj-actions. Its root cause was the combination of `pull_request_target`, an explicit checkout of the fork's head SHA, and a subsequent `bash ./mvnw -B verify`. The workflow definition came from the base repository, but the checkout replaced th
The speakers
Arnab RoyApplication Security Engineer @ ASQI
I'm Arnab Roy, an Application Security Engineer at ASQI. My background includes time at Semgrep and Fidelity Investments, where I've worked across supply chain security, cloud security, and security architecture. I like thinking about how systems are designed to fail securely — and what happens when they don't.
Diptendu KarSecurity Researcher @ Semgrep
Diptendu Kar is a security researcher focused on supply chain and dependency risk. He works on triaging open-source vulnerabilities, writing detection rules, and exploring how AI can automate tedious parts of security research. He also teaches Software Security Practices at Northeastern University part time and holds a Master's in Cybersecurity. Before security, he worked as a Java developer at TCS. He's especially interested in patch diffing, vulnerable function detection, and the use of LLMs in AppSec. He believes cryptography is magic and AI is a noisy intern—helpful but always needs supervision.