News for hackers. Stuff that matters.
Re:How I gained commit access to Homebrew in 30 minutes by raesene9 on Tuesday August 07, 2018 @11:06AM (#17707260)
This is an interesting example of a long-standing problem which is that in general we make use of huge amounts of software and trust our security with it, whilst knowing very little about the security practices of the people developing it.

The article makes a good point that it's very hard for small projects, like the team running Homebrew, to fund their security, yet they are likely to be a target for quite high end attackers, given the access that can be gained by getting unauthorised access to package repositories.

As a side note it also shows that Jenkins tends to be a tempting target for attackers as it often has access to a wide range of systems to carry out it's functions.

Re:How I gained commit access to Homebrew in 30 minutes by mikemcquaid on Tuesday August 07, 2018 @01:20PM (#17708548)
> As a side note it also shows that Jenkins tends to be a tempting target for attackers as it often has access to a wide range of systems to carry out it's functions.

This. I'd really love to stop us using Jenkins but none of the hosted macOS CI services scale to meet our needs (i.e. having jobs that run for multiple hours on better hardware). The ideal solution for me would be for us to have some sort of modified Travis or Circle CI setup. We can even pay for it now we've got Patreon money coming in.

Re:How I gained commit access to Homebrew in 30 minutes by alien_ on Tuesday August 07, 2018 @03:04PM (#17709561)
Jenkins is not the problem, we have quite a few secured instances which wouldn't leak secrets like this, or at least not to non-admin or unauthenticated users.

It's just often misconfigured because there are a plethora of plugins and ways to store and use secrets, and nobody audits it enough to look at the console output or build artifacts for leaked secrets.

The project is simply missing someone familiar enough to configure Jenkins properly.

Re:How I gained commit access to Homebrew in 30 minutes by mmt on Tuesday August 07, 2018 @04:25PM (#17710401)
> The project is simply missing someone familiar enough to configure Jenkins properly.

I would say that this is a specific case of the far more general one. Substitute "any small organization" for "the project" and substitute any configuration familiarity (i.e. Ops skill) for Jenkins configuration familiarity.

Even in "Devops" job postings for startups, when mentioning CI/CD tools like Jenkins, the main desire seems to be to hire someone who's more Dev than Ops, to create the code to run the CI/CD pipeline, with something like configuration or security a mere afterthough, if that.

Re:How I gained commit access to Homebrew in 30 minutes by clarkdave on Tuesday August 07, 2018 @01:34PM (#17708698)
Have you looked at Buildkite[0]? The management/pipeline part is hosted (like Travis), but you run the build agents on your own infrastructure (they run on pretty much everything, including macs).

Not affiliated, just a happy user.

[0] http://buildkite.com

Re:How I gained commit access to Homebrew in 30 minutes by mikemcquaid on Tuesday August 07, 2018 @02:43PM (#17709370)
This looks really interesting, will take a look, thanks.
Re:How I gained commit access to Homebrew in 30 minutes by joncampbelldev on Wednesday August 08, 2018 @03:23AM (#17713830)
I can confirm that buildkite is a fantastic replacement for jenkins.

- pipelines stored in source control

- hosted on your own servers (with easy one click setup in AWS if you're too busy for all that)

- excellent cloud hosted UI

Also not affliated, just a happy user who replaced a large jenkins setup where I work with buildkite.

Re:How I gained commit access to Homebrew in 30 minutes by peterwwillis on Tuesday August 07, 2018 @08:20PM (#17712160)
Why not use that Patreon money to pay someone to set up Jenkins for you the right way?
Re:How I gained commit access to Homebrew in 30 minutes by snowwolf on Wednesday August 08, 2018 @03:23PM (#17718657)
Yeah. Let’s just blow the entire months budget on a single day of consulting. And I’m sure one day is all they would need to understand the workflow requirements of the team, implement and configure it and test it. That seems reasonable.
Re:How I gained commit access to Homebrew in 30 minutes by sonofblah on Tuesday August 07, 2018 @01:30PM (#17708660)
How many billions or trillions of market value are built upon foundational technology like this, while the maintainers have to go begging for funds not for themselves, but for the good of the project(s)?
Re:How I gained commit access to Homebrew in 30 minutes by ejholmes on Tuesday August 07, 2018 @01:35PM (#17708705)
It’s a pretty unfortunate state of affairs. Google/Microsoft/Amazon should be throwing money at these projects. It’s in their best interest if they use it.
Re:How I gained commit access to Homebrew in 30 minutes by kakwa_ on Tuesday August 07, 2018 @02:44PM (#17709375)
I would love if the following existed:

A policy in tech companies to grant a given amount (let say 50$) per month to each employee, the employee can attribute this amount to whichever OSS project(s) he sees fit.

If the employee doesn't chose a project, this amount is given to OSS projects in need.

To streamline this, the ideal would be to have a service where everything could be done:

* OSS projects register to it

* Tech Companies then give the money to the service, which then dispatch it to the OSS projects

* Employees of tech companies logs into the service to select which projects they chose to give money to (with maybe some suggestion to avoid over/under funding projects).

Re:How I gained commit access to Homebrew in 30 minutes by majewsky on Tuesday August 07, 2018 @06:43PM (#17711571)
> to grant a given amount (let say 50$) per month to each employee

Let's make that amount dependent on the employee's salary. Not 50$ per employee per month, but e.g. salary for 1 hour per employee per month. Salaries vary a lot between countries (and even within countries).

Re:How I gained commit access to Homebrew in 30 minutes by saagarjha on Tuesday August 07, 2018 @04:47PM (#17710645)
Or pay employees to work in open source?
Re:How I gained commit access to Homebrew in 30 minutes by alien_ on Tuesday August 07, 2018 @03:32PM (#17709812)
This is happening all over the industry, pretty much all companies just make use of open source software without giving a penny to the thousands of projects they leverage on a daily basis to make profit or even keep the lights on.

As someone who runs a small open source project that clearly states that Patreon donations are accepted and even offers some convenience benefits to donors, I often see people jumping extra hoops to avoid it, including clearly profitable companies that saved many thousands by using my software, spending extra time that would amount to more than those donations. So far I get donations from less than one percent of my estimated users.

Re:How I gained commit access to Homebrew in 30 minutes by collingreene on Tuesday August 07, 2018 @06:09PM (#17711326)
This exists, https://internetbugbounty.org/

Facebook, microsoft, github, etc all pay $$ and our time into a pool that is used to incentivize the finding, vetting and fixing of security flaws in major software running the internet.

Re:How I gained commit access to Homebrew in 30 minutes by bdhess on Tuesday August 07, 2018 @05:48PM (#17711161)
Downloading binaries from the public internet and executing them on corporate machines is likely prohibited at all three of those companies.
Re:How I gained commit access to Homebrew in 30 minutes by majewsky on Tuesday August 07, 2018 @06:44PM (#17711582)
I don't think any of them would mandate NoScript. ;)
Re:How I gained commit access to Homebrew in 30 minutes by bdhess on Tuesday August 07, 2018 @08:56PM (#17712327)
Executing in OS userspace, for the pedants out there. ;)

PS: are EcmaScript binaries actually a thing?

Re:How I gained commit access to Homebrew in 30 minutes by raesene9 on Tuesday August 07, 2018 @01:44PM (#17708781)
Absolutely, it's a source of constant surprise to me that basically every large company (and likely Public sector body) is making heavy use of Open source code and few are meaningfully investing in the security of it.
Re:How I gained commit access to Homebrew in 30 minutes by wool_gather on Tuesday August 07, 2018 @08:37PM (#17712229)
The people who make the decisions about where the monies go aren't the people who understand this. Some decide that it is a "calculated risk"; some are just short-sighted "it can't happen to me"; some are penny-pinchers, and the ${CURRENCY} amount is all they see.
Re:How I gained commit access to Homebrew in 30 minutes by bigiain on Tuesday August 07, 2018 @09:59PM (#17712624)
It happens way more often that most people expect.

https://www.propublica.org/article/the-worlds-email-encrypti...

for example (at least that one has a happy ending - where after the right exposure a bunch of companies benefiting from his work stepped in to fund it...)

Re:How I gained commit access to Homebrew in 30 minutes by justicz on Tuesday August 07, 2018 @03:11PM (#17709633)
> The article makes a good point that it's very hard for small projects, like the team running Homebrew, to fund their security, yet they are likely to be a target for quite high end attackers, given the access that can be gained by getting unauthorised access to package repositories.

I know this is kind of a shameless plug, but this is the exact reason I launched BountyGraph [0] last week. I think that we can crowdfund security budgets for these projects to help encourage the discovery of issues like this one.

[0] https://bountygraph.com/

Re:How I gained commit access to Homebrew in 30 minutes by janwh on Tuesday August 07, 2018 @01:27PM (#17708623)
> (...) very hard for small projects, like the team running Homebrew, to fund their security, yet they are likely to be a target for quite high end attackers, (...)

I disagree. Homebrew’s security considerations in this case have nothing to do with their funding. There are lot of terrific services available for next to nothing for open source projects, Jenkins is one of them. It must have been a conscious decision the way HB set up their CI, unaffected by funding.

And such lapses are not an open door jyst to “high end attackers”. This was a single person with just internet access and a little knowledge about how modern OSS projects work.

Re:How I gained commit access to Homebrew in 30 minutes by falcolas on Tuesday August 07, 2018 @04:02PM (#17710157)
When time and money is limited, new features will always win both time and money, until something goes wrong. At that point where it's gone wrong, people will step in and lament "why didn't you just do X" for a few days, before they go back to wanting more features.

The cost of good security is high - audits, slowed down development, limited data retention, higher compute costs... and the return on that investment is only ever going to be a reduction of liability.

Big company with lots of resources, small company with no resources; it doesn't matter. Security is a cost center, and will only ever get a token amount of resources until the costs of doing nothing outweigh the costs of doing something.

Re:How I gained commit access to Homebrew in 30 minutes by mhneu on Tuesday August 07, 2018 @09:06PM (#17712369)
All three responses 'time is money'.

Yes, security is a cost. There's a bit of tragedy of the commons effect here - many of the downsides are pushed onto others. I like Doctorow's general take on socializing costs of privacy and security breaches while privatizing profit: https://locusmag.com/2018/07/cory-doctorow-zucks-empire-of-o...

Re:How I gained commit access to Homebrew in 30 minutes by raesene9 on Tuesday August 07, 2018 @01:46PM (#17708804)
If they had better funding they could have afforded 3rd party security reviews, which (if done competently) would have flagged this issue.

If they had better funding they could have hired dedicated security staff, who would likely be versed in the ways of securing DevOps pipelines.

Time is money, more funding == more resources to look at security properly.

Re:How I gained commit access to Homebrew in 30 minutes by mhneu on Tuesday August 07, 2018 @01:47PM (#17708807)
Time is money. Takes work to set up. Resources are being directed at development.