Skip to content
PRotect

PRotect

Secure your pull requests

Created on 2nd March 2025

•

PRotect

PRotect

Secure your pull requests

The problem PRotect solves

Pull requests (PRs) can be used by attackers to introduce malicious code, potentially compromising the maintainer's system. Traditional security tools may not detect such threats effectively, leaving repositories vulnerable.

Our solution tackles this issue by:
✅ Detecting malicious code in PRs – Using AI-based analysis, we identify potential threats before they get merged.
✅ Providing a security score – Maintainers receive a risk assessment score, helping them make informed decisions about whether to merge or reject a PR.
✅ Automating security actions – A GitHub bot automatically closes high-risk PRs, preventing frequent attacks and reducing manual effort.

This approach enhances repository security, prevents supply chain attacks, and ensures only safe code gets merged.

Challenges we ran into

During the development of this project, we encountered several key challenges:

Poor Detection by Rule-Based SAST Tools – Traditional static analysis tools relied on predefined rules, which often failed to detect complex vulnerabilities or new attack patterns. This led to a high false positive/negative rate, making it difficult to trust the results.
Need for Multiple Tools – Different types of malicious code required different security tools, leading to inefficiencies in analysis and integration. Managing multiple tools increased complexity and slowed down the detection process.
To address these challenges, we integrated AI-based detection models, which significantly improved accuracy. Unlike rule-based methods, AI leveraged vast training data and deep code understanding to detect vulnerabilities more effectively. This not only enhanced threat detection but also streamlined the security analysis process.

Discussion

Builders also viewed

See more projects on Devfolio