Cracking the code to freedom

Cracking the code to freedom

Surapak Phuchaisaeng's ability to fight and win a landmark lese majeste case came from the very evidence that was used against him.

About three months after his arrest on lese majeste charges, Surapak Phuchaisaeng was certain the evidence against him had been doctored.

As a red shirt supporter whose ideals lie in “equality, freedom, democracy and capitalism”, he would often engage in Facebook conversations with those who disagree with his political standpoint.

But still, he never expected to be whisked away from his apartment on Lat Phrao Road on Sept 2, 2011.

A computer programmer by training, the 44-year-old quickly realised forged temporary internet files were being used, among other evidence, to allege he posted five Facebook messages deemed defamatory to the royal family.

It would be the start of Mr Surapak’s four-year battle to prove his innocence: that the cache files did not exist in the first place, and that someone was out to frame him.

“I have the mind of a red shirt, but I am innocent,” he told Spectrum at his residence after the Supreme Court acquitted him of lese majeste charges on Aug 13.

Mr Surapak was indicted on Nov 25, 2011, for posting the defamatory messages. The Criminal Court dismissed the charges on the grounds the evidence was weak. The prosecutor later appealed, but the Appeal Court affirmed the earlier ruling in March 2014. After a second appeal, the case ended this month with an acquittal from the country’s highest court.

It was a rare victory involving a charge carrying up to 15 years in jail, especially given the technicality involved.

It was also the first time in history a lese majeste defendant had ever made it to Thailand’s Supreme Court and won.


With few lawyers willing to take on a lese majeste case and no tools in hand, Mr Surapak was growing desperate in the first months after his arrest. None of his IT friends would visit him in prison, and he had already changed three lawyers.

long fight: The Supreme Court upheld Surapak Phuchaisaeng’s acquittal this month.

“Attempting to teach computer skills to a lawyer is like teaching A to Z,” said Mr Surapak, who has bachelor’s degrees in economics and law from Ramkhamhaeng University.

His time at the Bangkok Remand Prison involved pushing carts full of animal feed that would later be transported to pig farms. He read the historical Chinese novel Xun Qin Ji (The Chronicles of Finding Qin) until late at night under dim light, which he said caused him to become long-sighted.

Mr Surapak recalled how he made friends with several other prisoners facing lese majeste charges: Somyos Prueksakasemsuk, Joe Wichaicommart Gordon, Surachai “Sae Dan” Danwattananusorn, Sathian Rattanawong, Thanthawut Taweewarodomkul (Num Nor Por Chor) and Yuthapoom Martnok.

“I tried to convince them to fight,” Mr Surapak said. “After all, what employer would want to hire a lese majeste convict?”

Mr Surapak was especially close to Mr Gordon, a Thai-born US citizen accused of creating a blog with a link to download Paul Handley’s The King Never Smiles, as well as translating parts of the book and posting them online. Like Mr Surapak, Mr Gordon claims authorities fabricated the evidence, including the blog itself.

Speaking on behalf of other prisoners, Mr Gordon, who is now living in exile, said most were losing hope because lawyers were reluctant to help and lese majeste suspects tended to be denied bail.

“We had lawyers approaching us who wanted money but weren’t willing to fight the case, with some even asking for the money upfront,” Mr Gordon said.

Citing communication issues and his lawyer’s heavy workload, Mr Gordon decided to plead guilty, which resulted in his prison term being halved from the original sentence of five years. He received a royal pardon after 14 months in prison.

“How could we fight? No one has ever won a lese majeste case before, and I do not believe in the Thai court system. There is no justice,” Mr Gordon said. “Surapak’s case was rare. He was lucky for hitting the jackpot. Nobody else does.”


In prison, Mr Surapak was provided printed documents containing two source codes for Facebook and Hotmail that were allegedly contained in the temporary internet files (cache) folder on his laptop. It was an attempt to prove that he was the owner of both accounts.

A Facebook user had filed a complaint to the Technology Crime Suppression Division alleging Mr Surapak had used the email to sign in to a Facebook account under the name “We will rule the country by staging a coup”.

Mr Surapak’s hard drive was split into several partitions and the Facebook file was stored in the D drive, which he thought at the time was peculiar. After he was released and could access his computer, he learned Windows prevented files from being copied into the cache folder of drive C.

He also noticed his machine had been tampered with: he had no access to his Sony laptop or Acer PC after they were seized along with an aircard, three sim cards, 52 CDs, a modem and an electronic circuit during his arrest.

But documents from computer forensics, presented as evidence in court and seen by Spectrum, showed his laptop was switched on at 8pm the night he was arrested and on Sept 7, before the forensics team received it on Sept 8.

Documents from Microsoft provided consistent information, showing that the email was accessed on Sept 5, 6 and 7. However, in its appeal, the prosecution alleged Mr Surapak could have provided the password for “any other person” to access the email address after his arrest.

The 2012 trial, spread over four days, lasted a little over 20 hours. It would be one of the few trials in Thai history where the court allowed the use of an electronic device to support a case.

Using a Windows XP laptop, a projector and the lawyer’s mobile hotspot, the defence team demonstrated, among other things, how it was possible to forge a cache file. They also satisfied the court that Facebook does not generate cache files, and that any file claiming to be such must be false. Facebook did not respond to Spectrum’s requests for comment.

The Criminal Court dismissed the charges under the Criminal Code and the Computer Crime Act on Oct 31, 2012, on the grounds the evidence was weak, and that the digital evidence provided by the prosecution was “unreliable” and “could have been tampered with”.

“The [Facebook cache file titled] home[1].htm cannot be generated from using the internet but was generated on purpose, with the intention to serve as evidence of Facebook usage,” the court said in its ruling.

According to court records, the prosecution did not raise any argument after the defence team’s demonstration. However, in appeal documents the prosecution contended the demonstration was an “attempt to create confusion and diversion from the facts”.

Pol Maj Gen Pisit Paoin from the Technology Crime Suppression Division, who was leading the investigation at the time, said in his testimony he had used Mr Surapak’s password to open his laptop after he was arrested.


There are others who face a similar predicament to Mr Surapak. According to Yingcheep Atchanont, a project manager at the Internet Dialogue on Law Reform (iLaw), several lese majeste cases in the past have relied on electronic evidence to identify suspects.

Only five, including Mr Surapak, have so far pleaded not guilty and fought their cases on technical grounds.

The other four were Ampon Tangnoppakhun (Uncle SMS), Katha Pajariyapong (Katha Wet Dream), Noppawan Tang-udomsuk (Bento) and Mr Thanthawut.

“However, from what I’ve witnessed from studying all these cases, the evidence is all distorted,” Mr Yingcheep said. “Since there are many ways for the suspects to avoid being detected, authorities try to come up with other types of evidence.”

Sawatree Suksri, an assistant professor of law at Thammasat University, hailed the Supreme Court ruling as a significant milestone in the history of lese majeste cases, but cautioned the problems associated with Article 112 — such as its vagueness and broad interpretation — still exist.

Ms Sawatree, also a core member of Thammasat University’s Enlightened Jurists Group, known as Nitirat, wrote a 20-page critique of Mr Surapat’s case soon after the Criminal Court delivered its judgement in 2012. The paper was posted on Nitirat’s website, which is blocked by the government. The group faced heavy criticism over its 2012 campaign to amend the lese majeste law.

“The case may provide hope for those defending computer-related criminal charges and give them reason to think they may win their case if it is proven that the evidence is unclear,” Ms Sawatree said.

“But since Mr Surapak was acquitted due to technical reasons as opposed to the content of the [Facebook] messages itself, the outcome of the judgement does not directly address the problems of Article 112.”


That the electronic evidence used in Mr Surapak’s trial had been tampered with was not only key to his acquittal, but also highlights the lack of rules governing digital investigations.

Although Thailand does not have specific rules for the collection and handling of such evidence, the Electronic Transactions Development Agency is in the process of drafting a best-practice guideline. It will be based loosely on the UK guideline, which prohibits data being tampered with, requires a third-party audit of the examination and puts the onus on the person in charge of the investigation to ensure those principles are followed. The ETDA declined to comment on the matter.

Andrew Smith, director of computer forensics at Orion Investigations Co, stressed the importance of the defence team having access to the same data or forensic images as the prosecution for the sake of transparency.

In the UK, he said, the defence team would request a copy of the forensic image and undertake their own examination.

“If a file had been modified or was not present on the forensic image this would be detected very quickly,” said Mr Smith, who has been involved in computer forensics for nearly 10 years in the UK.

Investigators are meant to conduct the examination on a forensic image of the hard drive — commonly referred to as a bit-for-bit copy, in which all sectors of the drive are replicated without any changes — as opposed to the original machine. Digital fingerprints known as hashes are embedded when the forensic images are created and can be used to verify their integrity.

Although the prosecution team claimed to have created a forensic image of Mr Surapak’s laptop, according to the testimony seen by Spectrum they failed to provide evidence of it.


After the verdict was read out at the Supreme Court on Aug 13, Mr Surapak told reporters he would consider suing those he believes framed him.

Although work was hard to find in the early days of his release, due to the stigma associated with the lese majeste charge, Mr Surapak now receives a steady income from freelance IT work.

He has yet to receive compensation for the 13 months spent on remand, calculated at 200 baht per day.

Speaking to Spectrum after his yearly visit to see his mother in the northeastern province of Bung Kan, Mr Surapak attributes his success to many factors: fate, moral support from red shirt sympathisers, his IT expertise, his mother meeting his lawyer by coincidence at a TV show and having an experienced witness to take the stand during his trial.

Mr Surapak’s lawyer, who asked not to be named to avoid becoming a target for lese majeste crusaders, found an IT specialist with extensive experience in computer programming to give evidence.

“The process of finding an expert witness was hard but what was even more depressing is the negative mindset of the investigators: they gave no respect to the victim, who was not even granted bail,” the lawyer said.

“As soon as you are accused of lese majeste, you are condemned by society, and lawyers who help these suspects are branded tanai lom jao [lawyers plotting to overthrow the monarchy]. It disturbs me from time to time, but I try not to think about it.”

The lawyer’s closing argument consisted of a question he asked the expert witness, a navy officer who has also requested anonymity. He was asked why he had chosen to take part in the case. Mr Surapak recalled the witness’s response as “strong words that gave me goosebumps and left me speechless”.

According to court transcripts, the witness said, “For me, loyalty to the monarchy comes in many forms, but I do not agree with loyalty in the form of causing people trouble, such as the witch hunts.

“Meanwhile, the problems caused to the defendant are immediate, resulting in dissatisfaction towards the monarchy … My role this time is to help seek the truth in order to provide justice to all sides, especially the defendant, which I consider to be one form of protecting the monarchy.”

On his way out: Surapak Phuchaisaeng was released from detention after being acquitted of lese majeste in October 2012, then faced almost three years fighting appeals from prosecutors.

Do you like the content of this article?