mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Keep track of amount of malware packages blocked
This commit is contained in:
parent
f4694ba119
commit
1f570a9f39
5 changed files with 65 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ function buildPipInterceptor(registry) {
|
|||
registry
|
||||
);
|
||||
if (await isMalwarePackage(packageName, version)) {
|
||||
req.blockRequest(403, "Forbidden - blocked by safe-chain");
|
||||
req.blockMalware(packageName, version, req.targetUrl);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue