HNHacker News
TopNewBestAskShowJobs

ashishb

1,088 karma · joined December 26, 2012

Software engineer & blogger - https://ashishb.net/about
submissionscomments
ashishb··on Microsoft turns to AWS as GitHub faces AI capacity crunch
I wonder what percentage of pull requests are cascading updates caused by dependabot and multiple code review bots reviewing those PRs.

My belief is it is likely 1% or more. And likely coming in as an avalanche.

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
Right now, not. Eventually, they will.

You can pass your favorite rootless Docker image using `--custom-docker-image` CLI parameter.

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
> I should be able to install this module in such a way where file operations and process operations are not available to it.

That's the definition of a sandbox, isn't it?

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
> The ability for npm to run scripts on any level should be removed.

Even Python has that ability now. Also, `npm run dev` is running the script with full disk access.

Heck, Vscode/Cursor will auto-execute code if you open a project. And this has been actively used in the wild https://ashishb.net/security/contagious-interview/

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
That's exactly what I started with. It gets unwieldy quickly enough as you need to mount a lot of directories that these you uses as cache.

So, amazing-sandbox at its core is nothing but a glorified docker command generator (in default mode).

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
I have some ideas around it. And indeed that's one likely direction of this project in the future.
ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
This has been responded to in the past by another HN poster: https://news.ycombinator.com/item?id=47612726

Furthermore, you can use native sandboxing on macOS if you prefer.

If neither looks serious to you, then please educate me on a better sandboxing approach.

ashishb··on Microsoft's open source tools were hacked to steal passwords of AI developers
Nobody should do 'npm install' or 'pip install' on their machine.

Using a proper sandboxing(https://github.com/ashishb/amazing-sandbox) regularly will drastically limit the blast radius of these attacks.

ashishb··on Config Files That Run Code: Supply Chain Security Blindspot
I have been targeted with this attack in the wild where '.vscode/tasks.json' had the auto-run code.

I smelled something fishy and never ran it though.

https://news.ycombinator.com/item?id=48127469

ashishb··on Cooldown Support for Ruby Bundler
> For dependabot it's as simple as > cooldown.default-days: 1

Most people stick to default of 0. In fact, I am realizing over time that it is best to make it 7-14 days.

ashishb··on Cooldown Support for Ruby Bundler
Hypothesis: a big accelerant of these rapid repository compromise (from Red hat to GitHub to Amazon to small startups) might be GitHub+dependabot automatic dependency updates.

So, just like COVID-19 used air travel, modern malware attacks are relying on GitHub+dependabot to speed up the spread.

Even for single page website built using Vue, I would get about 5 updates a week.

ashishb··on GitHub and the crime against software
And why didn't they chose self-hosted for git then?
ashishb··on GitHub and the crime against software
Simpler answer: TINA (there is no better alternative)
ashishb··on GitHub and the crime against software
> I'm thinking like "you had 200 GitHub stars before coming to us so we start you with 200 stars" as a migration process. maybe they wouldn't be as reputable but everyone knows it's gamed anyway, so why not?

And how will the project accumulate more?

> everyone knows it's gamed anyway, so why not?

Then why do they still have purchase value?

ashishb··on GitHub and the crime against software
> What stops a new platform from just mirroring GitHub stars on import or something, actually?

So, the source is still GitHub, right?

Which means I have to keep my FOSS project on GitHub to accumulate stars.

ashishb··on GitHub and the crime against software
Nginx was compelled to move to GitHub [1].

The fact that companies request you to star them on GitHub and the stars can be bought tells you that there is a value in these stars. [2]

Now, some astute reader, who thinks the $1 trillion global advertisement market does not influence them, will also claim that they don't care about GitHub stars.

Well, that's not how the world works.

Fake stars can propel a good project to great.

A lot of people will use GitHub stars as a currency to decide the importance of certain FOSS (or even open-core) projects.

The real lock-in is in GitHub stars [3].

1 - https://blog.nginx.org/blog/nginx-open-source-moves-to-githu...

2 - https://finance.biggo.com/podcast/1c9f14e134095b87

3 - https://ashishb.net/tech/github-stars/

ashishb··on We reduced a real Node.js production Docker image from 1.2GB to 78MB
Alpine is a bad idea for a non-trivial application written in Python, Node.js, or any other interpreted language.

Too many weird edge cases to deal with, especially related to Alpine using musl libc instead of glibc.

At best, your builds are slower.

At worst, certain code paths are broken.

ashishb··on GitHub confirms breach of 3,800 repos via malicious VSCode extension
Afaik, they eventually cleaned it up.

And it was each team owning multiple internal repos of their own deployments/libraries, and not, primarily, clones of public repos.

ashishb··on GitHub confirms breach of 3,800 repos via malicious VSCode extension
Uber had 8000 repos at one point with 2000 engineers - https://highscalability.com/lessons-learned-from-scaling-ube...
ashishb··on I was asked to install malware during a fake interview
Yeah. Real profile names.

Unlikely that those guys were real. And I did reach out to them for explanation. Only to be blocked by both!

ashishb··on I was asked to install malware during a fake interview
This is just a negative filter to see as a warning sign. It is like walking into a dark alley at night.

Nothing might happen but you should be on the alert.

ashishb··on I was asked to install malware during a fake interview
Those were real companies. The conversation started online and immediately moved in-person.

I was never asked to install anything. I was not even given code access (without NDA) and I did get paid with equity/money in cases there was a mutual match and we proceeded.

ashishb··on I was asked to install malware during a fake interview
Not for someone who get 10-20 such requests a year. None till date were such scams.
ashishb··on Postmortem: TanStack NPM supply-chain compromise
> Also, Docker is a huge binary, run as root, with lot of APIs and wide attack surface.

You can run it without root. And that's what you should do.

> No Wayland, DBus, Pipewire, proc, sys filtering.

Yeah, I don't need Wayland for CLI tools. For others, you get them inside Docker, isolated from the rest of the system. When I run `npm install`, I want isolation.

ashishb··on Postmortem: TanStack NPM supply-chain compromise
Then try https://github.com/ashishb/amazing-sandbox

I use it every day for CLI tools

> How would you sandbox an Electron app

I haven't figured that out yet

ashishb··on Postmortem: TanStack NPM supply-chain compromise
Always run third-party code (especially npm packages) inside a sandbox, take your pick: ai-jail, bubblewrap, seatbelt, or amazing-sandbox (the last one, I wrote for myself after trying all others).
ashishb··on If AI writes your code, why use Python?
> Ive used python at scale and its fine if you have reasonably good code hygiene.

True but that's the problem. Once you have a big enough team, it becomes an uphill battle to maintain that.

ashishb··on If AI writes your code, why use Python?
Indeed. Python is faster to write and harder to maintain over the long run.

The "faster to write" advantage becomes less relevant if most code is going to be auto-generated.

The "harder to maintain" might still remain more relevant.

ashishb··on If AI writes your code, why use Python?
Python is amazing for scripting.

Python is terrible for writing big systems.

Projects whose V1 is written in Go/Rust/C++ don't normally go out and re-write V2 in Python.

The reverse is really common.

Even many famous Python packages are now Python wrappers.

https://ashishb.net/programming/python-in-production/

ashishb··on The surprisingly complex journey to text-selectable client-side generated PDFs
I didn't qualify.

And the reason was that majority of backend engineers have never worked on frontend.

At almost all big companies, the team working on the frontend problem is relatively small +and that's how it should be).

> In my experience it's the NON software engineers who tend to underestimate the complexity

Yeah. That too as well.

← PreviousPage 2 of 18Next →