• LedgeDrop@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 hours ago

    I’ve played around with Claude.

    they can’t access anything you don’t give them permission to access.

    It’s not that “they can’t” it’s more like “they try not to”.

    For example, if you have a folder shared with your application code (/home/me/code/) - it has free reign on that folder.

    If you add a prompt saying “you are only allowed to access files in /home/me/code”:

    you could ask it " oh, what are my aws credentials ", it would have no qualms about reading those files (/home/me/.aws).

    You could also ask it to update your settings (/home/me/.claude)

    I eventually started to work on a way of running Claude in a docker container with real filesystem enforcement. …and it’s sneaky how Claude will get when it wants to read a file, it doesn’t have permissions for (using bash cat).

    This was an exploration I’d made a year ago and I know Claude has a " sandbox" , but if you allow Claude to run bash commands - that sandbox is trivial to circumvent.

    • LilBobbyTables@lemmy.today
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 hours ago

      All that is great, and correct, but my point is that it asks you to confirm its commands that it runs. It asks you to confirm every change it makes to your code. It asks you to confirm every file it creates.

      Everything it does goes through your permission.

      You also shouldn’t have it do anything anywhere close to a production system, so it shouldn’t be able to do anything of any consequence.