GitHub Actions is a popular CI/CD platform that lets maintainers build workflows from reusable third-party actions, organized into jobs of sequential steps. To control access to repository resources, GitHub enforces token permissions only at the job level. This violates the principle of least privilege: every step shares the job's full permissions, so a single compromised action can misuse all of them, as witnessed by the recent tj-actions compromise, enabling broader software supply chain attacks. We present Granite, the first system to enforce fine-grained, step-level permissions for GitHub Actions at runtime. Untrusted steps never hold the real token; a separate controller issues each step an identifier token and supplies the real token only to requests that meet the step's policy. Granite builds on GitHub's self-hosted runner, requires no workflow changes, and transparently handles JavaScript, composite, and Docker actions. Across 500 workflows (12,915 jobs) from the most-starred GitHub repositories, 46.3% of jobs are overprivileged and can be protected by Granite. On 46 repositories and 127 unique actions, Granite preserves the behavior of every job that runs on the unmodified runner, except one it blocks by design. Reproducing 10 permission-misuse attacks over 42 overprivileged jobs, including attempts to bypass its enforcement, Granite prevents all of them and removes write access from about 83.3% of the steps that hold it under GitHub's current model. Its average per-step overhead is 7.9%, making Granite a practical and effective tool to reduce the attack surface in CI/CD pipelines.


翻译:暂无翻译

0
下载
关闭预览

相关内容

GitHub.com 使用 Git 作为版本控制系统(version control system)提供在线源码托管的服务,同时是个有社交功能的开发者社区。 国外类似服务: Bitbucket.com
Gitlab.com
国内类似服务:
Coding.net
【新书】GitHub操作实战,257页pdf
专知会员服务
55+阅读 · 2024年10月25日
AutoGPT太火了,无需人类插手自主完成任务,GitHub2.7万星
专知会员服务
44+阅读 · 2023年4月14日
Google-EfficientNet v2来了!更快,更小,更强!
专知会员服务
19+阅读 · 2021年4月4日
TensorFlowLite:端侧机器学习框架
专知会员服务
34+阅读 · 2020年8月27日
TensorFlow Lite指南实战《TensorFlow Lite A primer》,附48页PPT
专知会员服务
70+阅读 · 2020年1月17日
TensorFlow 2.0 学习资源汇总
专知会员服务
67+阅读 · 2019年10月9日
八个不容错过的 GitHub Copilot 功能!
CSDN
11+阅读 · 2022年9月22日
超级盘点 | Github年终各大排行榜(内附开源项目学习资源)
七月在线实验室
19+阅读 · 2018年12月19日
GitHub获赞过千:PyTorch 自然语言处理项目Top 5
新智元
12+阅读 · 2018年7月10日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
16+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
12+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
7+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
11+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
9+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
18+阅读 · 11月25日
相关VIP内容
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员