TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

13 pointsby mgiladi3 months ago
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 months ago
&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>