News for hackers. Stuff that matters.
Re:GitHub Actions limitations and gotchas by lmeyerov on Wednesday September 08, 2021 @06:49PM (#28464036)
Ah this is a good step. I hadn't looked since the env var vulns earlier in the ~year. Add in GH runner domain/vpc safelisting and a lot of the basics get solved!
Re:GitHub Actions limitations and gotchas by jeremyepling on Wednesday September 08, 2021 @10:04PM (#28465383)
Re:GitHub Actions limitations and gotchas by lmeyerov on Wednesday September 08, 2021 @10:35PM (#28465575)
the first commenter was right on the env thing helping with ci/cd secret isolation

the open issue is that GHA env is vulnerable to typical npm/pip/conda/etc supply chain attacks. it lets them do funny network requests (both data exfil + integrity, and even quota wastage / DoS):

- GitHub hosted runners should allow inbound/outbound domain safelists, full isolation w internal repo safelisting, or something else like it

- and/or self-hosted runners should have an Azure serverless mode where the host owner can do their own presets. less good b/c trickier to maintain typical safelists

currently , GHA is default-allow for supply chain attacks =\

in theory folks can try docker-in-docker to limit network access, or the equiv lower, and layer on internal repos to prevent 0-days, but this gets gnarly quickly and more sanely handled by the managed CI env we are all paying for