Giter Club home page Giter Club logo

Comments (7)

mistydemeo avatar mistydemeo commented on July 29, 2024

I've fixed the regex generation in #59, however this doesn't fix the misidentification (which I am also seeing in some Office files). I can identify the same files using Siegfried correctly, so I believe the problem is in FIDO and not the signature files.

from fido.

mistydemeo avatar mistydemeo commented on July 29, 2024

DROID also returns a correct match using up-to-date container signatures.

from fido.

mistydemeo avatar mistydemeo commented on July 29, 2024

Deleted my previous comment, which was incorrect.

In my case, I believe the matching signature is this one:

        <ContainerSignature Id="2030" ContainerType="ZIP">
            <Description>Microsoft Excel OOXML</Description>
            <Files>
                <File>
                    <Path>[Content_Types].xml</Path>
                    <BinarySignatures>
                        <InternalSignatureCollection>
                            <InternalSignature ID="317">
                                <ByteSequence Reference="BOFoffset">
                                    <SubSequence Position="1" SubSeqMinOffset="0" SubSeqMaxOffset="32768">
                                        <Sequence>'ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"'</Sequence>
                                    </SubSequence>
                                </ByteSequence>
                            </InternalSignature>
                        </InternalSignatureCollection>
                    </BinarySignatures>
                </File>
            </Files>
        </ContainerSignature> 

FIDO produces the following regex from that signature:

(?s)ContentType="application/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet\.main\+xml"

Which is a valid regex which should match the file in question.

from fido.

mistydemeo avatar mistydemeo commented on July 29, 2024

Oh, I think I see what's going on. FIDO doesn't appear to do special handling of ZIP containers, e.g. it doesn't decompress them before attempting to read their contents, which means it can't match the plaintext sequences in the container signatures.

from fido.

mistydemeo avatar mistydemeo commented on July 29, 2024

I've added support for ZIP containers; there's a pull request open, #60.

from fido.

Hwesta avatar Hwesta commented on July 29, 2024

@florianajir Misty's PR #60 was merged and is part of 1.3.4 - are you still seeing this issue?

from fido.

florianajir avatar florianajir commented on July 29, 2024

All right I close the issue, thanks

from fido.

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.