Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clam 2585 ole check encrypted 2 #1279

Closed

Conversation

ragusaa
Copy link
Contributor

@ragusaa ragusaa commented Jun 6, 2024

No description provided.

@ragusaa ragusaa force-pushed the CLAM-2585-OleCheckEncrypted_2 branch 2 times, most recently from 138933d to 98048a5 Compare June 6, 2024 16:19
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
unit_tests/clamscan/ole2_encryption_test.py Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
unit_tests/clamscan/ole2_encryption_test.py Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
libclamav/ole2_extract.c Outdated Show resolved Hide resolved
@ragusaa ragusaa force-pushed the CLAM-2585-OleCheckEncrypted_2 branch 6 times, most recently from af238ee to 74de119 Compare June 17, 2024 15:46
ragusaa and others added 6 commits June 17, 2024 08:52
Add keys to the metadata.json file that informs the user that a scanned
ole2 file is encrypted.  Information about the type of encryption is
provided when the information is available.
Signed-off-by: Andy Ragusa <[email protected]>
Co-authored-by: Micah Snyder <[email protected]>
Signed-off-by: Andy Ragusa <[email protected]>
Signed-off-by: Andy Ragusa <[email protected]>
@ragusaa ragusaa force-pushed the CLAM-2585-OleCheckEncrypted_2 branch from 74de119 to 8c89b60 Compare June 17, 2024 16:07
Comment on lines 619 to 639
/*
* File Information Block Base.
* Naming is consistent with
* https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-doc/26fb6c06-4e5c-4778-ab4e-edbf26a545bb
* */
typedef struct fib_base_type {
uint16_t wIdent __attribute__((packed));
uint16_t nFib;
uint16_t unused;
uint16_t lid;
uint16_t pnNext;
uint16_t ABCDEFGHIJKLM;
uint16_t nFibBack;
uint32_t lKey;
uint8_t envr;
uint8_t NOPQRS;
uint16_t reserved3;
uint16_t reserved4;
uint32_t reserved5;
uint32_t reserved6;
} fib_base_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this struct should be packed with the three different ways.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, done

@ragusaa ragusaa force-pushed the CLAM-2585-OleCheckEncrypted_2 branch from d76ebf2 to 8c89b60 Compare June 27, 2024 19:55
@ragusaa ragusaa force-pushed the CLAM-2585-OleCheckEncrypted_2 branch from c91d9e9 to 97f5044 Compare June 27, 2024 20:12
@ragusaa
Copy link
Contributor Author

ragusaa commented Jun 28, 2024

This PR is replaced with #1295

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.

None yet

2 participants