TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I built a PR listener and ruleset to detect malicious code in CI/CD

13 点作者 mgiladi3 个月前
I built a GitHub app that detects it in pull requests, notifies or blocks them. Alongside it, I published a Semgrep ruleset for any stage of the CI&#x2F;CD.<p>I started this after getting frustrated by all the FUD around malicious code - lots of noise, little effort to solve it. Having said that, it&#x27;s still a major attack vector - a stored RCE, with the codebase itself as the sink.<p>Feedback is appreciated.<p>The app, PRevent - <a href="https:&#x2F;&#x2F;github.com&#x2F;apiiro&#x2F;PRevent">https:&#x2F;&#x2F;github.com&#x2F;apiiro&#x2F;PRevent</a><p>The ruleset: <a href="https:&#x2F;&#x2F;github.com&#x2F;apiiro&#x2F;malicious-code-ruleset">https:&#x2F;&#x2F;github.com&#x2F;apiiro&#x2F;malicious-code-ruleset</a><p>The research: <a href="https:&#x2F;&#x2F;apiiro.com&#x2F;blog&#x2F;guard-your-codebase-practical-steps-and-tools-to-prevent-malicious-code&#x2F;" rel="nofollow">https:&#x2F;&#x2F;apiiro.com&#x2F;blog&#x2F;guard-your-codebase-practical-steps-...</a>

1 comment

varsock3 个月前
&gt; getting frustrated by all the FUD around malicious code - lots of noise, little effort to solve it<p>You should be worried about your logs too :) Dare you to `sudo cat logs.txt`<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=3T2Al3jdY38" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=3T2Al3jdY38</a>