Giter Site home page Giter Site logo

Comments (2)

nolze avatar nolze commented on May 22, 2024

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.

nolze avatar nolze commented on May 22, 2024

See also @deeso's comment in #18.

from msoffcrypto-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.