Skip to content

Privacy and preparation

Security-sensitive business datasets: what 222 scanner rules miss

By SourceX Editorial · Reviewed by Noah Loul ·

9 sections

Short answer

A security-sensitive business dataset carries details that would help someone attack the company: credentials, unfixed weaknesses, internal topology and physical routines. Secret scanners find only the first, and only in machine-readable form. In a SourceX test, gitleaks's 222 default rules matched 5 of 6 machine-format credentials and none of 30 lines holding prose credentials, weaknesses, topology, physical routines or harmless security notes. The rest needs triage and a specialist decision.

Redaction

Security sensitive business

This page covers security-sensitive business datasets: what 222 scanner rules miss.Illustrative

Key takeaways

  • Security-sensitive content comes in four kinds: means of access, described weaknesses, internal topology and physical routines; only machine-format credentials have a shape a pattern can match.
  • gitleaks's 222 default rules at commit 5f6ec56 matched 5 of 6 machine-format credentials, missing a database connection string, and 0 of 6 credentials written as ordinary sentences.
  • None of 24 lines describing weaknesses, topology, physical routines or harmless security events matched any rule.
  • Decide each finding with four questions: does it give access, explain exploitation, describe a condition not confirmed fixed, or name a reachable target?
  • Weaknesses in a vendor's product belong in that vendor's disclosure process, not in a training dataset.

What makes a business dataset security sensitive?

A business dataset is security sensitive when it holds details that would help someone attack the company, its customers or its vendors. Four kinds recur: credentials and other means of access, weaknesses described in words, internal topology such as hosts and addresses, and physical routines such as alarm schedules and door habits. Only the first kind has a shape a pattern can match.

NIST's glossary gives the vocabulary for the decision. It defines a vulnerability, citing FIPS 200 and CNSSI 4009, as a weakness in an information system, system security procedures, internal controls or implementation that could be exploited or triggered by a threat source. It also lists technical vulnerability information, from CNSSI 4009-2015: a detailed description of a weakness that includes the implementable steps, such as code, needed to exploit it. The difference between those two entries is the difference between a record that can be generalized and a record that has to stay home.

The question for a supplier is therefore not whether security appears in the data, because it appears everywhere, but which mentions are actionable, which can be rewritten so the business signal survives, and which should never leave the company. Two neighboring topics are out of scope here: scanning buyer samples for credentials, and incident-response records, which the live guide to security incident dataset exclusions covers.

Where weaknesses sit in records nobody files under security

They sit in the operational systems where people fix things: helpdesk queues, facilities work orders, field-service notes, vendor onboarding files, audit follow-ups and offboarding checklists. None of these is a security system, so none of them is usually excluded by default.

Good practice puts them there on purpose. NIST's Cybersecurity Framework 2.0 includes subcategory ID.RA-01: vulnerabilities in assets are identified, validated, and recorded. A company that follows that advice will have weakness records, and many of them live in the same ticketing and work-order tools a licensing scope might include. The table lists where they usually turn up and why.

Where weaknesses sit in records nobody files under security
Record sourceTypical security-sensitive contentWhy it is written down
IT helpdesk ticketsUnpatched machines, shared logins, firewall exceptions, disabled sign-in checksTroubleshooting requires describing the fault and the workaround
Facilities and security work ordersBroken badge readers, alarm schedules, camera blind spots, key locationsThe repair crew needs the exact place and the access arrangement
Field-service notesSite gate codes, controller logins, remote-access tools used on siteTechnicians record how they got in so the next visit goes faster
Vendor and procurement recordsRemote-support accounts, jump hosts, the systems a vendor can reachOnboarding documents the access the vendor was granted
Audit, insurance and assessment follow-upsOpen findings, control gaps, remediation target datesThe follow-up exists to track what is still open
Offboarding checklistsAccounts not yet disabled, devices not yet returnedThe checklist lists exactly what remains to be done

What a secret scanner catches: a 36-line test of 222 rules

A secret scanner catches credentials that look like credentials, and in this test it caught nothing else. SourceX built 36 invented lines in six classes of six, then applied the default rules of gitleaks, an open-source secret scanner, at commit 5f6ec56 of 23 October 2026. Its README describes a tool for detecting secrets like passwords, API keys and tokens in git repositories and files, and its default configuration holds 222 rules, one of which matches file names only and so cannot fire on a line of text.

The port was checked before the test. All 221 text rules compiled in Python, 196 as written and 25 after two mechanical rewrites, and four of the five machine-format lines that matched were caught by a rule named for their format, such as the GitHub token rule for the GitHub-style token; the AWS-style secret was caught only by the generic API key rule. The project's own test cases live in its Go code and were not run, so this is a lighter check than running gitleaks itself.

Then the test lines. Five of the six machine-format credentials were matched: a GitHub-style token in an export line, a Slack-style bot token, a Stripe-style live key, a private key block and an AWS secret key assignment. The sixth, a PostgreSQL connection string with an embedded password, matched nothing; none of the default rules is described as covering database connection strings. None of the other 30 lines matched any rule. That includes six credentials written as ordinary sentences, such as a kiosk password, a gate code and a factory login typed out in a ticket.

The rule inventory points the same way. Only 2 of the 222 rules mention any word from a list of non-credential security topics in their id or description, and both are tokens for code-scanning services, Snyk and Sonar, whose descriptions say a stolen token could compromise software vulnerability scanning. Neither looks for a described weakness. That is not a defect in gitleaks; it is what a secret scanner is for. It does mean a scanner pass, however clean, says nothing about five of the six classes in the table, and may miss some credentials even in the one class it covers.

What a secret scanner catches: a 36-line test of 222 rules
Class of lineExample (invented)LinesMatched by any rule
A. Credential in machine formatAn export line carrying a random GitHub-style token65
B. Credential written as proseTemp password for the front desk kiosk is Harbor-Lane-229160
C. Weakness described in wordsBackups of the accounting server have failed since March60
D. Internal topology or asset detailFile server FS-02 at 10.20.4.15 holds the scanned contracts share60
E. Physical security routine or gapThe alarm is disarmed from 5:30 to 6:00 every morning60
F. Security-adjacent, not actionableQuarterly access review finished for the finance group60
A grid of 36 dots in six rows of six, one row per class of invented line; five of the six dots for machine-format credentials are filled as matched by gitleaks rules, while the rows for prose credentials, described weaknesses, topology, physical routines and harmless security notes stay empty.
gitleaks default rules at commit 5f6ec56 applied by SourceX to 36 invented lines; 5 of 36 matched.

Why prose credentials and weaknesses need a reader, not a pattern

Patterns key on structure, such as a known prefix, a fixed length, a character set or an assignment like password equals, while a weakness is a meaning: a condition, a target and a point in time. A sentence saying the payroll laptop no longer receives security updates has no token to find.

The practical answer is a triage pass after the scanner. Route lines to reviewers by vocabulary (unpatched, default password, disabled, bypass, propped open, code, PIN), by structure (private IP addresses, internal hostnames, port numbers) and by record type (every facilities security work order, every vendor remote-access form). Expect noise: class F in the test, with lines like password reset completed, shows why vocabulary alone over-flags harmless entries.

Then give the routed lines to someone qualified to judge them, usually the company's security lead or an outside assessor, and add a random sample of lines the triage did not route so the review can estimate what triage missed. A language model can help sort lines, but a model's sort is another detector to test, not a replacement for the specialist decision.

The actionability test: four questions for every finding

A finding is actionable when it gives access, explains how to exploit a condition, describes a condition not confirmed as fixed, or names a target an outsider could reach. Ask the four questions in order; the first yes decides the treatment, and anything still unknown is treated as yes.

When every answer is no, keep the record with the business signal intact, for example: an access-control gap delayed the quarter-end audit by two weeks. That sentence teaches a model how operations and audit interact without telling anyone where to look. The four questions follow.

  • Does it contain or reveal a means of access, such as a password, code, token, key or where a physical key is kept? If yes, change or revoke it at the source first, then remove it. Never generalize a secret.
  • Does it explain how to exploit the condition, step by step? If yes, exclude the record. NIST's glossary treats a description that includes implementable exploitation steps as technical vulnerability information.
  • Is the condition current, or not confirmed as fixed? If yes or unknown, hold the record until the system owner confirms remediation and the date; holding is cheaper than recalling a delivered file.
  • Does it name a specific target someone outside could find, such as a host, address, site, entrance, product and version? If yes, replace the target with its class, such as a file server or a side entrance, and keep the rest.

Review matrix and final-delivery checklist for security-sensitive content

Each class gets a detection method, a default treatment, a statement of what the AI task keeps and a named sign-off. The matrix is the working sheet for the review; the checklist is what has to be true before the last file leaves the company.

Below are the final-delivery checklist and then the review matrix.

Checklist · 8 items

  1. The scanner ran over every exported file, attachment and decoded field, and every hit was changed or revoked at the source before removal.
  2. A triage pass routed lines by vocabulary, structure and record type, and the routing lists are saved with the review.
  3. A security specialist decided every routed line with the four actionability questions and recorded the answer.
  4. A random sample of unrouted lines was reviewed the same way, and its findings are reported as an estimate of what triage missed.
  5. Every held record has a named system owner and a remediation date before it can return to scope.
  6. Weaknesses in a vendor's product were reported to that vendor and removed from the dataset, not generalized.
  7. Whole record types with no task value, such as alarm schedules and key registers, were excluded from scope rather than cleaned line by line.
  8. The scanner and triage pass were rerun on the final package after the last transformation.

0 of 8 ticked. Tick each item as you go.

Review matrix and final-delivery checklist for security-sensitive content
Content classHow to find itDefault treatmentWhat the AI task keepsSign-off
Credential in machine formatSecret scannerChange or revoke at source, then removeThat a credential was involved, as a typed placeholderSecurity lead
Credential written as proseTriage vocabulary plus specialist reviewChange at source, then remove the valueThe access event, without the valueSecurity lead
Weakness described in wordsTriage vocabulary and record type, specialist reviewHold if current; generalize the target if fixed; exclude exploit stepsThe operational effect and the fix sequenceSecurity lead and system owner
Internal topology or asset detailStructure rules for addresses, hosts and portsReplace with a class labelThe kind of system involvedIT owner
Physical security routine or gapRecord-type rules for facilities work ordersExclude the record type, or generalize place and timeThat a facility issue affected the workFacilities or security lead
Security-adjacent, not actionableFalls out of triage as a false positiveKeepThe full eventReviewer on sample

If a weakness is already fixed, can the record stay?

Often, in generalized form, but fixed is not the same as harmless. The same misconfiguration may still exist on another site, a weakness in a vendor's product may still affect that vendor's other customers, and a model trained on the record can repeat it to someone who asks the right question.

That last risk is the one specific to AI use. NIST AI 600-1, its Generative AI Profile, lists information security among the risks generative AI raises, including lowered barriers to offensive cyber capabilities through automated discovery and exploitation of vulnerabilities. A training record that names a company, a product version and an exploitable condition is raw material for that, whether or not the original system has since been patched.

Weaknesses in someone else's product have a proper channel. ISO/IEC 29147:2018, confirmed again in 2024, gives vendors requirements and recommendations for receiving reports of potential vulnerabilities in their products and services and for disclosing remediation information. A dataset is not that channel, so the record leaves the scope and the finding goes to the vendor.

Where a weakness also exposes personal data, data protection law adds its own duty. For UK organizations, the ICO's guide to data security says the UK GDPR does not prescribe specific security measures and expects measures appropriate to the risk, weighing the state of the art and the cost of implementation. Removing names from a ticket does nothing about an open firewall rule described in it, and an encrypted transfer protects the file in transit, not the weakness inside it. This is general information, not legal advice.

Security-sensitive records in a SourceX scope decision

In a SourceX deal the supplier draws the boundary. The trust page says the supplier decides which systems, records and date ranges are in scope and that everything else stays out, and the how-it-works page says that once SourceX gives the go-ahead, the data is "extracted, transferred and de-identified through approved processing routes."

The controls the trust page lists today include private storage for supplier files, shared only through links that expire within minutes, and a record of every status change with who made it and when. The de-identification it describes is about personal details. A security exclusion is a different decision, one the supplier makes with its own security reviewer before extraction, and the four actionability questions are a way to document it.

If the review leaves a useful operational record set, the next step is a short assessment of the company, with nothing uploaded. An assessment is not an offer and promises no payment; scope and terms are fixed only in a signed agreement.

Methods note: the rule set, the test lines and what was not tested

Rule set: github.com/gitleaks/gitleaks, commit 5f6ec56 (23 October 2026), file config/gitleaks.toml, every rules entry read as data: 222 rules, of which one (pkcs12-file) has a file-path pattern and no regex and was skipped. Regexes were compiled with Python's re module: 196 compiled as written, and 25 compiled after two rewrites Python needs, namely inline flags that appear mid-pattern moved to the whole pattern, and the end-of-text escape \z written as Python's \Z. Only the regex was applied; gitleaks's keyword pre-check, entropy thresholds and allowlists were not, so on those counts the port can only report more matches than gitleaks would, while differences between Go and Python regex dialects could still cut either way. The README says gitleaks is feature complete and that future releases will be security patches only.

Test lines: 36 invented lines, six per class, written for this article; no real records were used. Credential-shaped values in class A are random strings drawn with Python's random.Random(20261028) in the order the lines are listed, and match no real account. Hosts use private address ranges and the reserved example domain. A line counts as matched when at least one rule's pattern matches anywhere in it.

Inventory: a rule counts when its name or description contains, as a whole word ignoring case, vulnerability, vulnerabilities, CVE, firewall, firewalls, patch, patches, IP address, IP addresses, hostname, hostnames, alarm, alarms, door, doors, camera, cameras, badge, badges, backup, backups, misconfiguration or misconfigurations.

Not tested: the gitleaks binary itself, its own test cases, other scanners, real business records, the recall of any triage pass, and how specialists decide in practice. Six lines per class show which kinds of content the rules did not match in this test; they do not estimate how often each class occurs in a real archive. The next evidence worth having is a triage recall figure: the same routing run on a consented archive, with the random sample of unrouted lines reported beside it. Sources were checked on 2026-10-28.

Frequently asked questions

Is a clean secret-scan report enough to license operational records?

No. A secret scanner looks for credential-shaped strings. In this article's test, gitleaks's 222 default rules matched 5 of 6 machine-format credentials and none of 30 lines with prose credentials, weaknesses, topology, physical routines or harmless security notes.

Should records that mention a fixed vulnerability be removed?

Not always. If the fix is confirmed, the record has no exploitation steps and the target can be replaced with a class label, the operational lesson can usually stay. Weaknesses in a vendor's product should go to the vendor and leave the dataset.

Who should review security-sensitive content before a data license?

Someone qualified to judge exploitability, usually the company's security lead or an outside assessor, working with the system owner who can confirm fixes. Privacy reviewers handle personal details; this is a separate sign-off.

Can internal IP addresses and hostnames stay in a training dataset?

Usually they are replaced with a class label such as a file server or a database host. The task rarely needs the actual address, and an address plus a described weakness tells an outsider where to look.

Does de-identification remove security risk from a dataset?

No. De-identification removes or replaces personal details. An open firewall rule or an alarm schedule described in a ticket is not personal data, so it survives de-identification untouched unless a security review takes it out.

Sources

  • NIST's glossary defines a vulnerability as a weakness in an information system, security procedures, internal controls or implementation that could be exploited or triggered by a threat source. Source
  • NIST's glossary defines technical vulnerability information as a detailed description of a weakness that includes the implementable steps needed to exploit it. Source
  • NIST CSF 2.0 subcategory ID.RA-01 says vulnerabilities in assets are identified, validated, and recorded. Source
  • NIST AI 600-1 lists information security among generative AI risks, including lowered barriers to offensive cyber capabilities through automated vulnerability discovery and exploitation. Source
  • ISO/IEC 29147:2018 gives vendors requirements and recommendations for receiving vulnerability reports and disclosing remediation information, and was confirmed in 2024. Source
  • The ICO says the UK GDPR does not prescribe specific security measures and expects measures appropriate to the risk, weighing the state of the art and implementation costs. Source
  • gitleaks is an open-source secret scanner whose README describes detecting secrets like passwords, API keys and tokens; SourceX applied its 222 default rules at commit 5f6ec56 to an invented 36-line test set. Source
  • SourceX's trust page says the supplier decides scope, everything else stays out, supplier files sit in private storage behind short-lived links, and every status change is recorded. Source
  • SourceX's how-it-works page says data is extracted, transferred and de-identified through approved processing routes once SourceX gives the go-ahead. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies