Threats, Attacks and How They Work
Chapter Twenty-One
Syllabus topic 1.4, "Information Security"
Pages 116 to 120 of 948
In one line
There are about a dozen ways to attack a computer, each of them is simple once described, and each maps onto a provision of this Act.
In the wording a student can write in an exam: attacks on information systems are conventionally classified by the objective they defeat, so that unauthorised access, malicious software and social engineering attack confidentiality and integrity, while denial of service attacks availability, and Indian law addresses them through section 43 as a civil wrong and sections 65, 66, 66B to 66F and 67 as offences.
Why a lawyer must know how the attacks work
Because the offence is defined by conduct, and you cannot match conduct to a section you do not understand. Section 43(c) covers introducing a computer contaminant or computer virus. Section 43(e) covers disrupting a computer, computer system or computer network. Section 43(f) covers denying access to an authorised person. Whether a set of facts is (c), (e) or (f) is a technical question first.
And because the 2016 paper asked for the nature of cyber crimes and a description of at least three types, with the provisions of the Act, the Penal Code and other laws that address them. That is this chapter and chapter 1090 together.
Malware: software written to do harm
Malware is the general word. The Act uses computer contaminant and computer virus, both defined in the Explanation to section 43, and chapter 1100 quotes those definitions in full.
A virus attaches itself to a file or a program and spreads when that file is run. It needs a human being to open something.
A worm spreads by itself across a network, exploiting a weakness in software rather than waiting for a user. That is why a worm can cross the world in hours.
A trojan pretends to be something useful. The user installs it deliberately, believing it to be a game or a utility, and it does something else as well.
Ransomware encrypts the victim's files and demands payment for the key. It attacks availability rather than confidentiality: the data is still there and the owner cannot reach it. It is the commonest serious attack on Indian organisations today, and it engages section 43(d), (e) and (f) at once, section 66, and, where the target is a protected system or critical infrastructure, section 66F.
Spyware watches: keystrokes, screens, cameras, location. A keylogger records everything typed, which is how banking credentials are most often taken.
A rootkit hides. It modifies the operating system so that the other malware does not appear in any list of running programs, which is why forensic examination works on an image of the disk rather than by asking the running machine what is on it.
Threats, Attacks and How They Work
A botnet is a network of compromised machines under one controller. The owners do not know. Botnets are rented out, and they are what makes a large denial of service attack possible.
Attacks on people: social engineering
The technical controls are usually sound and the person is not, and most successful attacks begin here.
Phishing is a message that pretends to come from somebody trusted and asks for credentials or a payment. The classic is an email that appears to be from a bank with a link to a page that looks like the bank's. It engages section 66C, identity theft, and section 66D, cheating by personation using a computer resource, and chapter 1210 works those.
Spear phishing is phishing aimed at one person, using facts about them, and it is far more effective. Business email compromise is its commercial form: an email that appears to come from a director instructing a payment, or from a supplier changing its bank details, which is the fact pattern chapter 120 works.
Vishing and smishing are the same attack by voice call and by text message.
Pretexting is inventing a situation that makes the request seem normal, such as calling as the information technology helpdesk and asking a new employee to confirm a password.
None of these is a technical failure, which is why rule 8(1) of the SPDI Rules requires managerial and operational controls and not only technical ones. Chapter 230 works it.
Attacks on the machine
Unauthorised access is using a system you are not permitted to use. It may be by a stolen or guessed credential, by an unpatched weakness in the software, or by a configuration mistake such as a database left open to the internet. Section 43(a) covers accessing or securing access without permission; section 66 makes it an offence if done dishonestly or fraudulently.
Exceeding authorised access is being permitted to use a system and doing more with it than permitted. The employee who is allowed to read one customer's file and reads ten thousand is the paradigm. In India section 43 turns on "without the permission of the owner", which covers it. In the United States the same question produced the litigation chapter 630 works.
A brute force attack tries passwords until one works. A dictionary attack tries likely ones. Credential stuffing tries username and password pairs leaked from some other service, which works because people reuse passwords.
Privilege escalation is turning ordinary access into administrator access, usually by exploiting a defect.
Injection attacks send input that the receiving program treats as an instruction. The best known is SQL injection, where text typed into a form is passed to the database as part of a query, so that typing the right characters into a login box can return the entire customer table. It requires no special access at all and is still among the commonest causes of large breaches.
Threats, Attacks and How They Work
A man in the middle attack sits between two parties, relaying and possibly altering what each sends while both believe they are talking directly. Encrypted connections and certificate checking exist to defeat it, which is the practical reason the certificate machinery of Module II matters.
Attacks on availability
A denial of service attack sends a machine more requests than it can answer, so that legitimate users cannot get through.
A distributed denial of service attack does the same from thousands of machines at once, usually a botnet, which makes it very hard to block because the traffic looks like ordinary users.
Section 43(f) covers denying or causing the denial of access to any person authorised to access, and section 43(e) covers disrupting a computer, computer system or computer network. Against a protected system or critical infrastructure, section 66F(1)(A) makes denial of access an act of cyber terrorism where the intent or knowledge that section requires is present. Chapter 1320 works it.
Attacks on the supply chain and on infrastructure
A supply chain attack compromises a supplier to reach its customers. Software update mechanisms are the usual route, because an update is trusted by definition.
Domain name system attacks send a user to the wrong machine. In pharming, the translation of a name to an address is corrupted so that a correct address in the browser reaches an attacker's server.
Website defacement replaces the content of a page, which is often political rather than acquisitive and engages section 43(i) and section 66, and section 66F where the target and the intent bring it within cyber terrorism.
The attacks and the provisions, side by side
| Attack | What it defeats | Civil | Criminal | Chapter |
|---|---|---|---|---|
| Unauthorised access | Confidentiality | s.43(a) | s.66 | 1100, 1180 |
| Downloading or copying data | Confidentiality | s.43(b) | s.66 | 1100, 1180 |
| Virus, worm, ransomware, contaminant | Integrity, availability | s.43(c) | s.66 | 1100 |
| Damage to data or the system | Integrity | s.43(d), (i) | s.66 | 1100 |
| Denial of service | Availability | s.43(e), (f) | s.66; s.66F where the intent is present | 1100, 1320 |
| Source code theft or alteration | Integrity | s.43(j) | s.65 | 1170 |
| Phishing and identity theft | Authenticity | s.43(a), (b) | ss.66C, 66D | 1200, 1210 |
| Receiving a stolen device or resource | s.66B | 1200 | ||
| Spyware capturing private images | Confidentiality | s.66E | 1210 | |
| Attack on critical infrastructure | Availability, integrity | s.66F | 1320 | |
| Publishing obscene material | ss.67, 67A, 67B | 1220, 1230 | ||
| Breach by a service provider | Confidentiality | s.43A | s.72A | 1040, 1250 |
A worked example
A distributor in Kolhapur receives an email that appears to be from its regular supplier in Ludhiana, saying the supplier's bank account has changed. The distributor pays twenty-two lakh rupees to the new account. The money is gone.
Threats, Attacks and How They Work
Step one: what actually happened? Two possibilities, and they have different legal consequences. Either the supplier's mailbox was compromised and the email really came from it, or the email was spoofed and merely looked as though it did. The headers answer this, and chapter 20 explains why they must be preserved before anything else.
If the mailbox was compromised, there was unauthorised access to the supplier's system under section 43(a), probably by phishing or credential stuffing. The supplier may be exposed under section 43A if it held the distributor's information and was negligent about security, and chapter 230 supplies the standard. The fraudster is caught by sections 66, 66C and 66D.
If the email was spoofed, no computer of the supplier was touched at all. The fraudster is still caught by sections 66C and 66D, because he used another person's unique identification feature and cheated by personation using a computer resource. The supplier is not exposed, and the distributor's own verification process becomes the issue.
In both cases the general penal law applies as well, section 318 of the Bharatiya Nyaya Sanhita on cheating, and chapter 1280 shows how the two statutes work together. The money is traced through the banking system, and the Reserve Bank's directions on unauthorised electronic transactions govern the bank's position.
The point of the example is that the legal analysis did not begin with a section. It began with a technical question about which machine was accessed.
What this does NOT mean
It does not mean every attack is an offence under this Act. Section 66 requires the act to be done dishonestly or fraudulently, so a security researcher who accesses a system to report a weakness commits a contravention under section 43 and may not commit the section 66 offence at all. Chapter 1180 works the mental element.
It does not mean the classification decides the section. The names in this chapter are technical usage, not statutory categories. The Act's categories are the ten clauses of section 43 and the offences in Chapter XI, and an answer should reason from those.
It does not mean the attacker is always outside the organisation. Most serious losses involve a person who was given access, which is why least privilege matters and why section 43's test is the owner's permission rather than physical intrusion.
Quick revision
- Malware: virus (needs a user), worm (spreads itself), trojan (pretends to be useful), ransomware (encrypts and demands payment, attacking availability), spyware and keyloggers, rootkits (hide), botnets (rented networks of compromised machines).
- Social engineering: phishing, spear phishing and business email compromise, vishing, smishing, pretexting. Most successful attacks begin here, and the failure is administrative rather than technical.
- On the machine: unauthorised access, exceeding authorised access, brute force, dictionary and credential stuffing, privilege escalation, injection including SQL injection, man in the middle.
- On availability: denial of service and distributed denial of service.
- Elsewhere: supply chain attacks, DNS attacks and pharming, defacement.
- The Act's own words are computer contaminant and computer virus, defined in the Explanation to section 43.
- Section 66 needs the act to be dishonest or fraudulent; section 43 does not.
Threats, Attacks and How They Work
Test yourself
1. Distinguish a virus, a worm and a trojan. A virus attaches to a file or program and spreads when that file is executed, so it needs a human act. A worm spreads by itself across a network by exploiting a defect, which is why it propagates so fast. A trojan is installed deliberately by the user because it appears to be something useful, and performs a hidden function as well.
2. Which clauses of section 43 does a ransomware attack engage, and why more than one? Clause (c) if a computer contaminant or virus was introduced; clause (d) for damage to data; clause (e) for disruption of the computer, computer system or computer network; and clause (f) for denial of access to authorised persons. More than one because the single attack simultaneously introduces malicious code, alters the data by encrypting it, disrupts the system's working, and locks out the people entitled to use it.
3. What is SQL injection and why is it a lawyer's concern? Input typed into an ordinary form is passed to the database as part of a query, so that carefully chosen characters cause the database to return or alter data the user was never entitled to. It is a lawyer's concern because it requires no credential and no privileged access, so a breach caused by it is almost always attributable to the defendant's own failure to validate input, which goes directly to the negligence question under section 43A and rule 8.
4. A security researcher accesses a company's server without permission, takes nothing, and reports the weakness. What is the position? He has secured access to a computer resource without the permission of the owner, so section 43(a) is engaged and a contravention has occurred, for which compensation may be claimed if damage is shown. Section 66 requires the act to be done dishonestly or fraudulently, and on those facts neither mental element is present, so the offence is not made out.
5. Why does the analysis of a business email compromise begin with the email headers? Because the legal consequences differ according to whether the supplier's mailbox was actually accessed or the message was merely spoofed. In the first case there was unauthorised access to the supplier's system and the supplier's own security may be in issue under section 43A; in the second no computer of the supplier was touched and only the fraudster is liable. Only the headers, and the mail server logs, distinguish the two, and both are volatile.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.