... | ... |
@@ -2457,6 +2457,12 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset) |
2457 | 2457 |
} |
2458 | 2458 |
|
2459 | 2459 |
pdf_parseobj(&pdf, obj); |
2460 |
+ if (SCAN_ALGO && obj->numfilters > PDF_FILTER_DTRIGGER) { |
|
2461 |
+ cli_append_virus(ctx, "Heuristic.PDF.TooManyFilters"); |
|
2462 |
+ alerts++; |
|
2463 |
+ if (!SCAN_ALL) |
|
2464 |
+ rc = CL_VIRUS; |
|
2465 |
+ } |
|
2460 | 2466 |
} |
2461 | 2467 |
|
2462 | 2468 |
pdf_handle_enc(&pdf); |