xploitscan-shared-rules 2.3.0 → 2.4.1
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/README.md +1 -1
- package/dist/index.cjs +203 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -9
- package/dist/index.d.ts +83 -9
- package/dist/index.js +199 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,74 @@ 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 singular C# `WidgetTest.cs`, `ABTest.cs`, `SpeedTest.cs`, `LoadTest.cs`,
|
|
496
|
+
* or `Models/Test.cs` stays application code. A plural `<Name>Tests.cs`
|
|
497
|
+
* (PascalCase name, then `Tests.cs`) is a suite anywhere. Singular
|
|
498
|
+
* `<Name>Test.cs` counts only inside a test directory: `tests/`, `test/`,
|
|
499
|
+
* `*.Tests/`, `*.UnitTests/`, `*.IntegrationTests/`, or a `*Tests/` folder
|
|
500
|
+
* when the file itself is `.cs` (`src/Features/ABTests/routes.ts` is not).
|
|
501
|
+
*/
|
|
502
|
+
declare function isTestPath(filePath: string): boolean;
|
|
503
|
+
declare function isSbomPath(filePath: string): boolean;
|
|
504
|
+
/**
|
|
505
|
+
* A credential that is live wherever the file sits. Test-mode keys,
|
|
506
|
+
* placeholder tokens, connection strings, and PEM private keys are not.
|
|
507
|
+
*
|
|
508
|
+
* Formats: `AKIA`/`ABIA`/`ACCA`/`ASIA` plus exactly 16 letters or digits
|
|
509
|
+
* (20 characters, not inside a longer letter-or-digit run; not a key ending in EXAMPLE),
|
|
510
|
+
* `sk_live_`, `rk_live_`, an OpenAI key (`T3BlbkFJ`), an OpenRouter key
|
|
511
|
+
* (`sk-or-v1-`), `ghp_` and `github_pat_`, a Slack `xox*` token, `AIza`,
|
|
512
|
+
* an Anthropic `sk-ant-api03-` key, SendGrid `SG.`, and a Hugging Face
|
|
513
|
+
* `hf_` token.
|
|
514
|
+
* A bare `sk-` is live only in one of those provider shapes. VC001 is live
|
|
515
|
+
* only when the rule set `live` on that token. Other Secrets rules are
|
|
516
|
+
* live too, except ENTROPY, VC002, and VC014, and except a snippet whose
|
|
517
|
+
* only provider tokens are placeholders.
|
|
518
|
+
*/
|
|
519
|
+
declare function isLive(finding: {
|
|
520
|
+
rule?: string;
|
|
521
|
+
category?: string;
|
|
522
|
+
live?: boolean;
|
|
523
|
+
snippet?: string;
|
|
524
|
+
}): boolean;
|
|
525
|
+
/**
|
|
526
|
+
* True when a finding is reported but must not move the grade.
|
|
527
|
+
*
|
|
528
|
+
* A test or fixture path is held out even when `--grade-vendored` is set,
|
|
529
|
+
* unless the finding is live (`isLive`). QA's VC001 hits were template
|
|
530
|
+
* connection strings; a live `sk_live_` key in `test/` still fails the gate.
|
|
531
|
+
* A secret in a non-test vendored or documentation path stays graded —
|
|
532
|
+
* `isVendoredFinding` still refuses to hold a real credential out of a
|
|
533
|
+
* README. Test paths are decided first.
|
|
534
|
+
*/
|
|
535
|
+
declare function isUngradedFinding(finding: {
|
|
536
|
+
file?: string;
|
|
537
|
+
rule?: string;
|
|
538
|
+
category?: string;
|
|
539
|
+
live?: boolean;
|
|
540
|
+
snippet?: string;
|
|
541
|
+
}, options?: {
|
|
542
|
+
gradeVendored?: boolean;
|
|
543
|
+
}): boolean;
|
|
544
|
+
|
|
463
545
|
/**
|
|
464
546
|
* Route-table extraction — what URL, if any, reaches a given source file.
|
|
465
547
|
*
|
|
@@ -1088,14 +1170,6 @@ interface GradeOptions {
|
|
|
1088
1170
|
* same rule do not also zero the numeric score.
|
|
1089
1171
|
*/
|
|
1090
1172
|
declare const GRADE_FINDINGS_PER_RULE = 3;
|
|
1091
|
-
/**
|
|
1092
|
-
* Rule family for the per-rule grade cap.
|
|
1093
|
-
*
|
|
1094
|
-
* Findings group by `rule` (`VC001`), not by the per-line id
|
|
1095
|
-
* (`VC001-src/app.ts:12`). ENTROPY's id is `ENTROPY-<file>:<line>` and its
|
|
1096
|
-
* rule is `ENTROPY`; both collapse to one family so a noisy entropy pass
|
|
1097
|
-
* cannot deduct once per line.
|
|
1098
|
-
*/
|
|
1099
1173
|
declare function gradeRuleFamily(finding: {
|
|
1100
1174
|
rule?: string;
|
|
1101
1175
|
id?: string;
|
|
@@ -1556,4 +1630,4 @@ input: {
|
|
|
1556
1630
|
content: string;
|
|
1557
1631
|
}[] | QualityContext, rules?: QualityRule[]): Finding[];
|
|
1558
1632
|
|
|
1559
|
-
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, 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 };
|
|
1633
|
+
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,74 @@ 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 singular C# `WidgetTest.cs`, `ABTest.cs`, `SpeedTest.cs`, `LoadTest.cs`,
|
|
496
|
+
* or `Models/Test.cs` stays application code. A plural `<Name>Tests.cs`
|
|
497
|
+
* (PascalCase name, then `Tests.cs`) is a suite anywhere. Singular
|
|
498
|
+
* `<Name>Test.cs` counts only inside a test directory: `tests/`, `test/`,
|
|
499
|
+
* `*.Tests/`, `*.UnitTests/`, `*.IntegrationTests/`, or a `*Tests/` folder
|
|
500
|
+
* when the file itself is `.cs` (`src/Features/ABTests/routes.ts` is not).
|
|
501
|
+
*/
|
|
502
|
+
declare function isTestPath(filePath: string): boolean;
|
|
503
|
+
declare function isSbomPath(filePath: string): boolean;
|
|
504
|
+
/**
|
|
505
|
+
* A credential that is live wherever the file sits. Test-mode keys,
|
|
506
|
+
* placeholder tokens, connection strings, and PEM private keys are not.
|
|
507
|
+
*
|
|
508
|
+
* Formats: `AKIA`/`ABIA`/`ACCA`/`ASIA` plus exactly 16 letters or digits
|
|
509
|
+
* (20 characters, not inside a longer letter-or-digit run; not a key ending in EXAMPLE),
|
|
510
|
+
* `sk_live_`, `rk_live_`, an OpenAI key (`T3BlbkFJ`), an OpenRouter key
|
|
511
|
+
* (`sk-or-v1-`), `ghp_` and `github_pat_`, a Slack `xox*` token, `AIza`,
|
|
512
|
+
* an Anthropic `sk-ant-api03-` key, SendGrid `SG.`, and a Hugging Face
|
|
513
|
+
* `hf_` token.
|
|
514
|
+
* A bare `sk-` is live only in one of those provider shapes. VC001 is live
|
|
515
|
+
* only when the rule set `live` on that token. Other Secrets rules are
|
|
516
|
+
* live too, except ENTROPY, VC002, and VC014, and except a snippet whose
|
|
517
|
+
* only provider tokens are placeholders.
|
|
518
|
+
*/
|
|
519
|
+
declare function isLive(finding: {
|
|
520
|
+
rule?: string;
|
|
521
|
+
category?: string;
|
|
522
|
+
live?: boolean;
|
|
523
|
+
snippet?: string;
|
|
524
|
+
}): boolean;
|
|
525
|
+
/**
|
|
526
|
+
* True when a finding is reported but must not move the grade.
|
|
527
|
+
*
|
|
528
|
+
* A test or fixture path is held out even when `--grade-vendored` is set,
|
|
529
|
+
* unless the finding is live (`isLive`). QA's VC001 hits were template
|
|
530
|
+
* connection strings; a live `sk_live_` key in `test/` still fails the gate.
|
|
531
|
+
* A secret in a non-test vendored or documentation path stays graded —
|
|
532
|
+
* `isVendoredFinding` still refuses to hold a real credential out of a
|
|
533
|
+
* README. Test paths are decided first.
|
|
534
|
+
*/
|
|
535
|
+
declare function isUngradedFinding(finding: {
|
|
536
|
+
file?: string;
|
|
537
|
+
rule?: string;
|
|
538
|
+
category?: string;
|
|
539
|
+
live?: boolean;
|
|
540
|
+
snippet?: string;
|
|
541
|
+
}, options?: {
|
|
542
|
+
gradeVendored?: boolean;
|
|
543
|
+
}): boolean;
|
|
544
|
+
|
|
463
545
|
/**
|
|
464
546
|
* Route-table extraction — what URL, if any, reaches a given source file.
|
|
465
547
|
*
|
|
@@ -1088,14 +1170,6 @@ interface GradeOptions {
|
|
|
1088
1170
|
* same rule do not also zero the numeric score.
|
|
1089
1171
|
*/
|
|
1090
1172
|
declare const GRADE_FINDINGS_PER_RULE = 3;
|
|
1091
|
-
/**
|
|
1092
|
-
* Rule family for the per-rule grade cap.
|
|
1093
|
-
*
|
|
1094
|
-
* Findings group by `rule` (`VC001`), not by the per-line id
|
|
1095
|
-
* (`VC001-src/app.ts:12`). ENTROPY's id is `ENTROPY-<file>:<line>` and its
|
|
1096
|
-
* rule is `ENTROPY`; both collapse to one family so a noisy entropy pass
|
|
1097
|
-
* cannot deduct once per line.
|
|
1098
|
-
*/
|
|
1099
1173
|
declare function gradeRuleFamily(finding: {
|
|
1100
1174
|
rule?: string;
|
|
1101
1175
|
id?: string;
|
|
@@ -1556,4 +1630,4 @@ input: {
|
|
|
1556
1630
|
content: string;
|
|
1557
1631
|
}[] | QualityContext, rules?: QualityRule[]): Finding[];
|
|
1558
1632
|
|
|
1559
|
-
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, 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 };
|
|
1633
|
+
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 };
|