• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About Darknet
  • Hacking Tools
  • Popular Posts
  • Darknet Archives
  • Contact Darknet
    • Advertise
    • Submit a Tool
Darknet – Hacking Tools, Hacker News & Cyber Security

Darknet - Hacking Tools, Hacker News & Cyber Security

Darknet is your best source for the latest hacking tools, hacker news, cyber security best practices, ethical hacking & pen-testing.

Weaponizing Dependabot – Exploiting GitHub Automation for Supply Chain Attacks

June 4, 2025

Views: 1,203

Introduction: GitHub Automation’s Double-Edged Sword

GitHub’s Dependabot automates dependency updates by submitting pull requests that patch known vulnerabilities. This significantly reduces the time it takes teams to secure their codebases. However, recent research shows that attackers are now manipulating these automation pathways to compromise supply chains. The root issue lies in overly permissive workflows that treat bot activity as implicitly safe.

Weaponizing Dependabot - Exploiting GitHub Automation for Supply Chain Attacks

The Confused Deputy Problem in CI/CD

The “Confused Deputy” problem occurs when a trusted entity is manipulated into performing actions on behalf of a malicious party. In GitHub workflows, this manifests when an attacker abuses conditions that check for github.actor == 'dependabot[bot]'. Many organisations configure workflows to auto-merge pull requests (PRs) from Dependabot, assuming they originate from a trusted source. In reality, attackers can manipulate forks, branch names, and event triggers to imitate Dependabot behaviour and inject unauthorised code.

For a technical breakdown, see Weaponizing Dependabot: PWN Request at its Finest.


How the Exploitation Works

1. Merge Conflict Rebinding

Attackers can generate merge conflicts in legitimate Dependabot pull requests, resolve them on a branch under their control, and rebind Dependabot’s update process to the malicious version. This can lead to unauthorised changes being merged if auto-merge is enabled and verification steps are minimal.

2. Branch Metadata Injection

In another variant, attackers change the default branch in a fork to one with harmful naming (such as embedded shell commands). If the project uses the @dependabot merge label or similar automated triggers, it may mistakenly pull in these unsafe branches into CI pipelines.

These techniques exploit the gap between trusted identity (dependabot[bot]) and untrusted source control.


Real-World Case Studies

NPM GitHub Actions Exploitation (2022)

Multiple open-source JavaScript projects using tj-actions/changed-files were found vulnerable to pull request injection. Malicious actors submitted pull requests (PRs) that manipulated metadata fetched during the build process. The consequence was unauthorised access to secrets and possible code execution on CI servers. Some projects were forced to revoke tokens, rotate secrets, and patch workflows.

More details available in GitHub Action tj-actions/changed-files Supply Chain Attack.

xz-utils Backdoor (2024)

Although unrelated to GitHub, the xz-utils supply chain compromise highlights the risks of relying too heavily on upstream automation. A malicious maintainer introduced a backdoor into xz compression libraries used across Linux distributions. If CI systems had auto-merged updates without auditing the source, millions of servers could have been silently compromised.

Read more in xz Backdoor Malware.


Mitigation Strategies

To defend against this class of exploit:

  • Disable auto-merge on Dependabot PRs
  • Require signed commits and verify commit integrity
  • Avoid referencing dynamic branch metadata in workflows
  • Restrict GITHUB_TOKEN permissions in CI/CD jobs
  • Regularly audit workflow logic for implicit trust assumptions

A security guide on hardening workflows is available from Security Hardening for GitHub Actions.


Conclusion

Dependabot helps teams keep their dependencies secure, but when trusted blindly, it becomes a target for exploitation. As illustrated in these real-world examples, attackers can hijack automated update systems and exploit continuous integration (CI) workflows. The impact ranges from unauthorised code merges to complete CI server compromise.

Security engineers should treat automated agents with the same scrutiny as human developers. Assume no action is safe by default and architect your workflows to validate every step.

Related Posts:

  • Heisenberg Dependency Health Check - GitHub Action…
  • Systemic Ransomware Events in 2025 - How Jaguar Land…
  • claws – GitHub Actions Workflow Linter for Secure…
  • Initial Access Brokers (IAB) in 2025 - From Dark Web…
  • XXE Injection Attacks - XML External Entity…
  • XRayC2 - Weaponizing AWS X-Ray for Covert Command…
Share
Tweet
Share
Buffer
WhatsApp
Email

Filed Under: Exploits/Vulnerabilities Tagged With: confused deputy, dependabot, github, xz-utils



Primary Sidebar

Search Darknet

  • Email
  • Facebook
  • LinkedIn
  • RSS
  • Twitter

Advertise on Darknet

Latest Posts

Systemic Ransomware Events in 2025 - How Jaguar Land Rover Showed What a Category 3 Supply Chain Breach Looks Like

Systemic Ransomware Events in 2025 – How Jaguar Land Rover Showed What a Category 3 Supply Chain Breach Looks Like

Views: 2,302

Jaguar Land Rover’s prolonged cyber outage in 2025 turned what would once have been a “single … ...More about Systemic Ransomware Events in 2025 – How Jaguar Land Rover Showed What a Category 3 Supply Chain Breach Looks Like

SmbCrawler - SMB Share Discovery and Secret-Hunting

SmbCrawler – SMB Share Discovery and Secret-Hunting

Views: 2,145

SmbCrawler is a credentialed SMB spider that takes domain credentials and a list of hosts, then … ...More about SmbCrawler – SMB Share Discovery and Secret-Hunting

Heisenberg Dependency Health Check - GitHub Action for Supply Chain Risk

Heisenberg Dependency Health Check – GitHub Action for Supply Chain Risk

Views: 1,413

Heisenberg Dependency Health Check is a GitHub Action that inspects only the new or modified … ...More about Heisenberg Dependency Health Check – GitHub Action for Supply Chain Risk

Dark Web Search Engines in 2025 - Enterprise Monitoring, APIs and IOC Hunting

Dark Web Search Engines in 2025 – Enterprise Monitoring, APIs and IOC Hunting

Views: 3,327

Dark web search engines have become essential for enterprise security teams that need early … ...More about Dark Web Search Engines in 2025 – Enterprise Monitoring, APIs and IOC Hunting

mcp-scan - Real-Time Guardrail Monitoring and Dynamic Proxy for MCP Servers

mcp-scan – Real-Time Guardrail Monitoring and Dynamic Proxy for MCP Servers

Views: 1,245

mcp-scan is a security tool from Invariant Labs that can run as a static scanner or as a dynamic … ...More about mcp-scan – Real-Time Guardrail Monitoring and Dynamic Proxy for MCP Servers

Initial Access Brokers (IAB) in 2025 - From Dark Web Listings to Supply Chain Ransomware Events

Initial Access Brokers (IAB) in 2025 – From Dark Web Listings to Supply Chain Ransomware Events

Views: 1,122

Initial Access Brokers (IABs) have moved from niche forum actors to central wholesalers in the … ...More about Initial Access Brokers (IAB) in 2025 – From Dark Web Listings to Supply Chain Ransomware Events

Topics

  • Advertorial (28)
  • Apple (46)
  • Cloud Security (8)
  • Countermeasures (232)
  • Cryptography (85)
  • Dark Web (6)
  • Database Hacking (89)
  • Events/Cons (7)
  • Exploits/Vulnerabilities (433)
  • Forensics (64)
  • GenAI (13)
  • Hacker Culture (10)
  • Hacking News (237)
  • Hacking Tools (709)
  • Hardware Hacking (82)
  • Legal Issues (179)
  • Linux Hacking (74)
  • Malware (241)
  • Networking Hacking Tools (352)
  • Password Cracking Tools (107)
  • Phishing (41)
  • Privacy (219)
  • Secure Coding (119)
  • Security Software (235)
  • Site News (51)
    • Authors (6)
  • Social Engineering (37)
  • Spammers & Scammers (76)
  • Stupid E-mails (6)
  • Telecomms Hacking (6)
  • UNIX Hacking (6)
  • Virology (6)
  • Web Hacking (384)
  • Windows Hacking (171)
  • Wireless Hacking (45)

Security Blogs

  • Dancho Danchev
  • F-Secure Weblog
  • Google Online Security
  • Graham Cluley
  • Internet Storm Center
  • Krebs on Security
  • Schneier on Security
  • TaoSecurity
  • Troy Hunt

Security Links

  • Exploits Database
  • Linux Security
  • Register – Security
  • SANS
  • Sec Lists
  • US CERT

Footer

Most Viewed Posts

  • Brutus Password Cracker Hacker – Download brutus-aet2.zip AET2 (2,434,319)
  • Darknet – Hacking Tools, Hacker News & Cyber Security (2,174,103)
  • Top 15 Security Utilities & Download Hacking Tools (2,097,565)
  • 10 Best Security Live CD Distros (Pen-Test, Forensics & Recovery) (1,200,364)
  • Password List Download Best Word List – Most Common Passwords (934,682)
  • wwwhack 1.9 – wwwhack19.zip Web Hacking Software Free Download (777,407)
  • Hack Tools/Exploits (674,321)
  • Wep0ff – Wireless WEP Key Cracker Tool (531,447)

Search

Recent Posts

  • Systemic Ransomware Events in 2025 – How Jaguar Land Rover Showed What a Category 3 Supply Chain Breach Looks Like November 26, 2025
  • SmbCrawler – SMB Share Discovery and Secret-Hunting November 24, 2025
  • Heisenberg Dependency Health Check – GitHub Action for Supply Chain Risk November 21, 2025
  • Dark Web Search Engines in 2025 – Enterprise Monitoring, APIs and IOC Hunting November 19, 2025
  • mcp-scan – Real-Time Guardrail Monitoring and Dynamic Proxy for MCP Servers November 17, 2025
  • Initial Access Brokers (IAB) in 2025 – From Dark Web Listings to Supply Chain Ransomware Events November 12, 2025

Tags

apple botnets computer-security darknet Database Hacking ddos dos exploits fuzzing google hacking-networks hacking-websites hacking-windows hacking tool Information-Security information gathering Legal Issues malware microsoft network-security Network Hacking Password Cracking pen-testing penetration-testing Phishing Privacy Python scammers Security Security Software spam spammers sql-injection trojan trojans virus viruses vulnerabilities web-application-security web-security windows windows-security Windows Hacking worms XSS

Copyright © 1999–2026 Darknet All Rights Reserved · Privacy Policy