Skip to content

When loading a CVD, skip .info file DSIG check if used .sign file - #1558

Closed
val-ms wants to merge 1 commit into
Cisco-Talos:mainfrom
val-ms:CLAM-2851-cvd-dont-verify-info-DSIG-if-ext-signed
Closed

When loading a CVD, skip .info file DSIG check if used .sign file#1558
val-ms wants to merge 1 commit into
Cisco-Talos:mainfrom
val-ms:CLAM-2851-cvd-dont-verify-info-DSIG-if-ext-signed

Conversation

@val-ms

@val-ms val-ms commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

If a CVD was verified using a .sign file, there's no need to verify the legacy SHA2-256-based RSA DSIG when loading the .info file.

In this commit, I've reused the old CL_DB_ENHANCED flag to indicate if a CVD was verified using the .sign file. This differentiates from using the CL_DB_SIGNED flag, which is used for the weaker MD5-based RSA DSIG that would be found within a CVD header.

This gets ClamAV away from requiring the legacy CVD DSIG capability so that in the future we might publish CVD's which only have the more modern external .sign digital signatures.

CLAM-2851

If a CVD was verified using a `.sign` file, there's no need to verify the
legacy SHA2-256-based RSA DSIG when loading the `.info` file.

In this commit, I've reused the old `CL_DB_ENHANCED` flag to indicate if
a CVD was verified using the `.sign` file. This differentiates from
using the `CL_DB_SIGNED` flag, which is used for the weaker MD5-based
RSA DSIG that would be found within a CVD header.

This gets ClamAV away from requiring the legacy CVD DSIG capability so
that in the future we might publish CVD's which *only* have the more
modern external `.sign` digital signatures.

CLAM-2851
@val-ms
val-ms requested a review from tj-cisco August 22, 2025 15:10
@val-ms

val-ms commented Aug 22, 2025

Copy link
Copy Markdown
Contributor Author

Augh realized a mistake. Will close and revisit.

@val-ms val-ms closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant