Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Security and the well constructed Qt plugin

Security and the well constructed Qt plugin

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jsprenkle
    wrote on last edited by
    #1

    I'm building an application using plugins. I believe you could build a malicious plugin, copy it into the correct directory, and my main program would happily run it. I'd like the main program to be smart enough to detect unauthorized plugins and reject them. An encrypted signature and a hash on the binary content of each plugin would work well. Has anyone done anything toward this goal? Or a cross platform library for generating signatures for shared libraries?

    I'm aware of how windows does signs executables. Linux not so much. I don't need Mac compatibility.

    Thanks for your time!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      veeeee_d
      wrote on last edited by
      #2

      Ultimately, there is no way you can stop someone from loading a custom plugin. Even using an encrypted, hashed, hidden and topped key, one could simply find the key and copy it. I wouldn't worry a lot about those things if I were you.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jsprenkle
        wrote on last edited by
        #3

        If a decent cryptographic signature is used "finding the key" would require more time that it would be worth for an attacker. This is how all modern security works. Throwing up my hands and saying it's not possible so why bother isn't a useful answer.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          veeeee_d
          wrote on last edited by
          #4

          I've been a game developer for some time now, so I like to think my opinion when it comes to people interfering in my program is somewhat valuable. But, if you think that way, let someone else answer you.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jsprenkle
            wrote on last edited by
            #5

            Thanks for helping.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved