Can the law of a country be applied over a resident of another country?
<p>Let's say for example that I am the resident of country X. I'm a hacker and I decided to hack into bank accounts of people from Saudi Arabia. However, Saudi Arabia has a law which prohibits hacking bank accounts and gives a penalty of cutting the hands of the criminal if he is caught doing that practice. My own country also has a law forbidding hacking bank accounts, but instead gives a penalty of 5 years of prison if I ever get caught.</p>
<p>I'm a citizen of country X, and I decided to hack the bank accounts of people from Saudi Arabia. However, due to failure protecting my identity, the government of Saudi Arabia was able to get hold of my name and my home address. Can Saudi Arabia track me down and have me subjected to their law and proceed to cut off my hands, or am I going to be subjected to the punishment of my own country's law?</p>

<p>The victim's country might seek the suspect's <a href="https://en.wikipedia.org/wiki/Extradition" rel="nofollow noreferrer">extradition</a> from the country of residence.</p>
<p>Extradition is a formal law enforcement process whereby the authorities in each country cooperate to hand over the suspect to the victim's country.</p>
<p>Whether extradition can take place depends on factors such as:</p>
<ul>
<li><p>whether it's permitted by the constitution of the country of residence - some constitutions do not permit the extradition of their citizens</p>
</li>
<li><p>whether there is an extradition treaty between the two countries (e.g. the US-Canada extradition treaty) or as part of the laws within a supranational body of which the countries are members (e.g. the EU)</p>
</li>
<li><p>the outcome of an extradition hearing, if there is one - the suspect might be allowed to appeal against the extradition (and against an adverse decision)</p>
</li>
<li><p>whether the government of the country of residence approves or blocks the extradition</p>
</li>
</ul>
<p>A case pertinent to your hypothetical is that of <a href="https://en.wikipedia.org/wiki/Gary_McKinnon" rel="nofollow noreferrer">Gary McKinnon</a>, a Briton resident in the UK who was accused by the US government of hacking into many military and NASA computers. He was indicted by a federal grand jury and the US sought his extradition from the UK. After a few years of litigation, including appeals to the-then superior court of the UK the House of Lords and the European Court of Human Rights, which on the whole went against him, his extradition was blocked by the-then Home Secretary Theresa May on human rights grounds.</p>
<p>A process outside the legal system of the victim's country is <a href="https://en.wikipedia.org/wiki/Extraordinary_rendition" rel="nofollow noreferrer">extraordinary rendition</a> - although sometimes the government of the suspect's country secretly cooperates. This is state-sponsored kidnapping or abduction - agents of the 'victim' country grab the suspect and move him to that country or some other place. So far as I'm aware, however, it has not been used on hackers - only people suspected of terrorism. There is at least one known case where the person was abducted by mistake.</p>
<p>Alternatively the two countries might come to an agreement whereby the person is tried in the country of residence and punished there if convicted.</p>

<p>You've asked two distinct, but related, questions:</p>
<ol>
<li><p>Even if you were never in a country, can you be charged with breaking their laws? and,</p>
</li>
<li><p>If you are convicted of breaking their laws, can they punish you?</p>
</li>
</ol>
<p>To take your example:</p>
<p>First, whether the Saudis could charge you for breaking their laws depends on the <em><a href="https://en.wikipedia.org/wiki/Extraterritorial_jurisdiction" rel="nofollow noreferrer">extraterritoriality</a></em> or <em>extraterritorial jurisdiction</em> of their cyber-law. As the name says, <em>extraterritoriality</em> deals with whether a country's law applies outside its borders. Whether a law is extraterritorial depends on the specific law and country. For example, American courts are guided by the <em>presumption of territoriality,</em> that unless a statute explicitly says otherwise, statutes apply only inside the  country. Because many hackers and other cyber-criminals are never physically in the same country as their victims, <em><a href="https://www.natlawreview.com/article/extraterritorial-application-computer-fraud-and-abuse-act" rel="nofollow noreferrer">cyber-law</a> often applies extraterritorially.</em></p>
<p>Second, whether, once charged, you could be tried without being in the country, also depends on the country. In many countries, people can be tried <em><a href="https://en.wikipedia.org/wiki/Trial_in_absentia" rel="nofollow noreferrer">in absentia,</a></em> (without being at the trial) so it is possible the Saudis could convict you without you going to Saudi Arabia.</p>
<p>Finally, <strong>punishment is not extraterritorial</strong> -- you must be in the country that convicted you to be punished. As Lag points out, it seems clear  could extradite you. <a href="https://en.wikipedia.org/wiki/Extradition" rel="nofollow noreferrer">Extradition</a> is the legal process of sending someone accused or convicted of a crime in another country back to that country for trial or punishment. Extradition is covered by treaties. For various reasons, many countries do not have extradition treaties with the Saudis, although as a practical matter, your government may choose to cooperate with the Saudis.</p>
<p>(The case of Jamal Khashoggi suggests the Saudis may have a different understanding of extraterritorial jurisdiction.)</p>

extraterritorial-jurisdiction