import type { AuditContext } from '@cclabsnz/sf-core'; import type { SecurityCheck, CheckResult } from '../SecurityCheck.js'; /** Whether a field's own name (no namespace, no __c) says it holds a secret. */ export declare function namesSecret(qualifiedApiName: string): boolean; /** * Secrets stored in custom settings or custom metadata types. Their records are readable through * the API and Apex by users with access to the type, so a password or token kept there is exposed * in a way a Named Credential's secret is not. * * Evidence is the field, not the type's name: a text field on a custom setting or custom metadata * type whose name says it holds a password, secret, token or key. The record values are never read, * so a match is a field to review, not a secret found. Managed-package components are listed apart: * a protected one is not readable from this org, and only the vendor can change it. */ export declare class CustomSettingsCheck implements SecurityCheck { readonly id = "custom-settings"; readonly name = "Custom Settings and Credentials"; readonly category = "Code Security"; readonly description = "Flags text fields on custom settings and custom metadata types whose names say they hold a password, secret, token or key"; run(ctx: AuditContext): Promise; private inconclusive; } //# sourceMappingURL=CustomSettingsCheck.d.ts.map