Tampering with computer source code — when it becomes an offenceSection 65 of the Information Technology Act, 2000 is one of the original-Act offences and the first provision of Chapter XI. It punishes the knowing or intentional concealment, destruction or alteration of any computer source code "required to be kept or maintained by law for the time being in force." Three years' imprisonment, fine up to two lakh rupees, or both — cognizable and non-bailable under Section 77B of the IT Act. The "required-by-law" clause i Tampering with source code that the lawrequires you to keep
[ Everyday Law ]

Tampering with computer source code — when it becomes an offence

Section 65 of the Information Technology Act, 2000 is one of the original-Act offences and the first provision of Chapter XI. It punishes the knowing or intentional concealment, destruction or alteration of any computer source code "required to be kept or maintained by law for the time being in force." Three years' imprisonment, fine up to two lakh rupees, or both — cognizable and non-bailable under Section 77B of the IT Act. The "required-by-law" clause is the doctrinal gravamen, and links the offence to the electronic-records mandates under the Companies Act, 2013, the Income-tax Act, 1961, the Central Goods and Services Tax Act, 2017, and the sectoral RBI, IRDAI and SEBI regimes. The Andhra Pradesh High Court's decision in Syed Asifuddin v State of A.P. (AP HC, 2005) — the Reliance handset reprogramming case — is the doctrinal anchor.

Section 65 of the Information Technology Act, 2000 has a peculiar place in the architecture of Chapter XI. It is the first provision of the offences chapter, untouched by the major rewriting that the Information Technology (Amendment) Act, 2008 visited on Sections 66 to 67B, and one of only a handful of provisions in Chapter XI whose ingredients have remained substantively stable since the original Act came into force. Despite that stability, the provision is narrow — narrower than the colloquial use of "source-code theft" would suggest. The gravamen is not the unauthorised reproduction or commercial exploitation of source code (those routes run through the Copyright Act, 1957 and the body of contractual remedies); it is the concealment, destruction or alteration of source code that the law for the time being in force requires to be kept or maintained. The qualifier is doctrinal, not decorative. If the source code is not required by some other law to be kept or maintained, Section 65 does not bite, however serious the underlying conduct may otherwise be. This article maps the ingredients, the cross-references that supply the "required by law" gateway, the leading judicial interpretation, and the overlap with the cognate provisions in the IT Act and the Bharatiya Nyaya Sanhita, 2023.

The statutory text and the four ingredients

Section 65 of the Information Technology Act, 2000 reads: "Whoever knowingly or intentionally conceals, destroys or alters or intentionally or knowingly causes another to conceal, destroy or alter any computer source code used for a computer, computer programme, computer system or computer network, when the computer source code is required to be kept or maintained by law for the time being in force, shall be punishable with imprisonment up to three years, or with fine which may extend up to two lakh rupees, or with both." The Explanation defines "computer source code" as the listing of programmes, computer commands, design and layout and programme analysis of computer resource in any form.

Four ingredients have to be made out. First, the actus reus — concealment, destruction or alteration, or intentionally or knowingly causing another to conceal, destroy or alter. The provision criminalises both direct conduct and abetment-on-the-face-of-the-section. Second, the object — computer source code, defined in the Explanation to include not only program listings but also commands, design, layout and programme analysis "in any form." The "in any form" formulation has been read by High Courts to extend the definition beyond classical program listings to include server logs and configuration files, on the doctrinal basis that these too are listings of computer commands or program-analysis records. Third, the use-context — the source code must be used for a computer, computer programme, computer system or computer network. The terms are defined in Section 2 of the IT Act. Fourth, the qualifier — the source code must be one "required to be kept or maintained by law for the time being in force." This is the gateway clause; without it, the offence is not made out, however reprehensible the tampering.

The mental element is express on the text — "knowingly or intentionally." The IT Act does not define either term; the construction is borrowed from Section 39 of the Indian Penal Code, 1860 (now Section 38 of the Bharatiya Nyaya Sanhita, 2023) and the long line of case-law on "intentionally" in the IPC, including the Supreme Court's reasoning in State of Maharashtra v Mayer Hans George, (1965) 1 SCR 123 on the construction of statutory mens rea terms. Section 65 is, accordingly, not a strict-liability offence.

The offence is cognizable and non-bailable under Section 77B of the IT Act, and triable by a Magistrate of the First Class. The Section 77B classification — common to most Chapter XI offences punishable with imprisonment of three years or more — is one of the operational levers that distinguishes the IT Act offences from the older IPC framework, and it is the reason a Section 65 FIR can be registered straightforwardly under Section 173 of the Bharatiya Nagarik Suraksha Sanhita, 2023 without preliminary inquiry.

The "required by law" gateway — where the qualifier is actually satisfied

The gateway clause is, in practice, where every Section 65 prosecution either lands or falls. The provision draws its content from the body of statutes that mandate the maintenance of computer source code or its functional equivalent (electronic records of accounts, audit trails, server logs, configuration archives) in identified contexts.

The Companies Act, 2013 — Sections 128 and 129. Section 128 requires every company to prepare and keep at its registered office books of account and other relevant books and papers and financial statements for every financial year which give a true and fair view of the state of affairs of the company. The proviso to Section 128(1) — added by the 2013 Act and operationalised through the Companies (Accounts) Rules, 2014 — permits the maintenance of books of account in electronic form. Rule 3 of the Companies (Accounts) Rules, 2014, as amended by the Ministry of Corporate Affairs Notification G.S.R. 247(E) dated 24 March 2021 (with subsequent deferrals), introduced the audit-trail mandate: every company which uses accounting software for maintaining its books of account is required to use only such accounting software which has a feature of recording an audit trail of each and every transaction, and creating an edit log of each change made in books of account along with the date when such changes were made and ensuring that the audit trail cannot be disabled. The mandate became operative from financial year 2023-24. The audit-trail records, and the source code of the accounting software in so far as it relates to the audit-trail feature, are "required to be kept or maintained by law" within the meaning of Section 65 of the IT Act. Tampering with the audit-trail logs or with the source code that operates the trail is, on a properly framed prosecution, a Section 65 offence.

The Income-tax Act, 1961 — Section 44AA read with Rule 6F. Section 44AA(1) requires every person carrying on a specified profession to keep and maintain such books of account and other documents as may enable the Assessing Officer to compute total income; Section 44AA(2) applies the same obligation to specified categories of business. Rule 6F of the Income-tax Rules, 1962 prescribes the books of account and other documents that must be kept by persons carrying on legal, medical, engineering, architectural, accountancy and other notified professions. Rule 6F(5) requires the books to be kept for a period of six years from the end of the relevant assessment year. The electronic-records form of these books — and the accounting-software source code that produces them — fall within Section 65's qualifier.

The Central Goods and Services Tax Act, 2017 — Section 35 read with Rule 56(15). Section 35 requires every registered person to keep and maintain at his principal place of business a true and correct account of production or manufacture, inward and outward supplies, stock, input tax credit and output tax. Rule 56(15) of the Central Goods and Services Tax Rules, 2017 requires the electronic records to be authenticated by means of a digital signature, with the proper backup and accessibility. Rule 56(16) requires records to be retained for a minimum period as prescribed under Section 36 — until the expiry of seventy-two months from the due date of furnishing of annual return for the year. Electronic records under the CGST regime — and the source code that produces them — are within the Section 65 qualifier.

Sectoral RBI, IRDAI and SEBI mandates. The Reserve Bank of India's Master Direction on Information Technology Governance, Risk, Controls and Assurance Practices, the Master Direction on Information Technology Framework for the NBFC Sector, the IRDAI Information and Cyber Security Guidelines, 2023, and the SEBI Cybersecurity and Cyber Resilience Framework circulars, each impose record-keeping, audit-trail and source-code preservation obligations on regulated entities. Where the regulated entity destroys or alters the source code or the audit-trail records that the sectoral regulator's binding direction requires to be kept, the conduct attracts Section 65 — the regulator's binding direction is "law for the time being in force" within the meaning of the provision, by virtue of Section 35A of the Banking Regulation Act, 1949 and the parallel powers under the SEBI Act, 1992 and the Insurance Regulatory and Development Authority Act, 1999.

SEBI listing obligations. The SEBI (Listing Obligations and Disclosure Requirements) Regulations, 2015, particularly Regulation 9 and the disclosure-document retention regime, impose record-keeping obligations on listed entities. Tampering with the source code of the disclosure-management system or the underlying records draws in Section 65.

Where none of these gateways is satisfied — where the source code is one the entity keeps purely as a matter of internal practice, with no statute or binding regulatory direction requiring its preservation — Section 65 does not bite. The remedy in that case is contractual, copyright-based, or under the cognate Section 66 (where mens rea of dishonesty or fraud is present) and Section 43 (for civil compensation).

The leading interpretation — Syed Asifuddin v State of A.P.

The Andhra Pradesh High Court's decision in Syed Asifuddin v State of A.P. (AP HC, 2005) is the leading construction of Section 65 and remains the doctrinal anchor for the provision's interpretation. The fact-pattern was a competitive-market dispute. Reliance Infocomm had launched its CDMA mobile service on a tied-handset basis — handsets sold at a subsidised rate, bundled with a three-year Reliance subscription. Tata Indicom personnel were alleged to have reprogrammed the electronic serial numbers (ESNs) of Reliance handsets so that the handsets, originally tied to Reliance, would operate on the Tata Indicom CDMA network. Reliance filed a complaint; the police registered an FIR under Section 65 of the IT Act read with Sections 420 and 120B of the Indian Penal Code, 1860. The accused moved the Andhra Pradesh High Court for quashing.

The High Court held that the ESN-and-firmware configuration of the handset constituted "computer source code" within the broad definition in the Explanation to Section 65, that the reprogramming of the ESN amounted to alteration, and that the conduct fell within the four ingredients of the offence. On the "required by law" qualifier, the Court relied on the Department of Telecommunications licensing framework under the Indian Telegraph Act, 1885 and the binding directions of the Telecom Regulatory Authority of India which required the integrity of the ESN-handset binding to be preserved. The doctrinal contribution of Syed Asifuddin is fourfold. First, "computer source code" is a wide category, reaching firmware and configuration data, not merely classical program listings. Second, "alteration" includes functional re-programming, not merely overt change to the listed code. Third, the "required by law" qualifier is satisfied not only by Acts of Parliament and rules under them, but also by binding licence conditions and regulatory directions. Fourth, Section 65 can be charged alongside the IPC counts (now BNS counts) without the special-statute principle in Sharat Babu Digumarti displacing the IPC charges where the IPC conduct is broader than the Section 65 conduct.

The decision in Syed Asifuddin remains the leading authority. It has been cited routinely in subsequent High Court rulings on the reach of "computer source code" and the scope of "alteration," and it has not been displaced by any subsequent Supreme Court ruling.

The overlap with Section 66 and Section 43 — and where Section 65 stands alone

Section 66 of the IT Act, in its current form (after the 2008 amendment), punishes any person who, dishonestly or fraudulently, does any act referred to in Section 43. Section 43(j) — inserted by the 2008 amendment — specifically covers the case of any person who, without permission, "steals, conceals, destroys or alters or causes any person to steal, conceal, destroy or alter any computer source code used for a computer resource with an intention to cause damage." There is, accordingly, a textual overlap between Section 65 and Section 66 read with Section 43(j) where the source-code tampering is committed dishonestly or fraudulently and with intention to cause damage.

Three doctrinal points distinguish the two. First, Section 65 requires the additional ingredient that the source code be "required to be kept or maintained by law." Section 66 read with Section 43(j) does not. Second, Section 66 requires the additional ingredient of dishonesty or fraud — meaning intent to cause wrongful gain or wrongful loss (Section 24 IPC, now Section 23 BNS) or intent to defraud (Section 25 IPC, now Section 24 BNS). Section 65 requires only knowing or intentional conduct. Third, the punishment under Section 66 is up to three years' imprisonment and a fine up to five lakh rupees; under Section 65, the fine cap is two lakh rupees. The two provisions can be charged in the alternative on the same fact-pattern, and the Supreme Court's reasoning in Shreya Singhal v Union of India, (2015) 5 SCC 1 — which expressly preserved Section 66 on the ground that its mens rea ingredients (dishonestly and fraudulently) are defined with sufficient specificity — supplies the constitutional source on which the Section 66 track survives.

Section 43 itself supplies the civil-compensation track. Where the source-code tampering causes wrongful loss to a person, Section 43 (read with the Adjudicating Officer's jurisdiction under Section 46) allows the affected person to claim compensation. Section 46(1A) places a five-crore-rupee cap on the Adjudicating Officer's compensation jurisdiction; claims above that threshold go to the Cyber Appellate Tribunal (now merged into the Telecom Disputes Settlement and Appellate Tribunal under the Finance Act, 2017). The civil and criminal tracks run in parallel; pursuit of one does not preclude the other.

The distinction from BNS forgery — Section 336 BNS

Section 336 of the Bharatiya Nyaya Sanhita, 2023 — carrying forward Sections 463 and 464 of the Indian Penal Code, 1860 — defines forgery as the making of any false document or false electronic record, with intent to cause damage or injury, to support any claim or title, to cause any person to part with property, or to enter into any express or implied contract, or with intent to commit fraud or that fraud may be committed. The Section 65 IT Act offence and Section 336 BNS forgery are doctrinally distinct on three grounds. First, Section 65 applies specifically to source code, not to documents or electronic records generally; Section 336 reaches the broader category of false documents and false electronic records. Second, Section 65 requires the source code to be "required by law to be kept or maintained"; Section 336 has no such qualifier. Third, Section 336 requires intent to cause damage or injury, to support a claim, or to defraud; Section 65 requires only knowing or intentional conduct.

In a typical case, both can be charged where the source-code tampering produces a false electronic record which is then used to support a claim or to defraud — for instance, where the accounting-software audit trail is altered to conceal the diversion of funds. Section 65 captures the alteration of the source code; Section 336 captures the resulting false electronic record. The two charges run together and the special-statute reasoning of the Supreme Court in Sharat Babu Digumarti v Govt of NCT of Delhi, (2017) 2 SCC 18 — IT Act prevailing over the IPC on conduct specifically covered by the special enactment — is engaged at the framing stage. The doctrinal answer depends on how cleanly the IT Act limb captures the substantive wrong; where the IPC (now BNS) limb captures conduct (the false electronic record put to use) that the IT Act limb does not, both charges survive.

FIR, investigation and the Adjudicating Officer track

A Section 65 prosecution begins with an FIR under Section 173 of the Bharatiya Nagarik Suraksha Sanhita, 2023. The offence is cognizable, and the FIR-registration obligation in Lalita Kumari v Govt of Uttar Pradesh, (2014) 2 SCC 1 applies — registration is mandatory on disclosure of a cognizable offence. The Section 78 of the IT Act limitation — that the offence must be investigated by an officer not below the rank of Inspector — attaches. Investigation is conducted under the BNSS, including the search and seizure regime in Section 105 BNSS [Section 100 CrPC], with the digital-evidence preservation obligations in Section 67C of the IT Act and the certificate requirement under Section 63(4) of the Bharatiya Sakshya Adhiniyam, 2023.

The Adjudicating Officer track under Sections 46 and 47 of the IT Act supplies the parallel civil-compensation route. The affected person — typically the body corporate or individual whose source code has been tampered with — files a complaint before the Adjudicating Officer of the State or Union Territory. Section 47 specifies the factors to which the Adjudicating Officer must have regard, including the amount of gain unfairly made, the amount of loss caused, and the repetitive nature of the default. The Adjudicating Officer's order is appealable to the Cyber Appellate Tribunal (merged into the TDSAT). The civil track does not preclude criminal prosecution under Section 65.

The Delhi High Court's reasoning in Avnish Bajaj v State (NCT of Delhi) (Delhi HC, 2008) — quashing the personal prosecution of the intermediary's CEO on the ground that Section 79 immunity protected the intermediary — supplies the doctrinal frame for cases where the alleged Section 65 tampering is alleged against an intermediary's personnel. The Section 79 safe-harbour, as read down by Shreya Singhal on Section 79(3)(b), continues to insulate the intermediary from offences that turn on third-party content; Section 65 is not, on its face, a content offence, so the safe-harbour analysis turns on whether the intermediary's personnel were themselves the actors who altered the source code.

One further doctrinal anchor deserves mention. The Supreme Court in Tata Consultancy Services v State of A.P., (2004) 5 SCC 632 held that software is "goods" within the meaning of the relevant sales-tax legislation, and accordingly chargeable to tax as a movable property. The reasoning has been read across into the IT Act jurisprudence as a doctrinal anchor for the proposition that computer source code is property in the legal sense, susceptible to the protections that property attracts — civil, criminal and statutory. The TCS reasoning supports the property-based framing of the harm in a Section 65 prosecution: the gravamen is not the abstract regulatory breach but the concealment, destruction or alteration of an asset that the law requires to be preserved.

Where the doctrine sits today and what remains contested

The position in 2026 can be stated in four points without straining the law.

One — Section 65 of the IT Act remains a narrow but live offence. Its scope is determined by the "required by law to be kept or maintained" qualifier, which is, in practice, the difference between a Section 65 charge that lands and one that does not. The Companies (Accounts) Rules, 2014 audit-trail mandate operative from FY 2023-24 has substantially broadened the range of cases in which the qualifier is satisfied — every company that uses accounting software now sits within Section 65's reach for any tampering with the audit-trail records or with the source code that operates the trail.

Two — the Andhra Pradesh High Court's decision in Syed Asifuddin v State of A.P. (AP HC, 2005) is the leading authority on the four ingredients. The decision's broad construction of "computer source code" (reaching firmware and configuration data), its broad construction of "alteration" (reaching functional reprogramming), and its broad construction of the "required by law" qualifier (reaching binding licence conditions and regulatory directions) together set the doctrinal frame within which the lower courts have operated for two decades.

Three — the overlap with Section 66 read with Section 43(j) is settled. Where the conduct is dishonest or fraudulent and is intended to cause damage, both Sections 65 and 66 can be charged. The Supreme Court in Shreya Singhal preserved Section 66 on the ground that its mens rea ingredients are defined with specificity. The Section 43 civil-compensation track under the Adjudicating Officer runs in parallel. The overlap with Section 336 BNS forgery is also reasonably clean — Section 65 captures the source-code alteration; Section 336 captures the resulting false electronic record put to use.

Four — three doctrinal questions remain genuinely open. First, whether the "required by law" qualifier is satisfied by purely administrative circulars and non-binding guidelines, or only by statutory rules and regulator-issued binding directions, has not been authoritatively settled. The Syed Asifuddin reasoning reaches binding regulatory directions; it does not, on its face, reach non-binding guidelines. Second, whether server logs are "computer source code" within the Explanation's "in any form" formulation — accepted by High Courts on the doctrinal basis that they are listings of computer commands or program-analysis records — has not been ruled on by the Supreme Court. Third, the audit-trail mandate under the Companies (Accounts) Rules, 2014 is operational as a regulatory matter; its enforcement through a Section 65 prosecution, rather than through the Companies Act penalty regime, has yet to produce a reported conviction at the appellate level, and the practical reach of Section 65 in the audit-trail context will be tested as the first set of cases reaches the High Courts.

For the prosecution that has identified the specific "required-by-law" gateway with precision, framed the four ingredients on the Syed Asifuddin template, registered the FIR under Section 173 BNSS with an Inspector-rank investigating officer in compliance with Section 78 of the IT Act, and secured the Section 63 BSA certificate at the right stage, Section 65 is a workable provision. For the prosecution that has skipped the gateway analysis or charged Section 65 on facts that the qualifier does not reach, the case degrades quickly — High Courts have shown a steady willingness to quash Section 65 FIRs at the threshold where the qualifier is not satisfied on the face of the complaint. The doctrine, in either case, runs through the same statutes — the Information Technology Act, 2000 as the substantive offence; the underlying record-keeping mandates as the gateway; the Bharatiya Nagarik Suraksha Sanhita, 2023 and the Bharatiya Sakshya Adhiniyam, 2023 as the procedural and evidentiary codes.