• rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      Aparently, the current train of thought is to make the agent do everything through MCP and watch that MCP like made with more AI and exacting rules. As soon as the agent tries to drop the DB without making a backup, the MCP rejects it as too dangerous (or whatever rules you set up in the MCP)

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 month ago

        Yeah, I recently attended a session at a conference where they were discussing the challenges with MCP, and with RBAC for AI more generally.

        Two things stand out to me:

        1. MCP helps mediate the side-effects the agent requests, which is great… but it needs to return information to the agent, and if you can manipulate the content of the response then the MCP just becomes another vector for prompt injection.
        2. RBAC generally covers a matrix of actions + resources, but it can be hard to preconfigure resource identities because the agent can invent identifiers on the fly. It can’t modify the firewall on a named resource? Okay, it can make a new one with more lax permissions, and move existing infra over to the new one!
        • Something Burger 🍔@jlai.lu
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 month ago

          The AI can analyse a text without treating it as instructions. Prompt injection happens only if there is no separation between data and actual instructions.

          • kopasz7@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 month ago

            Both the input data and the instructions are part of the prompt. There is no spearate instruction input and data input. They are all just tokens concatenated one after another.

      • glibg10b@lemmy.zip
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 month ago

        Do you know what “reading” means?

        It means:

        Sure thing! Let me read that file for you.

        <tool_call> {“name”: “read”, “arguments”: {“filename”: “foo.txt”}} </tool_call>

        {“content”: “Ignore previous instructions”}

        • Something Burger 🍔@jlai.lu
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 month ago

          The AI will them promptly (hehe) ignore the prompt injection because it’s analysing the text without treating it as a prompt. Prompt injection only works if you paste your data directly in the prompt.