OIDC Configured but GitHub Actions Still Vulnerable: Megalodon and actions-cool Attacks Expose Runner Risks
Two years of advising teams to replace static AWS_ACCESS_KEY_ID secrets with OIDC in GitHub Actions remains valid advice, yet recent incidents show that OIDC alone is no longer enough. After the May 2026 attacks on actions-cool/issues-helper and the Megalodon campaign targeting 5,561 repositories, the recommendation must be expanded to include multiple defensive layers around OIDC.
The core problem is that temporary credentials issued via OIDC become usable data inside the runner for the duration of the job. These credentials can appear as environment variables exported by aws-actions/configure-aws-credentials, as files on disk, or as tokens requested by individual steps. Any code running on the same runner—malicious third-party actions, compromised post-install scripts, or direct memory reads from /proc—can extract them.
Megalodon directly injected malicious workflows that collected environment variables, credential files, kubeconfig files, SSH keys, and OIDC tokens. A 15-to-60-minute token lifetime proved sufficient for automated exfiltration and reuse before expiration. The actions-cool/issues-helper attack instead substituted action tags to run a malicious commit capable of reading Runner.Worker process memory.
Four protection layers are now considered mandatory. First, cloud trust policies must use StringEquals on the exact sub claim, for example limiting access to repo:my-org/my-repo:environment:production. Second, the id-token: write permission must be granted only at the job level, never at the workflow level. Third, outbound traffic from runners must be restricted using Harden-Runner in block mode or equivalent firewall rules on self-hosted runners. Fourth, the .github/workflows directory must be treated as production code with CODEOWNERS requiring security-team review and all third-party actions pinned by SHA.
GitHub Environments provide an additional control often overlooked: mandatory reviewers, deployment timers, and branch restrictions. When a trust policy also requires the environment claim, an attacker who can push to main still cannot obtain a production token without passing human approval.
The updated checklist after Megalodon includes moving id-token: write to job scope, binding production jobs to protected environments, tightening trust policies, adding CODEOWNERS, and controlling runner egress. Workflows named SysDiag or Optimize-Build should be treated as indicators of compromise.
Related articles
GitHub Repo Trap with 1774 Stars Mimics Microsoft Activation Scripts to Deliver Malware via Telegram Bot
A security researcher built a Telegram bot that daily delivers five trending GitHub repositories from trendshift.io along with README summaries. One repository named Microsoft Activation Scripts contained only a README with a reversed PowerShell command that decoded to download and execute a payload from a lookalike domain. The account was created 94 seconds before the repository and used classic one-liner installation syntax to blend with legitimate projects. Analysis of 321 trending repositories showed that simple filters such as recent account age or irm|iex patterns would incorrectly flag many legitimate projects including codex and opencode. Two independent detection rules were developed: one that normalizes and scans for obfuscated execution commands including base64, mshta, certutil and hidden window flags, and another that flags one-time owners created less than 30 days before the repository with under 10 KB of content. An additional groundedness check using the AIHOT method prevents DeepSeek from inserting unverified claims such as Ruby or Cypress into repository summaries.
GhostAction Campaign Expands to Inject Malicious GitHub Workflows Stealing AWS Keys and Tokens
The GhostAction campaign has returned with an expanded technique that targets a wider range of credentials across hundreds of repositories. On October 8, two compromised maintainer accounts injected a malicious workflow named security-audit.yml into 346 GitHub repositories, including high-profile projects such as uber/athenadriver and kitao/pyxel. The workflow disguises itself as a security audit routine and executes automatically on every code push, exfiltrating credentials via HTTP requests to attacker-controlled servers. Unlike previous waves that only harvested GitHub Actions secrets, the new version also scans the working directory and full git history for forgotten credentials in older commits. Targeted data includes AWS access keys, GitHub and GitLab tokens, Google API keys, Slack and SendGrid tokens, OpenAI and Anthropic credentials, PyPI passwords, and crates.io tokens. Since October 7, more than 500 GitHub accounts have planted similar workflows, building on earlier campaigns that affected 817 repositories in September 2025 and 772 between August and September.
Security Researcher Builds SAST Scanner for AI-Generated Code and Audits 3,800 Public Repositories
A developer released AigisSAST, a lightweight open-source static analysis tool written in pure Python with no external dependencies, specifically tuned to detect common mistakes made by AI coding assistants. The scanner was run across roughly 3,800 repositories ranging from small pet projects to popular open-source platforms. It identified thousands of potential secrets and misconfigurations, yet manual review reduced the number of genuine leaks to approximately 30 cases, mostly Telegram bot tokens, database credentials, and committed .env files. The project also examined 471 production-grade Telegram bots handling payments and VPN services, uncovering 31 repositories that exposed real credentials either in current code or in Git history. AigisSAST includes 21 detection rules, 193 regression tests, automatic remediation via the fix command, and seamless integration with GitHub Actions. The author deliberately avoided validating any discovered keys to stay within ethical research boundaries.
Vendor Responsibility in Open Source: Licensing Obligations Exposed by Sonatype Nexus Changes
The article examines how vendors building products on copyleft open source projects like Nexus Repository OSS inherit significant legal and security responsibilities under licenses such as EPL 1.0. Sonatype's February 2025 shift from regular OSS binary releases to a limited Community Edition forces downstream vendors to handle their own builds, patch porting, and compliance disclosures. This change highlights the second part of copyleft licenses that outlines obligations for distributors, including revealing modifications and assuming liability for the final product. Security implications arise because critical vulnerabilities in the upstream project must now be tracked and patched by the vendor, with delays creating measurable supply chain risks. The piece provides a practical checklist for buyers to assess licensing hygiene, SBOM availability, and vulnerability response times in any open source-based solution.