Company Data Leaks on Social Media and Public Repositories: Article 444 KUHP and How to Prevent Them

Part of my hak jawab series. This is a general explainer. It names no person or company, and it does not say that anyone has leaked anything. I am not a lawyer, and this is not legal advice.
RAHMAT WIBOWO | 28 NOVEMBER 2026
What counts as company data
Source code, passwords and API keys, customer or employee data, internal documents, screenshots of internal tools or meetings, unreleased plans, and even work email addresses. Anything an employer would not want strangers to read can be company data. Whether it is legally confidential is a separate question, covered below.
Where leaks usually happen
- Public code repositories with credentials hard-coded in source, or committed in a configuration file that was never ignored.
- Commit metadata. Every commit records an author name and email. A work address used on a personal public repository is visible to anyone who clones it.
- Screenshots and recordings that show dashboards, customer names, chats or colleagues.
- Posts and replies that describe internal incidents, numbers or unreleased work.
- Personal accounts and tools: personal cloud storage, personal email forwarding, or pasting internal code into outside tools.
What the law says: Article 444 KUHP
The English below is my unofficial translation. The Indonesian text prevails.
Article 444, Law No. 1 of 2023 (1) Any Person who discloses specific matters about a company where they work or have worked that must be kept confidential by them shall be punished with imprisonment of up to 2 (two) years or a fine of up to category III. (2) The criminal act referred to in paragraph (1) may be prosecuted only upon complaint by the management of the company concerned.
A category III fine is up to Rp50,000,000 (Article 79 paragraph (1) letter c). Reading it element by element:
| Element | What it needs |
|---|---|
| Any Person | An individual who is, or was, connected to the company |
| A company where they work or have worked | An employment or similar working relationship, current or past |
| Discloses specific matters | Something concrete, not a general opinion |
| That must be kept confidential by them | A duty of secrecy, from a contract, a policy or the nature of the information |
| Complaint by management | Paragraph (2): only the company's management can complain |
As I read the Criminal Code, an offence like this also requires intent unless the law expressly punishes negligence (Article 36).
Why exposure is not automatically an offence
- Only the company knows whether something "must be kept confidential". It has the contract, the policy and the logs. An outsider cannot tell from the outside.
- Only the company's management can complain. Anyone else, including a person who simply notices an exposure, has no standing to do so.
- Other routes may apply instead: a confidentiality agreement, an employment contract or labour rules. If personal data is exposed, Indonesia's Personal Data Protection Law (Law No. 27 of 2022) may also matter. Whether it applies depends on the facts.
For these reasons I never call an exposure a crime. The right word for most of it is a security hygiene problem.
Eight habits that prevent most leaks
- Use a separate personal email (or your platform's no-reply address) for personal repositories.
- Never hard-code credentials. Use environment variables or a secrets manager.
- Write
.gitignorebefore the first commit, and check what is tracked. - Turn on secret scanning and push protection on your repositories, and scan history with a tool such as gitleaks.
- If a credential was ever published, rotate it at once and treat it as compromised. Cleaning the history comes after rotation, not instead of it.
- Do not publish an employer's or former employer's code or data without written permission.
- Check every screenshot for names, tabs, tokens and other people's faces before you post it.
- Ask before you open-source anything that grew out of paid work.
What companies can do
Run organisation-wide secret scanning, require company email only on company repositories, keep a short confidentiality policy with examples, remove access promptly when someone leaves, and have a simple incident routine: rotate, assess, and notify where the law requires.
If you find someone else's exposed credentials
Do not use them. Do not repost the values. Tell the owner or the company's security contact privately, and give them time to fix it. If you must write about it, describe the problem without reproducing the secret.
Right of reply and correction policy
A substantive response may be published alongside this article, subject to reasonable editing for privacy, safety and relevance. If reliable evidence shows a factual statement here is wrong, I will correct it promptly and note the change.
Other posts in this series
- Hak jawab: my reply to the accusations spread on X in May 2026
- Social media ethics for professionals: eight habits
- Sharing someone's private content without consent
- What a public repository can reveal: commit emails and hard-coded credentials
Published by Rahmat Wibowo at InfraLoka: infraloka.co.id
#DataLeak #Article444 #SecretsManagement #HakJawab