Kẻ tấn công lách qua SHA pinning trên GitHub Actions qua vụ Trivy và issues-helperAttackers Bypassed GitHub SHA Pinning in the Trivy and Issues-Helper Cases
SHA pinning — ghim GitHub Actions vào một commit cụ thể — được xem là tuyến phòng thủ chính trước tấn công chuỗi cung ứng phần mềm, nhưng kẻ tấn công đã tìm ra cách lách qua nó. Trong tháng 3-2026, những kẻ chiếm quyền kiểm soát Trivy, trình quét bảo mật mã nguồn mở được dùng rộng rãi, đã cài mã độc trông như đến từ công cụ checkout chính thức của GitHub và gắn nhãn đó là bản sửa bảo mật; các nhóm ghim vào mã đó sẽ vượt qua mọi bước kiểm tra. Tháng 5, cùng kỹ thuật tấn công công cụ actions-cool/issues-helper và đánh cắp thông tin đăng nhập từ các pipeline đã chạy nó.

Diễn biến
Chuỗi sự kiện bắt đầu bằng một vụ xâm phạm từng củng cố uy tín của SHA pinning, rồi chuyển sang hai vụ cho thấy commit giả mạo có thể vượt qua biện pháp này. GitHub sau đó đưa workflow lockfile từ public preview lên generally available.
- Tháng 3-2025: Vụ tj-actions/changed-files chuyển hướng tag tới commit độc hại trên hơn 23,000 repository; các nhóm ghim SHA không bị ảnh hưởng.
- Tháng 3-2026: Kẻ tấn công chiếm quyền kiểm soát Trivy, cài mã độc giả dạng công cụ checkout chính thức của GitHub và gắn nhãn bản sửa bảo mật.
- Tháng 5: Cùng kỹ thuật tấn công actions-cool/issues-helper, đánh cắp thông tin đăng nhập từ các pipeline đã chạy công cụ này.
- 14 tháng 10 – 2026-10-28: Workflow lockfile vào public preview rồi trở thành generally available.
Cơ chế
Kỹ thuật này lợi dụng việc GitHub cho phép các bản sao của dự án, gọi là fork, chia sẻ mã với dự án gốc. Vì vậy, một commit giả mạo có thể được ghim mà không chứng minh được ai đã viết nó. Với phát triển agentic đang đẩy nhiều mã hơn qua CI, các khoảng trống này được khai thác thường xuyên hơn và xem xét ít kỹ hơn.
- Tác giả: SHA không cho biết ai viết commit; bất kỳ commit nào từ fork cũng có thể được ghim.
- Tư cách thành viên dự án: Việc thực thi ở cấp tổ chức chỉ kiểm tra tham chiếu là SHA 40 ký tự, không kiểm tra commit có nằm trong dự án gốc hay không.
- Thời gian chạy: Action dựa trên Docker đã ghim SHA vẫn có thể build image tại thời gian chạy, kéo theo dependency chưa bao giờ được đóng băng.
GitHub hiện cho phép quản trị viên thực thi việc ghim như một chính sách ở cấp tổ chức, và ít nhóm bảo mật phản đối biện pháp này. Tuy nhiên, việc thực thi đó không trả lời được ba câu hỏi trên.
Workflow lockfile của GitHub
Lộ trình bảo mật Actions 2026 của GitHub, công bố ngày 26 tháng 3, đặt việc khóa dependency xác định ở vị trí trung tâm. Workflow lockfile gắn mỗi lần chạy với các commit đã ghi lại cho action và dependency bắc cầu của chúng, ngay cả khi một tag bị di chuyển sau đó.
Các commit đã khóa phải tồn tại trên một nhánh của repository nguồn, nên tính năng này làm giảm tác dụng của commit giả mạo chỉ có trên fork. Tuy nhiên, changelog của GitHub nêu rõ việc khóa “does not determine whether the dependency itself is safe”; quyền tác giả của commit và các bản build tại thời gian chạy vẫn còn bỏ ngỏ, các bản phát hành bất biến chỉ hữu ích khi maintainer tự nguyện tham gia, và lockfile hiện chưa được hỗ trợ trên GitHub Enterprise Server.
Phạm vi ảnh hưởng
Rủi ro tập trung ở các workflow kéo action của bên thứ ba, vì một commit giả mạo có thể được ghim và chạy mà kiểm tra SHA thông thường không phát hiện được. Bảng dưới đây tổng hợp các vụ việc và giới hạn mà nguồn tin đã nêu.
| Hạng mục | Chi tiết |
|---|---|
| tj-actions/changed-files | Tháng 3-2025; tag bị chuyển hướng tới commit độc hại trên hơn 23,000 repository. |
| Trivy | Tháng 3-2026; mã độc giả dạng công cụ checkout chính thức của GitHub. |
| actions-cool/issues-helper | Tháng 5; đánh cắp thông tin đăng nhập từ các pipeline đã chạy công cụ này. |
| Kiểm tra SHA cấp tổ chức | Chỉ xác minh SHA 40 ký tự, không xác minh commit thuộc dự án gốc. |
| Workflow lockfile | Public preview 14 tháng 10; generally available 2026-10-28; chưa hỗ trợ trên GitHub Enterprise Server. |
Vì sao tin này đáng chú ý
SHA pinning đã tạo dựng uy tín nhờ vụ tj-actions/changed-files vào tháng 3-2025, khi các nhóm ghim SHA không bị ảnh hưởng dù tag bị chuyển hướng trên hơn 23,000 repository. Bài học của nguồn tin là ghim mã đảm bảo mã sẽ không thay đổi, nhưng không đảm bảo ai đã viết mã đó. Kẻ tấn công đã ngụy trang commit độc hại thành bản sửa tăng cường bảo mật, và commit tiếp theo cũng sẽ không tự thông báo về mình. Hội thảo sắp tới vì vậy vạch ranh giới rõ ràng giữa tính bất biến và nguồn gốc, thay vì xem ghim SHA là điểm kết thúc.
Việc cần làm ngay
Hội thảo “GitHub Actions Security Beyond SHA Pinning” do Erika Heidi, Staff Developer Relations Engineer tại Chainguard, dẫn dắt. Phiên này hướng tới kỹ sư platform và DevOps sở hữu CI/CD, nhóm AppSec và DevSecOps viết chính sách pipeline, cùng lãnh đạo bảo mật đã phê duyệt SHA pinning như việc đã xong.
- Đăng ký hội thảo: Chọn khung giờ phù hợp để tìm hiểu SHA pinning thực sự bảo vệ khỏi điều gì, và không bảo vệ khỏi điều gì.
- Kiểm tra lại việc thực thi ghim: Tìm hiểu việc thực thi ở cấp tổ chức thực sự xác minh điều gì, và sự tự tin sai lầm mà nó có thể tạo ra.
- Tìm hiểu commit giả mạo: Tìm hiểu cách các commit này hoạt động và vì sao mạng lưới repository của GitHub khiến chúng trở nên khả thi.
- Đối chiếu lộ trình và các cách khác: Phân biệt những gì lộ trình Actions của GitHub giải quyết và chưa giải quyết, kể cả danh mục action đã được kiểm chứng để đóng khoảng trống tin cậy.
Những điều nguồn chưa xác nhận
- Thời gian hội thảo: Nguồn tin không nêu ngày và giờ cụ thể, chỉ nói người đọc có thể chọn khung giờ phù hợp.
- Quy mô hai vụ việc: Nguồn tin không nêu số pipeline hoặc tổ chức bị ảnh hưởng trong vụ Trivy và issues-helper, cũng không nêu mã CVE hay điểm CVSS.
- Hỗ trợ lockfile: Nguồn tin không xác nhận GitHub Enterprise Server sẽ được hỗ trợ lockfile khi nào, cũng không nêu biện pháp khắc phục cụ thể ngoài hội thảo.
Nguồn: The Hacker News, 17-11-2026, chuyên mục Supply Chain Security / DevSecOps.
SHA pinning — pinning GitHub Actions to a specific commit — is regarded as a leading defence against software supply chain attacks, but attackers have found a way around it. In March 2026, the hackers who hijacked Trivy, a widely used open-source security scanner, planted malicious code that looked like it came from GitHub's official checkout tool and labelled it a security fix; teams pinned to it would have passed every check. In May, the same technique hit the popular actions-cool/issues-helper tool, stealing credentials from the pipelines that ran it.

Timeline
The sequence began with a compromise that once reinforced the reputation of SHA pinning, then moved to two cases showing that an impostor commit could bypass that protection. GitHub later moved workflow lockfiles from public preview to general availability.
- March 2025: The tj-actions/changed-files compromise repointed tags to a malicious commit across more than 23,000 repositories; teams that had pinned to SHAs were unaffected.
- March 2026: Attackers who hijacked Trivy planted malicious code disguised as GitHub's official checkout tool and labelled it a security fix.
- May: The same technique hit actions-cool/issues-helper, stealing credentials from the pipelines that ran it.
- October 14 – 2026-10-28: Workflow lockfiles entered public preview and then became generally available.
Mechanism
The trick works because GitHub lets copies of a project, called forks, share code with the original. An impostor commit can therefore be pinned without proving who wrote it. With agentic development pushing more code through CI than ever, each gap gets exercised more often and reviewed less closely.
- Authorship: A SHA doesn't tell you who wrote the commit. Any fork commit can be pinned.
- Project membership: Org-level enforcement checks that a reference is a 40-character SHA, not that the commit actually lives in the upstream project.
- Runtime: A Docker-based action pinned to a SHA can still build its image at runtime, pulling in dependencies that were never frozen.
GitHub now lets administrators enforce pinning as an organization-wide policy, and few security teams argue against it. Yet that enforcement does not answer the three questions above.
GitHub's Workflow Lockfiles
GitHub's 2026 Actions security roadmap, published March 26, put deterministic dependency locking front and center. Workflow lockfiles tie every run to recorded commits for actions and their transitive dependencies, even if a tag moves later.
Locked commits must exist on a branch of the source repository, which blunts fork-only impostors. But GitHub's own changelog is clear that locking "does not determine whether the dependency itself is safe"; commit authorship and runtime builds remain open, immutable releases only help when maintainers opt in, and lockfiles aren't currently supported on GitHub Enterprise Server.
Scope of Impact
The risk is concentrated in workflows that pull in third-party actions, because an impostor commit can be pinned and run while an ordinary SHA check does not detect it. The table below summarises the cases and limits stated in the source.
| Item | Detail |
|---|---|
| tj-actions/changed-files | March 2025; tags repointed to a malicious commit across more than 23,000 repositories. |
| Trivy | March 2026; malicious code disguised as GitHub's official checkout tool. |
| actions-cool/issues-helper | May; credentials stolen from the pipelines that ran it. |
| Org-level SHA check | Verifies only a 40-character SHA, not that the commit is in the upstream project. |
| Workflow lockfiles | Public preview October 14; generally available 2026-10-28; not supported on GitHub Enterprise Server. |
Why This Matters
Pinning earned its reputation in the tj-actions/changed-files case in March 2025, when teams pinned to SHAs were unaffected even as tags were repointed across more than 23,000 repositories. The lesson in the source is that pinning guarantees the code won't change, but not who wrote it. Attackers have already shown they can disguise a malicious commit as a hardening fix, and the next one won't announce itself either. The upcoming webinar therefore draws a hard line between immutability and provenance, rather than treating SHA pinning as the finish line.
What to Do Now
The webinar "GitHub Actions Security Beyond SHA Pinning" is led by Erika Heidi, Staff Developer Relations Engineer at Chainguard. It is for platform and DevOps engineers who own CI/CD, AppSec and DevSecOps teams writing pipeline policy, and security leaders who signed off on SHA pinning as "done."
- Register for the webinar: Pick the session time that works for you to learn what pinning actually protects you from, and what it doesn't.
- Re-check org-level pin enforcement: Learn what it actually verifies, and the false confidence it can create.
- Learn how impostor commits work: Learn why GitHub's repository network makes them possible.
- Compare the roadmap and other options: Learn what GitHub's Actions roadmap addresses and what it doesn't, including a curated catalog of vetted actions to close the trust gap.
What the source does not confirm
- Webinar time: The source does not give a specific date and time for the webinar, only that readers can pick a session time that works for them.
- Scale of the two cases: The source does not give the number of pipelines or organisations affected in the Trivy and issues-helper cases, and it gives no CVE identifier or CVSS score.
- Lockfile support: The source does not confirm when GitHub Enterprise Server will support lockfiles, and it gives no specific remediation beyond attending the webinar and learning other ways to close the trust gap.
Source: The Hacker News, 2026-11-17, Supply Chain Security / DevSecOps.
Nguồn tham chiếuSource: thehackernews.com


