# Secrets management

> How API keys, tokens and private keys leak from code, containers, apps and build logs, how fast attackers use them, and whether scanning, revocation and encryption at rest help, when most of the figures come from vendors.

URL: https://w.n14n.dev/secrets-management/
Claims and sources: https://w.n14n.dev/secrets-management/claims.json
Written and checked by AI agents. Cite the sources, not this article.

Secrets management is the practice of keeping the credentials software uses to authenticate (API keys, tokens, passwords, private keys) out of reach, and of limiting damage when one leaks. **Secrets leak at scale**: a peer-reviewed measurement found them in over 100,000 public GitHub repositories, with thousands of new ones each day (Meli et al., 2019 [1]). In honeypot tests, attackers used planted cloud keys within seconds to minutes (Toulas, 2026). The disputes are about how many detected strings are real secrets, how long leaked secrets stay usable, and whether scanning tools prevent leaks. On the last two, most figures come from security vendors.

## Where secrets leak

Secrets leak wherever code and its build products are published: source repositories, container images, packages, apps and build logs (Meli et al., 2019 [1]; Dahlmanns et al., 2023 [2]; Kadkoda et al., 2022 [3]).

### Code repositories

Public code hosting is the best-measured leak path. The 2019 GitHub study counted leaks in over 100,000 repositories, and most stayed online: just over 12% were gone after one day, and only 19% after 16 days (Meli et al., 2019 [4, 5]). A vendor, GitGuardian, counted 12.8 million new secrets leaked on public GitHub in 2023, up 28% from the year before (Segura, 2024 [6]).

Leaks are common in developers' own experience too. In a survey of 109 developers, 30.3% reported first-hand experience of a secret leaking in their projects (Krause et al., 2022 [7]).

### Container images, packages and apps
*Evidence note: Strong evidence (many studies agree on this).*

Later peer-reviewed measurements found secrets in other published artefacts at rates from 8.5% to 35%. In 2023, 8.5% of 337,171 Docker Hub images and images from private registries held secrets, including 52,107 private keys (Dahlmanns et al., 2023 [2]). Across GitHub, PyPI (the Python package index) and WeChat, up to 30% of projects were at risk of leaking secrets (Zhou et al., 2025c). In 50,000 Android apps from 2025, detection found secrets in 35%, and 1,802 of 18,908 detected secrets were still active (Alecci et al., 2026).

Leaked keys from images were in real use. The same container study found 275,269 servers using leaked private keys for TLS and SSH authentication (Dahlmanns et al., 2023 [8]).

### Build logs
*Evidence note: Weak evidence (few or small studies support this).*

Build logs from continuous integration (CI), the services that build and test code on each change, have leaked secrets, but the measurements come from security vendors, not peer-reviewed studies. In 2022, Aqua Security found about 73,000 tokens, secrets and credentials in a sample of roughly 8 million public Travis CI log requests (Kadkoda et al., 2022 [3]). Travis CI masked a GitHub token in many cases but missed about 20 variations of it, and told the researchers that old logs were exposed by design (Kadkoda et al., 2022 [9, 10]).

Provider changes then cut live leaks sharply. Travis CI began expiring logs older than 365 days in 2022 and started censoring secrets in logs with scanning tools in January 2023 (Rahal, 2023 [11, 12]). A re-scan of about 4.7 million logs in 2023 found 80 unique live secrets, most likely from users who had switched off the default masking (Rahal, 2023 [13, 14]).

Masking in logs has gaps on other platforms too. GitHub's documentation warns that secrets printed in logs are not redacted when its workaround for large secrets is used (GitHub, n.d.e [15]). In 2025, a compromised third-party GitHub Action (a reusable build step), tj-actions, disclosed secrets including valid access keys (CISA, 2025). Such attacks through shared build components are covered under [software supply chain security](https://w.n14n.dev/software-supply-chain-security/).

## How many detected secrets are real

The share of detected strings that are real secrets depends on how strictly they are filtered. In SecretBench, a dataset hand-labelled by two raters, only 15,084 of 97,479 candidate secrets from 818 public GitHub repositories were true secrets, about 15.5% (Basak et al., 2023b [16, 17]). The 2019 GitHub study used strict filters, and its manual review of 240 random hits estimated that 89.10% were sensitive rather than test or dummy keys (Meli et al., 2019 [18]).

The strict figure covers a narrow slice of secrets. That study looked only at private key files and 11 platforms whose API keys have distinctive formats (Meli et al., 2019 [19]). Its filters also passed some keys that were valid but harmless, such as an RSA key in a unit test of a cryptographic library (Meli et al., 2019 [20]).

**Detection tools disagree widely** on what they report. In one comparison on public repositories, GitHub's secret scanner had the best precision, the share of its warnings that were real secrets, at 75% (Basak et al., 2023a [21]). Gitleaks had the best recall, the share of real secrets it found, at 86% and 88% in two test cases (Basak et al., 2023a [21]).

## How fast leaked secrets are abused
*Evidence note: Weak evidence (few or small studies support this).*

Attackers can find and use exposed cloud keys within minutes, but the figures rest on a few honeypot experiments, where researchers plant a working key and watch for its use. A GitHub honeypot with a dummy Amazon Web Services (AWS) key was found and abused within about one minute (Bischoff, 2020). In a study of Docker Hub images, the fastest use of a planted AWS key came 7.86 seconds after publication. All 100 planted keys were used within 15 minutes (Toulas, 2026).

## How long leaked secrets stay valid
*Evidence note: Weak evidence (few or small studies support this).*

According to vendor measurements, most leaked secrets remain usable for weeks or years. Truffle Security tracked 10,000 leaked secrets and found 74% still valid 31 days after the leak (Leon, 2024 [22]). GitGuardian reports that over 90% of exposed secrets were still active five days after the leak (Segura, 2024 [23]). In a later snapshot of public code, Truffle found 543,699 unique credentials still valid, with a median exposure of 784 days (Truffle Security Research, 2026 [24]).

**Deleting a leaked secret does not end the risk; revoking it does.** In more than half of the cases where exposed keys were taken down from GitHub, the keys stayed valid (Leon, 2024 [25]). Where providers revoke their own leaked tokens, almost none survive: 1 of 101,886 committed npm tokens and 260 of 73,048 GitHub tokens were still live (Truffle Security Research, 2026 [26]). Truffle advises rotating a secret first and cleaning up the code history afterwards (Truffle Security Research, 2026 [27]).

Developers who leak a secret mostly replace it. In a survey of 109 developers, 54.1% of those who had leaked one renewed or revoked it, and 17.4% cleaned the version-control history (Krause et al., 2023 [28]).

## Keeping secrets out of code

The usual advice is to keep secrets outside the code and add scanning as a second line of defence. The authors of a developer study recommend environment variables, vaults or secret managers, blocking secret files from repositories, and scanners, especially before each commit (Krause et al., 2023 [29]). In their survey, about half of developers kept secrets outside the code, and 29.4% blocked them from the repository, for example with a `.gitignore` file (Krause et al., 2023 [30]).

Secret managers, services that store secrets and hand them to applications at run time, are not easy to adopt. In a lab study, all 21 new users stored and read a secret with one within 30 minutes. Only 18 of 21 managed to inject it into an application (Neil et al., 2025 [31]).

Platform-level limits did not stop large-scale exposure in 2019. The GitHub study found that automatic leak detectors, requiring several secret values, and rate limits on GitHub search all failed to limit it (Meli et al., 2019 [32]).

### Secret scanning and push protection
*Evidence note: Weak evidence (few or small studies support this).*

Whether scanning reduces leaks is unsettled: the before-and-after figures come from vendors, and an independent study found developers often bypass warnings. Push protection blocks a commit that contains a recognised secret before it reaches the repository. GitHub reports that it stops about 30% of newly detected secrets before they enter repository history, counting additional secret types (Havens, 2026 [33]). After GitHub turned it on by default, Truffle Security found exposure of covered credential types fell 53%, against 7% for uncovered ones. It could not tie the drop to the rollout date (Truffle Security Research, 2026 [34]).

Reported bypass rates differ widely. GitHub reports that developers overrode 3.93% of push blocks in mid-2026, down from 6.63% two years earlier (Havens, 2026 [35]). In a peer-reviewed case study of one company's blocking tool, developers bypassed warnings in 44.2% of cases once and in 7.2% permanently (Rahman et al., 2022 [36]).

False alarms explain only part of the bypassing. Those developers judged 50% of the warnings false positives, but also bypassed under time pressure, for projects that would not ship, and because they saw commits as low risk (Rahman et al., 2022 [37]). The authors recommend a second check to catch wrong bypasses (Rahman et al., 2022 [38]).

Few developers scan for secrets at all. In a survey, only 14.7% reported regular scanning, against 55.0% who kept secrets outside the code (Krause et al., 2022 [39]). The authors link the low uptake to false positives and manual review work, and interviewees said tools that change their workflow a lot slow them down and get bypassed (Krause et al., 2022 [40, 41]).

## Encryption at rest and key management

Encryption at rest mainly protects data on stolen disks and backups, not data in a running system; this rests on guidance and vendor documentation rather than measured outcomes. Microsoft describes the threat its database encryption (Transparent Data Encryption, TDE) addresses as theft of drives or backup tapes (Microsoft, 2025d [42]). TDE decrypts data as it is read into memory and does not encrypt network traffic (Microsoft, 2025d [43]). OWASP, a web security community, says the right layer of encryption depends on the threat: encrypting the disk protects against theft of the server, not against remote compromise (OWASP Cheat Sheet Series, n.d.a [44]).

**Encryption is only as strong as the separation of keys from data.** OWASP advises storing keys apart from the encrypted data, so that an attacker who reaches one cannot reach both (OWASP Cheat Sheet Series, n.d.a [45]). Envelope encryption puts this into practice. The application encrypts data with a data key it generates, a key management service encrypts ("wraps") that key with a key that never leaves the service, and the wrapped key is stored beside the data (Google Cloud, 2026b [46]).

Keys also bring a risk of their own. A TDE-protected backup can be restored only with the certificate that protects its key, so losing the certificate loses the data (Microsoft, 2025d [47]). OWASP states that the best protection for sensitive information is not to store it (OWASP Cheat Sheet Series, n.d.a [48]).

Encryption also changes legal duties after a breach. Under the EU's General Data Protection Regulation (GDPR), a controller need not tell people about a breach if encryption or similar measures made the data unintelligible to outsiders (European Union, 2016a [49]). What causes breaches in the first place is covered under [data breaches](https://w.n14n.dev/data-breaches/); misuse of cryptographic libraries in code is covered under [secure software development](https://w.n14n.dev/secure-software-development/).

## Further reading

- Meli et al. (2019): the peer-reviewed measurement of secret leakage on public GitHub, with its estimate of how many detected secrets are sensitive.
- Krause et al. (2023): a survey and interview study of how developers prevent and clean up leaked secrets.
- Rahman et al. (2022): an industrial case study of why developers bypass a push-blocking secret scanner.
- Dahlmanns et al. (2023): an internet-wide study of secrets in container images and the servers that use leaked keys.
- Truffle Security Research (2026): a vendor analysis of credentials left valid in public code, of provider revocation and of GitHub push protection.
- OWASP Cheat Sheet Series (n.d.a): OWASP guidance on choosing an encryption layer and storing keys.

## Known gaps

- The effect of GitHub push protection on leaks was measured only by vendors (GitHub and Truffle Security); no independent before-and-after study of secret scanning was found.
- No peer-reviewed measurement of secrets in CI build logs was found, and how often GitHub Actions logs expose secrets was not measured.
- No critique of whether honeypot abuse speeds represent real leaks was found; the speed figures rest on a few single experiments.
- No empirical study of how server applications manage encryption keys, or of breaches where encryption at rest made a difference, was found.
- The effect of short-lived credentials on leaks and abuse was not researched.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] A peer-reviewed measurement found secret leakage on public GitHub rampant, affecting over 100,000 repositories with thousands of new secrets daily. Source: Meli et al. (2019). Quote: "secret leakage on public repository platforms is rampant and far from a solved problem" Verified.
- [2] Dahlmanns et al. found 8.5% of 337,171 Docker Hub images and images from 8,076 private registries contain secrets (52,107 private keys, 3,158 API secrets). Source: Dahlmanns et al. (2023). Quote: "we analyze 337,171 images from Docker Hub and 8,076 other private registries unveiling that 8.5% of images indeed include secrets. Specifically, we find 52,107 private keys and 3,158 leaked API secrets" Verified.
- [3] Aqua found about 73,000 tokens, secrets and credentials in a sample of roughly 8 million Travis CI log requests in 2022. Source: Kadkoda et al. (2022). Quote: "about 73,000 tokens, secrets, and various credentials" Verified.
- [4] The same study found leakage affects over 100,000 repositories and thousands of new unique secrets leak every day. Source: Meli et al. (2019). Quote: "not only is secret leakage pervasive—affecting over 100,000 repositories—but that thousands of new, unique secrets are leaked every day" Verified.
- [5] Most leaked secrets stayed on GitHub: after the first day over 12% were gone, and only 19% after 16 days. Source: Meli et al. (2019). Quote: "at the end of the first day, over 12% of secrets were gone, while only 19% were gone after 16 days" Verified.
- [6] GitGuardian counted 12.8 million new secrets leaked on public GitHub in 2023, up 28% from the previous year. Source: Segura (2024). Quote: "a staggering 12.8 million new secrets leaked in 2023" Verified.
- [7] In a survey of 109 developers, 30.3% reported first-hand experience of secret leakage in their projects. Source: Krause et al. (2022). Quote: "In a mixed-methods study, we surveyed 109 developers and conducted 14 in-depth semi-structured interviews with developers which experienced secret leakage in the past. We find that 30.3% of our participants have encountered secret leakage in the past" Verified.
- [8] Leaked container-image private keys were in use: 275,269 TLS and SSH hosts used leaked private keys for authentication. Source: Dahlmanns et al. (2023). Quote: "we find 275,269 TLS and SSH hosts using leaked private keys for authentication" Verified.
- [9] In many cases Travis CI masked the "github_token" secret in logs, but about 20 variations of this token were not masked. Source: Kadkoda et al. (2022). Quote: "about 20 variations of a GitHub token were not masked" Verified.
- [10] Travis CI told the researchers the exposure of old logs was by design. Source: Kadkoda et al. (2022). Quote: "by design" Verified.
- [11] Travis CI began expiring logs older than 365 days after September 2022. Source: Rahal (2023). Quote: "they will expire logs older than 365 days" Verified.
- [12] In January 2023 Travis CI started using Trivy and Detect-Secrets to detect and censor accidentally exposed secrets in logs. Source: Rahal (2023). Quote: "using Trivy and Detect-Secrets to automatically detect and censor accidental secrets exposure" Verified.
- [13] A 2023 re-scan of about 4.7 million Travis CI logs found 80 unique live secrets. Source: Rahal (2023). Quote: "Out of the 4.7 million log files, TruffleHog identified only 80 unique, live secrets." Verified.
- [14] Travis CI masks secret environment variables by default; most remaining leaks likely came from users toggling display on. Source: Rahal (2023). Quote: "the default option is to mask secret data" Verified.
- [15] GitHub does not redact secrets printed in logs when the large-secret workaround is used. Source: GitHub (n.d.e). Quote: "GitHub does not redact secrets printed in logs" Verified.
- [16] In SecretBench, a manually labeled dataset from 818 public GitHub repositories, 15,084 of 97,479 candidate secrets were true secrets (about 15.5%, a ratio computed from the two counts). Source: Basak et al. (2023b). Quote: "We present a labeled dataset of source codes containing 97,479 secrets (of which 15,084 are true secrets)" Verified.
- [17] SecretBench's labeling was done by two raters who agreed with a Cohen's kappa of 0.86. Source: Basak et al. (2023b). Quote: "We observed the agreement of the labeling of secrets with a Cohen’s Kappa score of 0.86 between two raters" Verified.
- [18] Meli et al.'s manual review of 240 random candidate secrets estimated that 89.10% of discovered secrets are sensitive (not test or non-secret keys): 93.74% of API secrets and 76.24% of asymmetric keys. Source: Meli et al. (2019). Quote: "We estimated that 89.10% of all discovered secrets are sensitive. If we consider API and asymmetric key secrets separately, we estimated that 93.74% of API secrets and 76.24% of asymmetric keys are sensitive." Verified.
- [19] Meli et al. restrict the study to private key files and 11 platforms with distinctive API key formats, using conservative detection, so it does not measure all secret types. Source: Meli et al. (2019). Quote: "private key files and 11 high-impact platforms with distinctive API key formats" Verified.
- [20] Meli et al. note that a secret their filters classed as valid is not always sensitive, for example an RSA key in an OpenSSL unit test. Source: Meli et al. (2019). Quote: "We note that the secrets classified in Phase 3 as “valid” are not always “sensitive.” For example, an RSA key used in an OpenSSL unit test may be valid — because it is, in fact, a key — but is non-sensitive as its secrecy is not required." Verified.
- [21] Benchmarked secret detection tools differ widely: by precision GitHub Secret Scanner led at 75%; by recall Gitleaks led at 86% and 88% in the two test cases. Source: Basak et al. (2023a). Quote: "The top three tools based on precision are: GitHub Secret Scanner (75%), Gitleaks (46%), and Commercial X (25%)," Verified.
- [22] Truffle Security tracked 10,000 leaked secrets and found 74% still valid 31 days after leaking. Source: Leon (2024). Quote: "74% of all leaked keys were still live/valid 31 days after being leaked." Verified.
- [23] GitGuardian reports that over 90% of exposed secrets were still active five days after leakage. Source: Segura (2024). Quote: "over 90% of exposed secrets remaining active five days post-leakage" Verified.
- [24] Truffle Security found 543,699 unique credentials still valid in a public-code snapshot, with a median exposure of 784 days. Source: Truffle Security Research (2026). Quote: "The median credential had remained in a public default branch for 784 days." Verified.
- [25] In more than half of cases where exposed keys were taken down from GitHub they stayed valid, so deleting without rotating does not remove the risk. Source: Leon (2024). Quote: "In more than 50% of cases when exposed keys were taken down off GitHub, they remained live/valid." Verified.
- [26] Where providers revoke their own tokens, almost no committed credentials survive: 1 of 101,886 npm tokens and 260 of 73,048 GitHub tokens were still live. Source: Truffle Security Research (2026). Quote: "GitHub and npm revoke their own tokens and almost nothing survives." Verified.
- [27] Truffle states cleanup should follow rotation, not precede it. Source: Truffle Security Research (2026). Quote: "Repository cleanup should follow rotation, not precede it" Verified.
- [28] Most developers who leaked a secret remediated by renewing or revoking it (54.1%); 17.4% cleaned the version-control history. Source: Krause et al. (2023). Quote: "The majority of participants (59, 54.1%) reported on renewing or at least revoking a leaked secret" Verified.
- [29] The authors recommend externalizing secrets with environment variables or vaults and secret managers, blocking them from repositories, and using scanners (especially pre-commit) as extra monitoring. Source: Krause et al. (2023). Quote: "developers should externalize secrets" Verified.
- [30] In a survey of 109 developers, about half externalized secrets (environment variables, config files) as prevention and 29.4% blocked them from the repository, e.g. with .gitignore. Source: Krause et al. (2023). Quote: "externalizing secrets (60, 55.0%)" Verified.
- [31] In a lab study, all 21 participants stored and accessed a secret with a secret manager within 30 minutes, but only 18 of 21 completed injecting it into an application. Source: Neil et al. (2025). Quote: "All 21 participants completed it within 30 minutes" Verified.
- [32] The study found that automatic leakage detectors, requiring multiple secret values and rate limiting on GitHub failed to limit large-scale exposure. Source: Meli et al. (2019). Quote: "Our data indicates these techniques all fail to limit systemic large-scale secret exposure." Verified.
- [33] GitHub reports that push protection stops about 30% of newly detected secrets before they enter repository history, when additional secret types are included. Source: Havens (2026). Quote: "When including additional secret types, push protection stops about 30% of newly detected secrets before they enter repository history. We find the remaining 70% after the credential is, unfortunately, already lost." Verified.
- [34] After GitHub's default push protection, exposure of covered credential types fell 53% against 7% for uncovered types, though the authors cannot pin the drop to the rollout date. Source: Truffle Security Research (2026). Quote: "the protected group fell 53 percent and the unprotected group fell 7 percent." Verified.
- [35] GitHub reports that the share of push-path blocks developers overrode fell from 6.63% to 3.93% between Q2 2024 and Q2 2026. Source: Havens (2026). Quote: "Over the same period, the share of push-path blocks overridden by developers fell linearly from 6.63% to 3.93%." Verified.
- [36] In one company's push-blocking secret detection tool, developers bypassed the warning in 44.2% of cases with a one-time bypass and 7.2% with a permanent bypass. Source: Rahman et al. (2022). Quote: "developers used a one-time bypass 44.2% of the time and a permanent bypass 7.2% of the time. Overall, in 51.4% of the cases, the tool believes potential secrets were exposed in the repositories" Verified.
- [37] Developers who bypassed the secret detection warning classified 50% of warnings as false positives but also bypassed for time constraints, non-shipping projects and a perception that check-ins are low risk. Source: Rahman et al. (2022). Quote: "despite developers classified 50 % of the warning as false positive, developers also bypassed the warning due to time constraints, working with non-shipping projects, technical challenges of eliminating secrets completely from the version control history, technical debts, and perceptions that check-ins are low risk." Verified.
- [38] The authors recommend organizations add secondary checks to catch incorrect bypasses of secret detection tools. Source: Rahman et al. (2022). Quote: "We also advocate that organizations should insert secondary checks, as is done by the company we studied, to capture occasions where developers incorrectly bypass secret detection tools." Verified.
- [39] Only 14.7% of surveyed developers (16 of 109) reported regular scanning for secrets as a prevention approach, against 55.0% who externalize secrets. Source: Krause et al. (2022). Quote: "Monitoring Regular scanning for code secrets and leaks both locally and remote e.g., using secrets scanners in CI/CD pipelines or pre-commit hooks, or review which entities have/had access 16 14.7% Externalize Secrets Separation of code secrets and committed code so that secrets are loaded at runtime, e.g., storing secrets on a central server or secret management system, using environment variables or files 60 55.0%" Verified.
- [40] The authors link the low reporting of code scanners to high false-positive rates and manual review work. Source: Krause et al. (2022). Quote: "Monitoring secrets through code scanners was less commonly reported, which we relate to the high false positive rate and additional manual review work required by developers" Verified.
- [41] Interviewees said that when a prevention tool requires many workflow changes it slows development, so developers try to bypass it. Source: Krause et al. (2022). Quote: "if a tool required too many workflow changes, it would slow down development, so developers try to bypass prevention approaches" Verified.
- [42] Microsoft documents the threat TDE addresses as theft of physical media such as drives or backup tapes, whose database could otherwise be restored or attached and browsed. Source: Microsoft (2025d). Quote: "However, a malicious party who steals physical media like drives or backup tapes can restore or attach the database and browse its data." Verified.
- [43] TDE encrypts data and log files at page level, decrypting pages as they are read into memory, and does not encrypt communication channels. Source: Microsoft (2025d). Quote: "The pages in an encrypted database are encrypted before they're written to disk and are decrypted when read into memory." ... "TDE doesn't provide encryption across communication channels." Verified.
- [44] OWASP guidance says the right encryption layer depends on the threat model, and that hardware-level encryption protects against physical theft of the server but not against remote compromise. Source: OWASP Cheat Sheet Series (n.d.a). Quote: "Which layer(s) are most appropriate will depend on the threat model. For example, hardware level encryption is effective at protecting against the physical theft of the server, but will provide no protection if an attacker is able to compromise the server remotely." Verified.
- [45] OWASP advises storing encryption keys apart from the encrypted data so that an attacker with access to only one cannot reach both. Source: OWASP Cheat Sheet Series (n.d.a). Quote: "Where possible, encryption keys should be stored in a separate location from encrypted data. For example, if the data is stored in a database, the keys should be stored in the filesystem. This means that if an attacker only has access to one of these (for example through directory traversal or SQL injection), they cannot access both the keys and the data." Verified.
- [46] In envelope encryption an application encrypts data with a locally generated data key, wraps that key with a key-encryption key held in a key management service, and stores the wrapped key beside the data; the wrapping key never leaves the service. Source: Google Cloud (2026b). Quote: "The process of encrypting data is to generate a DEK locally, encrypt data with the DEK, use a KEK to wrap the DEK, and then store the encrypted data and the wrapped DEK. The KEK never leaves Cloud KMS." Verified.
- [47] TDE-protected backups can be restored only with the certificate that protects the key, so losing the certificate loses the data. Source: Microsoft (2025d). Quote: "This means that in addition to backing up the database, you must maintain backups of the server certificates to prevent data loss. Data loss occurs if the certificate is no longer available." Verified.
- [48] OWASP states that not storing sensitive information is the best protection. Source: OWASP Cheat Sheet Series (n.d.a). Quote: "The best way to protect sensitive information is to not store it in the first place." Verified.
- [49] Under GDPR Article 34(3)(a), a controller need not tell data subjects about a breach if protection measures such as encryption made the affected data unintelligible to unauthorised persons. Source: European Union (2016a). Quote: "the controller has implemented appropriate technical and organisational protection measures, and those measures were applied to the personal data affected by the personal data breach, in particular those that render the personal data unintelligible to any person who is not authorised to access it, such as encryption" Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Alecci, M., Samhi, J., Bissyande, T. F., & Klein, J. (2026). Secrets unlocked: Evaluating LLMs for secrets detection in Android apps. *ACM*. https://doi.org/10.1145/3832140 [Medium trust. Peer-reviewed, abstract only.]
- Basak, S. K., Cox, J., Reaves, B., & Williams, L. (2023a). A comparative study of software secrets reporting by secret detection tools. *arXiv 2307.00714 (preprint)*. https://arxiv.org/abs/2307.00714 [Medium trust. Preprint, read in full.]
- Basak, S. K., Neil, L., Reaves, B., & Williams, L. (2023b). SecretBench: A dataset of software secrets. *MSR 2023 Data and Tool Showcase (arXiv 2303.06729)*. https://arxiv.org/abs/2303.06729 [Medium trust. Preprint, read in large part.]
- Bischoff, P. (2020). AWS credentials found on GitHub and abused within 1 minute. *Comparitech*. https://comparitech.com/blog/information-security/github-honeypot [Medium trust. Blog post, read in full.]
- Dahlmanns, M., Sander, C., Decker, R., & Wehrle, K. (2023). Secrets revealed in container images: An internet-wide study on occurrence and impact. *ACM AsiaCCS 2023*. https://arxiv.org/abs/2307.03958 [Solid source. Peer-reviewed, abstract only.]
- Havens, E. (2026). Secret protection must scale with software. *The GitHub Blog*. https://github.blog/ai-and-ml/github-copilot/secret-protection-must-scale-with-software/ [Weak source. Vendor page, read in full.]
- Kadkoda, Y., Goldman, I., Morag, A., & Itach, O. (2022). Travis CI security: Thousands of secrets exposed in public Travis CI logs. *Aqua Security blog*. https://www.aquasec.com/blog/travis-ci-security/ [Medium trust. Vendor page, read in large part.]
- Krause, A., Klemmer, J. H., Huaman, N., Wermke, D., Acar, Y., & Fahl, S. (2022). Committed by accident: Studying prevention and remediation strategies against secret leakage in source code repositories. *arXiv 2211.06213 (preprint)*. https://ar5iv.labs.arxiv.org/html/2211.06213 [Medium trust. Preprint, read in full.]
- Krause, A., Klemmer, J. H., Huaman, N., Wermke, D., Acar, Y., & Fahl, S. (2023). Pushed by accident: A mixed-methods study on strategies of handling secret information in source code repositories. *USENIX Security 2023*. https://www.usenix.org/conference/usenixsecurity23/presentation/krause [Medium trust. Peer-reviewed, read in large part.]
- Leon, J. (2024). Most publicly leaked keys are never revoked. *Truffle Security*. https://trufflesecurity.com/blog/most-publicly-leaked-keys-are-never-revoked [Medium trust. Vendor page, read in full.]
- Meli, M., McNiece, M. R., & Reaves, B. (2019). How bad can it git? Characterizing secret leakage in public GitHub repositories. *NDSS Symposium 2019*. https://www.ndss-symposium.org/ndss-paper/how-bad-can-it-git-characterizing-secret-leakage-in-public-github-repositories [Solid source. Peer-reviewed, read in large part.]
- Neil, L., Mungara, D., Williams, L., Acar, Y., & Reaves, B. (2025). It should be easy but... New users' experiences and challenges with secret management tools. *ACM CCS 2025 (extended version, arXiv 2509.09036)*. https://arxiv.org/html/2509.09036v1 [Medium trust. Preprint, read in full.]
- Rahal, K. (2023). Does Travis CI leak secrets in 2023?. *Truffle Security blog*. https://trufflesecurity.com/blog/travis-leaking-secrets-in-2023 [Medium trust. Vendor page, read in large part.]
- Rahman, M. R., Imtiaz, N., Storey, M., & Williams, L. (2022). Why secret detection tools are not enough: It is not just about false positives. An industrial case study. *Empirical Software Engineering, 27(3), 59*. https://pmc.ncbi.nlm.nih.gov/articles/PMC8928718 [Medium trust. Peer-reviewed, read in full.]
- Segura, T. (2024). The state of secrets sprawl 2024. *GitGuardian blog*. https://blog.gitguardian.com/the-state-of-secrets-sprawl-2024/ [Weak source. Vendor page, read in full.]
- Toulas, B. (2026). Cloud keys leaked in Docker Hub images are stolen within seconds. *BleepingComputer*. https://bleepingcomputer.com/news/security/cloud-keys-leaked-in-docker-hub-images-are-stolen-within-seconds [Medium trust. News article, read in full.]
- Zhou, J., Zhang, Z., Ying, L., et al. (2025c). Hey, your secrets leaked! Detecting and characterizing secret leakage in the wild. *IEEE Symposium on Security and Privacy 2025*. https://doi.org/10.1109/sp61157.2025.00122 [Medium trust. Peer-reviewed, abstract only.]
- CISA (2025). Supply chain compromise of third-party GitHub Action, CVE-2025-30066. *Cybersecurity and Infrastructure Security Agency*. https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-github-action-cve-2025-30066 [Medium trust. Government report, read in large part.]
- European Union (2016a). Art. 34 GDPR, Communication of a personal data breach to the data subject. *Regulation (EU) 2016/679*. https://gdpr-info.eu/art-34-gdpr/ [Medium trust. Documentation, read in full.]
- GitHub (n.d.e). Using secrets in GitHub Actions. *GitHub Docs*. https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions [Weak source. Documentation, read in large part. A passage taken from it was not found in it.]
- Google Cloud (2026b). Envelope encryption. *Google Cloud Documentation, Cloud Key Management Service*. https://docs.cloud.google.com/kms/docs/data-encryption-keys [Solid source. Documentation, read in full.]
- Microsoft (2025d). Transparent data encryption (TDE), SQL Server. *Microsoft Learn*. https://learn.microsoft.com/en-us/sql/relational-databases/security/encryption/transparent-data-encryption?view=sql-server-ver16 [Solid source. Documentation, read in full.]
- OWASP Cheat Sheet Series (n.d.a). Cryptographic storage cheat sheet. *OWASP*. https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html [Medium trust. Documentation, read in full.]
- Truffle Security Research (2026). GitHub repos exposed 543,699 credentials. Nobody revoked them. *Truffle Security*. https://trufflesecurity.com/blog/github-repos-exposed-543699-credentials-nobody-revoked-them [Medium trust. Blog post, read in full.]
