WhatsApp +91 76520 85854 [email protected] Monday to Saturday, by appointment

Home / Articles / Corporate & Commercial

Moonlighting, confidentiality and IP ownership in Indian IT employment: what the law says for employers and employees

यह जानकारी हिंदी में पढ़ें

Moonlighting is not illegal in India as a general rule, because no statute defines it or bans a second job across the board. Whether an IT employee may work for someone else is decided mainly by the employment contract, the company policy, the nature of the second work and, in a few settings, specific labour-law provisions. That is why the same act, a weekend freelance project, can be a harmless side income in one company and a ground for termination in another.

Three questions are usually bundled together in these disputes. First, was the second job or project allowed? Second, did the employee use or leak the employer's confidential information? Third, who owns the code, design or invention that came out of the work? This page explains how Indian law approaches each one, from both sides: the employer writing a policy or acting on a suspicion, and the employee who has been questioned or has received a notice.

Is moonlighting illegal in India?

There is no general law that prohibits a person from holding two jobs, and no Indian statute uses the word "moonlighting" as a defined offence. What exists is a set of narrower sources:

  • The employment contract and policy. Most IT appointment letters carry an exclusivity or "outside activities" clause and a conflict-of-interest clause. These are the real source of the restriction.
  • Labour-law provisions on double employment. Section 60 of the Factories Act, 1948 barred an adult worker from working in a factory on a day on which he had already worked in another factory. Its successor, Section 30 of the Occupational Safety, Health and Working Conditions Code, 2020, speaks of "double employment in factory and mine" and bars work in a mine or factory if the worker has already worked in a similar establishment within the preceding twelve hours, save as the appropriate Government prescribes. These provisions are tied to factories and mines, so they do not ordinarily reach office-based software work.
  • Standing orders. Model standing orders have traditionally treated working against the employer's interest as misconduct. Under the Industrial Relations Code, 2020, standing orders are required for industrial establishments with 300 or more workers, and the Central Government notified Model Standing Orders, 2026 in May 2026, with a schedule for service establishments. Reports on those model orders say misconduct includes disclosing confidential information and unauthorised access to IT systems. Check the notified text and the position of your state before relying on any of this.
  • State shops and establishments laws. These vary by state, and whether they speak to dual employment depends on the state law that applies to the particular office.

Two cautions apply. The labour codes came into force on 21 November 2025, but the rules and state-level adaptations have been arriving in stages, so the exact standing-orders position of a given company should be confirmed from the current notified rules. Also, standing orders and the Industrial Relations Code protect "workers" as defined; employees in managerial or supervisory roles above the prescribed wage ceiling are generally outside that definition, so for many senior IT staff the contract is the main document.

What courts have said about exclusivity during employment

Section 27 of the Indian Contract Act, 1872 makes void an agreement that restrains a person from a lawful profession, trade or business. The Supreme Court has drawn a line between restraints that operate after the job ends and restraints that operate while the contract is running. In Niranjan Shankar Golikari v. Century Spinning and Manufacturing Co. Ltd. ((1967) 2 SCR 378), a covenant to work only for the employer during the term of the contract was upheld as not a restraint of trade within Section 27. In Superintendence Company of India (P) Ltd. v. Krishan Murgai ((1981) 2 SCC 246), a restraint that extended beyond the end of employment was held void.

The practical result is that an exclusivity clause which applies only during employment is far more likely to be enforced than a non-compete that follows an employee out of the door. A post-employment non-compete is a separate subject, discussed on the non-compete and non-solicitation agreement page. Even an in-service clause must be reasonable, and unfair terms in standard-form contracts can be questioned as opposed to public policy under Section 23 of the Contract Act.

Without any exclusivity clause, the employer's position is weaker, though not necessarily hopeless. An employee still owes duties of fidelity and good faith, and a second engagement with a competitor, a client or a vendor of the employer can breach those duties even where the contract is silent. A harmless unrelated side activity, done in the employee's own time with no company resources, is much harder to treat as misconduct.

Confidentiality and trade secrets in IT roles

India has no standalone trade secrets statute. Protection comes from the contract (the non-disclosure clause), the equitable doctrine of breach of confidence, copyright in the material itself, injunction law and, on suitable facts, the criminal and cyber provisions. Courts have been careful to separate an employee's general skill, knowledge and experience, which the employee carries to the next job, from the employer's genuinely confidential information, such as source code, architecture documents, client data, pricing and unreleased product plans. American Express Bank Ltd. v. Priya Puri (Delhi High Court, 2006) is among the decisions that considered that line where an employee moved to a competitor.

For a moonlighting dispute this matters in two ways. The existence of a second job is not by itself a confidentiality breach. The breach arises when information, code, client contacts or tools of the first employer are used for, or reach, the second. The employer must therefore be able to point to specific material and specific use, not only to the fact of a parallel engagement. The drafting side of this, including how to define "confidential information" so that it is enforceable, is covered on the trade secret and confidentiality agreement page.

Who owns code and inventions made by an employee

Copyright and software. A computer programme is a literary work under the Copyright Act, 1957. Under Section 17(c), where a work is made in the course of the author's employment under a contract of service or apprenticeship, the employer is the first owner of the copyright, in the absence of any agreement to the contrary. Three consequences follow:

  • The rule depends on the work being made "in the course of employment". Code written on the employee's own time with personal equipment on an unrelated project is a different question from code written for the employer's product, and the answer turns on facts such as the job description, who assigned the work, which resources were used and how closely the project relates to the employer's business.
  • Section 17(c) covers employees. Independent contractors, consultants and freelancers are under a contract for services, so ownership of what they make generally needs a written assignment. Assignments under Section 19 must be in writing and signed, and if the duration or territory is not stated, the Act supplies default terms, which is a common trap in short, loosely drafted assignment clauses.
  • An author keeps moral rights under Section 57 even after assignment, which is why many IT contracts include a waiver or a narrow covenant on attribution.

Patents and inventions. The Patents Act, 1970 has no provision equivalent to Section 17(c). An application may be made by the true and first inventor or by an assignee, and an assignment must be in writing under Section 68. An employer who wants invention rights to vest in the company therefore needs an express assignment or invention-disclosure clause in the contract. Without it, assuming that an employee's invention automatically belongs to the employer is risky.

If an employee has built something for a second client using code that belongs to the first employer, the ownership dispute and the confidentiality dispute overlap, and a claim of copyright infringement may also arise.

When this arises for a company in Lucknow and Uttar Pradesh

Software and IT-enabled service units in Lucknow, Noida and Greater Noida, along with the captive units and vendors that serve them, face these questions in recognisable ways:

  • A remote or hybrid employee is found to be drawing a second salary, or running a freelance practice, during working hours.
  • A vendor's engineer working on a client's project is also engaged by a rival of that client.
  • A team lead resigns and a similar product appears within weeks, raising the question of what was copied and when.
  • A background check or a provident fund record shows overlapping employment that the employee did not disclose.
  • An employee developing a personal app wants to know whether the employer can claim it.

Forum depends on who is complaining and what is asked. An employer seeking an injunction against use of confidential material or code usually goes to the civil court at the place where the defendant resides or the cause of action arose, or to the commercial court where the dispute qualifies as a commercial dispute under the Commercial Courts Act, 2015. An employee challenging termination may approach the labour or industrial adjudication machinery if he or she is a "worker" under the Industrial Relations Code, and otherwise usually sues on the contract. A writ petition before the Allahabad High Court, Lucknow Bench is generally available only against the State or its instrumentalities, not against an ordinary private company. Parties elsewhere in India can be assisted with advice and documents remotely, but appearances remain at the forum where the matter is pending.

How a moonlighting matter usually unfolds

  1. Trigger. A client complaint, a tip, a PF or background-verification mismatch, a security alert, or a resignation followed by a competing launch.
  2. Preservation. The employer secures emails, access logs, repository history, device images and the signed contract set before anyone is confronted. This step is often missed and is hard to repeat.
  3. Document review. The appointment letter, the policy acknowledgements, the confidentiality and IP-assignment clauses, and any manager approvals are read together, to see what was actually prohibited.
  4. Fact-finding. The employee is asked for an explanation in writing. Where the employee is a "worker", a charge sheet and domestic enquiry follow the principles discussed on the domestic enquiry page.
  5. Decision. Options range from a warning or a written undertaking to termination, recovery of money, or an injunction against use of confidential material.
  6. Challenge. The employee may dispute the action in the competent forum. The stage-by-stage view is on the step-by-step response page, and the papers each side should gather are listed on the documents checklist.

Criminal law: when it is and is not relevant

Moonlighting by itself is not a crime. Criminal provisions come in only where the facts show something more, for example dishonest copying of data. Section 43 of the Information Technology Act, 2000 provides compensation where a person without permission accesses a computer system, downloads or copies data. Section 66 makes the same acts an offence when done dishonestly or fraudulently, punishable with imprisonment up to three years, a fine up to five lakh rupees, or both. Depending on the facts, the Bharatiya Nyaya Sanhita, 2023 provisions on theft (Section 303) and criminal breach of trust (Section 316) have also been invoked. A threat of criminal complaint made only to pressure an employee over a plain contract breach is a poor substitute for the civil remedy, and an unsupported allegation of data theft carries its own risks. For incidents involving online evidence, see the page on cyber crime matters in Lucknow.

Common mistakes and risks

For employers

  • Relying on a policy that employees never acknowledged in writing.
  • Writing an exclusivity clause so broad that it covers any lawful hobby or study, which invites a challenge as unreasonable.
  • Terminating without a written explanation, a hearing where one is required, or a proportionate view of the conduct.
  • Knowing about a side project for months, doing nothing, and then citing it as grounds for dismissal. Long inaction can be argued as acquiescence.
  • Copying code or data from an employee's personal device in a way that raises its own privacy and evidence problems. Personal data handled in the process is also subject to the Digital Personal Data Protection Act, 2023, whose rules were notified in November 2025 with a phased commencement. See the DPDP Act compliance page.
  • Having no written IP-assignment clause for contractors and interns.

For employees

  • Assuming that silence in the contract means everything is allowed, when the policy or a client contract may say otherwise.
  • Working on the second job during paid hours or on the employer's laptop, network or licensed tools.
  • Using reusable modules, templates or client contacts from the first employer in the second job.
  • Giving a hurried or inaccurate written explanation, which can later be used against the employee.
  • Deleting files or messages after an allegation is made, which can damage credibility far more than the original issue.
  • Ignoring a notice because the employment has already ended; confidentiality and IP clauses usually survive the end of employment.

Generic scenarios

Scenario one. A developer with an exclusivity clause takes a paid weekend project from a startup in an unrelated field. No company resources are used and no client of the employer is involved. The employer's remedy would depend on how the clause is worded, whether the work interfered with duties, and whether a proportionate action such as a warning would be the more defensible response than dismissal.

Scenario two. A contractor engineer builds a module for an IT company under a short services agreement that says nothing about ownership. Because the contractor is not an employee, Section 17(c) does not apply on its own terms, and the company may find that it holds only a licence unless a written assignment exists.

Scenario three. An employee, before leaving, uploads project files to a personal cloud account and later joins a competitor. Here the confidentiality clause, the access logs and the specific files matter far more than any question about moonlighting, and civil injunction relief, and potentially the IT Act, come into play.

Which professionals do what

  • Advocate: reads the contract, policy and facts; advises on notices, explanations and enquiries; drafts replies and pleadings; and appears in the civil, commercial, labour or industrial forum.
  • Company secretary: records board or committee approvals for policy changes and conflict-of-interest declarations, and keeps the compliance register.
  • Chartered accountant: addresses salary, tax and any money recovery or set-off questions, and income reporting from the second source.
  • Digital forensic consultant: preserves devices and logs with a documented chain of custody, so the evidence can be relied on later.
  • HR and information security teams: run access controls, onboarding declarations and exit procedures.

Related reading: the employment contract drafting page, the HR policy and handbook page and the page on wrongful termination in IT companies.

Frequently asked questions

Is moonlighting illegal in India?

No general law makes it illegal. Whether a second job is permitted depends on the employment contract, the company policy, the nature of the second work and any sector-specific provision. Double-employment restrictions in the labour laws are tied to factories and mines and do not ordinarily cover office-based IT work.

Can a company terminate an employee for moonlighting?

It can, where the contract or policy prohibits it and the action is fair and proportionate. The employee may still challenge the termination if proper procedure was not followed, if the policy was never communicated, or if the penalty was disproportionate. For employees who are "workers" under the Industrial Relations Code, a domestic enquiry is usually part of the process.

Is working a second job on weekends moonlighting?

It is treated as moonlighting by many employers, whether or not it happens in office hours. Whether it is a breach depends on the exclusivity clause, any conflict with the employer's business and whether company information or resources were used.

Who owns the code I write for my employer?

Under Section 17(c) of the Copyright Act, 1957, the employer is generally the first owner of a work made in the course of employment under a contract of service, unless there is an agreement to the contrary. The answer for contractors and freelancers depends on a written assignment.

Do I own software or an app I build in my free time?

It depends on whether the work was made in the course of employment, how the contract defines company IP, and whether the project uses the employer's confidential information, tools or time. A broad assignment clause may claim more than a court is willing to enforce, so the wording is important.

Is there a trade secrets law in India?

There is no standalone trade secrets statute. Confidential information is protected through contracts, the equitable doctrine of breach of confidence, copyright and, where facts support it, cyber and criminal provisions.

Can my employer find out about a second job through my PF or UAN?

It can happen. Provident fund contributions from two employers, or an employment-verification check, may reveal overlapping employment. How far an employer may lawfully use such information depends on the circumstances and on the law on personal data.

Can an employee be arrested for moonlighting?

Moonlighting alone is a civil or service matter, not a criminal offence. Criminal law applies only if there are facts such as dishonest copying or misuse of data, and even then the facts have to fit the specific offence.

This article explains the general legal position for information only. It is not legal advice, and the outcome of any matter depends on its own facts and the rules that apply to it.

Related: Documents needed in a moonlighting or confidentiality breach allegation. Responding to a moonlighting breach allegation, step by step. Trade secret and confidentiality agreement drafting. Employment contract drafting. Non-compete and non-solicitation agreement drafting.

WhatsApp