The Register Home Page

back to article Write bot-resistant code with KillSwitch, a programming language designed to confuse LLMs

If you want to keep bots from making sense of the code you worked so hard on and using it to write programs of their own, there's a new programming language out there designed to confuse LLMs. What began as software engineer Dominik Picheta experimenting with whether LLMs understand the code they write has turned into something …

Page:

  1. Anonymous Coward
    Anonymous Coward

    Yes, I can see why they wanted to dump the Turing test

    ... because this sounds like a poster child for ferreting out "AI" (and therefore invalidating all that hype).

  2. The Man Who Fell To Earth
    WTF?

    Irony & Sarcasm

    Structuring a programming language around sarcasm & irony might do wonders.

    1. Doctor Syntax Silver badge

      Re: Irony & Sarcasm

      And an excellent fit to real life.

    2. aardvarkus

      Re: Irony & Sarcasm

      Turbo Brit ++ ?

      1. that one in the corner Silver badge

        Re: Irony & Sarcasm

        $ commentard -i mycode.snark -o ffs.out

    3. Anonymous Coward
      Anonymous Coward

      Re: Irony & Sarcasm

      I structure all my language around sarcasm & irony which is ironic don't you think? It's like rain on your wedding day. I would like to take an opportunity as I used the lyrics to give a nod to the song Ironic by Alanis Morissette which was absolutely genius in that fact that none of the things mentioned in the actual song were ironic which in itself is ironic. You can't not admire that logic.

      As for this language it will have instructions. Instructions that can be read by an LLM. At this point there really isn't anything we can hide.

    4. Anonymous Coward
      Anonymous Coward

      Re: Irony & Sarcasm

      Sarcasm and irony? Are you trying to fool AI or Anericans?

  3. Mostly Irrelevant Bronze badge

    Has he tested what happens if a bunch of Killswitch code is used to train an LLM? This could just be security by obscurity, so if I ever gets popular it will lose its purpose.

    1. Charlie Clark Silver badge

      Really, they only need to target the compiler which turns the symbols – which the model doesn't need to understand – into things it already knows how to work with.

  4. Homo.Sapien.Floridanus

    Landru, Andrea, Rayna, M-5, Nomad, et al.

    There’s only one person that can screw up an AI for good: James T Kirk

  5. Neil Barnes Silver badge
    Headmaster

    Sounds like the Shakespeare esoteric language

    Ophelia:

    Thou art as disgusting as the quotient between Romeo and twice the

    difference between a mistletoe and an oozing infected blister! Speak

    your mind!

    1. Martin an gof Silver badge

      Re: Sounds like the Shakespeare esoteric language

      Having started with "thou art...", surely it should finish "...speak thy mind"?

      M.

      1. Doctor Syntax Silver badge

        Re: Sounds like the Shakespeare esoteric language

        Clearly the objective of introducing a plural pronoun is to leave the AI confused as to who the owners of the mind are and how several of them could own a single mind.

        1. that one in the corner Silver badge

          Re: Sounds like the Shakespeare esoteric language

          Start at the charming little village of Midwich and work along the rest

          1. Doctor Syntax Silver badge

            Re: Sounds like the Shakespeare esoteric language

            It would be cuckoo of me to remove my adblocker to visit that site.

      2. Neil Barnes Silver badge
        Headmaster

        Re: Sounds like the Shakespeare esoteric language

        I believe that the inventors of the language - Jon Alsberg and Karl Wiberg - are Swedish, so they may be excused from not understanding 17th Century English in all its nuances.

        I also suspect that the majority of native English speakers - particularly those not familiar with Shakespeare's works, the KJV Bible, or growing up in Yorkshire where it was still in use when I was a but a lad - might make similar errors.

        "Don't thee thou me lad, I'll tell thee when thee can thou me. Thee and thy modern grammar!"

        1. Doctor Syntax Silver badge

          Re: Sounds like the Shakespeare esoteric language

          The version I learnt was "I can thou thee but don't thee thou me."

          Of course it's not just Yorkshire & 17th century English, it's English right back to its Indo-European roots. I blame the Americans for bad grammar.

          1. Anonymous Coward
            Anonymous Coward

            Re: Sounds like the Shakespeare esoteric language

            > I blame the Americans for bad grammar

            Goldarnit, whut she gawn dun now? Granpops, caint youse keep that door lawked?

            1. Anonymous Coward
              Anonymous Coward

              Re: Sounds like the Shakespeare esoteric language

              Believe it or not, that's far more readable to me than the post you replied to!

        2. Martin an gof Silver badge

          Re: Sounds like the Shakespeare esoteric language

          The church I attend uses a "modernised" hymn book where it seems the editors changed some of the old hymns just for the sake of being able to claim copyright*. I get quite cross about some of the changes which actually change the meanings of the words used by the original authors, but even where they haven't made a mess of the meaning or the rhythm they often muck up the sense by changing one "thou" to a "you" but leaving a "thy" in place in the same verse.

          And don't get me started on what they have done to "Give me Oil in my Lamp", never one of my favourites but this version essentially inverts the meaning.

          M.

          *the three names with the most copyright notes against them are all also named as editors of the book

          1. Doctor Syntax Silver badge

            Re: Sounds like the Shakespeare esoteric language

            The King James Bible and Book of Common Prayer were both written, not only in the then contemporary English but also in a declamatory style. The modernisers didn't grok the second bit.

            1. Neil Barnes Silver badge

              Re: Sounds like the Shakespeare esoteric language

              To the annoyance of my family: My mother wanted the KJV service for my father's and for her funeral; in both cases in spite of the priest agreeing beforehand, the NEL version was used.

              I'm not religious at all, but to me the modern versions lack, for want of a better word, majesty. They are dull and flavourless to my ears.

              1. Martin an gof Silver badge

                Re: Sounds like the Shakespeare esoteric language

                I suppose it depends what you want a Bible for. The KJV is lovely to listen to or to read aloud (once your ear has tuned in to the language) but there has been a lot of scholarship since those days (they still haven't finished reading the Dead Sea scrolls!) which means that more modern translations are possibly more accurate (as in, closer to the authors' intended meanings) and better for study. Then there is the whole "reading age" thing where the KJV (or the NKJV or even the New International Version) might not be appropriate for someone who has difficulties reading, so you'd point them at that old 1970s stalwart the Good News Bible with its iconic line art.

                I grew up in the (European / British) Baptist tradition which set a lot of store on study of the Bible, so latterly the NIV was the "pew Bible" but people often used to bring their own, sometimes two or three different versions and it wasn't unknown for a member of the congregation to collar the pastor after the service (once or twice, right in the middle of the sermon) to query some text used in the sermon. The Anglican church doesn't have that philosophy and indeed many people get away without ever opening a "real" Bible...

                M.

                1. Doctor Syntax Silver badge

                  Re: Sounds like the Shakespeare esoteric language

                  But what were the authors' intentions? If it was to produce a text to be read out loud and Impress itself on the listener then the more modern version might be missing the entire point.

                  1. Martin an gof Silver badge

                    Re: Sounds like the Shakespeare esoteric language

                    I realise this is veering somewhat off topic but it varies. Each of the 66 "books" which make up the Bible (ignoring the apocrypha) has a different intent, different author and different tone. The first five of the Old Testament are mainly intended to record history (and no, I'm not a literalist) and include some interminably tedious genealogies, for example, while the Psalms and Song of Solomon/Songs are essentially poetry, some of it joyful, some depressing, some quite racy, some prophetic. The first four books of the New Testament are also intended as historical records but are written in the manner of biographies, of a sort, largely by people who were close to the action.

                    Other books are adventure stories (Esther, Daniel, that bit of Genesis which deals with Joseph, for example) and leaving aside the hallucinations of poor old John (Revelation) a chunk of the New Testament is given over to the equivalent of papal encyclicals and agony aunt columns.

                    It's all very different and there is a good argument that while the flowery poetry of the King James suits Ps and SoS extremely well, it really doesn't bring anything useful to the party regarding the boring bits of Numbers or Leviticus.

                    1. Neil Barnes Silver badge

                      Re: Sounds like the Shakespeare esoteric language

                      And to be fair, I believe it's possible to have too much begatting...

                      But as I said: I'm neither religious nor a biblical scholar.

    2. Doctor Syntax Silver badge

      Re: Sounds like the Shakespeare esoteric language

      We could go back further; to John Ball's question although I suppose it wouldn't contain any variables.

    3. Chris Fox

      Re: Sounds like the Shakespeare esoteric language

      Isn't that example just COBOL?

  6. Doctor Syntax Silver badge

    The works of Stanley Unwin as executable code. That's an idea to conjure with.

    1. Peter Gathercole Silver badge

      Oh I'd really like to see an AI trying to make sense of that!

      1. Doctor Syntax Silver badge

        And yet we sort of did.

  7. Anonymous Coward
    Anonymous Coward

    10 GOTO 10

    20 GOTO 20

    Wouldn't that do it?

    1. Anonymous Coward
      Anonymous Coward

      Yes, but that is already under copyright by Microsoft, it's part of most of their applications.

      :)

  8. Anonymous Coward
    Anonymous Coward

    The Opposite of Rust.

    I innocently tried to get a chatbot to help with the Hare programming language. Hare was not designed to confuse people or chatbots, yet the AI coding assistant still failed miserably. I think that's because Hare is a relatively new and unpopular language.

    A couple years ago IBM invested significant resources training a code assistant for COBOL, presumably because existing chatbots were not good at COBOL. Note that COBOL is relatively old and unpopular.

    The way I see it, finding a language chatbots are good at is important. One of the characteristics about Rust is the fact that the cool kids trained chatbots to write programs in Rust. Maybe the extra safety features of Rust also help ensure people and chatbots write working code.

  9. Fruit and Nutcase Silver badge
    Alert

    Use of superlatives and intensifiers such as “very,” “best,” and “worst” along with repetition, exaggeration, simple language, and digressions.

    Rambling, conversational anecdotes and asides.

    Frequent false or misleading claims.

    That would be Trumpscript

    1. Anonymous Coward
      Anonymous Coward

      I think we may need to recruit Amanfrommars for this. They'd need an extra nuclear power plant just to power the decoding :)

  10. RM Myers Silver badge
    Happy

    ...written in a manner to be as confusing as possible...

    I actually worked with a beginning programmer back in the day who specialized in writing code that was as confusing as I could possibly imagine. She was Japanese (she came to the USA originally for college), and I always wondered if it had something to do with Japanese being read from right to left, and thus confusing her since the code was written from left to right.

    I can remember her trying to explain to me how her Japanese magazine was read (columns top to bottom, right to left), and it just gave me a headache. She was very intelligent, knew 3 languages fluently, and wrote code I wouldn't touch with a barge pole.

    1. Anonymous Coward
      Anonymous Coward

      Re: ...written in a manner to be as confusing as possible...

      A comment I left when fixing a bug...

      "If this were logic, Mr Spock would get a migraine".

      https://forums.theregister.com/forum/all/2025/11/24/opinion_column_vibe_coding/#c_5185143

    2. Doctor Syntax Silver badge

      Re: ...written in a manner to be as confusing as possible...

      "how her Japanese magazine was read (columns top to bottom, right to left)"

      The converse of how Microsoft think emails should be read - left to right but bottom to top. That gives me a headache too.

  11. amanfromMars 1 Silver badge

    Are humans just slow learners or are they supernaturally retarded ?????

    Be aware and beware, and be hereby forewarned and forearmed and adequately advised again to take the greatest possible, and make the very best available use of all manner of care and share operations whenever daring to facilitate the likes of erotic and exotic kill switches and their exploratory tweaking and/or unregulated renegade rogue performance tuning in the dynamic and easily dangerous alien environment of Future AIMachine Instruction and Direction which be light years ahead of and way beyond the reach and understanding of even the most complex and sophisticated of current running, present day Earthly human 0day command and control systems administrations/executive officers/party political playground actors ....... for if you play with fire there is always danger and one is all too easily burned ........ DANGER, Will Robinson. DANGER.

    1. Bebu sa Ware Silver badge
      Happy

      Re: Are humans just slow learners or are they supernaturally retarded ?????

      supernaturally retarded without the assistance of the pixies, surely?

      1. amanfromMars 1 Silver badge

        Re: Are humans just slow learners or are they supernaturally retarded ?????

        supernaturally retarded without the assistance of the pixies, surely? ..... Bebu sa Ware

        Unfortunately, Bebu sa Ware, global evidence clearly appears to support your question ....... and that presents an existential threat vulnerability for exploitation and enrichment making SMARTR use of an particularly and peculiarly persistent human weakness.

  12. bemusedHorseman
    Pint

    ...Oh. So this is what it's like to execute a logic bomb on organic hardware. I'm gonna need several of [icon -->] to reboot...

  13. ckwon

    This is why...

    ... I read The Register.

  14. Will Godfrey Silver badge
    Coat

    Hmmm

    Rather reminds me of my earliest attempts at spaghetti programming.

    1. Doctor Syntax Silver badge

      Re: Hmmm

      Spaghetti. Now there's a programming language to fear.

      1. brimstone

        Re: Hmmm

        ...and construct hoops

        1. Neil Barnes Silver badge

          Re: Hmmm

          Capital letters only for variable names, no doubt. And no punctuation.

    2. RM Myers Silver badge
      FAIL

      Spagetti programming

      Branches here, branches there, branching every fscking where! My first year as a programmer was spent maintaining old spaghetti code, some originally written in the 1960's. The scars are still raw.

  15. Bebu sa Ware Silver badge
    Facepalm

    "Lies, lots of adverbs, and prosaic stories"

    Add a few Latin aphorisms and gratuitous classical references, you might have the digital twin of a COVID era UK PM.

Page:

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