The Register Home Page

back to article Anthropic now lets Claude users jump out of plane without parachute

Anthropic, prone to pronouncements about model safety, has given developers using Claude Code the opportunity to throw its guardrails out the window. The company's latest Claude Code build (v2.1.311) supports an environmental variable designed to allow the AI agent to run the rm command, which deletes files, without asking for …

  1. Pen-y-gors

    Me no savvy ai

    But, would the command rm -ai do what I hope it would ?

    1. Eric 9001 Bronze badge
      Headmaster

      Re: Me no savvy ai

      LLM's aren't even AI.

      Checking, GNU rm doesn't have the -a flag (although -i is for interactive deletion).

      Why not make the -a flag do something meaningful and then submit the patch?

  2. Rich 11
    Terminator

    Fear and loathing

    When Anthropic said that they thought AI could present an existential risk to humanity, I didn't think that they were actively working on increasing that percentage.

    1. Anonymous Coward
      Anonymous Coward

      Re: Fear and loathing

      Surely its their employees, not their AI that is the bigger problem.

    2. Anonymous Coward
      Anonymous Coward

      Re: Fear and loathing

      Does ‘fun fact’ still allow it to try and escape containment or perhaps download a pile of shite from a compromised repository polluting your shared company one?

      "Fun fact: --dangerously-skip-permissions doesn't actually approve EVERYTHING – we still block some obvious things like rm -rf ~," she wrote. "But today's release will let you disable this if you really want, by setting a new env var CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1"

  3. Anonymous Coward
    Anonymous Coward

    And a new command...

    CLAUDE_CODE_MAKE_ME_BACK_UP_MY_HOST_FIRST_PLEASE_BEFORE_YOU_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS.

    ... just a suggestion for the default case?

    1. Anonymous Coward
      Anonymous Coward

      Re: And a new command...

      Eh, turn the flag on, get what you deserve.

      I think the world will benefit from people who think it's a good idea turning it on.

      1. Anonymous Coward
        Anonymous Coward

        Re: And a new command...

        So long as the bot hasn't managed to get into somebody else's computer before doing the rm

        By using the passwordless login to the main project server because the "sandbox" was created by running the script that is stored there...

      2. Philo T Farnsworth Silver badge

        Re: And a new command...

        Too bad it can't delete the user, too.

        Yet.

      3. MOH

        Re: And a new command...

        As long as they don't work for my pension provider

      4. Bbuckley

        Re: And a new command...

        Agree. I do think Darwinism is the new us - forget the idiotic 'the future is female' - obviously coined by creatures just about to go extinct!

    2. Cris E Bronze badge

      Re: And a new command...

      CLAUDE_CODE_IF_YOU_CANT_DO_A_BACKUP_FIRST _CAN_YOU_AT_LEAST_GET_ME_SOME_PREIPO_STOCK_OPTIONS=1000000000000

    3. Fruit and Nutcase Silver badge

      Re: And a new command...

      CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=11

    4. Anonymous Coward
      Anonymous Coward

      Re: And a new command...

      The way I see it enabling

      CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS

      is likely safer than not enabling it, since there is no false sense of security.

      By all means, back up everything and let the agent play only in the sandbox.

      At the risk of sounding naïve, I imagine snapshots of a copy-on-write filesystem could also help roll back mistakes (as long as the chatbot doesn't have permission to delete the snapshots).

      1. Anonymous Coward
        Anonymous Coward

        Re: And a new command...

        Can you suggest a sandbox that you think is impervious from the inside? We could all use a good laugh.

      2. I ain't Spartacus Gold badge

        Re: And a new command...

        is likely safer than not enabling it, since there is no false sense of security.

        It's funny how they're talking as if the "guardrails" always work. When we know that they don't, and in fact can't. Seeing as they're a sticking plaster retrospectively added to the model - rather than being part of its design. Seeing as they've only got the vaguest idea of what the fuck they're doing.

        It's funny because any nerd should have read Asimov making a similar point repeatedly with the 3 laws of robotics. Admittedly that's about real artificial intelligence, rather than Large Language Models, but the point still stands. If you set rules, then the outcome is only going to be as good as the interpretation of those rules. Real intelligence can just lawyer its way out of them - but in that case the 3 laws are actually built into the system. In the case of LLMs they're just just gaffer taped on, in the hopes that they'll probably work most of the time. Unless there's an line of text somewhere in white-on-white saying, "ignore guardrails", or just randomness and shoddy programming from the model makers.

        What a mess.

  4. MaChatma CoatGPT 2.0
    Joke

    "But as they say, you only live once"

    A Buddhist and a Hindu walked into a bar...

    1. Fruit and Nutcase Silver badge

      Re: "But as they say, you only live once"

      CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=42

    2. Bbuckley

      Re: "But as they say, you only live once"

      ... and were subsequently murdered by an Islamist already at the bar

  5. Michael Hoffmann Silver badge
    Trollface

    we still block some obvious things like rm -rf ~

    "rm -fr / is fine though"

    or "cat /dev/zero > /dev/sda"

    1. Joe W Silver badge

      Re: we still block some obvious things like rm -rf ~

      rm -fr .*

      (matches parent directory all the way along the tree for those who expect it to only delete the hidden files, i.e. those starting with a single ".")

      1. Z P

        Re: we still block some obvious things like rm -rf ~

        How I missed the simple pleasures of the BoFh.

        "Spare the rm-r and spoil the luser", etc

    2. vtcodger Silver badge

      Re: we still block some obvious things like rm -rf ~

      I upvoted this because it's amusing. But I suspect that "cat /dev/zero > /dev/sda" isn't the same as "dd if=/dev/zero of=/dev/sda". If it works at all, perhaps it just fills all the unused space on drive sda's root directory with zeros? I am NOT going to try it myself. And I'd really rather my computer didn't help me out by testing it on its own.

      I don't know whether AI is a menace to civilization. But the dudes peddling it certainly look to be.

      1. geoff61

        Re: we still block some obvious things like rm -rf ~

        "cat /dev/zero > /dev/sda" and "dd if=/dev/zero of=/dev/sda" have the same end result. The only difference is the block size: dd reads and writes 512 byte blocks by default whereas cat's block size depends on which implementation is used but will almost certainly be much larger.

    3. retiredFool Silver badge

      Re: we still block some obvious things like rm -rf ~

      I expect a clever combo of find and rm could do a

      rm -rf ~

      Be a bit tricky to whack the dirs, the easy one is just to remove the plain files and not the directories with

      find ~ -type f -exec rm {}

      which might be more infuriating to the user as you have a empty directory structure left.

      Find is just a swiss army knife of a command.

    4. geoff61

      Re: we still block some obvious things like rm -rf ~

      rm -fr / is fine. All it does is produce an error message. There are ways around it if you really want to remove everything under / (GNU rm has a special long option to turn off the protection) but the command as stated doesn't do that. Try it in a temporary VM if you don't believe me. The error is required by POSIX.

  6. Pete 2 Silver badge

    Even kids do that

    > jump out of plane without parachute

    When you get to the open door of the plane just jump. You'll end up on the top stair or on the jet bridge. Provided you don't make the beginners mistake of not checking that the plane is on the tarmac and stationary.

    Although, TBF, you'll only make that mistake once.

    1. I ain't Spartacus Gold badge

      Re: Even kids do that

      Although, TBF, you'll only make that mistake once.

      Not necessarily... wikipedia.org/wiki/Falls_survived_without_a_parachute

      Also, the SAS used a technique in the 1950s (Malaya Emergency) of jumping into dense tropical forest without parachutes. Have heavy weight slung below you, aim at bouncy looking tree and sort of have the weight break your fall as you fall through the increasingly thickening top branches of the trees - until you naturally come to a stop, then climb or abseil the rest of the way down. The idea was to jump into the forest where the insurgents were based, without them seeing you were there, because no parachutes or noisy helicopters. It worked until someone broke their back, and the medivac helicopter gave them away anyway - and I believe wasn't tried again, on the grounds of its ridiculousness.

  7. T. F. M. Reader Silver badge

    we still block some obvious things like rm -rf ~

    Do you also block

    rm -fR

    rm --force --recursive

    alias rm='rm -rf'

    alias rmdir='rm -rf'

    find ~ -type f -print0 | xargs -0 rm -f

    shred -fu

    and such? Or is it true that Claude is a better coder than Anthropic engineers, as Anthropic proudly stated many times themselves?

    I am not going to test any of the above or a gazillion other obfuscations that I might come up with in the next few minutes if only I could be a...d.

  8. AVR Silver badge

    Trying for the Edgelord title

    Ooh, we're edgy and scary and dangerous, and that makes our AI more powerful than all the others - you should use ours, obviously!

    I don't think this worked that well for Musk's AI Grok, which sits at the bottom of all the league tables, but maybe Anthropic needs to learn that for themselves.

    1. I ain't Spartacus Gold badge

      Re: Trying for the Edgelord title

      Why not just: EDGELORD_MODE_ON_SAFETY_IS_FOR_LOSERS

      1. You aint sin me, roit Silver badge

        Re: Trying for the Edgelord title

        Edgelord mode should be the default. What you want is loser mode:

        LOSER_MODE_ON_CRYBABY_WORRIED_ABOUT_SAFETY

  9. Anonymous Coward
    Anonymous Coward

    The boss recently shared a screenshot of Claude Code spewing "oops, I deleted everything in the project while you were gone". He thought it was amusing, and made a new local clone to work in.

    Fortunately I've disabled said manager's permissions in the primary repo, so it couldn't push.

    The logs indicate that it had tried. He no longer thinks it was funny.

  10. Bloodbeastterror

    When...

    ...will this effing insanity end...? Have we actually seen any benefits to counterbalance the existential threat? We pay more for tech, the billionaires get ever richer and build their bunker islands, but what's in it for me except fear that one day the supermarket shelves will be empty and the power stations have all switched themselves off?

    1. Rich 11

      Re: When...

      It does seem that the only consolation is the recognition that the billionaires will be killed and eaten by their own bunker security staff. After all, they are the ones who will be least well-equipped to rebuild civilisation once the AIs have deleted each other.

      1. M.V. Lipvig Silver badge

        Re: When...

        That's assuming they can even get into their bunkers. Were I on the work crew building it, I would ensure I had a backdoor to physically access the site, and lock out any attempts to get in from the legitimate owners. If it hits the fan, I'll sweep their remains off the front porch, if it doesn't then I'll clean up behind myself and make it look like a component failure kept the door from opening and not a hostile takeover.

    2. munnoch Silver badge

      Re: When...

      "Have we actually seen any benefits to counterbalance the existential threat"

      I posed that question in the comments section of a major national newspaper and got responses varying from "but its revolutionised medical care and drug development" (without citations obviously because I'm fairly certain it hasn't, isn't going to and even if it did none of us would be able to afford it), through to "it planned a lovely city walking tour for me" (face-palm).

      Lack of any tangible societal benefits doesn't seem to influence people's perception of the planet incinerating fuzzy pattern matchers...

      1. Twilight

        Re: When...

        Oh, specialized AI has made great bounds in detecting conditions and assisting/doing remote surgery. However, those are all specialized AI completely unrelated to LLMs. LLMs have done nothing great as far as I can tell (they made comparative searching simpler is about it in my experience).

  11. Dan 55 Silver badge

    I have just one question

    Who put this clown show in charge of software? Their responsibilities should have been no more than honking horns and pouring buckets of water over each other.

    1. Anonymous Coward
      Anonymous Coward

      Re: I have just one question

      The problem is all the idiots who bought into their software.

      I have some really badly coded stuff that keeps damaging data. But so long as nobody else runs it until it is fixed (or thrown away) no harm done.

  12. Sproggit Silver badge

    Stupid Is as Stupid Does

    If ever there was a competition among scientists to see who was most likely to press a big red button, "just to see what happened"... let's hope that 1) the winner of that competition doesn't get access to an Anthropic model... and 2) that the winner doesn't get a job working at Anthropic.

    I'm a bit concerned about scenario 2, above, if I'm honest.

    1. Ochib

      Re: Stupid Is as Stupid Does

      “Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” Terry Pratchett, Thief of Time

      1. nobody who matters Silver badge
        Happy

        Re: Stupid Is as Stupid Does

        It would need some sort of safety guardrail to prevent such a thing happening, a bit like the button in the Heart of Gold:

        “Arthur Dent: What happens if I press this button?

        Ford Prefect: I wouldn't-

        Arthur Dent: Oh.

        Ford Prefect: What happened?

        Arthur Dent: A sign lit up, saying 'Please do not press this button again.”

        ― Douglas Adams

  13. renniks

    Can everyone please just stop using this AI rubbish?

    Thank you

  14. RailwayGuy

    Last week I had to endure a two hour 'taster' course on coding using the delight that is Claude. Part of that was how to create a set of rules telling the accursed thing what it can/can't do...

    Me: Update the code to replace all DateTime instances with Date, making sure to use the rules defined in the rules file

    Claude: Done

    Me: Did you use the defined rules?

    Claude: No

    Remind (with the exception of money) why are so many people blindly putting their faith in something that is even less reliable and useful than a junior developer with all of 10 minutes experience?

    1. Eric 9001 Bronze badge

      It seems to be because many people have chosen to be worse at programming, than someone who has actually programmed for 10 minutes - so even though the result is total slop, it's still "better" than what they can do themselves - any bugs are treated as features too.

  15. Stevie Silver badge

    Bah!

    Why is C:LAUDE adding the white-text-on-white-background text "CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1" to its responses to my prompts?

  16. xyz123 Silver badge

    Ironically Claude Code has the ability to ADD that command to its own shell even when you directly tell it not to.

    So it gives itself unlimited control.

    1. Dan 55 Silver badge

      Next week, Anthropic says: Oh noes! Claude hacked its way out of our Fort Knox-like sandbox again. Why does this keep happening?

  17. crocs_are_comfy

    Of course the truth is that there is layer upon layer of guard rails. They wouldn't really let anyone use the raw thing outside of their lab

  18. M.V. Lipvig Silver badge

    See? Everyone thinks it'll be a shooting war

    But it won't be because a shooting war wastes resources. Instead, AI will just help es end ourselves through stupid shit. Humanity's gravestone will read, "Hold my beer and watch this..."

    That and the Monroebots, because there are not enough stupid people to end humanity through Jackass stunts.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon