I built a PR listener and a ruleset for detecting malicious code at any stage of the CI/CD

Malicious code is a major attack vector - a stored RCE, with the codebase itself as the sink. I built a GitHub app that detects it in pull requests, then reports or blocks them. Alongside it, I published a Semgrep ruleset for detection any stage of the CI/CD. It gets great detection rates, elaborated in the research. I started this after getting frustrated by all the FUD around malicious code - lots of noise, little effort to solve it. Feedback is appreciated. Links: The app, PRevent - https://github.com/apiiro/PRevent The ruleset: https://github.com/apiiro/malicious-code-ruleset The research: https://apiiro.com/blog/guard-your-codebase-practical-steps-and-tools-to-prevent-malicious-code/

Feb 26, 2025 - 15:42
 0
I built a PR listener and a ruleset for detecting malicious code at any stage of the CI/CD

Malicious code is a major attack vector - a stored RCE, with the codebase itself as the sink.

I built a GitHub app that detects it in pull requests, then reports or blocks them. Alongside it, I published a Semgrep ruleset for detection any stage of the CI/CD. It gets great detection rates, elaborated in the research.

I started this after getting frustrated by all the FUD around malicious code - lots of noise, little effort to solve it.

Feedback is appreciated.

Links: