Home › Technology and data › Software, source code and algorithms
Technology and data
Software, source code and algorithms
Software is protected by copyright, but not the ideas behind it. For algorithms, architecture and source code, trade secret protection is therefore often the most important building block.

Computer programs are protected according to Sections 69a et seq. UrhG. This protection includes the concrete form of expression, not the underlying ideas and principles (Section 69a para. 2 UrhG). Anyone who reprograms an algorithm usually does not violate copyright law. The GeschGehG closes this gap when source code, algorithms and architecture are kept secret.
Protection levels at a glance
- Copyright: Protection of the code against copy and editing, automatically with creation
- Trade Secret: Protection of source code, algorithms, models, data structures and documentation as long as secret
- Patent: for computer-implemented inventions with a technical character
- Contracts: Licence Conditions, Limits of Use, Escrow
Confidentiality in development
- Repository permissions by teams and projects
- Code reviews and logging of clones and downloads
- Rules for using AI Coding Assistants that transmit code to external services
- Separation of open source posts and proprietary code
- Agreements with developers on rights and confidentiality, in particular with free ones
Open source
Open source components are public and not a trade secret. CopyLeft licences like the GPL may require your own code to be disclosed upon transfer. Anyone who uses trade secret protection for their own code must therefore know the licence situation of their components. A software Bill of Materials helps and becomes mandatory for many products anyway through the Cyber Resilience Act.
Source Code Escrow
Customers often request access to the source code if the provider becomes insolvent. A deposit with an ESCROW agent with clearly defined surrender cases protects both sides. The deposit agreement must be insolvency-proof and associated with regular updates.
Proof of a copy of code
Whether code has been copied can often be determined by an expert who compares matching structures, comments, variable names and errors. Identical programming errors are considered a strong indication. The prerequisite is access to the opponent’s code, which can be reached via a viewing according to Section 809 BGB. Own version management with timestamps help to take priority.
SaaS and Cloud
With Software as a Service, the code remains with the provider, which makes trade secret protection easier. Customers only get access to the application. Contracts should nevertheless contain rules on the use of interfaces, prohibiting scraping and model extraction, benchmarks and disclosure of documentation. Conversely, it is important for customers how the provider protects their data and secrets.
Rights in the supply chain
Modern software consists of its own components, open source, purchased libraries and services of freelancers. A seamless rights chain is crucial for the trade secret protection and for licensing or sales. In due diligence checks, missing transfers of rights are regularly classified as a significant risk.
Legal framework
- Sections 69a to 69g UrhG
- Sections 2, 3 GeschGehG
- Art. 52 EPC (Computer Implemented Inventions)
- Regulation (EU) 2024/2847 (Cyber Resilience Act)
European and international aspects
Software is internationally copyrighted under the Berne Convention and the TRIPS Convention. However, the patentability of software differs significantly: in the USA, according to the case law of the Supreme Court, it is restricted in the USA, and before the European Patent Office it is only possible with a technical character. The trade secret protection for source code, on the other hand, is comparable worldwide.
Practical checklist
- ☐ Repository rights and logging
- ☐ Developer contracts with transfer of rights
- ☐ Open Source Compliance and SBOM
- ☐ Escrow for key customers
- ☐ AI Coding Assistant Policy
Four practice examples
Typical scenarios that come up again and again in trade secret matters.
Example 1
Ex-developer builds competing product
A previous lead developer publishes a product with strikingly similar architecture and identical code errors.
Solution: Identical errors are a strong indication of a copy. We apply for an inspection of the source code and base claims on copyright and GeschGehG.
Example 2
AI Assistant and Source Code
Developers use a Cloud AI assistant that transfers code to the provider.
Solution: We check the terms of the provider’s contract, develop a usage policy and agree on a company licence without using the entries for training purposes.
Example 3
Customer requests source code
A major customer wants to receive the entire source code in order to further develop the software itself.
Solution: We negotiate an Escrow solution with release only in the event of insolvency or cessation of care instead of being handed over.
Example 4
GPL component in product
In a due diligence, a proprietary product contains a GPL licenced library.
Solution: We evaluate the licence obligations, recommend replacing the component and documenting the protection of the rest of the code.
Our approach
- Inventory of code, components and rights
- Developer Contracts and Policies
- Licence and Escrow Design
- Enforcement of copies
Frequently asked questions
Not as such. The concrete implementation in the code is protected. However, the algorithm itself can be protected as a trade secret or, under certain circumstances, a patent.
In the case of employees, the property rights are transferred to the employer according to Section 69b UrhG. For freelancers, an express agreement is required.
Yes, if the repository is actually limited in access and the accesses are controlled. It is also important that the terms of use of the service do not allow any use for other purposes.
Relevant contracts and templates
- Software Development Contract
- Software Licence Agreement
- Source Code Escrow Contract
- Software maintenance contract
Contract templates and a contract generator can be found at mustervertrag-anwalt.de. An overview of the typical contracts in trade secret protection is under
Related topics
The information on this page gives a general overview of the legal situation (as of November 2026) and does not replace individual advice. The practice examples are typical, anonymized case constellations and no reproduction of specific matters.
Discuss your matter in confidence
Describe the facts in a few sentences. All fields are optional. We usually respond within one working day and tell you which steps make sense.