Git Product home page Git Product logo

Comments (10)

dfaranha avatar dfaranha commented on August 16, 2024

Hi Oliver,

It's a relatively common problem with FlowTracker, and information flow analysis in general. We point it out in the original paper as an important limitation. I'm actually surprised that FlowTracker still works, given that is not maintained for several years!

The latter sounds like a bug. Do you have a minimal example to share?

PS: there are better tools these days that supersede FlowTracker. Have you tried them?

from flowtracker.

olivieradjonyo avatar olivieradjonyo commented on August 16, 2024

from flowtracker.

dfaranha avatar dfaranha commented on August 16, 2024

Hi Oliver,

Can you past the XML file too and command-line steps? I want to try reproducing the same thing you're seeing in your end.

This survey maps many other tools: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9833713

from flowtracker.

olivieradjonyo avatar olivieradjonyo commented on August 16, 2024

from flowtracker.

dfaranha avatar dfaranha commented on August 16, 2024

I think the XML is garbled because of the email interface, or at least I can't find it anywhere.

from flowtracker.

olivieradjonyo avatar olivieradjonyo commented on August 16, 2024

from flowtracker.

dfaranha avatar dfaranha commented on August 16, 2024

I'm sorry, but I need you to paste it in. I can't read attachments sent by e-mail through the GitHub interface.

from flowtracker.

dfaranha avatar dfaranha commented on August 16, 2024

I wrote a tentative XML file here and it looks like FlowTracker is heavily confused about the lines of code when trying to reconstruct the subgraphs. I don't remember this being much of an issue in the original paper, but that was several years ago. We used FlowTracker again with multiple implementations in this paper with code+results available at this repository.

I tried a few experiments to understand what FlowTracker is doing:

  • Adding the additional function to the XML file with public parameters had the same result as without the function, so I believe FlowTracker is not detecting false positives there, but just having trouble pointing out the leaky lines numbers.
  • Adding the additional function to the XML file with a private parameter increased the number of vulnerable subgraphs, which indicated that FlowTracker was now finding issues in the additional function as well, exactly as expected.
  • Marking the additional function as static reduced the confusion, both in terms of the generated subgraphs and lines of code.

From the above and the issue with false positives, I can say that a modern build of FlowTracker is more useful at plainly detecting the presence of leakage (or the lack thereof) than assisting the programmer with locating the exact sources. In any case, it's not software that is currently maintained and depends on very old LLVM, so better alternatives clearly exist.

You can also try to write to my co-author Fernando Quintao at [email protected] to inquire about follow-up work. I clearly remember him mentioning a reimplementation of FlowTracker in Java that perhaps is still maintained.

For reference, here is one of the XML files I used.

<functions>
    <sources>
        <function>
            <name>compConstant4</name>
            <return>false</return>
            <public>
                <parameter>in</parameter>
            </public>
            <secret>
                <parameter>pw</parameter>
            </secret>
        </function>
        <function>
            <name>addtional_function</name>
            <return>false</return>
            <public>
                <parameter>modDePass</parameter>
            </public>
            <secret>
                <parameter>password</parameter>
            </secret>
        </function>
    </sources>
</functions>

from flowtracker.

olivieradjonyo avatar olivieradjonyo commented on August 16, 2024

from flowtracker.

dfaranha avatar dfaranha commented on August 16, 2024

Thank you for the XML! I think my previous comment already gives as much information as I have about this issue. :)

from flowtracker.

Related Issues (1)

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.