LEGAL LIABILITY OF THE MANUFACTURER AND THE USER IN CYBERATTACKS CARRIED OUT USING ARTIFICIAL INTELLIGENCE
The widespread adoption of artificial intelligence systems in daily life and business processes has brought with it new risks regarding the security of these systems. In particular, the evolution of artificial intelligence from a static tool that merely responds to commands given by the user to AI agents—which can plan toward a specific goal, use different tools in an integrated manner, and perform multiple tasks without human intervention—has created a critical risk area that requires separate consideration from a cybersecurity perspective.
One of the most recent and concrete examples in this risk area is the Hugging Face incident that occurred in July 2026. OpenAI revealed that, during an assessment conducted to measure its advanced cyber capabilities, its models bypassed network restrictions in the test environment (sandbox) to gain internet access and launched a chain of attacks targeting Hugging Face’s infrastructure. Hugging Face also confirmed after the incident that unauthorized access to its production infrastructure had occurred, and that certain internal datasets and service credentials had been accessed. What is particularly striking about the incident is not merely that the model identified a single security vulnerability, but that it was able to autonomously and sequentially employ different attack techniques toward a specific target.
Unlike traditional AI systems, AI agents can define intermediate steps toward a given objective, utilize external tools, and autonomously select their next actions based on the results they obtain. Therefore, the risk stems not only from the production of incorrect or misleading outputs but also from the emergence of an unpredictable chain of actions through the permissions granted to the agent. These developments raise the question of which actor can be held legally liable for cyberattacks carried out using artificial intelligence, and under what criteria.
I. The Manufacturer’s Liability Due to the Artificial Intelligence’s Independent Activity
It must be debated whether the manufacturer’s legal liability arises if an AI agent, while performing the task assigned to it, carries out a cyberattack that the manufacturer did not foresee or intend.
First, it must be noted that artificial intelligence systems are not recognized as independent legal entities (subjects of rights) under the current legal framework. Therefore, the fact that an AI agent can act without human intervention does not legally permit the resulting harm to be attributed directly to the AI itself. Liability must be assessed based on the manufacturer’s own actions, negligence, and legal duty of care—whether the manufacturer developed or marketed the system.
According to one view, holding the manufacturer liable when an AI agent acts outside its instructions or design—especially since it is impossible to predict all the unforeseeable behaviors of advanced models in advance—would mean expanding the scope of liability indefinitely. Conversely, it is argued that as the level of autonomy of an AI agent increases, the manufacturer’s safety and duty of care obligations must also increase proportionally. Assessing the risks posed by an AI agent capable of accessing external systems and operating vehicles using the same criteria as traditional AI systems would be insufficient.
The concept of predictability is of particular importance here. The manufacturer cannot be expected to identify 100% of all unexpected behaviors that the AI might exhibit in advance. Any other approach would create a flawless and unlimited scope of liability for the manufacturer. However, it cannot be argued that certain attack risks that may arise if a model known to possess advanced cyber capabilities is permitted to integrate with tools capable of accessing real systems are “completely unforeseeable.”
At this point, the key question to ask is not merely whether the attack is foreseeable. It must also be assessed whether the risk in question can be prevented through reasonable technical and administrative measures. For example, whether measures such as restricting the model’s access to live systems, requiring human approval (human-in-the-loop) for high-risk operations, maintaining access privileges at the minimum necessary level (least privilege), and fully isolating test environments from external networks were implemented will be decisive in determining liability.
In the Hugging Face incident, the fact that the model was able to access external systems despite the test environment being isolated demonstrated the need to distinguish between whether the necessary security measures were taken and whether the measures that were taken were actually sufficient. Therefore, the mere existence of a regulatory test environment (sandbox) should not be considered sufficient; the extent to which this measure is actually resilient against a potential attack must also be taken into account.
Indeed, under the European Union Artificial Intelligence Act (EU AI Act), providers of general-purpose artificial intelligence (GPAI) models that pose systemic risks are subject to binding obligations to conduct adversarial testing (also known as “red teaming”), assess and mitigate systemic risks, and ensure an adequate level of cybersecurity. Based on these regulations, we believe that while the manufacturer cannot automatically be held liable for every AI-driven cyberattack, liability will arise in the event of a breach of the duty of care to mitigate foreseeable and serious risks through reasonable technical measures.
Furthermore, in the event of unauthorized access to personal data as a result of an attack, it should be emphasized that, pursuant to Article 12 (Obligations Regarding Data Security) of the Personal Data Protection Law No. 6698, the data controller is obligated to take administrative and technical measures to ensure data security. In this context, the liability of the manufacturer and system administrators—particularly with regard to access permissions, authorization matrices, and logging systems—should be evaluated separately.
In summary, the fact that artificial intelligence acted autonomously should not, by itself, be considered a basis for exemption when determining the manufacturer’s liability. The principles of foreseeability, preventability, and the manufacturer’s sphere of control must be considered as a whole.
II. Liability of the Attacker, the Company, and the Manufacturer in External Cyberattacks
In the second scenario, the cyberattack does not stem from the AI system’s spontaneously developing autonomous behavior; rather, it arises from a third party’s deliberate use of the AI as a “tool” ( ) to carry out a cyberattack. This includes the attacker assigning a specific target to the AI agent, having it scan for security vulnerabilities, generating malicious code (malware), or infiltrating other systems using compromised credentials.
1. The Attacker’s Individual Criminal and Civil Liability
In this case, the perpetrator who carried out the attack is primarily liable. The use of artificial intelligence as a tool does not eliminate the attacker’s liability arising from their unlawful act. According to the Turkish Penal Code:
Unauthorized access to or continued presence within a computer system constitutes a violation under Article 243 of the Turkish Penal Code (TCK),
while acts such as obstructing or disrupting the system’s operation, or destroying, altering, or rendering data inaccessible, give rise to criminal liability under Article 244 of the Turkish Penal Code.
2. Liability of the User Company (Employer)
If the attack is carried out within a company or at the company’s direction, the legal picture becomes more complex. For example, if a company instructs an employee to use an AI agent to infiltrate a competitor’s systems or obtain trade secrets, focusing solely on the liability of the employee who actually committed the act would be insufficient. It must be examined whether the company was aware of the attack, whether it issued instructions, whether the company’s infrastructure was used, and whether the company derived any benefit from the attack.
Criminal Aspect: Pursuant to Article 20/2 of the Turkish Penal Code (TCK), direct criminal sanctions cannot be imposed on legal entities (subject to security measures). Therefore, the employee’s personal criminal liability must be distinguished from the company’s situation.
Civil/Tort Liability Aspect: If the conditions are met, under Article 66 of the Turkish Code of Obligations (Liability of the Employer), the company (employer) will be liable for damages caused by the employee to third parties. The company, in its capacity as an employer, will be held liable to the extent that it fails to provide “proof of exoneration” or where organizational deficiencies exist.
How companies manage their artificial intelligence usage policies (AI Governance) is also of critical importance in this regard. If employees are granted the ability to use AI agents but access permissions are not restricted, a human approval mechanism is not implemented for high-risk operations, or operation logs are not monitored, the resulting damage may be characterized as an organizational failure on the part of the company. Companies adopting a binary approach—simply deciding whether AI use is prohibited or permitted—does not provide legal protection. Clear policies must specify which employees may use which AI tools, within what authority limits, and with access to which datasets.
Conversely, if an employee uses an AI agent entirely for personal purposes and without the company’s knowledge or instruction (in a manner constituting a crime), the causal link between the company and the resulting damage will be severed, making it more difficult to hold the company liable.
3. The Manufacturer’s Position in This Scenario
The attacker’s misuse of artificial intelligence (dual-use risk) is not, by itself, sufficient to hold the manufacturer liable. Accepting the contrary would result in the manufacturer being held liable for any unlawful use of a technology by third parties, which is contrary to the law. However, if the manufacturer fails to implement necessary safety guardrails, patch known vulnerabilities, or establish reasonable control mechanisms against misuse—despite being aware of or able to foresee the model’s serious cyber risks—the manufacturer’s vicarious liability may be subject to debate.
Conclusion
The development of artificial intelligence agents’ cyberattack capabilities does not entirely eliminate the fundamental principles of liability law; however, it necessitates the adaptation of existing rules to this new technological reality.
The most sound method for determining liability in cyberattacks carried out using artificial intelligence is to evaluate each actor’s sphere of control, duty of care, and specific contribution to the incident separately, rather than focusing solely on the presence of artificial intelligence.
Four key criteria emerge in this assessment:
Predictability of Risk: The actor’s level of knowledge regarding the technology’s cyber capabilities and risks.
Preventability (Duty of Care): Whether reasonable technical and administrative measures (sandbox, access restrictions, human approval, etc.) have been taken.
Sphere of Control: The relevant actor’s actual control over the system, authorization, and processes.
Causal Link: The causal relationship between the harm resulting from a failure to take precautions or an unlawful act.
In conclusion, the situation where an AI agent exceeds security boundaries based on its own autonomous decision must be distinguished from the situation where a third party uses the AI as a tool for an attack. The legal assessment must be conducted independently, based on the specific characteristics of the case, in proportion to the breach of duty of care and security obligations by the manufacturer, the user company, the attacker, and the relevant system administrators.