xploitscan-shared-rules 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -90,6 +90,18 @@ interface Finding {
90
90
  * itself by arriving with the flag already set.
91
91
  */
92
92
  vendored?: boolean;
93
+ /**
94
+ * True when the finding sits in a test or fixture file and the test
95
+ * holdout applies. A live credential in a test file is graded and does
96
+ * not carry this flag. The GitHub Action cannot import the helper, so it
97
+ * trusts the flag the CLI stamps, exactly as it trusts `vendored`.
98
+ */
99
+ testFile?: boolean;
100
+ /**
101
+ * True when the finding is a live provider credential. A placeholder
102
+ * token and a PEM private key are not. `calculateGrade` reads it via `isLive`.
103
+ */
104
+ live?: boolean;
93
105
  /**
94
106
  * The URL that reaches this finding's file, when one does.
95
107
  *
@@ -121,6 +133,8 @@ interface RuleMatch {
121
133
  column?: number;
122
134
  snippet: string;
123
135
  fix?: string;
136
+ /** Set on a VC001 match whose text is a live provider credential. */
137
+ live?: boolean;
124
138
  }
125
139
 
126
140
  interface CustomRule {
@@ -460,6 +474,69 @@ declare function isVendoredFinding(finding: {
460
474
  */
461
475
  declare function vendoredReason(filePath: string): string | null;
462
476
 
477
+ /**
478
+ * One classification for "this path is a test or fixture" and for SBOM files.
479
+ *
480
+ * Rules that already skip tests call `isTestFile`, which delegates here.
481
+ * Rules that still emit (VC001, VC061, the config checks) stay visible;
482
+ * `calculateGrade` holds a test path out unless the finding is a live
483
+ * credential. Entropy omits test paths entirely, using this same helper.
484
+ *
485
+ * `src/routes/test/` is a route, not a suite (#886). A file there is a
486
+ * test only when its own name says so (`handler_test.go`, `foo.test.ts`).
487
+ */
488
+ /**
489
+ * True for a test, spec, or fixture path.
490
+ *
491
+ * Filename rules win over the `routes/test/` exception, so
492
+ * `src/routes/test/handler_test.go` is still a test file.
493
+ * `Testimonial.py` and `Testing.py` stay application code: `Test*.py`
494
+ * requires an uppercase letter or underscore after `Test`.
495
+ * A C# `WidgetTest.cs` stays application code too. Those suites live in
496
+ * `tests/`, `*.Tests/`, `*.UnitTests/`, or `*.IntegrationTests/`.
497
+ */
498
+ declare function isTestPath(filePath: string): boolean;
499
+ declare function isSbomPath(filePath: string): boolean;
500
+ /**
501
+ * A credential that is live wherever the file sits. Test-mode keys,
502
+ * placeholder tokens, connection strings, and PEM private keys are not.
503
+ *
504
+ * Formats: `AKIA`/`ABIA`/`ACCA`/`ASIA` (not a key ending in EXAMPLE),
505
+ * `sk_live_`, `rk_live_`, an OpenAI key (`T3BlbkFJ`), an OpenRouter key
506
+ * (`sk-or-v1-`), `ghp_` and `github_pat_`, a Slack `xox*` token, `AIza`,
507
+ * an Anthropic `sk-ant-api03-` key, SendGrid `SG.`, and a Hugging Face
508
+ * `hf_` token.
509
+ * A bare `sk-` is live only in one of those provider shapes. VC001 is live
510
+ * only when the rule set `live` on that token. Other Secrets rules are
511
+ * live too, except ENTROPY, VC002, and VC014, and except a snippet whose
512
+ * only provider tokens are placeholders.
513
+ */
514
+ declare function isLive(finding: {
515
+ rule?: string;
516
+ category?: string;
517
+ live?: boolean;
518
+ snippet?: string;
519
+ }): boolean;
520
+ /**
521
+ * True when a finding is reported but must not move the grade.
522
+ *
523
+ * A test or fixture path is held out even when `--grade-vendored` is set,
524
+ * unless the finding is live (`isLive`). QA's VC001 hits were template
525
+ * connection strings; a live `sk_live_` key in `test/` still fails the gate.
526
+ * A secret in a non-test vendored or documentation path stays graded —
527
+ * `isVendoredFinding` still refuses to hold a real credential out of a
528
+ * README. Test paths are decided first.
529
+ */
530
+ declare function isUngradedFinding(finding: {
531
+ file?: string;
532
+ rule?: string;
533
+ category?: string;
534
+ live?: boolean;
535
+ snippet?: string;
536
+ }, options?: {
537
+ gradeVendored?: boolean;
538
+ }): boolean;
539
+
463
540
  /**
464
541
  * Route-table extraction — what URL, if any, reaches a given source file.
465
542
  *
@@ -1078,6 +1155,20 @@ interface GradeOptions {
1078
1155
  */
1079
1156
  gradeVendored?: boolean;
1080
1157
  }
1158
+ /**
1159
+ * How many findings of one rule count toward point deductions and toward the
1160
+ * severity caps. The 4th and later stay in the report and deduct nothing more,
1161
+ * so one noisy rule cannot floor the score at 0.
1162
+ *
1163
+ * Three is the existing "≥3 high → max D" threshold: a rule that really does
1164
+ * have three highs still caps the letter at D, and further copies of that
1165
+ * same rule do not also zero the numeric score.
1166
+ */
1167
+ declare const GRADE_FINDINGS_PER_RULE = 3;
1168
+ declare function gradeRuleFamily(finding: {
1169
+ rule?: string;
1170
+ id?: string;
1171
+ }): string;
1081
1172
  declare function calculateGrade(findings: Finding[], _totalFiles: number, options?: GradeOptions): GradeResult;
1082
1173
  declare const complianceMap: Record<string, {
1083
1174
  owasp: string;
@@ -1157,8 +1248,11 @@ interface AIFilterResult {
1157
1248
  *
1158
1249
  * Returns filtered findings, the removed findings with AI reasons,
1159
1250
  * and metadata about what the AI did.
1251
+ *
1252
+ * @param budgetMs - Overall deadline (milliseconds). When expired, return
1253
+ * unreviewed findings with aiReviewed: false. Defaults to AI_FILTER_BUDGET_MS.
1160
1254
  */
1161
- declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>): Promise<AIFilterResult>;
1255
+ declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>, budgetMs?: number): Promise<AIFilterResult>;
1162
1256
 
1163
1257
  /**
1164
1258
  * Shannon-entropy based secret detection.
@@ -1531,4 +1625,4 @@ input: {
1531
1625
  content: string;
1532
1626
  }[] | QualityContext, rules?: QualityRule[]): Finding[];
1533
1627
 
1534
- export { type AIFilterResult, type AppRoute, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, allRules, assessHeaders, astMatch, buildProjectContext, buildQualityContext, buildTaintMap, calculateGrade, callSpreads, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, hardcodedJWTSecret, hardcodedSecrets, harvestIntent, insecureCookies, insecureRandomness, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isMethodCall, isPrivateAddress, isServerSideFile, isServerTarget, isTestFile, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, nextPublicSecret, noRateLimiting, normalizeScanPath, parseFile, parseScanTarget, parseSupabaseConfig, qualityRules, replaceBlockComments, routeForFile, runCustomRules, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, sqlInjection, stripeWebhookUnprotected, supabaseFunctionName, supabaseNoRLS, todoLeftInCode, tryParse, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, xssVulnerability };
1628
+ export { type AIFilterResult, type AppRoute, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, allRules, assessHeaders, astMatch, buildProjectContext, buildQualityContext, buildTaintMap, calculateGrade, callSpreads, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecrets, harvestIntent, insecureCookies, insecureRandomness, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isPrivateAddress, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, nextPublicSecret, noRateLimiting, normalizeScanPath, parseFile, parseScanTarget, parseSupabaseConfig, qualityRules, replaceBlockComments, routeForFile, runCustomRules, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, sqlInjection, stripeWebhookUnprotected, supabaseFunctionName, supabaseNoRLS, todoLeftInCode, tryParse, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, xssVulnerability };
package/dist/index.d.ts CHANGED
@@ -90,6 +90,18 @@ interface Finding {
90
90
  * itself by arriving with the flag already set.
91
91
  */
92
92
  vendored?: boolean;
93
+ /**
94
+ * True when the finding sits in a test or fixture file and the test
95
+ * holdout applies. A live credential in a test file is graded and does
96
+ * not carry this flag. The GitHub Action cannot import the helper, so it
97
+ * trusts the flag the CLI stamps, exactly as it trusts `vendored`.
98
+ */
99
+ testFile?: boolean;
100
+ /**
101
+ * True when the finding is a live provider credential. A placeholder
102
+ * token and a PEM private key are not. `calculateGrade` reads it via `isLive`.
103
+ */
104
+ live?: boolean;
93
105
  /**
94
106
  * The URL that reaches this finding's file, when one does.
95
107
  *
@@ -121,6 +133,8 @@ interface RuleMatch {
121
133
  column?: number;
122
134
  snippet: string;
123
135
  fix?: string;
136
+ /** Set on a VC001 match whose text is a live provider credential. */
137
+ live?: boolean;
124
138
  }
125
139
 
126
140
  interface CustomRule {
@@ -460,6 +474,69 @@ declare function isVendoredFinding(finding: {
460
474
  */
461
475
  declare function vendoredReason(filePath: string): string | null;
462
476
 
477
+ /**
478
+ * One classification for "this path is a test or fixture" and for SBOM files.
479
+ *
480
+ * Rules that already skip tests call `isTestFile`, which delegates here.
481
+ * Rules that still emit (VC001, VC061, the config checks) stay visible;
482
+ * `calculateGrade` holds a test path out unless the finding is a live
483
+ * credential. Entropy omits test paths entirely, using this same helper.
484
+ *
485
+ * `src/routes/test/` is a route, not a suite (#886). A file there is a
486
+ * test only when its own name says so (`handler_test.go`, `foo.test.ts`).
487
+ */
488
+ /**
489
+ * True for a test, spec, or fixture path.
490
+ *
491
+ * Filename rules win over the `routes/test/` exception, so
492
+ * `src/routes/test/handler_test.go` is still a test file.
493
+ * `Testimonial.py` and `Testing.py` stay application code: `Test*.py`
494
+ * requires an uppercase letter or underscore after `Test`.
495
+ * A C# `WidgetTest.cs` stays application code too. Those suites live in
496
+ * `tests/`, `*.Tests/`, `*.UnitTests/`, or `*.IntegrationTests/`.
497
+ */
498
+ declare function isTestPath(filePath: string): boolean;
499
+ declare function isSbomPath(filePath: string): boolean;
500
+ /**
501
+ * A credential that is live wherever the file sits. Test-mode keys,
502
+ * placeholder tokens, connection strings, and PEM private keys are not.
503
+ *
504
+ * Formats: `AKIA`/`ABIA`/`ACCA`/`ASIA` (not a key ending in EXAMPLE),
505
+ * `sk_live_`, `rk_live_`, an OpenAI key (`T3BlbkFJ`), an OpenRouter key
506
+ * (`sk-or-v1-`), `ghp_` and `github_pat_`, a Slack `xox*` token, `AIza`,
507
+ * an Anthropic `sk-ant-api03-` key, SendGrid `SG.`, and a Hugging Face
508
+ * `hf_` token.
509
+ * A bare `sk-` is live only in one of those provider shapes. VC001 is live
510
+ * only when the rule set `live` on that token. Other Secrets rules are
511
+ * live too, except ENTROPY, VC002, and VC014, and except a snippet whose
512
+ * only provider tokens are placeholders.
513
+ */
514
+ declare function isLive(finding: {
515
+ rule?: string;
516
+ category?: string;
517
+ live?: boolean;
518
+ snippet?: string;
519
+ }): boolean;
520
+ /**
521
+ * True when a finding is reported but must not move the grade.
522
+ *
523
+ * A test or fixture path is held out even when `--grade-vendored` is set,
524
+ * unless the finding is live (`isLive`). QA's VC001 hits were template
525
+ * connection strings; a live `sk_live_` key in `test/` still fails the gate.
526
+ * A secret in a non-test vendored or documentation path stays graded —
527
+ * `isVendoredFinding` still refuses to hold a real credential out of a
528
+ * README. Test paths are decided first.
529
+ */
530
+ declare function isUngradedFinding(finding: {
531
+ file?: string;
532
+ rule?: string;
533
+ category?: string;
534
+ live?: boolean;
535
+ snippet?: string;
536
+ }, options?: {
537
+ gradeVendored?: boolean;
538
+ }): boolean;
539
+
463
540
  /**
464
541
  * Route-table extraction — what URL, if any, reaches a given source file.
465
542
  *
@@ -1078,6 +1155,20 @@ interface GradeOptions {
1078
1155
  */
1079
1156
  gradeVendored?: boolean;
1080
1157
  }
1158
+ /**
1159
+ * How many findings of one rule count toward point deductions and toward the
1160
+ * severity caps. The 4th and later stay in the report and deduct nothing more,
1161
+ * so one noisy rule cannot floor the score at 0.
1162
+ *
1163
+ * Three is the existing "≥3 high → max D" threshold: a rule that really does
1164
+ * have three highs still caps the letter at D, and further copies of that
1165
+ * same rule do not also zero the numeric score.
1166
+ */
1167
+ declare const GRADE_FINDINGS_PER_RULE = 3;
1168
+ declare function gradeRuleFamily(finding: {
1169
+ rule?: string;
1170
+ id?: string;
1171
+ }): string;
1081
1172
  declare function calculateGrade(findings: Finding[], _totalFiles: number, options?: GradeOptions): GradeResult;
1082
1173
  declare const complianceMap: Record<string, {
1083
1174
  owasp: string;
@@ -1157,8 +1248,11 @@ interface AIFilterResult {
1157
1248
  *
1158
1249
  * Returns filtered findings, the removed findings with AI reasons,
1159
1250
  * and metadata about what the AI did.
1251
+ *
1252
+ * @param budgetMs - Overall deadline (milliseconds). When expired, return
1253
+ * unreviewed findings with aiReviewed: false. Defaults to AI_FILTER_BUDGET_MS.
1160
1254
  */
1161
- declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>): Promise<AIFilterResult>;
1255
+ declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>, budgetMs?: number): Promise<AIFilterResult>;
1162
1256
 
1163
1257
  /**
1164
1258
  * Shannon-entropy based secret detection.
@@ -1531,4 +1625,4 @@ input: {
1531
1625
  content: string;
1532
1626
  }[] | QualityContext, rules?: QualityRule[]): Finding[];
1533
1627
 
1534
- export { type AIFilterResult, type AppRoute, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, allRules, assessHeaders, astMatch, buildProjectContext, buildQualityContext, buildTaintMap, calculateGrade, callSpreads, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, hardcodedJWTSecret, hardcodedSecrets, harvestIntent, insecureCookies, insecureRandomness, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isMethodCall, isPrivateAddress, isServerSideFile, isServerTarget, isTestFile, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, nextPublicSecret, noRateLimiting, normalizeScanPath, parseFile, parseScanTarget, parseSupabaseConfig, qualityRules, replaceBlockComments, routeForFile, runCustomRules, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, sqlInjection, stripeWebhookUnprotected, supabaseFunctionName, supabaseNoRLS, todoLeftInCode, tryParse, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, xssVulnerability };
1628
+ export { type AIFilterResult, type AppRoute, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, allRules, assessHeaders, astMatch, buildProjectContext, buildQualityContext, buildTaintMap, calculateGrade, callSpreads, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecrets, harvestIntent, insecureCookies, insecureRandomness, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isPrivateAddress, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, nextPublicSecret, noRateLimiting, normalizeScanPath, parseFile, parseScanTarget, parseSupabaseConfig, qualityRules, replaceBlockComments, routeForFile, runCustomRules, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, sqlInjection, stripeWebhookUnprotected, supabaseFunctionName, supabaseNoRLS, todoLeftInCode, tryParse, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, xssVulnerability };