logoalt Hacker News

WesolyKubeczek • yesterday at 4:35 PM • 2 replies • view on HN

What if I plant a hook on the engineer’s laptop that will slightly modify their commits in such a way that eventually I smuggle malicious code over? First, exfiltrate the code over to me, learn from previous commits, start poisoning. Stamped by the CI, no less. In the days of slop PRs thousands of lines each shouldn’t be even too hard.

The point is that at some point you do need to open the door and let the code in.


Replies

zaphirplane • yesterday at 9:06 PM

Wouldn’t most companies worth exploiting run some static analysis in the ci cd

stickfigure • yesterday at 5:35 PM

The company should require both automated and human review of PRs. Mine does.

➕ show 3 replies