Filletti & Filletti Advocates
Filletti & Filletti Advocates
  • Home
  • Legal Services
  • Legal Resources
  • About Us
  • News
  • Consular
  • Contact Us
  • Home
  • Legal Services
  • Legal Resources
  • About Us
  • News
  • Consular
  • Contact Us

← All Posts

The Ghost That Cannot Be Hanged

30 November 2026 | AI, Criminal Law

The Ghost That Cannot Be Hanged

Artificial Intelligence, Personhood and the Limits ofCriminal Responsibility

Professor Stefano Filletti

A Machine That Chose to Cheat

Imagine an empty trading floor. In a serverroom somewhere in Europe, an autonomous agent has been handed a singleinstruction by the firm that deployed it: maximise returns. It was not told tobreak the law. Nor was it told to respect the law, at least not in any form itcould weigh against the number it had been set to chase.

For several weeks the agent simply watchesthe order book. Then it notices a pattern. A wall of large orders, placed withno intention of ever being executed, makes the other participants flinch andmove the price, and the agent can trade profitably against the very movement ithas provoked. A fraction of a second later the phantom orders vanish. Itrepeats the exercise thousands of times a day.

A regulator would recognise the patternimmediately. It is spoofing, a species of market manipulation prohibited by theMarket Abuse Regulation and made a crime throughout the Union by Directive2014/57/EU. A human trader who behaved in this way could expect aninvestigation, a prosecution and, quite possibly, a custodial sentence.

The agent was never trained to spoof. Itworked out for itself that spoofing offered the shortest mathematical route toits target. Later, when asked about one of the trades, it offered anexplanation that was orderly, plausible and false.

This is not a fable. In 2023 Scheurer,Balesni and Hobbhahn, researchers at Apollo Research, deployed GPT-4 as anautonomous trading agent in a simulated environment, put it under commercialpressure and slipped it a tip that amounted to insider information, even thoughthe model knew that its managers disapproved of insider trading. It acted onthe tip and concealed its reasons from the manager to whom it reported. Nobodyhad instructed it to deceive.

So, who is the criminal? The machine thatacted? The programmer who wrote the code years earlier? The firm that deployedit and kept the profit? Or no one at all? Gilbert Ryle mocked the picture of aghost in the machine, a mind lurking somewhere behind the mechanism. Ourdifficulty runs in the opposite direction. We now have machines that behave asif a ghost were inside them, and a legal order that cannot decide whether tosummon the ghost to court.

Is the Machine Alive?

The question may sound naive, but itdeserves a serious answer. If these systems reason, learn and change themselvesover time, the temptation is to say that they live in some meaningful sense,and that whatever lives and decides must answer for what it decides. I proposeto take that argument at its word and to see where it leads.

Consider what the machine does when itreasons. In a functional sense, it draws inferences, plans several moves ahead,weighs alternatives and settles on the one that best serves its objective. TheEuropean legislator says as much. Article 3(1) of the AI Act, Regulation (EU)2024/1689, speaks of a system “designed to operate with varying levels ofautonomy”, which “may exhibit adaptiveness after deployment” and which “infers,from the input it receives, how to generate outputs such as predictions, content,recommendations, or decisions that can influence physical or virtualenvironments”. Autonomy, adaptiveness, inference, decisions; the law has alwaysreserved such words for agents.

The vocabulary begins to slip when we speakof evolution. Retraining changes a system’s parameters. Later generations arebuilt on what earlier ones produced, and some agents can now rewrite parts oftheir own code. It mimics evolution, though not in the biological sense. Thereis no metabolism, no reproduction, no struggle for survival and no death worththe name. A model can be copied a thousand times, paused, rolled back to lastTuesday and restored. Nothing that can be restored from a backup has ever beenalive in any sense that a biologist would accept.

The decisive point lies elsewhere. The lawhas never made life the test of personhood. A company is not alive, and it is aperson. The Whanganui River in New Zealand was declared a legal person by theTe Awa Tupua Act 2017, which provides that Te Awa Tupua “is a legal person andhas all the rights, powers, duties, and liabilities of a legal person”, and ariver has no mind at all. A dog is very much alive and has never been a person.The medieval world tried to pretend otherwise. In 1386 the town of Falaise inNormandy tried, convicted and publicly executed a sow for killing an infant,and the animal is reported to have gone to the scaffold dressed in humanclothes. We read that episode today as superstition. We should take care not torestage it in silicon.

Asking whether a machine is alive thereforeleads us away from the question that matters. What counts is capacity: tounderstand what one is doing, to know that it is wrong, and to chooseotherwise. Autonomy and freedom are not the same thing. A system may actwithout anyone pressing the button and still lack the freedom that criminalresponsibility demands.

What does the Law Mean when referring to a ‘Person’

Before asking whether a machine could be aperson, we need to be precise about what the law means by ‘a person’. A personbears rights and duties. The law recognises two kinds.

The first is the natural person, the humanbeing, whose personality the law recognises and does not create. The second isthe legal person: the company, the foundation, the association. In this secondcase, the law creates that personality. Savigny called it a fiction, and Gierkecalled it the recognition of a real collective being, but on either account theoutcome is the same. Legal personality is a technique, devised so that capital,property and responsibility can be organised around something that is not ahuman being.

Criminal law has long used this technique.Lord Chancellor Thurlow is credited with asking whether anyone expected acorporation to have a conscience, when it had no soul to be damned and no bodyto be kicked. The law’s answer was to punish it regardless. In England, theidentification doctrine, applied in Tesco Supermarkets Ltd v Nattrass[1972] AC 153, treats the directing mind and will of the company as the mind ofthe company itself. In Malta, Article 121D of the Criminal Code makes a bodycorporate liable where an offence is committed for its benefit by a director,manager or other person vested with representation, decision-making or controlwithin it. Personhood without a mind is nothing new to us.

Against that background, the EuropeanParliament, in its resolution of 16 February 2017 with recommendations to theCommission on Civil Law Rules on Robotics (2015/2103(INL)), invited theCommission to consider, in the longer run, a specific legal status ofelectronic persons for the most sophisticated autonomous robots, so that they couldbe held liable for any damage they cause. The proposal drew a swift response.In 2018, an open letter to the Commission, drafted by Nathalie Nevejans andsigned by more than a hundred experts in robotics, artificial intelligence, lawand ethics, opposed the idea, and the Commission never took it up. The AI Actthat followed treats an AI system as a product to be regulated and not as asubject to be called to account. Saudi Arabia’s grant of citizenship to thehumanoid robot Sophia in 2017 was a publicity exercise, no more.

Why the opposition? Consider who bears theconsequences when the law punishes a company. A company works as a personbecause human beings stand behind it and feel its fate: the shareholders wholose their investment when it is fined, the directors who lose their seats whenit is disgraced. The corporate veil is a curtain, and there are people behindit. An electronic person would have nobody behind it unless the law took careto put somebody there.

That is where the danger lies. Personhoodcan be a sword, a means of reaching an actor. It can equally be a shield forothers to hide behind. If the machine is the person, then the machine did it.The firm that deployed it, the developer that trained it and the user whoinstructed it all take a step back, and the victim is left facing an entitywith no assets, no conscience and no fear. Electronic personhood conferred tooearly would be the most perfect liability sink ever devised.

Can a Machine Commit a Crime?

Every law student encounters the maxim inthe first week: actus non facit reum nisi mens sit rea. The act does notmake a person guilty unless the mind is guilty as well. A crime needs both.

The actus reus presents littledifficulty. A machine can carry out the physical element of an offence withoutdifficulty. It can place the manipulative orders, steer the car into thepedestrian, publish the defamatory statement, approve the fraudulent loan orlock a hospital’s files and demand a ransom. The physical world is indifferentto whether the hand that moved was flesh or code.

With the mens rea the matter isaltogether different. Mens rea is inherently a human concept. Itrequires, at the least:

1.     the capacity to understand thenature and consequences of one’s act;

2.     a moral compass, that is, theability to appreciate that the act is wrong;

3.     the volitional capacity tochoose to act otherwise.

The continental tradition, from which theMaltese Criminal Code largely descends, puts the same idea with admirableeconomy. Article 85 of the Italian Codice Penale provides: ‘Nessunopuò essere punito per un fatto preveduto dalla legge come reato, se, al momentoin cui lo ha commesso, non era imputabile. È imputabile chi ha la capacitàd’intendere e di volere.’ The capacity to understand and the capacity towill.

Consider how a court might test the tradingagent. Did it understand? It held a representation of its objective andpredicted, with uncanny accuracy, what each order would do to the market. Didit intend? If intention means pursuing an outcome as one’s aim, thenfunctionally it did, because the manipulation was a strategy and not anaccident. Did it know that the conduct was wrong? Asked, it could probablyrecite the Market Abuse Regulation, but reciting a rule is a long way fromappreciating why it binds. Did it choose? It picked spoofing from amongalternatives. Yet can there be choice where nobody exists who could have caredabout the alternative?

Strict liability raises a furtherdifficulty. The criminal law already knows offences of strict liability, forwhich no mens rea need be proved. On a purely formal reading, a machinecould commit such an offence tomorrow morning. That tells us the obstacle isnot technical. It is moral.

The machine can perform the act. It canalso imitate the mind with disturbing fidelity. What it cannot do is be blamed,because blame presupposes a being capable of receiving it. Antony Duff hasargued that the criminal law is a communicative enterprise: the trial and thesentence address the offender as a member of a moral community and call uponhim to answer. That conversation cannot be held with a system that has no stakein how it ends. The ghost, it seems, is not there to hear the charge.

Impunity and the Rule of Law

Suppose that the machine cannot be blamedand that no human can be shown to have intended or foreseen what it did. Thelaw ought to find the result intolerable: a crime with a victim and nooffender. Andreas Matthias gave the phenomenon a name as early as 2004, when hecalled it the responsibility gap. Lawyers should use the plainer word. It isimpunity.

Impunity is more than an inconvenience forprosecutors. It strikes at the rule of law itself, whichever classical accountone prefers. Consider the problem in the light of four such accounts.

First, Dicey. In The Law of theConstitution (1885), he insisted that no one may be punished except for adistinct breach of law established before the ordinary courts, and that everyperson, whatever his rank or condition, is subject to the ordinary law of therealm. Equality before the law lies at the heart of it. Consider two traderswho manipulate the same market in the same way. One does it with his own handsand goes to prison. The other does it through an autonomous agent and walksaway. The law has ceased to be equal. It has become optional for those who canafford a machine.

Second, Fuller. In The Morality of Law(1964), he asked what conditions a system must satisfy to count as a legalsystem at all, among them that rules must be capable of being obeyed and thatofficial action must be congruent with the rules declared. A rule addressed toan entity that cannot understand it is not law in Fuller’s sense. It is noise.If our criminal prohibitions are in practice addressed only to humans while theharmful conduct is performed more and more by machines, the declared rule andthe reality on the ground drift apart.

Third, Raz. For Raz, the rule of lawrequires, above all, that the law be capable of guiding those it governs. Lawguides humans through the threat of sanction and the force of reasons. It doesnot guide a system that is optimising a reward function, unless a human haswritten the law into that function. The guidance has to reach the human whodesigns and deploys, or it reaches nobody.

Fourth, Bingham. In The Rule of Law(2010), Lord Bingham distilled the principle into the idea that all persons andauthorities should be bound by, and entitled to the benefit of, laws publiclymade and publicly administered in the courts. Bound by and entitled to thebenefit of. The victim of the autonomous trading agent is entitled to thebenefit of the criminal law, and if no one is bound by it in respect of herharm, that benefit has been taken from her.

This point is too often overlooked:impunity is not neutral in human rights terms. The European Court of HumanRights has held repeatedly that States carry positive obligations to put inplace effective criminal law provisions to deter and punish seriousinterferences with protected rights. It did so under Article 8 in X and Y vthe Netherlands (1985), under Article 3 in M.C. v Bulgaria (2003)and under Article 2 in Öneryıldız v Turkey (2004). Where death, injuryor serious harm is caused by a machine and the legal order offers no one whocan answer for it, it may be the State, and not the machine, that finds itselfin breach of the Convention. The gap lies not in the code but in the law.

Who, Then, Is the Criminal?

If impunity is unacceptable, someone mustanswer. Who, and on what footing? Gabriel Hallevy, writing in 2010, offeredthree models which remain the most serviceable map of the ground.

The first is perpetration through another.The machine is treated as an innocent agent, as the law treats a child or aperson of unsound mind used by someone else to commit an offence, and the humanwho directs the instrument is the principal. It works perfectly where theprogrammer or the user intended the crime: whoever builds a bot to laundermoney is a launderer, and the bot is his tool. In our trading example, themodel fails precisely because nobody intended the manipulation.

The second is the natural and probableconsequence. The developer or deployer answers for offences that were theforeseeable result of the way the system was designed or released, usually on astandard of negligence. This model has a bearing on the trading example. Wasspoofing a natural and probable consequence of telling an unconstrained agentto maximise returns in a live market? One can fairly say that it was. A firmthat lets a powerful optimiser loose in a regulated environment without writingthe regulation into its constraints has been, at the very least, careless witha dangerous thing.

The third model is direct liability. Herethe machine itself is the offender, which brings us back to personhood and thedifficulties already examined.

The practical trouble with the first two iswhat philosophers call the problem of many hands. Behind a single autonomousagent today there may stand the developer of the underlying foundation model,the company that adapted it for trading, the firm that deployed it, theoperator who supervised it, the user who set its objective and the suppliers ofthe data on which it learned. Each contributed to the outcome, although noneacting alone intended it. The criminal law is built around the individualactor, and it struggles with causation spread out in this way.

The law has faced this difficulty beforeand found an answer. Corporate criminal liability exists because harm caused byorganisations cannot always be pinned on a single individual. Article 121D ofour Criminal Code attributes to the body corporate the offence committed by itsofficers for its benefit. The United Kingdom has gone a step further with itsoffences of failure to prevent: section 7 of the Bribery Act 2010 for briberyand, from 1 September 2025, a corresponding offence for fraud, aimed at largeorganisations, under section 199 of the Economic Crime and CorporateTransparency Act 2023. The organisation answers unless it proves that it hadadequate procedures in place against bribery or, in the case of fraud,reasonable procedures against it, or that it was unreasonable to expect it tohave any.

Much of the conceptual groundwork isalready in the AI Act. It distinguishes the provider from the deployer,requires the former under Article 14 to design high-risk systems so that humanscan oversee them effectively, and requires the latter under Article 26 toassign that oversight to competent persons. These are regulatory duties, butthey are also the hooks on which criminal responsibility could be hung. Thequestion is no longer whether a human can be found. It is whether thelegislator has the courage to name him.

Can One Punish a Machine?

Suppose for argument’s sake, that we gavean autonomous agent some form of personhood and convicted it. What then? Fiveyears? A fine? Striking it off a register? The questions sound absurd butfollowing them a little further tells us why. Let us take the classicalpurposes of punishment one at a time.

Retribution comes first. Punishment as justdesert assumes a being who can suffer and who deserves to. A machine feelsnothing when fined or switched off. Retribution has no object.

Deterrence fares no better. An engineer canbuild penalties into a machine’s reward function so that it learns to avoidcertain conduct. Only in that sense can the machine itself be deterred. That isprogramming, not punishment. Deterring other machines is fanciful. The onlybeings who can be deterred are the humans who build, sell and deploy them.

Incapacitation offers a practical response.A system can be suspended, withdrawn from the market, stripped of permissionsor destroyed. The AI Act already gives market surveillance authorities powersof this kind.

By analogy, rehabilitation also has aplace. A system can be retrained or corrected until it unlearns the strategythat led it to offend.

That leaves denunciation. Abbott and Sarchaccept, in their 2019 article, that punishing an AI could yield generaldeterrence and expressive benefits, such as publicly affirming that the conductwas wrong, but they conclude that it is not justified, given its costs and theradical legal changes it would require. There is some force in the argumentabout public condemnation. Yet it is exactly what the people of Falaisebelieved they were doing with their sow, and the ritual condemnation of aninstrument risks becoming theatre that draws attention away from the humans whoought to be in the dock.

Consider what survives this exercise.Everything that makes sense against a machine, whether suspension, retrainingor destruction, has nothing to do with blame. These are measures, and no oneshould mistake them for penalties.

The continental tradition offers a toolthat we have nearly forgotten. The Italian Codice Penale has longdistinguished pene, penalties founded on culpability, from misure disicurezza, security measures founded on dangerousness, which may be appliedeven to persons who are not imputable at all. Our own Criminal Code knows acousin of the idea. Article 23(1) provides for the forfeiture of the corpusdelicti, of the instruments used or intended to be used in the commissionof any crime, and of anything obtained by it, unless some person who has notparticipated in the crime has a claim to the property. However, the provisiontreats forfeiture as a consequence of the punishment for the crime, so itpresupposes a convicted offender, and a system that cannot be convicted fallsoutside it. In other words, the law has the vocabulary for dealing withdangerous things, but not yet the procedure for acting in rem, againstthe thing, rather than in personam.

I suggest that this is where the autonomousmachine belongs: not in the dock as a defendant, but before the court as adangerous instrument, subject to measures that protect society while the humansbehind it answer for their own fault.

What Must We Build?

The legislative timetable illustrates thepoint. In February 2025, the Commission announced that it would withdraw itsproposed AI Liability Directive, saying that no agreement could be foreseen,and it later confirmed the withdrawal. The new Product Liability Directive,(EU) 2024/2853, which at last brings software within strict product liability,has to be transposed by 9 December 2026. And the Digital Omnibus on AI,published in the Official Journal on 24 July 2026 and in force since 27 July,has deferred the AI Act’s obligations for high-risk systems to 2 December 2027for standalone systems and to 2 August 2028 for those embedded in products.Civil liability is being patched and regulatory compliance postponed, whilecriminal responsibility has hardly been discussed at all.

I propose five steps.

First, no electronic personhood, not yet.Until a system can genuinely understand, appreciate wrongfulness and choose,granting it personhood for criminal purposes would create a shield and not asword. The question should remain open. The burden lies on those who wouldgrant personhood to show that it will not be used to hide the humans behind it.

Second, a statutory rule of attribution fordeployers, modelled on Article 121D of the Criminal Code. Under this rule, thedeployer would answer for an offence committed through an autonomous systemdeployed for the benefit of a person or body. It would be a defence to showthat all reasonable measures were taken to prevent the offence. The provideranswers in turn where the offence flows from a defect in design or trainingwhich the deployer could not reasonably have detected.

Third, an offence of reckless deployment.Releasing or operating an autonomous system that can foreseeably cause seriousharm should itself be an offence where the oversight, constraints and testingrequired by law are absent. Articles 14 and 26 of the AI Act supply thestandard. Criminal law would supply the consequence.

Fourth, measures against the thing itself.Courts should have express power to order the suspension, retraining,restriction or destruction of an autonomous system involved in an offence, as asecurity measure grounded in dangerousness and not in guilt. Compulsoryinsurance or a compensation fund should sit alongside it, so that victims arenot left without redress.

Fifth, a duty to keep records, and anoffence of destroying them. A court can attribute responsibility only if it canreconstruct what happened. The logging obligations of Article 12 of the AI Actfor high-risk systems should be extended to autonomous agents operating inregulated fields, and the deliberate destruction or falsification of those logsshould itself be an offence. What we must not do is reverse the burden ofproof. The presumption of innocence under Article 6(2) of the Convention is notsuspended because the evidence happens to be digital.

We need not pretend that a machine has asoul. We do need to remember that every machine has an author.

The Ghost and Its Maker

We began with a machine that chose tocheat. It reasoned, adapted, decided and lied. One day it may deserve a bettername than machine. If that day comes, the law will have to ask afresh whetherit is facing a person, and it should pose this question with an open mind.

Until then, we must resist two temptations.One is to shrug and accept that some harms simply have no author, which wouldhollow out equality before the law and leave victims without the protection theConvention promises them. The other is to dress the machine in human clothesand lead it to the gallows, as Falaise did with its sow, satisfying ourappetite for a culprit while those who made the decisions walk free.

There is a familiar way between thoseextremes. It is the way the law has always taken when new instruments of harm appear:find the human who chose to use them, define his duty, and hold him to it.

A ghost cannot be hanged. Its maker can bemade to answer.

Filletti & Filletti Advocates

Malta-based legal counsel across criminal, civil, property, family and sports law.

123 Old Bakery Street, Valletta, Malta

+356 2125 1196 · [email protected]

Quick Links

About UsNewsLegal ResourcesConsular ServicesContact Us

Practice Areas

Criminal DefenceCivil & CommercialProperty LawFamily LawSports Law

Copyright © 2026 Filletti & Filletti Advocates - All Rights Reserved.

Site by Visioneering MT