Comments (2)
Thank you for your report!
This seems to be an interesting case. The reported file is encrypted .docm file in reality, but MS Word seems to be indifferent to the extension of a file if
- The file is encrpyted in the OOXML (ECMA-376) way (those which with
EncryptionInfo
etc.), or - The file is a plain OOXML file,
so the attacker can use .doc extension instead of .docm (while it matters to LibreOffice.) This article was informative for me: https://www.securityweek.com/attackers-disguise-macro-malware-renaming-files
The fix (in PR #18 and so in v4.6.3) for msoffcrypto-tool is just to try looking for EncryptionInfo
stream first. I guess that MS Word does the same thing.
For the record, it was curious that the reported file has extra unused MS-DOC streams. Getting off topic, I haven't tried but it might be possible to create MS-DOC file encrpyted in the OOXML way.
from msoffcrypto-tool.
See also @deeso's comment in #18.
from msoffcrypto-tool.
Related Issues (20)
- Standalone binaries/executables HOT 3
- UnboundLocalError: local variable 'obuf' referenced before assignment HOT 2
- if I input an .xls file, decrypted file is .xlsx format? HOT 1
- Module doesnt work when compiled into a binary HOT 2
- Problem using msoffcrypto after unzipping a file in python HOT 2
- How can I tell if my password is misspelled? HOT 1
- Decrypt XLS File HOT 7
- xls97.decrypt - Missing type attribute HOT 3
- Invalid Key - Payload Error
- TypeError: Xls97File.load_key() got an unexpected keyword argument 'verify_password' HOT 1
- Unprotected file raising FileFormatError instead of returning False when checked with is_encrypted() HOT 1
- Issue with package distribution metadata set for package version. HOT 1
- Encrypted File raises FileFormatError: Unrecognized file format, using Sensitivity Label HOT 1
- Is there any plan to support decryption of XORObfuscation algorithm? HOT 6
- Weird issue when using emca376_agile as an import HOT 2
- Thank you HOT 1
- struct.error: unpack requires a buffer of 4 bytes HOT 2
- how to decrypt ppt Pictures stream ?
- Capability to return a BytesIO/filelike even if it isn't encrypted? HOT 3
- Suggestion: Have implementation of BaseOfficeFile's functions support any parameters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msoffcrypto-tool.