← Back to Articles List

Lawfare and National Security: Artificial Intelligence, Invisible Espionage and The Challenge To Fair Trial

Author Jawad Hussain Aadil
Category PLD
Publication Year 2026
305 LAWFARE AND NATIONAL SECURITY: Artificial Intelligence, Invisible Espionage And The Challenge To Fair Trial By Jawad Hussain Aadil Advocate High Court, Islamabad 1. INTRODUCTION The nature of espionage has undergone a profound transformation in the age of artificial intelligence, big data, and hyper-connectivity. Unlike traditional spying which required physical access, human agents, and tangible documents modern espionage operates through algorithms, encrypted networks, and digital footprints that are often invisible, instantaneous, and difficult to trace. Artificial intelligence (AI), machine learning systems, and automated data-processing tools have made it possible to extract, analyze, and transmit sensitive information with unprecedented speed and precision. A single compromised device, cloud account, or communication channel can now expose vast quantities of classified material without any obvious physical breach. More critically, such activities often leave minimal detectable evidence, making espionage not only easier to conduct but also harder to identify and prosecute. In this evolving technological landscape, the threat to national security is no longer confined to deliberate acts of spying. Inadvertent data leaks, cyber intrusions, metadata analysis, and AI-driven surveillance can collectively compromise state secrets in ways that are subtle yet deeply damaging. Consequently, governments have responded by tightening secrecy regimes and expanding surveillance capabilities. In Pakistan, prosecutions under the Official Secrets Act 1923 increasingly arise within this digitized ecosystem, where the boundaries between intentional espionage, negligent data handling, and automated information flows are becoming blurred. This creates a complex intersection between heightened national-security concerns and the constitutional guarantees of due process and fair trial. 2. CURRENT LEGAL FRAMEWORK IN A DIGITAL CONTEXT The Official Secrets Act 1923 (as applicable in Pakistan) is the primary statute governing official secrets related offenses. It criminalizes acts such as transmitting, collecting, or communicating official information, obtaining information dishonestly, and other forms of interference with official secrets. Penalties range from fines to imprisonment, depending on the specific offense and the degree of harm alleged. In Pakistan, the OSA 1923 operates within the general criminal-justice architecture, including the Pakistan Penal Code and the Evidence Act (Qanun-e-Shahadat Order, 1984). Criminal procedure for espionage cases typically follows the Code of Criminal Procedure (Cr.P.C.), but the Act s secrecy provisions interact with these general procedures in meaningful ways. It is a fact that the Act was conceived in an era of physical documents and human intelligence. Its application to modern technologies such as encrypted messaging apps, cloud storage, artificial intelligence systems, and cyber networks raises significant interpretive challenges. For instance: What constitutes communication in an age of automated data syncing? Can algorithmic data extraction or AI-driven analysis amount to espionage? How should liability be determined where information is shared through decentralized or anonymous digital systems? Constitutional and statutory commitments to due process and a fair trial underpin all criminal prosecutions. The state must balance national security interests with the defendant s rights to defense, to be presumed innocent, to be present at trial, to challenge evidence, to know the charges, and to appeal. In practice, courts have faced pressure to respect national-security concerns while maintaining basic procedural rights. 3. TECHNOLOGY-DRIVEN FAIR TRIAL CHALLENGES: The integration of AI and digital technologies into espionage has amplified several existing fair-trial concerns: a. Digital Evidence and the Right to Defense: In modern espionage cases, evidence often consists of: - encrypted communications - metadata logs - AI-generated intelligence reports - Surveillance outputs Such material is frequently classified, highly technical and difficult for the defense to independently verify. If access is restricted or limited to summaries, the accused may be deprived of a meaningful opportunity to challenge the authenticity, accuracy, or context of the evidence. b. Invisible Espionage and Evidentiary Uncertainty: AI-driven systems can collect and process information without direct human involvement. This raises critical legal questions: Who is responsible the individual, the system, or the operator? How reliable are algorithmic conclusions? Can automated intelligence be cross-examined? The opacity of AI systems ( black-box algorithms) can undermine evidentiary transparency, making it harder for courts to assess reliability and for the defense to contest the prosecution s case. c. In-Camera Proceedings and Digital Secrecy: Section 14 of the OSA allows in-camera trials where disclosure may harm national security. In technology-driven cases, this becomes more frequent because: cyber intelligence methods are classified surveillance tools are sensitive disclosure may expose vulnerabilities While necessary, such secrecy reduces transparency and public oversight, potentially weakening confidence in the judicial process. d. Data Classification and Over-Secrecy in the Digital Age: With vast volumes of digital data being generated, the scope of what may be classified as secret has expanded significantly. Governments may classify: entire datasets communication networks intelligence methodologies This creates a risk of over-classification, where even non-sensitive information is withheld, limiting the defense s ability to construct a full and effective case. e. Delays Due to Technical Complexity: Digital espionage investigations require: forensic analysis of devices decryption processes expert evaluations of AI systems These processes are time-consuming and may delay proceedings, affecting the accused s right to a timely trial. f. Defense Counsel and Technical Barriers: Even where access is granted, defense counsel may face practical challenges: lack of technical expertise inability to independently verify digital evidence dependence on state-controlled interpretations This creates an imbalance between the prosecution (often supported by state intelligence resources) and the defense. 4. GLOBAL PERSPECTIVE: TECHNOLOGY AND SECRECY a. Shift from traditional spying to digital espionage: Earlier, espionage meant physical documents, human agents, and secret meetings. Now it often involves cyber tools, hacking, and data interception. Incidents linked to groups like APT28 or Lazarus Group show how state and non-state actors can steal vast amounts of sensitive data remotely. This makes prosecution harder because: Evidence is digital and easily erased or encrypted Attribution (proving who did it) is difficult b. Jurisdictional challenges: Espionage is no longer confined within borders. A hacker sitting in one country can target another country s military or government systems. Cases involving the United States Department of Justice indicting foreign nationals (often in absentia) show that: States assert extraterritorial jurisdiction But actual arrest and trial depend on extradition, which is often refused c. National security v. fair trial: One of the biggest tensions globally is between: Protecting classified information Ensuring the accused gets a fair trial Courts in jurisdictions like the European Court of Human Rights emphasize that even in espionage cases: The accused must know the case against them Secret evidence cannot completely override due process. However, states increasingly rely on: Closed hearings Redacted evidence Special advocates d. Politicization of espionage prosecution: Modern espionage cases are often deeply political. Examples like the case of Edward Snowden or Julian Assange show how: Prosecution can be framed as national security enforcement Defence often frames it as whistleblowing or freedom of information This creates international divisions and inconsistent legal approaches. e. Rise of lawfare in espionage: States are increasingly using legal systems strategically: To deter foreign intelligence operations To send political signals To justify sanctions or diplomatic actions This turns prosecution into not just a legal act, but a tool of international relations. f. Evidentiary and technological problems: Modern espionage cases involve: Metadata Surveillance logs Intelligence reports But courts struggle with: Admissibility of classified intelligence Reliability of digital forensics Use of AI-generated or intercepted data 7. International Jurisdiction Many countries are tightening laws similar to the Official Secrets Act, 1923 or expanding cybercrime frameworks. A comparison with other jurisdictions shows a recurring pattern: states invoke national security to justify limiting or shaping procedural rights. The specifics vary, but the underlying tension is familiar. - United States: Under the Espionage Act of 1917, prosecutions normally occur in public trials. However, protection of classified evidence is governed mainly by the Classified Information Procedures Act (CIPA). Courts may hold in-camera hearings to determine how classified evidence will be used. The government can request substitutions, summaries, or redacted versions of classified documents instead of full disclosure. The accused is not always given full copies of highly classified material; instead, the court ensures the defense receives sufficient information to prepare a defense. State secrets privilege frequently leads to the exclusion or non-disclosure of evidence in civil and criminal proceedings involving national security. Courts have sometimes dismissed claims or limited the scope of discovery to protect classified information, raising concerns about accountability and the accused s ability to contest the case. The balance struck reflects a strong separation of powers and a robust system of appellate oversight, but it remains a point of contention for those who view it as undermining due process. - United Kingdom: In UK espionage and disclosure offences fall under the Official Secrets Act, 1989. Trials are generally public, but courts may restrict disclosure through Public Interest Immunity (PII) or closed proceedings. Under the Justice and Security Act 2013, courts may conduct closed material procedures where sensitive evidence is considered without public disclosure. In such situations, special advocates may review the secret evidence on behalf of the accused, while the accused may only receive a summary. The UK has a long history of using public interest immunity and, in some cases, closed material procedures to shield sensitive evidence in national-security-related cases. While these tools aim to protect national security, they also invite criticism for reducing transparency and impairing the defendant s ability to challenge the prosecution, unless there are mechanisms such as special advocates to represent the client in certain secret-evidence contexts. - India: The Official Secrets Act, 1923 remains a central instrument for espionage-related prosecutions. Like Pakistan, India grapples with the tension between secrecy and fair trial, with ongoing debates about admissibility of secret evidence, the use of in-camera proceedings, and the safeguards available to defendants. Public debate and judicial scrutiny continue to press for greater transparency and due process protections in sensitive cases. - Canada: National-security secrecy offences fall under the Security of Information Act. Handling of classified evidence is regulated mainly by Section 38 of the Canada Evidence Act. Courts may conduct in-camera hearings to decide whether disclosure of sensitive information would harm national security. If disclosure is restricted, the court may allow edited or summarized versions so that the accused s right to make full answer and defence is protected. The global trend reflects a shift from traditional secrecy to technological secrecy, where not just the information, but also the method of obtaining it, is protected. CONCLUSION A comparative examination of official secret laws reveals a consistent theme: while states frequently invoke national security to justify restrictions on disclosure, cross-examination, or access to sensitive evidence, the legitimacy of such measures ultimately depends on whether they remain proportionate, necessary and subject to meaningful judicial oversight. The experience of other jurisdictions demonstrates that the most credible systems seek to balance secrecy with transparency by allowing narrowly tailored confidentiality measures that remain open to independent judicial review and accompanied by procedural safeguards for the accused. In the context of the Official Secrets Act 1923, this balance becomes particularly significant, as espionage prosecutions highlight the continuing tension between protecting state secrets and upholding the constitutional guarantees of a fair trial. In the international perspective, prosecuting espionage today is a balancing exercise: Easier to commit (due to technology) Harder to prove (due to attribution and secrecy) More political (due to global tensions) More legally sensitive (due to human rights concerns) The real challenge is not to choose between national security and due process, but to construct a disciplined and accountable framework where secrecy is clearly defined, proportionate, and reviewable. Strengthening judicial scrutiny, clarifying thresholds for secrecy, ensuring defense access to relevant material to the greatest extent possible, and providing procedural safeguards where classified evidence is involved would help ensure that national security protections do not undermine the credibility of the criminal justice process. Such an approach would reinforce both the protection of sensitive information and Pakistan s commitment to the rule of law and fair-trial standards. However, the legal system has yet to fully adapt to this transformation. The increasing reliance on classified digital evidence, algorithmic intelligence, and in-camera proceedings risks undermining the foundational principles of fair trial and due process. The real challenge is not merely to strengthen national-security protections, but to ensure that such protections evolve alongside technological advancements without eroding judicial integrity. This requires: clearer legal standards for digital and AI-based evidence enhanced judicial scrutiny of classified material mechanisms for meaningful defense access, even in sensitive cases and safeguards against over-classification and misuse A balanced approach where technological realities are acknowledged but constitutional guarantees remain intact is essential. Only then can the legal system effectively respond to the invisible yet potent threat of modern espionage while preserving the rule of law.