@code-sentinel-cli/code-sentinel-cli 4.0.11 → 4.0.13-avtest.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/bin.js +483 -471
- package/dist/builtin-rules/static/general/no-empty-encryption-key.rule.js +6 -2
- package/dist/index.d.ts +10 -4
- package/dist/index.js +483 -471
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Language, Parser, Query } from 'web-tree-sitter';
|
|
|
9
9
|
import { Project, SyntaxKind, Node, ScriptKind, VariableDeclarationKind } from 'ts-morph';
|
|
10
10
|
import { readFile, stat, writeFile, mkdir, rename, readdir, rm, access, mkdtemp, unlink, chmod, lstat, realpath as realpath$1, open } from 'fs/promises';
|
|
11
11
|
import * as nativeFs from 'fs';
|
|
12
|
-
import { existsSync, mkdirSync, readFileSync, mkdtempSync, statSync, rmSync, constants, createReadStream, realpathSync, readdirSync, writeFileSync,
|
|
12
|
+
import { existsSync, mkdirSync, readFileSync, mkdtempSync, statSync, rmSync, constants, createReadStream, realpathSync, readdirSync, writeFileSync, stat as stat$1, realpath, readdir as readdir$1, unwatchFile, watchFile, watch as watch$1, openSync, readSync, closeSync, fstatSync } from 'fs';
|
|
13
13
|
import { createGunzip, inflateRawSync, deflateRawSync } from 'zlib';
|
|
14
14
|
import { Socket } from 'net';
|
|
15
15
|
import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
|
@@ -817,9 +817,9 @@ function analyzeSpike(plan, phases, slots, conditions) {
|
|
|
817
817
|
const lat = w.flatMap((s) => s.latenciesMs).sort((a, b) => a - b);
|
|
818
818
|
const n = w.reduce((a, s) => a + total(s.classes), 0);
|
|
819
819
|
if (n === 0 || lat.length === 0) return false;
|
|
820
|
-
const
|
|
820
|
+
const err3 = w.reduce((a, s) => a + systemicFailureCount(s.classes), 0) / n;
|
|
821
821
|
const p95 = percentile(lat, 95);
|
|
822
|
-
return p95 !== null && p95 <= spec.p95Factor * baselineP95 &&
|
|
822
|
+
return p95 !== null && p95 <= spec.p95Factor * baselineP95 && err3 <= gate;
|
|
823
823
|
};
|
|
824
824
|
const span = Math.max(
|
|
825
825
|
0,
|
|
@@ -1425,8 +1425,8 @@ var init_dist2 = __esm({
|
|
|
1425
1425
|
const suffix = raw.suffix;
|
|
1426
1426
|
if (!isSafeLine(suffix)) return null;
|
|
1427
1427
|
const s = suffix.trim();
|
|
1428
|
-
const
|
|
1429
|
-
if (!
|
|
1428
|
+
const ok4 = kind === "mock-user" ? MOCK_USER_RE.test(s) : kind === "jwt" ? JWT_RE.test(s) : ANONYMOUS_RE.test(s);
|
|
1429
|
+
if (!ok4) return null;
|
|
1430
1430
|
return { kind, suffix: s, ...imports.length > 0 ? { imports } : {} };
|
|
1431
1431
|
}
|
|
1432
1432
|
if (raw.suffix !== void 0) return null;
|
|
@@ -1435,8 +1435,8 @@ var init_dist2 = __esm({
|
|
|
1435
1435
|
const ann = anns[0];
|
|
1436
1436
|
if (!isSafeLine(ann)) return null;
|
|
1437
1437
|
const a = ann.trim();
|
|
1438
|
-
const
|
|
1439
|
-
if (!
|
|
1438
|
+
const ok3 = kind === "with-mock-user" ? WITH_MOCK_USER_RE.test(a) : WITH_USER_DETAILS_RE.test(a);
|
|
1439
|
+
if (!ok3) return null;
|
|
1440
1440
|
return { kind, classAnnotations: [a], ...imports.length > 0 ? { imports } : {} };
|
|
1441
1441
|
};
|
|
1442
1442
|
MAX_STATE_WRITES = 32;
|
|
@@ -9032,6 +9032,7 @@ function buildJavaMethodIndex(files, language) {
|
|
|
9032
9032
|
tree?.delete();
|
|
9033
9033
|
}
|
|
9034
9034
|
}
|
|
9035
|
+
parser.delete();
|
|
9035
9036
|
types.sort((a, b) => a.simpleName.localeCompare(b.simpleName) || a.file.localeCompare(b.file));
|
|
9036
9037
|
const byName = /* @__PURE__ */ new Map();
|
|
9037
9038
|
for (const t of types) {
|
|
@@ -9413,8 +9414,9 @@ function createJavaTaintAnalyzer(language) {
|
|
|
9413
9414
|
const findings2 = [];
|
|
9414
9415
|
let interproc;
|
|
9415
9416
|
let entryTree = null;
|
|
9417
|
+
let parser;
|
|
9416
9418
|
try {
|
|
9417
|
-
|
|
9419
|
+
parser = new Parser();
|
|
9418
9420
|
parser.setLanguage(language);
|
|
9419
9421
|
entryTree = parser.parse(file.content);
|
|
9420
9422
|
if (!entryTree) return [];
|
|
@@ -9437,6 +9439,7 @@ function createJavaTaintAnalyzer(language) {
|
|
|
9437
9439
|
} finally {
|
|
9438
9440
|
entryTree?.delete();
|
|
9439
9441
|
interproc?.dispose();
|
|
9442
|
+
parser?.delete();
|
|
9440
9443
|
}
|
|
9441
9444
|
return findings2.sort(compareTaintFindings);
|
|
9442
9445
|
}
|
|
@@ -10120,6 +10123,7 @@ function createJavaInterproc(files, language, matchers, index2) {
|
|
|
10120
10123
|
}
|
|
10121
10124
|
function dispose() {
|
|
10122
10125
|
for (const t of treeCache.values()) t?.delete();
|
|
10126
|
+
parser.delete();
|
|
10123
10127
|
treeCache.clear();
|
|
10124
10128
|
}
|
|
10125
10129
|
return { resolveForCall, inheritedParamAnnotations, dispose };
|
|
@@ -11667,7 +11671,7 @@ function parseParams2(url) {
|
|
|
11667
11671
|
function normalizeUrl(url) {
|
|
11668
11672
|
return url.replace(/^\/+/, "");
|
|
11669
11673
|
}
|
|
11670
|
-
var createCompositeParser, SUPPORTED, createTextParser, requireFromHere, grammarCache, parserInitialized, initParser, resolveGrammarPath, loadGrammar, LANGUAGE_TO_GRAMMAR, SUPPORTED2, createTreeSitterParser, asTreeSitterTree, OPEN_SCRIPT_RE, CLOSE_SCRIPT_RE, LANG_TS_RE, SRC_ATTR_RE, OPEN_TEMPLATE_RE, CLOSE_TEMPLATE_RE, blankOut, keepOnly, templateRange, projectVueSfc, isVueSfcPath, tsMorphPathOf, SUPPORTED3, scriptKindFor, createTsMorphParser, createParser, BASE_CONFIG_RE, PROFILE_CONFIG_RE, HARNESS_PORT, KEY_LINE_RE, yamlEntries, emptyKeys, isConfigYaml, profileRank, declaresDatasource, detectDatasourceProfileBlocker, detectProfileCompositionBlocker, detectServerPortBlocker, XML_COMMENT_RE, INCLUDE_RE, CREATE_TABLE_RE, ALTER_TARGET_RE, matchAllGroups, detectUnrunnableMigrationBlocker, detectPolicyBootBlockers, composeSuggested, BINDABLE_NAME_RE, YAML_KEY_RE, PROPS_KEY_RE, configValueOf, rawTokensOf, MARK, AUTHORITY_LIKE_RE, shapeInAuthority, nextOf, shapeInPath, shapeAt, parseConfigValue, renderTemplate, DIALECT_SPECS, JDBC_URL_PATTERNS, DRIVER_PATTERNS, isConfigFile, isBuildFile, dialectsMatching, resolveDialect, DDL_AUTO_CREATE_RE, FLYWAY_RE, LIQUIBASE_RE, resolveSchemaProvisioning, detectSchemaProvisioning, detectDbTier, DB_SIDECAR_PORT, DISPOSABLE_DB, dbSidecarEnv, buildDbSidecarSpec, maskJavaComments, maskedCorpusCache, maskJavaFiles, PROFILE_GATED_JAR_BEANS, JHIPSTER_PROFILE_CONSTANTS, isJava, CLASS_DECL_RE, PROFILE_ANNOTATION_RE, CONDITIONAL_ANNOTATION_RE, CONFIG_ANNOTATION_RE, readProfileAnnotation, declarationHead, braceMatch, lineAt, parsedClasses, simpleTypeName, parseParams, beanMethods, collectProducers, detectUngatedProfileDependencies, ungatedProfileDeviationText, STANDALONE_BOOT_PROFILE, ENTITY_SCHEMA_GAPS, PROVISIONED_SIDECARS, DEFAULT_PROVISIONED_SIDECARS, NOTE, isConfigFile2, leafKey, indentOf, fullPathFor, usesJpa, detectVaultTemplateCompatibility, KAFKA_BUILD_RE, KAFKA_CONFIG_RE, STREAM_BUILD_RE, STREAM_CONFIG_RE, declaresKafka, declaresStreamBinder, hasPinnedListenerAutoStartup, ENDPOINT_PROPERTY_RULES, ENDPOINT_VALUE_RE, CLUSTER_TOPOLOGY_RULES, literalDatabaseOf, resolveSchemaResolution, buildStandaloneBootProfile, runtimeEnvKeyFor, A_SENTINEL, ENC_SENTINEL, UNAVAILABLE_KAFKA_HOST, UNAVAILABLE_KAFKA_PORT, isBase64JwtSigningKeyPath, isEndpointShaped, isEndpointPropertyPath, hasToken, dummyFor, RELAXED_ENV, envKeyFor, buildSidecars, renderSidecar, identifyByName, PATH_KINDS, PATH_LEAF_ROLES, identifyByPath, roleFromShape, shapedDummy, unavailableKafkaValue, resolveSlot, resolvePlaceholder, encSentinelFor, SHAPE_PRECEDENCE, strongerShape, buildBootResolution, RUNTIME_ENV_MANIFEST_SCHEMA_VERSION, SENSITIVE_ENV_NAME, URL_USERINFO, SENSITIVE_QUERY_VALUE, INLINE_SENSITIVE_VALUE, JWT_VALUE, EFFECTIVE_VALUE_LIMIT, displayEnvValue, UPPER_ENV_RE, RUNTIME_HTTP_STUB_AUTHORITY, parseRuntimeEnvProposal, strategyForRule, SAFE_DISABLE_ENV_ALLOWLIST, isSafeDisableCandidate, proposalStrategyFitsEntry, proposalFor, synthesizeManifestEnv, CONFIG_FILE_RE, BUILD_CONFIG_FILE_RE, ENV_FILE_RE, JAVA_FILE_RE, KOTLIN_FILE_RE, PACKAGE_MANIFEST_PATH, PLACEHOLDER_RE, GET_ENV_RE, VALUE_RE, lineOf, propertyPathAt, declaredConfigPropertyNames, shapeFor, valueConsumerShape, dependencyFor, enumValuesForConsumer, compareText, runtimeEnvScenarioId, sameSourcePath, buildRuntimeEnvManifest, buildRuntimeEnvResolutionReport, buildRuntimeEnvEffectiveReport, countsFor, applyRuntimeEnvImpact, TS_LANGUAGES, EXTENSIONS, TS_SOURCE_EXTENSIONS_BY_RUNTIME_EXT, scriptKindFor2, normalizeRelativePath, candidatePaths, normalizeConfigPath, stripJsonComments, loadTsConfigResolver, matchPathPattern, applyPathTarget, resolveAliasModule, resolveModule, aliasIfDifferent, exportedSymbols, expressionRootName, addSymbol, compareText2, variableBindingNames, importEqualsSpecifier, extractSymbols, fingerprintFor, createTsAstDependencyGraphBuilder, isTsLike, debug, warn, tryLoad, trySave, createIncrementalAstGraphBuilder, SOURCES, SINKS, SANITIZERS, DEFAULT_TS_TAINT_TABLES, JAVA_SOURCES, JAVA_SINKS, JAVA_SANITIZERS, DEFAULT_JAVA_TAINT_TABLES, PROPAGATOR_RESULT_TAILS, PROPAGATOR_STATE_TAILS, SUBJECT_CTOR_TYPES, CALLBACK_TAINT, TAINT_UNION_BINOPS, EMPTY_SUMMARY, paramSentinel, PARAM_SENTINEL_RE, MAX_CROSS_FILE_DEPTH, JAVA_LINE_TERMINATORS, HOST_FIXING_PREFIX_RE, KNOWN_STRING_CONSTANTS, MAX_CONSTANT_DEPTH, TYPE_DECLARATION, CALLABLE, SIMPLE_ESCAPES, TYPE_DECL_NODES, indexCache, SCOPE_BOUNDARY, SCOPE_BOUNDARY2, TYPE_DECL, STRING_PASSTHROUGH, ARG_PASSTHROUGH, CONTAINER_ELEMENT, BUILDER_APPENDERS, COLLECTION_MUTATORS, RECEIVER_FOLD_MUTATORS, HOST_FIXED_MARK, STRING_BUILDER_TYPES, BUILDER_PREFIX_BREAKERS, PREFIX_DROPPING_PASSTHROUGH, CONDITIONAL_CONSTRUCT, INERT_URL_ACCESSOR_RE, EMPTY_SUMMARY2, paramSentinel2, PARAM_SENTINEL_RE2, MAX_CROSS_METHOD_DEPTH, SANITIZE_CALL, BYPASS_CALL, PREFIX_GATE, MAX_VALUE_HOPS, SOURCE_PATTERNS, MAPPING_ANNOTATIONS, PARAM_ANNOTATIONS, AUTHZ_ANNOTATIONS, VALIDATION_ANNOTATIONS, annotationScanner, TYPE_DECL2, MODIFIER, METHOD_NAME, LEADING_ANNOTATION, simpleName, lineOf2, readBalanced, annotationArgs, firstStringLiteral, readMappingPath, readMappingMethod, joinPaths, skipToDeclaration, isTypeDeclaration, splitParams, parseParam, readAuthAnnotations, ROLE_ANNOTATIONS, stripRolePrefix, readAuthRoles, precedingBlock, readClassContext, extractFromFile, JAXRS_VERBS, JAXRS_PARAM_ANNOTATIONS, JAXRS_IMPORT, parseJaxRsParam, readJaxRsPath, JAXRS_TYPE_DECL, readJaxRsType, IMPLEMENTS_DECL, readImplCandidate, escapeRegExp, findImplMethod, extractJaxRsEndpoints, extractHttpEndpoints, findEnclosingEndpoint, SINK_ATTACKS, AI_TRIAGE_ATTACK_ALIASES, SINK_SHAPE_VARIANTS, SOURCE_KIND, kindsFromSources, deriveAuthContext, resolveCompanionParams, resolveInjectionPoint, buildServerRequest, buildClientRequest, generateAttackScenario, UNASSESSED_CATALOG, BY_ID, buildUnassessedItems, INJECTION_LANGUAGES, TIER_A_INJECTION_ITEMS, CONFIRMED_LIMITATION, INCONCLUSIVE_LIMITATION, evidenceFrom, byFileLine, CHECKLIST_VERDICT_RANK, mergeEqualRank, dedupeByChecklistId, scenarioByFileLine, PENTEST_CHECKLIST_TOTAL, DECLARED_CHECKLIST_IDS, buildChecklistCoverage, buildCoverage, assembleAssessment, CONFIG_ENTRY_RE, SKIPPED_ENTRY_RE, XML_COMMENT_RE2, SYSTEM_PATH_RE, declaredSystemJarEntries, declaredSystemJarPaths, readCentralDirectory, readEntryBytes, readEntryText, languageFor, detectMissingSystemJars, readJarConfigFiles, readJarClassFiles, listJarClassNames, MIN_CONSTANT_LEN, MAX_CONSTANT_LEN, MAX_CONSTANTS_PER_CLASS, NOISE_CONSTANT_RE, parseClassConstants, constantRank, readJarClassConstants, collectDependencyClassConstants, collectDependencyClassNames, collectDependencyConfigFiles, JWT_CONTEXT_MARKER_RE, BASE64_SHAPE_RE, MIN_BASE64_KEY_CHARS, MAX_BASE64_KEY_CHARS, decodedByteLength, readJarJwtKeyCandidates, collectJwtKeyCandidates, JWT_FACADE_RE, JWT_DECODE_CALL_RE, JWT_VERIFY_MARKER_RE, readJarDecodeOnlyEvidence, collectDecodeOnlyEvidence, collectEagerKafkaStartupJars, EMPTY_DEPENDENCY_GUARDS, DENY_CLASS_RE, ASPECT_DESC, ADVICE_DESC_RE, POINTCUT_DESC, ACC_INTERFACE, ACC_ANNOTATION, MAX_HOPS, operandLength, Reader, parseClass, simpleName2, packageOf, scanClassFilesForGuards, collectDependencyGuardFacts, TEST_SOURCE_SET_RE, isTestSourcePath, STANDARD_GUARD_ANNOTATIONS, MAX_HOPS2, DENY_EXCEPTION, DENY_STATUS, DENY_SEND_ERROR, isJava2, lineOf3, maskStrings, ANNOTATION_NAME, annotationNames, parseClass2, RESPONSE_STATUS_TEST, isResponseStatusTranslation, firstDenyMatch, denyHitOf, methodKey, endpointGuardKey, sourceRootOf, sameModuleFirst, calleesOf, scanAuthorizationGuards, guardForEndpoint, MAX_EVIDENCE3, REVIEW_SIGNAL_MAP, asJsonRecord, readReviewFinding, parseReviewReport, reviewReportRuleIds, evidenceOf, sortEvidence, EXTERNAL_BYPASS_MARKER, isDecisiveFinding, foldReviewSignals, MAX_EVIDENCE22, AUTHORIZATION_RISK_EVIDENCE, MASS_ASSIGNMENT_EVIDENCE, OWNERSHIP_SCOPE_EVIDENCE, STATE_TRANSITION_EVIDENCE, AI_SIGNAL_MAP, readPerRule, parseAiReviewReport, evidenceOf2, sortEvidence2, scopeClauseOf, provenanceOf, skipReasonOf, anchorResolves, anchorOf, unresolvableCitationClause, citationGateClause, citationTargetNoun, miscitationBreakdown, anchorAccepts, foldAiSignals, IMPORT_LINE_RE, isImportOrPackageLine, CSRF_SPEC, CORS_SPEC, HEADERS_SPEC, STACKTRACE_SPEC, MESSAGE_SPEC, COOKIE_SPEC, SESSION_FIXATION_SPEC, SESSION_TIMEOUT_SPEC, AUTH_CACHE_SPEC, lineOf4, SECURITY_CONFIG_RE, CSRF_DISABLE_RE, CORS_WILDCARD_RE, CROSS_ORIGIN_BARE_RE, ALLOW_CREDENTIALS_RE, CORS_EXPLICIT_ORIGIN_RE, CORS_ANY_RE, HEADERS_DISABLE_RES, HEADERS_CONFIGURED_RE, CSP_CONFIGURED_RE, STACKTRACE_EXPOSE_RE, STACKTRACE_NEVER_RE, MESSAGE_EXPOSE_RE, MESSAGE_NEVER_RE, COOKIE_CONTEXT_RE, COOKIE_INSECURE_CHECKS, COOKIE_HARDENED_RE, SESSION_FIXATION_DISABLED_RE, CACHE_CONTROL_DISABLE_RE, CACHE_CONTROL_CONFIGURED_RE, SESSION_TIMEOUT_PATH_RE, SESSION_BLOCK_HEADER_RE, SESSION_TIMEOUT_LEAF_RE, YAML_INDENT_RE, control, configEvidence, firstMatch, firstMatchAny, scanCsrf, CORS_ORIGINS_YAML_RE, CORS_CREDENTIALS_YAML_RE, isWildcardOrigins, corsConfigRank, corsOriginHits, scanCors, scanSecurityHeaders, NON_PROD_PROFILE_RE, scanStacktraceExposure, scanErrorMessageExposure, scanCookieAttributes, scanSessionFixation, scanAuthCacheControl, findSessionTimeout, timeoutNeverExpires, timeoutToMinutes, JWT_VALIDITY_RE, NON_PROD_CONFIG_RE, findJwtValidities, hoursOf, judgeJwtValidity, judgeServletTimeout, scanSessionTimeout, scanSecurityConfig, WEAK_CRYPTO_SPEC, MAX_EVIDENCE32, lineOf5, classifyAlgorithm, GET_INSTANCE_RE, COMMONS_DIGEST_RE, GUAVA_HASHING_RE, SECRET_KEY_SPEC_RE, SHORTHAND_ALGO, SECURITY_DIGEST_PURPOSE_RE, NON_SECURITY_DIGEST_PURPOSE_RE, isNonSecurityDigestUse, collectWeakHits, STRONG_CRYPTO_RE, STRONG_CRYPTO_RE_G, firstStrong, evidence, item, scanWeakCrypto, REGEX_PRECEDING_KEYWORDS, isIdentChar, regexAllowedAt, maskJsComments, maskedCorpusCache2, maskJsFiles, FRONTEND_EXT_RE, VENDOR_DIR_RE, ANGULAR_LIBRARY_SRC_RE, GENERATED_NAME_RE, JQUERY_PLUGIN_RE, KNOWN_LIBRARY_RE, BANNER_RE, MINIFIED_AVG_LINE, isThirdPartyAsset, BROWSER_STORAGE_SPEC, MAX_EVIDENCE4, lineOf6, HIGH_SENSITIVITY_RE, TOKEN_FAMILY_RE, classifyStorageKey, VALUE_TOKEN_FAMILY_RE, classifyStorageValue, keyToken, SET_ITEM_RE, BRACKET_ASSIGN_RE, STORAGE_USE_RE, IDB_CONTEXT_RE, LOCALFORAGE_SET_RE, IDB_STORE_WRITE_RE, collectStorageHits, collectIndexedDbHits, finalizeHits, firstStorageUse, evidence2, item2, scanSensitiveBrowserStorage, AT_REST_SPEC, MAX_EVIDENCE5, lineOf7, PWD_GETTER, PWD_EQUALS_RECEIVER_RE, PWD_EQUALS_ARG_RE, collectPasswordComparisonHits, SENSITIVE_FIELD_NAMES, FIELD_DECL_RE, FIELD_PROTECTED_RE, precedingBlock2, collectPlaintextFieldHits, finalizeHits2, PROTECTION_RE, firstProtection, AT_REST_SURFACE_RE, evidence3, item3, scanSensitiveDataAtRest, PADDING_ORACLE_SPEC, MAX_EVIDENCE6, lineOf8, GET_INSTANCE_RE2, collectCbcHits, BAD_PADDING_CATCH_RE, collectBadPaddingHits, finalizeHits3, AEAD_RE, firstAead, CIPHER_SURFACE_RE, evidence4, item4, scanPaddingOracle, LOGGING_SPEC, MAX_EVIDENCE7, lineOf9, JAVA_LOG_CALL_RE, JAVA_CONSOLE_CALL_RE, JS_CONSOLE_CALL_RE, LOG_SURFACE_RE, stripStringLiterals, PII_RE, findSensitiveToken, IDENTIFIER_RE, VALUE_METHOD_RE, callsPropertyAccessor, TOKEN_COUNT_PREFIXES, FLAG_PREFIXES, MASK_PREFIXES, SECRET_SEGMENTS, SECRET_SEGMENT_PAIRS, SECRET_SUBSTRING_RE, PROTECTED_SEGMENTS, segmentsOf, isSecretIdentifier, stripNonValueExpressions, collectSensitiveContainers, findSensitiveArgument, findSensitiveOutput, firstLogSurface, evidence5, item5, scanSensitiveLogging, CHECKLIST_ID, CONTROL_ID, TITLE, CWE, MAX_EVIDENCE8, ADMIN_PATH_RE, ADMIN_CONTROLLER_RE, isAdminEndpoint, ADMIN_ROLE_RE, ROLE_CAPABLE_AUTHZ, ROLE_ANNOTATION_RE, SEC_CONFIG_HINT_RE, MATCHER_RE, ACCESS_AFTER_RE, ANY_REQUEST_RE, offsetOfLine, readBalanced2, stringLiterals, antMatches, hasAdminRoleAnnotation, classHeaderOf, memberWindow, annotationStance, accessKind, collectFilterConfig, filterStanceFor, combineProtection, publicNote, item6, auditAdminSurface, CLOUD_ACL_SPEC, MAX_EVIDENCE9, lineOf10, PUBLIC_ACL_PATTERNS, finalizeHits4, collectCannedAclHits, EFFECT_ALLOW_RE, WILDCARD_PRINCIPAL_RE, S3_ACTION_RE, enclosingObject, collectBucketPolicyHits, evidence6, item7, scanCloudStorageAcl, ACTUATOR_SPEC, MAX_EVIDENCE10, CONFIG_FILE_RE2, SENSITIVE_ACTUATOR_ENDPOINTS, lineOf11, indentOf2, isBlankOrComment, splitEndpoints, classifyExposure, exposureNote, H2_NOTE, findChildKey, collectListItems, collectExposureHits, collectH2Hits, finalizeHits5, evidence7, item8, scanActuatorExposure, BACKUP_FILE_SPEC, BACKUP_FILE_GLOBS, BACKUP_FILE_RE, SENSITIVE_BASE_RE, MAX_EVIDENCE11, stripBackupSuffix, classify2, evidence8, scanBackupFiles, CROSSDOMAIN_SPEC, CROSSDOMAIN_GLOBS, MAX_EVIDENCE12, lineOf12, PERMISSIVE_PATTERNS, collectHits, evidence9, scanCrossDomainPolicy, CLIENT_INFO_SPEC, ANGULAR_CONFIG_GLOBS, MAX_EVIDENCE13, lineOf13, asRecord, sourceMapEnabled, buildConfigurations, scanConfigFile, evidence10, item9, scanClientInfoLeak, SENSITIVE_FILE_SPEC, SENSITIVE_FILE_GLOBS, SENSITIVE_FILE_RE, PEM_TEXT_RE, PRIVATE_KEY_HEADER_RE, MAX_EVIDENCE14, classify22, evidence11, scanSensitiveFiles, INSECURE_TRANSPORT_SPEC, ENVIRONMENT_FILE_RE, MAX_EVIDENCE15, lineOf14, extractStringLiterals, HTTP_URL_RE, HTTPS_PRESENCE_RE, isExcludedHost, TEMPLATE_FILE_RE, scanInsecureFormSubmission, isTestPath, scanExternalCleartextLinks, JAVA_FILE_RE2, CLEARTEXT_JAVA_CLIENT_RE, scanJavaCleartextClients, scanInsecureTransport, WEBSOCKET_SPEC, MAX_EVIDENCE16, WS_URL_RE, WSS_PRESENCE_RE, scanWebSocketSecurity, authFillKey, createStubAuthFillResolver, buildAuthFillMap, ALG_TO_HASH, SIGNING_KEY_LINE, ENV_PLACEHOLDER, lineOf15, cleanValue, discoverJwtSigningKeys, b64url, b64urlStr, signingKeyBytes, mintJwt, DEFAULT_JHIPSTER_CLAIMS, RECIPE_NOTE, DECODE_ONLY_NOTE, jarKeysToSigningKeys, sha256Hex, buildRuntimeAuthRecipe, mintTokenFromRecipe, DEFAULT_TTL_SECONDS, commandsFor, credentialFor, runtimeAuthSeedDeviation, runtimeAuthSeedDecodeOnlyDeviation, planFor, buildRuntimeAuthSeedPlan, DEFAULT_TIMEOUT_MS, CRLF, encodeResp, identify, readReply, applyRuntimeAuthSeed, describeShape, resolveRuntimeAuthHypothesis, THREW, createStubRuntimeAuthHypothesisResolver, dataSeedKey, describeShape2, THREW2, resolveRuntimeDataSeedHypothesis, createStubRuntimeDataSeedResolver, buildDataSeedPlan, buildApiCreateSeedPlan, dataSeedEndpointSummaries, IDEMPOTENT_INSERT, BACKSLASH_IS_ESCAPE, escapeSqlString, sqlLiteral, assertIdentifier, renderDataSeedSql, SEED_AUDIT_SENTINEL, AUDIT_FIELD_RE, CLASS_DECL_RE2, TABLE_RE, EXTENDS_RE, NULLABLE_FALSE_RE, LENGTH_RE, stripJavaComments, group, detectSeedAuditColumns, applySeedAuditColumns, seedAuditAddedColumns, OBJECT_SEED_BASELINE_KEY, OBJECT_SEED_BASELINE_CONTENT_BASE64, PENTEST_CANARY_BUCKET, MAX_DERIVED_TARGETS, MAX_DERIVED_EVIDENCE, CONFIG_PATH_RE, BUCKET_KEY_RE, LINE_RE, PLACEHOLDER_RE2, ENC_PREFIX_RE, BOOLEAN_VALUE_RE, HAS_LOWERCASE_RE, canonicalKey, cleanValue2, resolveValue, referencesToken, deriveObjectStoreSeedTargets, renderObjectStoreSeedTsv, REACHABILITY_MANIFEST_SCHEMA_VERSION, MANIFEST_NOTE, SCALAR_JAVA_TYPES, baseTypeName, seedForParam, METHOD_INTENT, buildHint, buildReachabilityManifest, norm, dirOf, baseName, isMavenPom, isGradleBuild, stripXmlComments, isAncestorDir, normModulePath, selectRunnableModule, PACKAGE_DECL, BOOT_CLASS, posix3, detectSpringBootClass, EOCD_SIGNATURE, CENTRAL_SIGNATURE, EOCD_SEARCH_WINDOW, MAX_COMPRESSION_RATIO, MAX_UNCOMPRESSED_BYTES, MAX_ENTRIES, fail, isUnsafeName, readArchive, readArchiveEntryText, SOURCE_EXTENSIONS, extensionOf, baseNameOf, XML_COMMENT_RE3, isAggregatorPom, declaresParentPath, declaresSystemPaths, resolveAgainst, isSafeManifestPath, isSafeBuildTarget, preflightArchive, GRAPH_SKIP_DIRS, toPosix2, isFile, isDirectory, isWithin, resolvesWithin, normalizeModulePath, readText, hasApplicationEntrySource, walkFor, XML_COMMENT_RE4, xmlValue, withoutXmlBlocks, parseMavenModule, nearestAncestorFile, resolveMaven, stripGradleComments, quotedValues, parseGradleSettings, gradleProjectDependencies, conventionalProjectDir, resolveGradle, resolveBuildPackage, discoverBuildPackageEntries, SKIP_DIRS, DEFAULT_PACKAGE_EXCLUDES, SECRET_FILE_EXACT, SECRET_EXTENSIONS, isSecretOrIgnoredFile, MAX_FILE_BYTES, MAX_PARENT_DEPTH, DEFAULT_PACKAGE_POLICY, toPosix22, isFile2, isWithin2, resolvesWithin2, packageRootFor, toRelativeName, globRegexCache, globToRegExp, considerFile, walk, fingerprintEntryData, fingerprintEntries, withAdditionalPackageEntries, XML_COMMENT_RE5, RELATIVE_PATH_RE, SYSTEM_PATH_RE2, PARENT_BLOCK_RE, EMPTY_RELATIVE_PATH_RE, readPom, localNpmTarballs, expandBasedir, planServicePackage, CRC_TABLE, crc32, writePackageZip, SIDECAR_IMAGES, HARNESS_PLAN_SCHEMA_VERSION, isConfigFile3, isBuildFile2, stripComments, SERVICE_DEPS, detectDatabaseDependency, detectServiceDependencies, detectHarnessDependencies, AUTO_CONFIGURED_LISTENER_FACTORY, KAFKA_LISTENER_ARGS_RE, LISTENER_PIN_RE, LISTENER_FACTORY_RE, SELF_OFF_FACTORY_BEAN_RE, SET_AUTO_STARTUP_FALSE_RE, classifyKafkaBootPath, buildHarnessPlan, normalizedPath, lineOf16, maskComments, sourceAt, addEvidence, readBundleIdentity, readPortalRelease, readSourceProduct, readToolchain, databaseVendorOf, readDatabase, isPortalConfigFile, normalizeApplicationBase, readApplicationBase, readSearch, detectLiferayRuntimeProfile, applyKafkaBrokerCoherence, RUNTIME_PLAN_SCHEMA_VERSION, PLAN_NOTE, describeSidecar, buildSteps, buildRuntimeBringUpPlan, RUNTIME_OVERLAY_FILE, RUNTIME_COMPOSE_FILE, RUNTIME_GUIDE_FILE, RUNTIME_BOOT_ENV_FILE, RUNTIME_VAULT_COMPATIBILITY_FILE, SIDECAR_IMAGE, REDIS_CLUSTER_COMMAND, renderNestedYaml, renderOverlay, renderVaultCompatibility, publishLine, renderCompose, renderGuide, renderBootEnv, generateRuntimeArtifacts, SUBMISSION_REQUIREMENTS_SCHEMA_VERSION, MAX_EVIDENCE17, NOTE2, capEvidence, totalSuffix, blockerEvidence, groupBy, packagingRequirements, secretRequirements, POLICY_KINDS, policyRequirements, infrastructureRequirements, authRequirements, seedRequirements, TIER_ORDER, buildSubmissionRequirements, renderSubmissionRequirements, REJECT_SIDECAR, applyRuntimeInput, DESER_SPEC, MAX_EVIDENCE18, lineOf17, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf18, WEAK_RNG_PATTERNS, SECURITY_ID_RE, statementAround, COOKIE_SINK_MAX_HOPS, namesCarrying, reachesCookie, collectHits3, SECURE_RANDOM_RE, firstSecureRandom, evidence13, item11, scanWeakSecureRandom, POSTMESSAGE_SPEC, MAX_EVIDENCE20, lineOf19, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf20, escapeRe, isScannableFrontendPath, GUARD_FN_TYPES, GUARD_CLASS_IFACES, FN_GUARD_TYPED_RE, CLASS_GUARD_RE, FN_GUARD_PARAM_RE, VUE_ROUTE_GUARD_RE, VUE_INTERCEPTOR_RE, FN_INTERCEPTOR_RE, INTERCEPTOR_BINDING_RE, CLASS_INTERCEPTOR_RE, INTERCEPT_METHOD_RE, INTERCEPTOR_TOKEN_RE, URL_CHECK_RES, DOM_SANITIZER_CALL_RE, SANITIZER_HELPER_DEF_RE, BYPASS_TRUST_RE, KIND_ORDER, KIND_LABELS, scanClientGuards, renderClientGuards, INDEX_HEADER_SPEC, MAX_EVIDENCE222, lineOf21, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf22, isFrontend2, HIGH_SENSITIVITY_RE2, TOKEN_FAMILY_RE2, SECURE_RE, SAMESITE_RE, COOKIE_WRITE_RE, COOKIE_USE_RE, classifyCookieValue, collectCookieHits, evidenceOf3, resultItem, scanClientCookie, TS_LANGS, MOUNT_VUE3, MOUNT_VUE2, TS_EXT_CANDIDATES, UNRESOLVED_PATH, unwrap, TS_LANGS2, MOUNT_ROOT, MOUNT_ANY, TS_EXT_CANDIDATES2, MAX_CHAIN_DEPTH, MAX_REEXPORT_DEPTH, UNRESOLVED_PATH2, isVueSfc, inferVueSrcBase, resolveComponentRoutesByFramework, XXE_SPEC, MAX_EVIDENCE24, lineOf23, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf24, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, UNREFERENCABLE_BASE_IMAGE, baseImageReference, FLOATING_TAG_RE, unpinnedBaseImageReason, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf26, HOST_PATTERNS, REQUEST_TYPE_RE, REQUEST_NAME_RE, receiverOf, isRequestReceiver, collectHits5, evidence19, item17, scanHostHeader, CHECKLIST_ID2, CONTROL_ID2, TITLE2, evidenceOf4, item18, VALUE_ANNOTATION_RE, FIELD_AFTER_VALUE_RE, LIFETIME_TOKEN_RE, tokenize, hasOtpToken, TIME_UNIT_RE, NAME_UNIT_HINTS, TO_SECONDS, lineOf27, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf28, precedingBlock3, PASSWORD_NAME_RE, NOT_A_SECRET_RE, isPasswordName, STRING_DECL_RE, SIZE_MIN_RE, ANNOTATION_IN_BLOCK_RE, LENGTH_CHECK_RE, CONSTRAINT_VALIDATOR_RE, ANNOTATION_DECL_RE, STRING_LITERAL_RE, QUANT_MIN_RE, POLICY_SURFACE_PATTERNS, ACCOUNT_SURFACE_RE, baseName2, isAccountSurface, collectCustomConstraintMins, sitesIn, firstUsageIndex, pointersIn, dedupeSort, evidenceOf5, item19, policyNote, scanPasswordPolicy, SPEC, MAX_EVIDENCE28, AUTH_SURFACE_RE, ACCOUNT_EXISTENCE_RE, PASSWORD_ONLY_RE, COMBINED_RE, STRING_LITERAL_RE2, lineOf29, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf30, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf31, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf32, scanSsrfEndpointHints, SPEC4, MAX_EVIDENCE322, HARD_MUTATION_HANDLER_RE, DIRECT_WRITE_RE, DELEGATION_WRITE_RE, TXN_RE, READ_ONLY_TXN_RE, offsetOfLine2, insideLiteral, extractHandlerBody, braceMatchedBlock, signatureRegion, confirmWrite, dedupeSort5, evidenceOf9, item23, scanStateChangingGet, KEY_MANAGEMENT_SPEC, JAVA_FILE_RE3, CONFIG_FILE_RE3, EMPTY_SECRET_KEY_SPEC_RE, EMPTY_KEY_VAR_RE, scanEmptyEncryptionKeys, MFA_AUTH_SPEC, JAVA_FILE_RE4, CONFIG_FILE_RE4, AUTH_SURFACE_RE2, MFA_INDICATORS_RE, MFA_VERIFY_ENDPOINT_RE, SSO_INDICATORS_RE, isTestPath2, isNonSiteLine, scanMfaAuth, PASSWORD_EXPIRY_SPEC, JAVA_FILE_RE5, CONFIG_FILE_RE5, USER_DETAILS_RE, HARDCODED_CREDENTIALS_NON_EXPIRED_RE, ACTIVE_EXPIRY_CHECK_RE, PASSWORD_AGE_SOURCE_RE, ADVISORY_EXPIRY_FLAG_RE, EXPIRY_ENFORCEMENT_RE, forcesPasswordResetViaUpdate, ENFORCEMENT_POINT_RE, LIFERAY_EXPIREABLE_RE, LIFERAY_MAX_AGE_RE, isTestPath3, scanPasswordExpiryPolicy, SETTER_RE, HTTP_STATUS_RECEIVER, HTTP_STATUS_ARG, CONSTANT_ARG, ENUM_ARG, LOADS_EXISTING, ENTITY_DECL_RE, PRINCIPAL_RE, STATE_NOUN, escapeRegExp2, stateReadBefore, hasSameReceiverStateReadBefore, hasCopySourceStateReadBefore, CONSTRUCTED_AS_RE, loadedTypesIn, receiverOriginOf, lineOf33, methodsOf, isJava3, isControllerPath, scanStateTransitionSites, RULE_TITLES, EXTRA_FINDING_RULE_IDS, EXTRA_AI_RULE_IDS, foldExtraRuleFindings, MAX_EVIDENCE33, SEVERITY_ORDER2, SCORE_FLOOR, asRecord3, asString, stripMountPrefix, severityFromTags, field, parseScaReport, effectiveScore, passesThreshold, distinctPairs, bySeverityThenName, evidenceOf10, countBySeverity, provenance, foldScaReport, BRUTE_FORCE_SPEC, MAX_EVIDENCE34, lineOf34, AUTH_CONTEXT_RE, LIMIT_NAME_RE, LOGIN_CONTEXT_RE, LOGIN_WINDOW_LINES, nearLoginContext, MAX_VALUE_ASSIGN_RE, MECHANISM_PATTERNS, RATE_LIMIT_PATTERNS, ISSUANCE_NAME_RE, failOpenHits, patternHits, dedupeSort6, evidenceOf11, item24, scanBruteForceProtection, keyOf, applyRouteConfigOverrides, CLIENT_CLASSES, MANUAL_DELIVERY_SOURCES, ENC, ROUTE_BASE_PREFIX, BENIGN_PARAM, CLIENT_ORACLE, deliveryFor, clientDeliveryKindFor, jsStr, normFile, camel, urlChunk, buildGoto, manualComment, renderMethod, renderSpec, dedupeRoutes, generateClientVerificationSuite, buildClientVerificationManifest, WSTG, TC16, MANUAL_CHECKLIST_ITEMS, NEEDS_MANUAL_LIMITATION, buildManualChecklistItems, handoffFileName, MAX_SURFACE_SAMPLE, surfaceContext, INFRA_CONTEXT, buildHandoffPackets, literal, renderIdorVerificationClass, OBJECT_STORE_PROBE_SINKS, GENERATED_PACKAGE, SERVER_CLASSES, BOOLEAN_BLIND_CLASSES, BOOLEAN_BLIND_PAIRS, CLASS_CANARY, COMMAND_CANARY, VALIDATION_REJECT_CLASSES2, CANON_HELPER, CLASS_ORACLE, javaStr, SSRF_BASELINE_WORKBOOK_ENTRIES, SSRF_BASELINE_WORKBOOK_HELPER, BENIGN_SEED, BUCKET_BENIGN_SEED, benignSeedFor, companionBenignSeed, renderAuthSuffix, RUNTIME_AUTH_SUFFIX, renderRuntimeAuthHelper, pascal, camel2, verificationTestClassName, identChunk, fillPath, companionCalls, ssrfPayloadPath, requestExpr, isVerifiable, SERVER_SKIP_REASON, renderBooleanBlind, renderCanary, isObjectStoreProbeSink, OBJECT_STORE_REJECT_CATCH_LINES, wrapObjectStoreAttackGuard, wrapObjectStoreEvidenceAttackGuard, resolveAuth, renderMethod2, renderEvidenceMethod, renderEvidenceHelpers, renderTestcontainersDbTierFields, renderExternalDbTierFields, javaSeedValue, renderSeedMethod, renderApiCreateSeedMethod, renderClass, toManifestEntries, generateVerificationSuite, buildVerificationManifest, decodeEntities, attr, stripCdata, childMessage, classify3, parseJUnitXml, simpleClassName, joinKey, DEFAULT_TRUST_TIER, resolveFromEnvelope, ingestVerification, PROVENANCE_DETAIL, applyProvenanceDowngrades, asRecord4, asString2, asBool, asInt, asHttpStatus, SIGNALS2, ATTESTATION_METHODS, parseProvenance, parseOracle, parseEffectBoundary, parseDefenseControl, parseBaseline, parseIdor, parseAttack, parseEvidenceEnvelope, asRecord5, asArray, asString3, asNumber, basename4, specOutcome, walkSuite, parsePlaywrightReport, joinKey2, ingestClientVerification, compareChecklistId, correlateVerification, EMPTY_CORRELATION, notTestedItem, groupDastByChecklist, dastAxisFor, groupClientByChecklist, clientAxisFor, correlateAssessment, ZAP_SCAN_RULES, DEFAULT_DAST_OPTIONS, DAST_PLAN_FILE, DAST_MANIFEST_FILE, DAST_PROBE_SCRIPT_FILE, DAST_API_SEED_SCRIPT_FILE, API_SEED_VAR_PREFIX, PROBE_VICTIM_BUCKET_REF, PROBE_CANARY_OBJECT_REF, PROBE_INJECTION_KINDS, isScannable, skipReason, yamlStr, baselinePath, normMethod2, toTarget, normalizeSpaRoutePath, buildSpaDastTargets, SEED_VALUE, SSRF_SEED_VALUE, seedValue, pathInjectionSeed, computeApiSeedVars, allParams, queryString, requestPath, renderRequest, renderPlanYaml, cmpChecklistId, generateDastPlan, buildProbeSpec, buildProbe, buildDastManifest, cmpStr3, compareScenarioRef, compareExecutionTarget, shq, PROBE_SCRIPT_PROLOGUE, PROBE_SCRIPT_EPILOGUE, renderDastProbeScript, shLiteral, API_SEED_PY, renderDastApiSeedScript, HTTP_EVIDENCE_MAX_HEADER_BYTES, HTTP_EVIDENCE_MAX_BODY_BYTES, REDACTION_WINDOW_BYTES, HTTP_REDACTED, SENSITIVE_HEADER_RE, NEVER_SENSITIVE_HEADER_RE, SCHEMED_HEADER_RE, COOKIE_HEADER_RE, COOKIE_ATTRIBUTE_RE, JSON_SECRET_MEMBER_RE, HEADER_LINE_RE, TOKEN_RUN_RE, redactJwtRun, redactJwts, URL_USERINFO_RE, redactInline, redactHeaderValue, redactHeaderBlock, redactBody, looksBinary, cutUtf8, boundedPart, sanitizeHttpMessage, httpStatusOf, RISK_BY_CODE, asString4, firstLine, httpEvidenceOf, parseZapReport, firstLineOf, usableTimestamp, latestMessageInstant, parseZapMessages, pathOf, stripTrailingSlash, pathMatches, methodMatches, injectionMatches, routeMatchesOrUnknown, alertMatchesTarget, queryHasParam, messageMatchesSurface, computeDastCoverage, detailOf, DAST_HTTP_EVIDENCE_MAX_RESOLUTIONS, carriesHttpText, evidenceOf12, ingestDast, SEMGREP_CWE_MAP, asRecord6, asString5, asNonNegativeInteger, compareText3, compareCwe, stringsFrom, cwesFromProperties, messageText, compareFinding, findingKey, ruleMetadata, metadataForResult, locationsOf, findingsFromRun, parseSemgrepSarif, compareChecklistId2, unmatchedKey, ingestSemgrep, CHECKLIST_ID3, CONTROL_ID3, MAX_EVIDENCE35, OWNER_SCOPED_FINDER, REPOSITORY_DECL, lineOf35, fieldNameFor, collectOwnerScopedRepositories, LIFERAY_LOAD_BY_ID_RE, OBJECT_PERMISSION_RE, methodBodyAt, liferayIdorHits, scanIdor, children, walk2, walkExecution, field2, simpleType, isReference, line, indexTypes, resolveType, propertyOf, annotations, annotationName, annotationValues, beanProperties, customAccessor, mappedOrigins, controlSignals, conventionSignals, trace, rootOrigins, scenarioFor, MAX_IDOR_AST_FILES, MAX_IDOR_AST_BYTES, scanIdorAuthorization, CHECKLIST_ID4, CONTROL_ID4, MAX_EVIDENCE36, CONTROLLER, MULTIPART_PARAM, JAXRS_IMPORT2, JAXRS_UPLOAD_PARAM, DENYLIST, ALLOWLIST, CONTENT_SNIFF, ACTIVE_CONTENT_EXTENSION, ACTIVE_CONTENT_DEFENCE, ALLOWLIST_WINDOW, lineOf36, collectUploadHandlers, firstMatch3, findActiveContentAllowlist, scanUploadValidation, CHECKLIST_ID5, CONTROL_ID5, MAX_EVIDENCE37, SECRET_KEY_LINE, SELF_IDENTIFYING_KEYS, JWT_CONTEXT_RE, PARENT_KEY_LINE, ancestorPath, ENV_PLACEHOLDER2, NON_PROD_PROFILE, CONFIG_FILE, lineOf37, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf38, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf39, enclosingCondition, isRequestValue, scanLiferayCsrf, DEVTOOLS_SPEC, BUILD_FILE_RE2, findDevToolsDeclarations, scanDevTools, PASSWORD_AUTOCOMPLETE_SPEC, HTML_TEMPLATE_FILE_RE, SECURE_AUTOCOMPLETE_VALUES, isTestPath4, auditPasswordAutocompleteContent, scanPasswordAutocomplete, SYSTEM_INFO_LEAK_SPEC, JAVA_FILE_RE6, isTestPath5, PRINT_STACK_TRACE_RE, SYSTEM_PRINT_EXCEPTION_RE, auditJavaErrorDisclosure, scanSystemInfoLeak, PLAYWRIGHT_VERSION_PIN, ESBUILD_VERSION_PIN, renderClientPackageJson, renderClientPlaywrightConfig, renderClientTsconfig, renderClientRunnablePackage, renderComponentBuildScript, renderVueComponentBuildScript, normFile2, posixDir, posixJoin, posixNormalize, candidateFilePaths, stripComments3, isAllowedFrameworkImport, extractImportSpecifiers, extractCompanionFiles, resolveInRepoPath, collectComponentClosure, CLIENT_CLASSES2, COMPONENT_NEEDS_BUILD_MARKER, COMPONENT_VUE_NOT_MOUNTED_MARKER, normFile3, jsStr2, camel3, fileChunk, isLikelyInjectable, analyzeMount, renderHarness, renderVueHarness, tieredAssert, renderMethod3, renderSpec2, generateComponentVerificationSuite, BINDING, HTML_COMMENT, inventoryVueTemplateSinks, HTTP_VERBS, lineOf40, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf41, isFrontend3, UPLOAD_CONTEXT_RE, FILE_INPUT_RE, ACCEPT_ATTR_RE, CLIENT_CHECK_PATTERNS, SHARED_CONST_SIGNAL_RE, HTTP_UPLOAD_SURFACE_RE, maskHtmlComments, clientChecksIn, fileInputsIn, evidence20, item25, dedupAndCap, scanUploadClientCheck, LOGOUT_CLEAR_SPEC, MAX_EVIDENCE41, lineOf42, isFrontend4, CALL_LABEL, LOGOUT_ENTRY_PATTERNS, CLEAR_STATE_RE, fileClearsState, LOGOUT_CALL_RE, receiverType, clearingLogoutClasses, callsDelegateClear, logoutEntriesIn, evidence21, item26, dedupAndCap2, scanLogoutClear, NUMERIC_BOUND_SPEC, MAX_EVIDENCE42, lineOf43, isFrontend5, isTsLike2, MONEY_NAME_RE, isMoneyName, MIN_BOUND_RE, PATTERN_RE, CONTROL_DECL_RE, moneyControlsIn, moneyInputsIn, evidence22, item27, scanNumericBound;
|
|
11674
|
+
var createCompositeParser, SUPPORTED, createTextParser, requireFromHere, grammarCache, parserInitialized, initParser, resolveGrammarPath, loadGrammar, LANGUAGE_TO_GRAMMAR, SUPPORTED2, createTreeSitterParser, asTreeSitterTree, OPEN_SCRIPT_RE, CLOSE_SCRIPT_RE, LANG_TS_RE, SRC_ATTR_RE, OPEN_TEMPLATE_RE, CLOSE_TEMPLATE_RE, blankOut, keepOnly, templateRange, projectVueSfc, isVueSfcPath, tsMorphPathOf, SUPPORTED3, scriptKindFor, createTsMorphParser, createParser, BASE_CONFIG_RE, PROFILE_CONFIG_RE, HARNESS_PORT, KEY_LINE_RE, yamlEntries, emptyKeys, isConfigYaml, profileRank, declaresDatasource, detectDatasourceProfileBlocker, detectProfileCompositionBlocker, detectServerPortBlocker, XML_COMMENT_RE, INCLUDE_RE, CREATE_TABLE_RE, ALTER_TARGET_RE, matchAllGroups, detectUnrunnableMigrationBlocker, detectPolicyBootBlockers, composeSuggested, BINDABLE_NAME_RE, YAML_KEY_RE, PROPS_KEY_RE, configValueOf, rawTokensOf, MARK, AUTHORITY_LIKE_RE, shapeInAuthority, nextOf, shapeInPath, shapeAt, parseConfigValue, renderTemplate, DIALECT_SPECS, JDBC_URL_PATTERNS, DRIVER_PATTERNS, isConfigFile, isBuildFile, dialectsMatching, resolveDialect, DDL_AUTO_CREATE_RE, FLYWAY_RE, LIQUIBASE_RE, resolveSchemaProvisioning, detectSchemaProvisioning, detectDbTier, DB_SIDECAR_PORT, DISPOSABLE_DB, dbSidecarEnv, buildDbSidecarSpec, maskJavaComments, maskedCorpusCache, maskJavaFiles, PROFILE_GATED_JAR_BEANS, JHIPSTER_PROFILE_CONSTANTS, isJava, CLASS_DECL_RE, PROFILE_ANNOTATION_RE, CONDITIONAL_ANNOTATION_RE, CONFIG_ANNOTATION_RE, readProfileAnnotation, declarationHead, braceMatch, lineAt, parsedClasses, simpleTypeName, parseParams, beanMethods, collectProducers, detectUngatedProfileDependencies, ungatedProfileDeviationText, STANDALONE_BOOT_PROFILE, ENTITY_SCHEMA_GAPS, PROVISIONED_SIDECARS, DEFAULT_PROVISIONED_SIDECARS, NOTE, isConfigFile2, leafKey, indentOf, fullPathFor, usesJpa, detectVaultTemplateCompatibility, KAFKA_BUILD_RE, KAFKA_CONFIG_RE, STREAM_BUILD_RE, STREAM_CONFIG_RE, declaresKafka, declaresStreamBinder, hasPinnedListenerAutoStartup, ENDPOINT_PROPERTY_RULES, ENDPOINT_VALUE_RE, CLUSTER_TOPOLOGY_RULES, literalDatabaseOf, resolveSchemaResolution, buildStandaloneBootProfile, runtimeEnvKeyFor, A_SENTINEL, ENC_SENTINEL, UNAVAILABLE_KAFKA_HOST, UNAVAILABLE_KAFKA_PORT, isBase64JwtSigningKeyPath, isEndpointShaped, isEndpointPropertyPath, hasToken, dummyFor, RELAXED_ENV, envKeyFor, buildSidecars, renderSidecar, identifyByName, PATH_KINDS, PATH_LEAF_ROLES, identifyByPath, roleFromShape, shapedDummy, unavailableKafkaValue, resolveSlot, resolvePlaceholder, encSentinelFor, SHAPE_PRECEDENCE, strongerShape, buildBootResolution, RUNTIME_ENV_MANIFEST_SCHEMA_VERSION, SENSITIVE_ENV_NAME, URL_USERINFO, SENSITIVE_QUERY_VALUE, INLINE_SENSITIVE_VALUE, JWT_VALUE, EFFECTIVE_VALUE_LIMIT, displayEnvValue, UPPER_ENV_RE, RUNTIME_HTTP_STUB_AUTHORITY, parseRuntimeEnvProposal, strategyForRule, SAFE_DISABLE_ENV_ALLOWLIST, isSafeDisableCandidate, proposalStrategyFitsEntry, proposalFor, synthesizeManifestEnv, CONFIG_FILE_RE, BUILD_CONFIG_FILE_RE, ENV_FILE_RE, JAVA_FILE_RE, KOTLIN_FILE_RE, PACKAGE_MANIFEST_PATH, PLACEHOLDER_RE, GET_ENV_RE, VALUE_RE, lineOf, propertyPathAt, declaredConfigPropertyNames, shapeFor, valueConsumerShape, dependencyFor, enumValuesForConsumer, compareText, runtimeEnvScenarioId, sameSourcePath, buildRuntimeEnvManifest, buildRuntimeEnvResolutionReport, buildRuntimeEnvEffectiveReport, countsFor, applyRuntimeEnvImpact, TS_LANGUAGES, EXTENSIONS, TS_SOURCE_EXTENSIONS_BY_RUNTIME_EXT, scriptKindFor2, normalizeRelativePath, candidatePaths, normalizeConfigPath, stripJsonComments, loadTsConfigResolver, matchPathPattern, applyPathTarget, resolveAliasModule, resolveModule, aliasIfDifferent, exportedSymbols, expressionRootName, addSymbol, compareText2, variableBindingNames, importEqualsSpecifier, extractSymbols, fingerprintFor, createTsAstDependencyGraphBuilder, isTsLike, debug, warn, tryLoad, trySave, createIncrementalAstGraphBuilder, SOURCES, SINKS, SANITIZERS, DEFAULT_TS_TAINT_TABLES, JAVA_SOURCES, JAVA_SINKS, JAVA_SANITIZERS, DEFAULT_JAVA_TAINT_TABLES, PROPAGATOR_RESULT_TAILS, PROPAGATOR_STATE_TAILS, SUBJECT_CTOR_TYPES, CALLBACK_TAINT, TAINT_UNION_BINOPS, EMPTY_SUMMARY, paramSentinel, PARAM_SENTINEL_RE, MAX_CROSS_FILE_DEPTH, JAVA_LINE_TERMINATORS, HOST_FIXING_PREFIX_RE, KNOWN_STRING_CONSTANTS, MAX_CONSTANT_DEPTH, TYPE_DECLARATION, CALLABLE, SIMPLE_ESCAPES, TYPE_DECL_NODES, indexCache, SCOPE_BOUNDARY, SCOPE_BOUNDARY2, TYPE_DECL, STRING_PASSTHROUGH, ARG_PASSTHROUGH, CONTAINER_ELEMENT, BUILDER_APPENDERS, COLLECTION_MUTATORS, RECEIVER_FOLD_MUTATORS, HOST_FIXED_MARK, STRING_BUILDER_TYPES, BUILDER_PREFIX_BREAKERS, PREFIX_DROPPING_PASSTHROUGH, CONDITIONAL_CONSTRUCT, INERT_URL_ACCESSOR_RE, EMPTY_SUMMARY2, paramSentinel2, PARAM_SENTINEL_RE2, MAX_CROSS_METHOD_DEPTH, SANITIZE_CALL, BYPASS_CALL, PREFIX_GATE, MAX_VALUE_HOPS, SOURCE_PATTERNS, MAPPING_ANNOTATIONS, PARAM_ANNOTATIONS, AUTHZ_ANNOTATIONS, VALIDATION_ANNOTATIONS, annotationScanner, TYPE_DECL2, MODIFIER, METHOD_NAME, LEADING_ANNOTATION, simpleName, lineOf2, readBalanced, annotationArgs, firstStringLiteral, readMappingPath, readMappingMethod, joinPaths, skipToDeclaration, isTypeDeclaration, splitParams, parseParam, readAuthAnnotations, ROLE_ANNOTATIONS, stripRolePrefix, readAuthRoles, precedingBlock, readClassContext, extractFromFile, JAXRS_VERBS, JAXRS_PARAM_ANNOTATIONS, JAXRS_IMPORT, parseJaxRsParam, readJaxRsPath, JAXRS_TYPE_DECL, readJaxRsType, IMPLEMENTS_DECL, readImplCandidate, escapeRegExp, findImplMethod, extractJaxRsEndpoints, extractHttpEndpoints, findEnclosingEndpoint, SINK_ATTACKS, AI_TRIAGE_ATTACK_ALIASES, SINK_SHAPE_VARIANTS, SOURCE_KIND, kindsFromSources, deriveAuthContext, resolveCompanionParams, resolveInjectionPoint, buildServerRequest, buildClientRequest, generateAttackScenario, UNASSESSED_CATALOG, BY_ID, buildUnassessedItems, INJECTION_LANGUAGES, TIER_A_INJECTION_ITEMS, CONFIRMED_LIMITATION, INCONCLUSIVE_LIMITATION, evidenceFrom, byFileLine, CHECKLIST_VERDICT_RANK, mergeEqualRank, dedupeByChecklistId, scenarioByFileLine, PENTEST_CHECKLIST_TOTAL, DECLARED_CHECKLIST_IDS, buildChecklistCoverage, buildCoverage, assembleAssessment, CONFIG_ENTRY_RE, SKIPPED_ENTRY_RE, XML_COMMENT_RE2, SYSTEM_PATH_RE, declaredSystemJarEntries, declaredSystemJarPaths, readCentralDirectory, readEntryBytes, readEntryText, languageFor, detectMissingSystemJars, readJarConfigFiles, readJarClassFiles, listJarClassNames, MIN_CONSTANT_LEN, MAX_CONSTANT_LEN, MAX_CONSTANTS_PER_CLASS, NOISE_CONSTANT_RE, parseClassConstants, constantRank, readJarClassConstants, collectDependencyClassConstants, collectDependencyClassNames, collectDependencyConfigFiles, JWT_CONTEXT_MARKER_RE, BASE64_SHAPE_RE, MIN_BASE64_KEY_CHARS, MAX_BASE64_KEY_CHARS, decodedByteLength, readJarJwtKeyCandidates, collectJwtKeyCandidates, JWT_FACADE_RE, JWT_DECODE_CALL_RE, JWT_VERIFY_MARKER_RE, readJarDecodeOnlyEvidence, collectDecodeOnlyEvidence, collectEagerKafkaStartupJars, EMPTY_DEPENDENCY_GUARDS, DENY_CLASS_RE, ASPECT_DESC, ADVICE_DESC_RE, POINTCUT_DESC, ACC_INTERFACE, ACC_ANNOTATION, MAX_HOPS, operandLength, Reader, parseClass, simpleName2, packageOf, scanClassFilesForGuards, collectDependencyGuardFacts, TEST_SOURCE_SET_RE, isTestSourcePath, STANDARD_GUARD_ANNOTATIONS, MAX_HOPS2, DENY_EXCEPTION, DENY_STATUS, DENY_SEND_ERROR, isJava2, lineOf3, maskStrings, ANNOTATION_NAME, annotationNames, parseClass2, RESPONSE_STATUS_TEST, isResponseStatusTranslation, firstDenyMatch, denyHitOf, methodKey, endpointGuardKey, sourceRootOf, sameModuleFirst, calleesOf, scanAuthorizationGuards, guardForEndpoint, MAX_EVIDENCE3, REVIEW_SIGNAL_MAP, asJsonRecord, readReviewFinding, parseReviewReport, reviewReportRuleIds, evidenceOf, sortEvidence, EXTERNAL_BYPASS_MARKER, isDecisiveFinding, foldReviewSignals, MAX_EVIDENCE22, AUTHORIZATION_RISK_EVIDENCE, MASS_ASSIGNMENT_EVIDENCE, OWNERSHIP_SCOPE_EVIDENCE, STATE_TRANSITION_EVIDENCE, AI_SIGNAL_MAP, readPerRule, parseAiReviewReport, evidenceOf2, sortEvidence2, scopeClauseOf, provenanceOf, skipReasonOf, anchorResolves, anchorOf, unresolvableCitationClause, citationGateClause, citationTargetNoun, miscitationBreakdown, anchorAccepts, foldAiSignals, IMPORT_LINE_RE, isImportOrPackageLine, CSRF_SPEC, CORS_SPEC, HEADERS_SPEC, STACKTRACE_SPEC, MESSAGE_SPEC, COOKIE_SPEC, SESSION_FIXATION_SPEC, SESSION_TIMEOUT_SPEC, AUTH_CACHE_SPEC, lineOf4, SECURITY_CONFIG_RE, CSRF_DISABLE_RE, CORS_WILDCARD_RE, CROSS_ORIGIN_BARE_RE, ALLOW_CREDENTIALS_RE, CORS_EXPLICIT_ORIGIN_RE, CORS_ANY_RE, HEADERS_DISABLE_RES, HEADERS_CONFIGURED_RE, CSP_CONFIGURED_RE, STACKTRACE_EXPOSE_RE, STACKTRACE_NEVER_RE, MESSAGE_EXPOSE_RE, MESSAGE_NEVER_RE, COOKIE_CONTEXT_RE, COOKIE_INSECURE_CHECKS, COOKIE_HARDENED_RE, SESSION_FIXATION_DISABLED_RE, CACHE_CONTROL_DISABLE_RE, CACHE_CONTROL_CONFIGURED_RE, SESSION_TIMEOUT_PATH_RE, SESSION_BLOCK_HEADER_RE, SESSION_TIMEOUT_LEAF_RE, YAML_INDENT_RE, control, configEvidence, firstMatch, firstMatchAny, scanCsrf, CORS_ORIGINS_YAML_RE, CORS_CREDENTIALS_YAML_RE, isWildcardOrigins, corsConfigRank, corsOriginHits, scanCors, scanSecurityHeaders, NON_PROD_PROFILE_RE, scanStacktraceExposure, scanErrorMessageExposure, scanCookieAttributes, scanSessionFixation, scanAuthCacheControl, findSessionTimeout, timeoutNeverExpires, timeoutToMinutes, JWT_VALIDITY_RE, NON_PROD_CONFIG_RE, findJwtValidities, hoursOf, judgeJwtValidity, judgeServletTimeout, scanSessionTimeout, scanSecurityConfig, WEAK_CRYPTO_SPEC, MAX_EVIDENCE32, lineOf5, classifyAlgorithm, GET_INSTANCE_RE, COMMONS_DIGEST_RE, GUAVA_HASHING_RE, SECRET_KEY_SPEC_RE, SHORTHAND_ALGO, SECURITY_DIGEST_PURPOSE_RE, NON_SECURITY_DIGEST_PURPOSE_RE, isNonSecurityDigestUse, collectWeakHits, STRONG_CRYPTO_RE, STRONG_CRYPTO_RE_G, firstStrong, evidence, item, scanWeakCrypto, REGEX_PRECEDING_KEYWORDS, isIdentChar, regexAllowedAt, maskJsComments, maskedCorpusCache2, maskJsFiles, FRONTEND_EXT_RE, VENDOR_DIR_RE, ANGULAR_LIBRARY_SRC_RE, GENERATED_NAME_RE, JQUERY_PLUGIN_RE, KNOWN_LIBRARY_RE, BANNER_RE, MINIFIED_AVG_LINE, isThirdPartyAsset, BROWSER_STORAGE_SPEC, MAX_EVIDENCE4, lineOf6, HIGH_SENSITIVITY_RE, TOKEN_FAMILY_RE, classifyStorageKey, VALUE_TOKEN_FAMILY_RE, classifyStorageValue, keyToken, SET_ITEM_RE, BRACKET_ASSIGN_RE, STORAGE_USE_RE, IDB_CONTEXT_RE, LOCALFORAGE_SET_RE, IDB_STORE_WRITE_RE, collectStorageHits, collectIndexedDbHits, finalizeHits, firstStorageUse, evidence2, item2, scanSensitiveBrowserStorage, AT_REST_SPEC, MAX_EVIDENCE5, lineOf7, PWD_GETTER, PWD_EQUALS_RECEIVER_RE, PWD_EQUALS_ARG_RE, collectPasswordComparisonHits, SENSITIVE_FIELD_NAMES, FIELD_DECL_RE, FIELD_PROTECTED_RE, precedingBlock2, collectPlaintextFieldHits, finalizeHits2, PROTECTION_RE, firstProtection, AT_REST_SURFACE_RE, evidence3, item3, scanSensitiveDataAtRest, PADDING_ORACLE_SPEC, MAX_EVIDENCE6, lineOf8, GET_INSTANCE_RE2, collectCbcHits, BAD_PADDING_CATCH_RE, collectBadPaddingHits, finalizeHits3, AEAD_RE, firstAead, CIPHER_SURFACE_RE, evidence4, item4, scanPaddingOracle, LOGGING_SPEC, MAX_EVIDENCE7, lineOf9, JAVA_LOG_CALL_RE, JAVA_CONSOLE_CALL_RE, JS_CONSOLE_CALL_RE, LOG_SURFACE_RE, stripStringLiterals, PII_RE, findSensitiveToken, IDENTIFIER_RE, VALUE_METHOD_RE, callsPropertyAccessor, TOKEN_COUNT_PREFIXES, FLAG_PREFIXES, MASK_PREFIXES, SECRET_SEGMENTS, SECRET_SEGMENT_PAIRS, SECRET_SUBSTRING_RE, PROTECTED_SEGMENTS, segmentsOf, isSecretIdentifier, stripNonValueExpressions, collectSensitiveContainers, findSensitiveArgument, findSensitiveOutput, firstLogSurface, evidence5, item5, scanSensitiveLogging, CHECKLIST_ID, CONTROL_ID, TITLE, CWE, MAX_EVIDENCE8, ADMIN_PATH_RE, ADMIN_CONTROLLER_RE, isAdminEndpoint, ADMIN_ROLE_RE, ROLE_CAPABLE_AUTHZ, ROLE_ANNOTATION_RE, SEC_CONFIG_HINT_RE, MATCHER_RE, ACCESS_AFTER_RE, ANY_REQUEST_RE, offsetOfLine, readBalanced2, stringLiterals, antMatches, hasAdminRoleAnnotation, classHeaderOf, memberWindow, annotationStance, accessKind, collectFilterConfig, filterStanceFor, combineProtection, publicNote, item6, auditAdminSurface, CLOUD_ACL_SPEC, MAX_EVIDENCE9, lineOf10, PUBLIC_ACL_PATTERNS, finalizeHits4, collectCannedAclHits, EFFECT_ALLOW_RE, WILDCARD_PRINCIPAL_RE, S3_ACTION_RE, enclosingObject, collectBucketPolicyHits, evidence6, item7, scanCloudStorageAcl, ACTUATOR_SPEC, MAX_EVIDENCE10, CONFIG_FILE_RE2, SENSITIVE_ACTUATOR_ENDPOINTS, lineOf11, indentOf2, isBlankOrComment, splitEndpoints, classifyExposure, exposureNote, H2_NOTE, findChildKey, collectListItems, collectExposureHits, collectH2Hits, finalizeHits5, evidence7, item8, scanActuatorExposure, BACKUP_FILE_SPEC, BACKUP_FILE_GLOBS, BACKUP_FILE_RE, SENSITIVE_BASE_RE, MAX_EVIDENCE11, stripBackupSuffix, classify2, evidence8, scanBackupFiles, CROSSDOMAIN_SPEC, CROSSDOMAIN_GLOBS, MAX_EVIDENCE12, lineOf12, PERMISSIVE_PATTERNS, collectHits, evidence9, scanCrossDomainPolicy, CLIENT_INFO_SPEC, ANGULAR_CONFIG_GLOBS, MAX_EVIDENCE13, lineOf13, asRecord, sourceMapEnabled, buildConfigurations, scanConfigFile, evidence10, item9, scanClientInfoLeak, SENSITIVE_FILE_SPEC, SENSITIVE_FILE_GLOBS, SENSITIVE_FILE_RE, PEM_TEXT_RE, PRIVATE_KEY_HEADER_RE, MAX_EVIDENCE14, classify22, evidence11, scanSensitiveFiles, INSECURE_TRANSPORT_SPEC, ENVIRONMENT_FILE_RE, MAX_EVIDENCE15, lineOf14, extractStringLiterals, HTTP_URL_RE, HTTPS_PRESENCE_RE, isExcludedHost, TEMPLATE_FILE_RE, scanInsecureFormSubmission, isTestPath, scanExternalCleartextLinks, JAVA_FILE_RE2, CLEARTEXT_JAVA_CLIENT_RE, scanJavaCleartextClients, scanInsecureTransport, WEBSOCKET_SPEC, MAX_EVIDENCE16, WS_URL_RE, WSS_PRESENCE_RE, scanWebSocketSecurity, authFillKey, createStubAuthFillResolver, buildAuthFillMap, ALG_TO_HASH, SIGNING_KEY_LINE, ENV_PLACEHOLDER, lineOf15, cleanValue, discoverJwtSigningKeys, b64url, b64urlStr, signingKeyBytes, mintJwt, DEFAULT_JHIPSTER_CLAIMS, RECIPE_NOTE, DECODE_ONLY_NOTE, jarKeysToSigningKeys, sha256Hex, buildRuntimeAuthRecipe, mintTokenFromRecipe, DEFAULT_TTL_SECONDS, commandsFor, credentialFor, runtimeAuthSeedDeviation, runtimeAuthSeedDecodeOnlyDeviation, planFor, buildRuntimeAuthSeedPlan, DEFAULT_TIMEOUT_MS, CRLF, encodeResp, identify, readReply, applyRuntimeAuthSeed, describeShape, resolveRuntimeAuthHypothesis, THREW, createStubRuntimeAuthHypothesisResolver, dataSeedKey, describeShape2, THREW2, resolveRuntimeDataSeedHypothesis, createStubRuntimeDataSeedResolver, buildDataSeedPlan, buildApiCreateSeedPlan, dataSeedEndpointSummaries, IDEMPOTENT_INSERT, BACKSLASH_IS_ESCAPE, escapeSqlString, sqlLiteral, assertIdentifier, renderDataSeedSql, SEED_AUDIT_SENTINEL, AUDIT_FIELD_RE, CLASS_DECL_RE2, TABLE_RE, EXTENDS_RE, NULLABLE_FALSE_RE, LENGTH_RE, stripJavaComments, group, detectSeedAuditColumns, applySeedAuditColumns, seedAuditAddedColumns, OBJECT_SEED_BASELINE_KEY, OBJECT_SEED_BASELINE_CONTENT_BASE64, PENTEST_CANARY_BUCKET, MAX_DERIVED_TARGETS, MAX_DERIVED_EVIDENCE, CONFIG_PATH_RE, BUCKET_KEY_RE, LINE_RE, PLACEHOLDER_RE2, ENC_PREFIX_RE, BOOLEAN_VALUE_RE, HAS_LOWERCASE_RE, canonicalKey, cleanValue2, resolveValue, referencesToken, deriveObjectStoreSeedTargets, renderObjectStoreSeedTsv, REACHABILITY_MANIFEST_SCHEMA_VERSION, MANIFEST_NOTE, SCALAR_JAVA_TYPES, baseTypeName, seedForParam, METHOD_INTENT, buildHint, buildReachabilityManifest, norm, dirOf, baseName, isMavenPom, isGradleBuild, stripXmlComments, isAncestorDir, normModulePath, selectRunnableModule, PACKAGE_DECL, BOOT_CLASS, posix3, detectSpringBootClass, EOCD_SIGNATURE, CENTRAL_SIGNATURE, EOCD_SEARCH_WINDOW, MAX_COMPRESSION_RATIO, MAX_UNCOMPRESSED_BYTES, MAX_ENTRIES, fail, isUnsafeName, readArchive, readArchiveEntryText, SOURCE_EXTENSIONS, extensionOf, baseNameOf, XML_COMMENT_RE3, isAggregatorPom, declaresParentPath, declaresSystemPaths, resolveAgainst, isSafeManifestPath, isSafeBuildTarget, preflightArchive, GRAPH_SKIP_DIRS, toPosix2, isFile, isDirectory, isWithin, resolvesWithin, normalizeModulePath, readText, hasApplicationEntrySource, walkFor, XML_COMMENT_RE4, xmlValue, withoutXmlBlocks, parseMavenModule, nearestAncestorFile, resolveMaven, stripGradleComments, quotedValues, parseGradleSettings, gradleProjectDependencies, conventionalProjectDir, resolveGradle, resolveBuildPackage, discoverBuildPackageEntries, SKIP_DIRS, DEFAULT_PACKAGE_EXCLUDES, SECRET_FILE_EXACT, SECRET_EXTENSIONS, isSecretOrIgnoredFile, MAX_FILE_BYTES, MAX_PARENT_DEPTH, DEFAULT_PACKAGE_POLICY, toPosix22, isFile2, isWithin2, resolvesWithin2, packageRootFor, toRelativeName, globRegexCache, globToRegExp, considerFile, walk, fingerprintEntryData, fingerprintEntries, XML_COMMENT_RE5, RELATIVE_PATH_RE, SYSTEM_PATH_RE2, PARENT_BLOCK_RE, EMPTY_RELATIVE_PATH_RE, readPom, localNpmTarballs, expandBasedir, planServicePackage, CRC_TABLE, crc32, writePackageZip, SIDECAR_IMAGES, HARNESS_PLAN_SCHEMA_VERSION, isConfigFile3, isBuildFile2, stripComments, SERVICE_DEPS, detectDatabaseDependency, detectServiceDependencies, detectHarnessDependencies, AUTO_CONFIGURED_LISTENER_FACTORY, KAFKA_LISTENER_ARGS_RE, LISTENER_PIN_RE, LISTENER_FACTORY_RE, SELF_OFF_FACTORY_BEAN_RE, SET_AUTO_STARTUP_FALSE_RE, classifyKafkaBootPath, buildHarnessPlan, normalizedPath, lineOf16, maskComments, sourceAt, addEvidence, readBundleIdentity, readPortalRelease, readSourceProduct, readToolchain, databaseVendorOf, readDatabase, isPortalConfigFile, normalizeApplicationBase, readApplicationBase, readSearch, detectLiferayRuntimeProfile, applyKafkaBrokerCoherence, RUNTIME_PLAN_SCHEMA_VERSION, PLAN_NOTE, describeSidecar, buildSteps, buildRuntimeBringUpPlan, RUNTIME_OVERLAY_FILE, RUNTIME_COMPOSE_FILE, RUNTIME_GUIDE_FILE, RUNTIME_BOOT_ENV_FILE, RUNTIME_VAULT_COMPATIBILITY_FILE, SIDECAR_IMAGE, REDIS_CLUSTER_COMMAND, renderNestedYaml, renderOverlay, renderVaultCompatibility, publishLine, renderCompose, renderGuide, renderBootEnv, generateRuntimeArtifacts, SUBMISSION_REQUIREMENTS_SCHEMA_VERSION, MAX_EVIDENCE17, NOTE2, capEvidence, totalSuffix, blockerEvidence, groupBy, packagingRequirements, secretRequirements, POLICY_KINDS, policyRequirements, infrastructureRequirements, authRequirements, seedRequirements, TIER_ORDER, buildSubmissionRequirements, renderSubmissionRequirements, REJECT_SIDECAR, applyRuntimeInput, DESER_SPEC, MAX_EVIDENCE18, lineOf17, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf18, WEAK_RNG_PATTERNS, SECURITY_ID_RE, statementAround, COOKIE_SINK_MAX_HOPS, namesCarrying, reachesCookie, collectHits3, SECURE_RANDOM_RE, firstSecureRandom, evidence13, item11, scanWeakSecureRandom, POSTMESSAGE_SPEC, MAX_EVIDENCE20, lineOf19, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf20, escapeRe, isScannableFrontendPath, GUARD_FN_TYPES, GUARD_CLASS_IFACES, FN_GUARD_TYPED_RE, CLASS_GUARD_RE, FN_GUARD_PARAM_RE, VUE_ROUTE_GUARD_RE, VUE_INTERCEPTOR_RE, FN_INTERCEPTOR_RE, INTERCEPTOR_BINDING_RE, CLASS_INTERCEPTOR_RE, INTERCEPT_METHOD_RE, INTERCEPTOR_TOKEN_RE, URL_CHECK_RES, DOM_SANITIZER_CALL_RE, SANITIZER_HELPER_DEF_RE, BYPASS_TRUST_RE, KIND_ORDER, KIND_LABELS, scanClientGuards, renderClientGuards, INDEX_HEADER_SPEC, MAX_EVIDENCE222, lineOf21, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf22, isFrontend2, HIGH_SENSITIVITY_RE2, TOKEN_FAMILY_RE2, SECURE_RE, SAMESITE_RE, COOKIE_WRITE_RE, COOKIE_USE_RE, classifyCookieValue, collectCookieHits, evidenceOf3, resultItem, scanClientCookie, TS_LANGS, MOUNT_VUE3, MOUNT_VUE2, TS_EXT_CANDIDATES, UNRESOLVED_PATH, unwrap, TS_LANGS2, MOUNT_ROOT, MOUNT_ANY, TS_EXT_CANDIDATES2, MAX_CHAIN_DEPTH, MAX_REEXPORT_DEPTH, UNRESOLVED_PATH2, isVueSfc, inferVueSrcBase, resolveComponentRoutesByFramework, XXE_SPEC, MAX_EVIDENCE24, lineOf23, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf24, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, UNREFERENCABLE_BASE_IMAGE, baseImageReference, FLOATING_TAG_RE, unpinnedBaseImageReason, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf26, HOST_PATTERNS, REQUEST_TYPE_RE, REQUEST_NAME_RE, receiverOf, isRequestReceiver, collectHits5, evidence19, item17, scanHostHeader, CHECKLIST_ID2, CONTROL_ID2, TITLE2, evidenceOf4, item18, VALUE_ANNOTATION_RE, FIELD_AFTER_VALUE_RE, LIFETIME_TOKEN_RE, tokenize, hasOtpToken, TIME_UNIT_RE, NAME_UNIT_HINTS, TO_SECONDS, lineOf27, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf28, precedingBlock3, PASSWORD_NAME_RE, NOT_A_SECRET_RE, isPasswordName, STRING_DECL_RE, SIZE_MIN_RE, ANNOTATION_IN_BLOCK_RE, LENGTH_CHECK_RE, CONSTRAINT_VALIDATOR_RE, ANNOTATION_DECL_RE, STRING_LITERAL_RE, QUANT_MIN_RE, POLICY_SURFACE_PATTERNS, ACCOUNT_SURFACE_RE, baseName2, isAccountSurface, collectCustomConstraintMins, sitesIn, firstUsageIndex, pointersIn, dedupeSort, evidenceOf5, item19, policyNote, scanPasswordPolicy, SPEC, MAX_EVIDENCE28, AUTH_SURFACE_RE, ACCOUNT_EXISTENCE_RE, PASSWORD_ONLY_RE, COMBINED_RE, STRING_LITERAL_RE2, lineOf29, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf30, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf31, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf32, scanSsrfEndpointHints, SPEC4, MAX_EVIDENCE322, HARD_MUTATION_HANDLER_RE, DIRECT_WRITE_RE, DELEGATION_WRITE_RE, TXN_RE, READ_ONLY_TXN_RE, offsetOfLine2, insideLiteral, extractHandlerBody, braceMatchedBlock, signatureRegion, confirmWrite, dedupeSort5, evidenceOf9, item23, scanStateChangingGet, KEY_MANAGEMENT_SPEC, JAVA_FILE_RE3, CONFIG_FILE_RE3, EMPTY_SECRET_KEY_SPEC_RE, EMPTY_KEY_VAR_RE, scanEmptyEncryptionKeys, MFA_AUTH_SPEC, JAVA_FILE_RE4, CONFIG_FILE_RE4, AUTH_SURFACE_RE2, MFA_INDICATORS_RE, MFA_VERIFY_ENDPOINT_RE, SSO_INDICATORS_RE, isTestPath2, isNonSiteLine, scanMfaAuth, PASSWORD_EXPIRY_SPEC, JAVA_FILE_RE5, CONFIG_FILE_RE5, USER_DETAILS_RE, HARDCODED_CREDENTIALS_NON_EXPIRED_RE, ACTIVE_EXPIRY_CHECK_RE, PASSWORD_AGE_SOURCE_RE, ADVISORY_EXPIRY_FLAG_RE, EXPIRY_ENFORCEMENT_RE, forcesPasswordResetViaUpdate, ENFORCEMENT_POINT_RE, LIFERAY_EXPIREABLE_RE, LIFERAY_MAX_AGE_RE, isTestPath3, scanPasswordExpiryPolicy, SETTER_RE, HTTP_STATUS_RECEIVER, HTTP_STATUS_ARG, CONSTANT_ARG, ENUM_ARG, LOADS_EXISTING, ENTITY_DECL_RE, PRINCIPAL_RE, STATE_NOUN, escapeRegExp2, stateReadBefore, hasSameReceiverStateReadBefore, hasCopySourceStateReadBefore, CONSTRUCTED_AS_RE, loadedTypesIn, receiverOriginOf, lineOf33, methodsOf, isJava3, isControllerPath, scanStateTransitionSites, RULE_TITLES, EXTRA_FINDING_RULE_IDS, EXTRA_AI_RULE_IDS, foldExtraRuleFindings, MAX_EVIDENCE33, SEVERITY_ORDER2, SCORE_FLOOR, asRecord3, asString, stripMountPrefix, severityFromTags, field, parseScaReport, effectiveScore, passesThreshold, distinctPairs, bySeverityThenName, evidenceOf10, countBySeverity, provenance, foldScaReport, BRUTE_FORCE_SPEC, MAX_EVIDENCE34, lineOf34, AUTH_CONTEXT_RE, LIMIT_NAME_RE, LOGIN_CONTEXT_RE, LOGIN_WINDOW_LINES, nearLoginContext, MAX_VALUE_ASSIGN_RE, MECHANISM_PATTERNS, RATE_LIMIT_PATTERNS, ISSUANCE_NAME_RE, failOpenHits, patternHits, dedupeSort6, evidenceOf11, item24, scanBruteForceProtection, keyOf, applyRouteConfigOverrides, CLIENT_CLASSES, MANUAL_DELIVERY_SOURCES, ENC, ROUTE_BASE_PREFIX, BENIGN_PARAM, CLIENT_ORACLE, deliveryFor, clientDeliveryKindFor, jsStr, normFile, camel, urlChunk, buildGoto, manualComment, renderMethod, renderSpec, dedupeRoutes, generateClientVerificationSuite, buildClientVerificationManifest, WSTG, TC16, MANUAL_CHECKLIST_ITEMS, NEEDS_MANUAL_LIMITATION, buildManualChecklistItems, handoffFileName, MAX_SURFACE_SAMPLE, surfaceContext, INFRA_CONTEXT, buildHandoffPackets, literal, renderIdorVerificationClass, OBJECT_STORE_PROBE_SINKS, GENERATED_PACKAGE, SERVER_CLASSES, BOOLEAN_BLIND_CLASSES, BOOLEAN_BLIND_PAIRS, CLASS_CANARY, COMMAND_CANARY, VALIDATION_REJECT_CLASSES2, CANON_HELPER, CLASS_ORACLE, javaStr, SSRF_BASELINE_WORKBOOK_ENTRIES, SSRF_BASELINE_WORKBOOK_HELPER, BENIGN_SEED, BUCKET_BENIGN_SEED, benignSeedFor, companionBenignSeed, renderAuthSuffix, RUNTIME_AUTH_SUFFIX, renderRuntimeAuthHelper, pascal, camel2, verificationTestClassName, identChunk, fillPath, companionCalls, ssrfPayloadPath, requestExpr, isVerifiable, SERVER_SKIP_REASON, renderBooleanBlind, renderCanary, isObjectStoreProbeSink, OBJECT_STORE_REJECT_CATCH_LINES, wrapObjectStoreAttackGuard, wrapObjectStoreEvidenceAttackGuard, resolveAuth, renderMethod2, renderEvidenceMethod, renderEvidenceHelpers, renderTestcontainersDbTierFields, renderExternalDbTierFields, javaSeedValue, renderSeedMethod, renderApiCreateSeedMethod, renderClass, toManifestEntries, generateVerificationSuite, buildVerificationManifest, decodeEntities, attr, stripCdata, childMessage, classify3, parseJUnitXml, simpleClassName, joinKey, DEFAULT_TRUST_TIER, resolveFromEnvelope, ingestVerification, PROVENANCE_DETAIL, applyProvenanceDowngrades, asRecord4, asString2, asBool, asInt, asHttpStatus, SIGNALS2, ATTESTATION_METHODS, parseProvenance, parseOracle, parseEffectBoundary, parseDefenseControl, parseBaseline, parseIdor, parseAttack, parseEvidenceEnvelope, asRecord5, asArray, asString3, asNumber, basename4, specOutcome, walkSuite, parsePlaywrightReport, joinKey2, ingestClientVerification, compareChecklistId, correlateVerification, EMPTY_CORRELATION, notTestedItem, groupDastByChecklist, dastAxisFor, groupClientByChecklist, clientAxisFor, correlateAssessment, ZAP_SCAN_RULES, DEFAULT_DAST_OPTIONS, DAST_PLAN_FILE, DAST_MANIFEST_FILE, DAST_PROBE_SCRIPT_FILE, DAST_API_SEED_SCRIPT_FILE, API_SEED_VAR_PREFIX, PROBE_VICTIM_BUCKET_REF, PROBE_CANARY_OBJECT_REF, PROBE_INJECTION_KINDS, isScannable, skipReason, yamlStr, baselinePath, normMethod2, toTarget, normalizeSpaRoutePath, buildSpaDastTargets, SEED_VALUE, SSRF_SEED_VALUE, seedValue, pathInjectionSeed, computeApiSeedVars, allParams, queryString, requestPath, renderRequest, renderPlanYaml, cmpChecklistId, generateDastPlan, buildProbeSpec, buildProbe, buildDastManifest, cmpStr3, compareScenarioRef, compareExecutionTarget, shq, PROBE_SCRIPT_PROLOGUE, PROBE_SCRIPT_EPILOGUE, renderDastProbeScript, shLiteral, API_SEED_PY, renderDastApiSeedScript, HTTP_EVIDENCE_MAX_HEADER_BYTES, HTTP_EVIDENCE_MAX_BODY_BYTES, REDACTION_WINDOW_BYTES, HTTP_REDACTED, SENSITIVE_HEADER_RE, NEVER_SENSITIVE_HEADER_RE, SCHEMED_HEADER_RE, COOKIE_HEADER_RE, COOKIE_ATTRIBUTE_RE, JSON_SECRET_MEMBER_RE, HEADER_LINE_RE, TOKEN_RUN_RE, redactJwtRun, redactJwts, URL_USERINFO_RE, redactInline, redactHeaderValue, redactHeaderBlock, redactBody, looksBinary, cutUtf8, boundedPart, sanitizeHttpMessage, httpStatusOf, RISK_BY_CODE, asString4, firstLine, httpEvidenceOf, parseZapReport, firstLineOf, usableTimestamp, latestMessageInstant, parseZapMessages, pathOf, stripTrailingSlash, pathMatches, methodMatches, injectionMatches, routeMatchesOrUnknown, alertMatchesTarget, queryHasParam, messageMatchesSurface, computeDastCoverage, detailOf, DAST_HTTP_EVIDENCE_MAX_RESOLUTIONS, carriesHttpText, evidenceOf12, ingestDast, SEMGREP_CWE_MAP, asRecord6, asString5, asNonNegativeInteger, compareText3, compareCwe, stringsFrom, cwesFromProperties, messageText, compareFinding, findingKey, ruleMetadata, metadataForResult, locationsOf, findingsFromRun, parseSemgrepSarif, compareChecklistId2, unmatchedKey, ingestSemgrep, CHECKLIST_ID3, CONTROL_ID3, MAX_EVIDENCE35, OWNER_SCOPED_FINDER, REPOSITORY_DECL, lineOf35, fieldNameFor, collectOwnerScopedRepositories, LIFERAY_LOAD_BY_ID_RE, OBJECT_PERMISSION_RE, methodBodyAt, liferayIdorHits, scanIdor, children, walk2, walkExecution, field2, simpleType, isReference, line, indexTypes, resolveType, propertyOf, annotations, annotationName, annotationValues, beanProperties, customAccessor, mappedOrigins, controlSignals, conventionSignals, trace, rootOrigins, scenarioFor, MAX_IDOR_AST_FILES, MAX_IDOR_AST_BYTES, scanIdorAuthorization, CHECKLIST_ID4, CONTROL_ID4, MAX_EVIDENCE36, CONTROLLER, MULTIPART_PARAM, JAXRS_IMPORT2, JAXRS_UPLOAD_PARAM, DENYLIST, ALLOWLIST, CONTENT_SNIFF, ACTIVE_CONTENT_EXTENSION, ACTIVE_CONTENT_DEFENCE, ALLOWLIST_WINDOW, lineOf36, collectUploadHandlers, firstMatch3, findActiveContentAllowlist, scanUploadValidation, CHECKLIST_ID5, CONTROL_ID5, MAX_EVIDENCE37, SECRET_KEY_LINE, SELF_IDENTIFYING_KEYS, JWT_CONTEXT_RE, PARENT_KEY_LINE, ancestorPath, ENV_PLACEHOLDER2, NON_PROD_PROFILE, CONFIG_FILE, lineOf37, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf38, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf39, enclosingCondition, isRequestValue, scanLiferayCsrf, DEVTOOLS_SPEC, BUILD_FILE_RE2, findDevToolsDeclarations, scanDevTools, PASSWORD_AUTOCOMPLETE_SPEC, HTML_TEMPLATE_FILE_RE, SECURE_AUTOCOMPLETE_VALUES, isTestPath4, auditPasswordAutocompleteContent, scanPasswordAutocomplete, SYSTEM_INFO_LEAK_SPEC, JAVA_FILE_RE6, isTestPath5, PRINT_STACK_TRACE_RE, SYSTEM_PRINT_EXCEPTION_RE, auditJavaErrorDisclosure, scanSystemInfoLeak, PLAYWRIGHT_VERSION_PIN, ESBUILD_VERSION_PIN, renderClientPackageJson, renderClientPlaywrightConfig, renderClientTsconfig, renderClientRunnablePackage, renderComponentBuildScript, renderVueComponentBuildScript, normFile2, posixDir, posixJoin, posixNormalize, candidateFilePaths, stripComments3, isAllowedFrameworkImport, extractImportSpecifiers, extractCompanionFiles, resolveInRepoPath, collectComponentClosure, CLIENT_CLASSES2, COMPONENT_NEEDS_BUILD_MARKER, COMPONENT_VUE_NOT_MOUNTED_MARKER, normFile3, jsStr2, camel3, fileChunk, isLikelyInjectable, analyzeMount, renderHarness, renderVueHarness, tieredAssert, renderMethod3, renderSpec2, generateComponentVerificationSuite, BINDING, HTML_COMMENT, inventoryVueTemplateSinks, HTTP_VERBS, lineOf40, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf41, isFrontend3, UPLOAD_CONTEXT_RE, FILE_INPUT_RE, ACCEPT_ATTR_RE, CLIENT_CHECK_PATTERNS, SHARED_CONST_SIGNAL_RE, HTTP_UPLOAD_SURFACE_RE, maskHtmlComments, clientChecksIn, fileInputsIn, evidence20, item25, dedupAndCap, scanUploadClientCheck, LOGOUT_CLEAR_SPEC, MAX_EVIDENCE41, lineOf42, isFrontend4, CALL_LABEL, LOGOUT_ENTRY_PATTERNS, CLEAR_STATE_RE, fileClearsState, LOGOUT_CALL_RE, receiverType, clearingLogoutClasses, callsDelegateClear, logoutEntriesIn, evidence21, item26, dedupAndCap2, scanLogoutClear, NUMERIC_BOUND_SPEC, MAX_EVIDENCE42, lineOf43, isFrontend5, isTsLike2, MONEY_NAME_RE, isMoneyName, MIN_BOUND_RE, PATTERN_RE, CONTROL_DECL_RE, moneyControlsIn, moneyInputsIn, evidence22, item27, scanNumericBound;
|
|
11671
11675
|
var init_dist3 = __esm({
|
|
11672
11676
|
"../parsers/dist/index.js"() {
|
|
11673
11677
|
init_dist();
|
|
@@ -11812,16 +11816,20 @@ ${errors.join("\n")}`);
|
|
|
11812
11816
|
try {
|
|
11813
11817
|
const lang = await loadGrammar(grammarName);
|
|
11814
11818
|
const parser = new Parser();
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11819
|
+
try {
|
|
11820
|
+
parser.setLanguage(lang);
|
|
11821
|
+
const tree = parser.parse(file.content);
|
|
11822
|
+
if (!tree) {
|
|
11823
|
+
return err(
|
|
11824
|
+
new ParseError(`tree-sitter returned null tree for ${file.path}`, {
|
|
11825
|
+
context: { file: file.path }
|
|
11826
|
+
})
|
|
11827
|
+
);
|
|
11828
|
+
}
|
|
11829
|
+
return ok({ file, layer, ast: tree, dispose: () => tree.delete() });
|
|
11830
|
+
} finally {
|
|
11831
|
+
parser.delete();
|
|
11823
11832
|
}
|
|
11824
|
-
return ok({ file, layer, ast: tree });
|
|
11825
11833
|
} catch (e) {
|
|
11826
11834
|
return err(
|
|
11827
11835
|
new ParseError(`tree-sitter failed to parse ${file.path}: ${e.message}`, {
|
|
@@ -24664,21 +24672,6 @@ ${window}`;
|
|
|
24664
24672
|
fingerprintEntries = (entries) => fingerprintEntryData(
|
|
24665
24673
|
entries.map((entry) => ({ name: entry.name, data: readFileSync(entry.absolutePath) }))
|
|
24666
24674
|
);
|
|
24667
|
-
withAdditionalPackageEntries = (plan, additional) => {
|
|
24668
|
-
const names = new Set(plan.entries.map((entry) => entry.name));
|
|
24669
|
-
for (const entry of additional) {
|
|
24670
|
-
if (names.has(entry.name) || !/^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*$/.test(entry.name) || entry.name.split("/").some((part) => part === ".." || part === ".")) {
|
|
24671
|
-
throw new Error(`Invalid or duplicate package entry: ${entry.name}`);
|
|
24672
|
-
}
|
|
24673
|
-
names.add(entry.name);
|
|
24674
|
-
}
|
|
24675
|
-
const entries = [...plan.entries, ...additional].sort((a, b) => a.name.localeCompare(b.name));
|
|
24676
|
-
const totalBytes = entries.reduce((total2, entry) => total2 + statSync(entry.absolutePath).size, 0);
|
|
24677
|
-
if (totalBytes > plan.maxArchiveBytes) {
|
|
24678
|
-
throw new Error("Source v\xE0 th\u01B0 vi\u1EC7n \u0111\xEDnh k\xE8m v\u01B0\u1EE3t gi\u1EDBi h\u1EA1n dung l\u01B0\u1EE3ng ZIP.");
|
|
24679
|
-
}
|
|
24680
|
-
return { ...plan, entries, totalBytes, sourceFingerprint: fingerprintEntries(entries) };
|
|
24681
|
-
};
|
|
24682
24675
|
XML_COMMENT_RE5 = /<!--[\s\S]*?-->/g;
|
|
24683
24676
|
RELATIVE_PATH_RE = /<relativePath>\s*([^<]+?)\s*<\/relativePath>/i;
|
|
24684
24677
|
SYSTEM_PATH_RE2 = /<systemPath>\s*([^<]+?)\s*<\/systemPath>/gi;
|
|
@@ -47445,12 +47438,12 @@ function getCrawler(globInput, inputOptions = {}) {
|
|
|
47445
47438
|
return patterns.length > 0 ? buildCrawler(options, patterns) : [];
|
|
47446
47439
|
}
|
|
47447
47440
|
async function glob(globInput, options) {
|
|
47448
|
-
const [crawler,
|
|
47449
|
-
return crawler ? formatPaths(await crawler.withPromise(),
|
|
47441
|
+
const [crawler, relative13] = getCrawler(globInput, options);
|
|
47442
|
+
return crawler ? formatPaths(await crawler.withPromise(), relative13) : [];
|
|
47450
47443
|
}
|
|
47451
47444
|
function globSync(globInput, options) {
|
|
47452
|
-
const [crawler,
|
|
47453
|
-
return crawler ? formatPaths(crawler.sync(),
|
|
47445
|
+
const [crawler, relative13] = getCrawler(globInput, options);
|
|
47446
|
+
return crawler ? formatPaths(crawler.sync(), relative13) : [];
|
|
47454
47447
|
}
|
|
47455
47448
|
var import_picomatch, isReadonlyArray, BACKSLASHES, isWin, ONLY_PARENT_DIRECTORIES, WIN32_ROOT_DIR, isRoot, splitPatternOptions, POSIX_UNESCAPED_GLOB_SYMBOLS, WIN32_UNESCAPED_GLOB_SYMBOLS, escapePosixPath, escapeWin32Path, escapePath, PARENT_DIRECTORY, ESCAPING_BACKSLASHES, defaultOptions;
|
|
47456
47449
|
var init_dist7 = __esm({
|
|
@@ -48679,6 +48672,7 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
|
|
|
48679
48672
|
}
|
|
48680
48673
|
for (const file of files) {
|
|
48681
48674
|
const fileStart = Date.now();
|
|
48675
|
+
const parsedByLayer = /* @__PURE__ */ new Map();
|
|
48682
48676
|
try {
|
|
48683
48677
|
const applicable = rules.filter((r) => ruleAppliesToFile(r, file));
|
|
48684
48678
|
if (applicable.length === 0) continue;
|
|
@@ -48699,7 +48693,6 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
|
|
|
48699
48693
|
const layers = new Set(
|
|
48700
48694
|
applicable.filter((r) => needsParse(r) && canRunRule(r)).map(requiredLayer)
|
|
48701
48695
|
);
|
|
48702
|
-
const parsedByLayer = /* @__PURE__ */ new Map();
|
|
48703
48696
|
if (!parserCanParseFile && applicable.some(needsParse)) {
|
|
48704
48697
|
logger.debug(
|
|
48705
48698
|
{ file: file.path, language: file.language },
|
|
@@ -48952,6 +48945,7 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
|
|
|
48952
48945
|
}
|
|
48953
48946
|
}
|
|
48954
48947
|
} finally {
|
|
48948
|
+
for (const parsed of parsedByLayer.values()) parsed.dispose?.();
|
|
48955
48949
|
fireFileComplete(file, Date.now() - fileStart);
|
|
48956
48950
|
}
|
|
48957
48951
|
}
|
|
@@ -54488,7 +54482,7 @@ var init_libsql = __esm({
|
|
|
54488
54482
|
init_session2();
|
|
54489
54483
|
}
|
|
54490
54484
|
});
|
|
54491
|
-
var __defProp2, __export2, schema_exports, reviewRuns, findings, buildCacheTable, aiCache, ruleCache, parseCache, astGraphNodes, astGraphEdges, astGraphMeta, SQLITE_BUSY_TIMEOUT_MS, isInMemory, toLibsqlUrl, createDb, DEFAULT_RETRY_DELAYS_MS, isSqliteBusyError, wait, withSqliteBusyRetry, hereDir, defaultMigrationsDir, ensureTrackingTable, listMigrations, alreadyApplied, runMigrations, RULE_EXECUTION_SKIP_REASONS, decodeSkipReasons, encodeSkipReasons, decodeRetryBacklog, decodeRetryIds, parseAiStatsJson, parseRuleResultsJson, parseFixJson, parseFindingMetadataJson, serializeAiStats, serializeRuleResults, serializeFix, serializeFindingMetadata, rowToSummary, rowToFinding, findingFingerprint, runUpsertStatement, findingInsertStatement, createReviewStore, TABLE_BY_NAMESPACE, purgeExpired, createSqliteCacheStore, AST_GRAPH_SCHEMA_VERSION, KNOWN_EDGE_KINDS, parseSymbols, rowToNode, rowToEdge, stringOrNull, createAstGraphStore, clearAstGraphForProject, migration0001, migration0002, migration0003, migration0004, migration0005, migration0006, migration0007, migration0008, migration0009, migration0010, migration0011, migration0012, migration0013, migration0014, migration0015, migration0016, migration0017, migration0018, migration0019, migration0020, migration0021, migration0022, migration0023, migration0024, migration0025, migration0026, migration0027, migration0028, migration0029, migration0030, migration0031, migration0032, migration0033, migration0034, migration0035, migration0036, migration0037, migration0038, migration0039, migration0040, migration0041, migration0042, migration0043, migration0044, migration0045, migration0046, migration0047, mutableRequestStatusPredicate, migration0048, migration0049, previousDefaultAndRetiredModels, mutableRequestPredicate, updatedAt, migration0050, migration0051, migration0052, migration0053, migration0054, migration0055, migration0056, migration0057, migration0058, migration0059, migration0060, migration0061, migration0062, migration0063, MARIADB_MIGRATIONS;
|
|
54485
|
+
var __defProp2, __export2, schema_exports, reviewRuns, findings, buildCacheTable, aiCache, ruleCache, parseCache, astGraphNodes, astGraphEdges, astGraphMeta, SQLITE_BUSY_TIMEOUT_MS, isInMemory, toLibsqlUrl, createDb, DEFAULT_RETRY_DELAYS_MS, isSqliteBusyError, wait, withSqliteBusyRetry, hereDir, defaultMigrationsDir, ensureTrackingTable, listMigrations, alreadyApplied, runMigrations, RULE_EXECUTION_SKIP_REASONS, decodeSkipReasons, encodeSkipReasons, decodeRetryBacklog, decodeRetryIds, parseAiStatsJson, parseRuleResultsJson, parseFixJson, parseFindingMetadataJson, serializeAiStats, serializeRuleResults, serializeFix, serializeFindingMetadata, rowToSummary, rowToFinding, findingFingerprint, runUpsertStatement, findingInsertStatement, createReviewStore, TABLE_BY_NAMESPACE, purgeExpired, createSqliteCacheStore, AST_GRAPH_SCHEMA_VERSION, KNOWN_EDGE_KINDS, parseSymbols, rowToNode, rowToEdge, stringOrNull, createAstGraphStore, clearAstGraphForProject, migration0001, migration0002, migration0003, migration0004, migration0005, migration0006, migration0007, migration0008, migration0009, migration0010, migration0011, migration0012, migration0013, migration0014, migration0015, migration0016, migration0017, migration0018, migration0019, migration0020, migration0021, migration0022, migration0023, migration0024, migration0025, migration0026, migration0027, migration0028, migration0029, migration0030, migration0031, migration0032, migration0033, migration0034, migration0035, migration0036, migration0037, migration0038, migration0039, migration0040, migration0041, migration0042, migration0043, migration0044, migration0045, migration0046, migration0047, mutableRequestStatusPredicate, migration0048, migration0049, previousDefaultAndRetiredModels, mutableRequestPredicate, updatedAt, migration0050, migration0051, migration0052, migration0053, migration0054, migration0055, migration0056, migration0057, migration0058, migration0059, migration0060, migration0061, migration0062, migration0063, migration0064, migration0065, migration0066, migration0067, migration0068, MARIADB_MIGRATIONS;
|
|
54492
54486
|
var init_dist9 = __esm({
|
|
54493
54487
|
"../storage/dist/index.js"() {
|
|
54494
54488
|
init_libsql();
|
|
@@ -57793,6 +57787,238 @@ var init_dist9 = __esm({
|
|
|
57793
57787
|
MODIFY COLUMN input_id VARCHAR(64) NOT NULL DEFAULT '-'`
|
|
57794
57788
|
]
|
|
57795
57789
|
};
|
|
57790
|
+
migration0064 = {
|
|
57791
|
+
version: 64,
|
|
57792
|
+
name: "pentest-sandboxes",
|
|
57793
|
+
statements: [
|
|
57794
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandboxes (
|
|
57795
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57796
|
+
request_id VARCHAR(384) NOT NULL,
|
|
57797
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57798
|
+
requested_by VARCHAR(255) NOT NULL,
|
|
57799
|
+
status VARCHAR(32) NOT NULL,
|
|
57800
|
+
failure_code VARCHAR(64) NULL,
|
|
57801
|
+
failure_message TEXT NULL,
|
|
57802
|
+
termination_reason VARCHAR(64) NULL,
|
|
57803
|
+
hold_requested TINYINT(1) NOT NULL DEFAULT 0,
|
|
57804
|
+
decision_closed_at BIGINT NULL,
|
|
57805
|
+
workflow_name VARCHAR(255) NULL,
|
|
57806
|
+
runtime_service_name VARCHAR(255) NULL,
|
|
57807
|
+
runtime_tier VARCHAR(8) NULL,
|
|
57808
|
+
app_port INT NULL,
|
|
57809
|
+
live_at BIGINT NULL,
|
|
57810
|
+
expires_at BIGINT NOT NULL,
|
|
57811
|
+
hard_expires_at BIGINT NOT NULL,
|
|
57812
|
+
teardown_at BIGINT NULL,
|
|
57813
|
+
version INT NOT NULL DEFAULT 1,
|
|
57814
|
+
created_at BIGINT NOT NULL,
|
|
57815
|
+
updated_at BIGINT NOT NULL,
|
|
57816
|
+
CONSTRAINT pentest_sb_request_uniq UNIQUE (request_id),
|
|
57817
|
+
CONSTRAINT pentest_sb_request_fk FOREIGN KEY (request_id) REFERENCES pentest_requests(id) ON DELETE CASCADE,
|
|
57818
|
+
CONSTRAINT pentest_sb_project_fk FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57819
|
+
INDEX pentest_sb_status_idx (status),
|
|
57820
|
+
INDEX pentest_sb_project_status_idx (project_id, status),
|
|
57821
|
+
INDEX pentest_sb_expires_idx (expires_at, status),
|
|
57822
|
+
INDEX pentest_sb_request_idx (request_id)
|
|
57823
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57824
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_access_tickets (
|
|
57825
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57826
|
+
ticket_hash CHAR(64) NOT NULL,
|
|
57827
|
+
sandbox_id VARCHAR(384) NOT NULL,
|
|
57828
|
+
user_id VARCHAR(255) NOT NULL,
|
|
57829
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57830
|
+
expires_at BIGINT NOT NULL,
|
|
57831
|
+
used_at BIGINT NULL,
|
|
57832
|
+
revoked_at BIGINT NULL,
|
|
57833
|
+
created_at BIGINT NOT NULL,
|
|
57834
|
+
CONSTRAINT pentest_sb_ticket_hash_uniq UNIQUE (ticket_hash),
|
|
57835
|
+
CONSTRAINT pentest_sb_ticket_sandbox_fk FOREIGN KEY (sandbox_id) REFERENCES pentest_sandboxes(id) ON DELETE CASCADE,
|
|
57836
|
+
CONSTRAINT pentest_sb_ticket_project_fk FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57837
|
+
INDEX pentest_sb_ticket_user_idx (user_id, created_at),
|
|
57838
|
+
INDEX pentest_sb_ticket_sandbox_idx (sandbox_id, created_at)
|
|
57839
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57840
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_access_sessions (
|
|
57841
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57842
|
+
session_hash CHAR(64) NOT NULL,
|
|
57843
|
+
sandbox_id VARCHAR(384) NOT NULL,
|
|
57844
|
+
user_id VARCHAR(255) NOT NULL,
|
|
57845
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57846
|
+
expires_at BIGINT NOT NULL,
|
|
57847
|
+
revoked_at BIGINT NULL,
|
|
57848
|
+
created_at BIGINT NOT NULL,
|
|
57849
|
+
last_seen_at BIGINT NULL,
|
|
57850
|
+
CONSTRAINT pentest_sb_session_hash_uniq UNIQUE (session_hash),
|
|
57851
|
+
CONSTRAINT pentest_sb_session_sandbox_fk FOREIGN KEY (sandbox_id) REFERENCES pentest_sandboxes(id) ON DELETE CASCADE,
|
|
57852
|
+
CONSTRAINT pentest_sb_session_project_fk FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57853
|
+
INDEX pentest_sb_session_user_idx (user_id, created_at),
|
|
57854
|
+
INDEX pentest_sb_session_sandbox_idx (sandbox_id, created_at)
|
|
57855
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57856
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_credentials (
|
|
57857
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57858
|
+
sandbox_id VARCHAR(384) NOT NULL,
|
|
57859
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57860
|
+
kind VARCHAR(64) NOT NULL,
|
|
57861
|
+
key_version INT NOT NULL DEFAULT 1,
|
|
57862
|
+
ciphertext VARBINARY(8192) NOT NULL,
|
|
57863
|
+
iv VARBINARY(12) NOT NULL,
|
|
57864
|
+
auth_tag VARBINARY(16) NOT NULL,
|
|
57865
|
+
created_at BIGINT NOT NULL,
|
|
57866
|
+
revealed_at BIGINT NULL,
|
|
57867
|
+
deleted_at BIGINT NULL,
|
|
57868
|
+
CONSTRAINT pentest_sb_cred_sandbox_fk FOREIGN KEY (sandbox_id) REFERENCES pentest_sandboxes(id) ON DELETE CASCADE,
|
|
57869
|
+
CONSTRAINT pentest_sb_cred_project_fk FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57870
|
+
INDEX pentest_sb_cred_sandbox_idx (sandbox_id, kind),
|
|
57871
|
+
INDEX pentest_sb_cred_project_idx (project_id, created_at)
|
|
57872
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57873
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_capacity_locks (
|
|
57874
|
+
scope_key VARCHAR(255) PRIMARY KEY,
|
|
57875
|
+
updated_at BIGINT NOT NULL
|
|
57876
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57877
|
+
`INSERT IGNORE INTO pentest_sandbox_capacity_locks (scope_key, updated_at) VALUES ('global', 0)`
|
|
57878
|
+
]
|
|
57879
|
+
};
|
|
57880
|
+
migration0065 = {
|
|
57881
|
+
version: 65,
|
|
57882
|
+
name: "pentest-replay-bundles",
|
|
57883
|
+
statements: [
|
|
57884
|
+
`CREATE TABLE IF NOT EXISTS pentest_replay_bundles (
|
|
57885
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57886
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57887
|
+
request_id VARCHAR(384) NOT NULL,
|
|
57888
|
+
source_archive_checksum CHAR(64) NOT NULL,
|
|
57889
|
+
schema_version INT NOT NULL,
|
|
57890
|
+
producer_version VARCHAR(128) NOT NULL,
|
|
57891
|
+
manifest_checksum CHAR(64) NOT NULL,
|
|
57892
|
+
object_checksum CHAR(64) NULL,
|
|
57893
|
+
storage_key VARCHAR(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
|
57894
|
+
stored_byte_size BIGINT NOT NULL,
|
|
57895
|
+
file_count INT NOT NULL,
|
|
57896
|
+
availability_status VARCHAR(16) NOT NULL DEFAULT 'available',
|
|
57897
|
+
created_at BIGINT NOT NULL,
|
|
57898
|
+
expires_at BIGINT NOT NULL,
|
|
57899
|
+
updated_at BIGINT NOT NULL,
|
|
57900
|
+
CONSTRAINT pentest_replay_bundle_request_uniq UNIQUE (project_id, request_id),
|
|
57901
|
+
INDEX pentest_replay_bundle_expiry_idx (availability_status, expires_at),
|
|
57902
|
+
INDEX pentest_replay_bundle_source_idx (project_id, request_id, source_archive_checksum),
|
|
57903
|
+
INDEX pentest_replay_bundle_checksum_idx (manifest_checksum)
|
|
57904
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`
|
|
57905
|
+
]
|
|
57906
|
+
};
|
|
57907
|
+
migration0066 = {
|
|
57908
|
+
version: 66,
|
|
57909
|
+
name: "sandbox-loader-tokens",
|
|
57910
|
+
statements: [
|
|
57911
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_loader_tokens (
|
|
57912
|
+
id VARCHAR(384) PRIMARY KEY,
|
|
57913
|
+
token_hash CHAR(64) NOT NULL,
|
|
57914
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57915
|
+
request_id VARCHAR(384) NOT NULL,
|
|
57916
|
+
sandbox_id VARCHAR(384) NOT NULL,
|
|
57917
|
+
replay_bundle_id VARCHAR(384) NOT NULL,
|
|
57918
|
+
manifest_checksum CHAR(64) NOT NULL,
|
|
57919
|
+
created_at BIGINT NOT NULL,
|
|
57920
|
+
expires_at BIGINT NOT NULL,
|
|
57921
|
+
first_used_at BIGINT NULL,
|
|
57922
|
+
revoked_at BIGINT NULL,
|
|
57923
|
+
CONSTRAINT pentest_sb_loader_token_hash_uniq UNIQUE (token_hash),
|
|
57924
|
+
CONSTRAINT pentest_sb_loader_token_sandbox_fk FOREIGN KEY (sandbox_id) REFERENCES pentest_sandboxes(id) ON DELETE CASCADE,
|
|
57925
|
+
CONSTRAINT pentest_sb_loader_token_project_fk FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57926
|
+
CONSTRAINT pentest_sb_loader_token_request_fk FOREIGN KEY (request_id) REFERENCES pentest_requests(id) ON DELETE CASCADE,
|
|
57927
|
+
CONSTRAINT pentest_sb_loader_token_bundle_fk FOREIGN KEY (replay_bundle_id) REFERENCES pentest_replay_bundles(id) ON DELETE CASCADE,
|
|
57928
|
+
INDEX pentest_sb_loader_token_sandbox_idx (sandbox_id, revoked_at),
|
|
57929
|
+
INDEX pentest_sb_loader_token_request_idx (request_id, project_id)
|
|
57930
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`
|
|
57931
|
+
]
|
|
57932
|
+
};
|
|
57933
|
+
migration0067 = {
|
|
57934
|
+
version: 67,
|
|
57935
|
+
name: "sandbox-rollout-and-leases",
|
|
57936
|
+
statements: [
|
|
57937
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_rollout_settings (
|
|
57938
|
+
id TINYINT PRIMARY KEY,
|
|
57939
|
+
enabled BOOLEAN NOT NULL DEFAULT FALSE,
|
|
57940
|
+
reason VARCHAR(500) NOT NULL DEFAULT '',
|
|
57941
|
+
updated_by_user_id VARCHAR(384) NULL,
|
|
57942
|
+
updated_at BIGINT NOT NULL DEFAULT 0,
|
|
57943
|
+
CONSTRAINT sandbox_rollout_singleton CHECK (id = 1),
|
|
57944
|
+
FOREIGN KEY (updated_by_user_id) REFERENCES dashboard_users(id) ON DELETE SET NULL
|
|
57945
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57946
|
+
"INSERT IGNORE INTO pentest_sandbox_rollout_settings (id, enabled) VALUES (1, FALSE)",
|
|
57947
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_project_access (
|
|
57948
|
+
project_id VARCHAR(255) PRIMARY KEY,
|
|
57949
|
+
enabled BOOLEAN NOT NULL DEFAULT FALSE,
|
|
57950
|
+
reason VARCHAR(500) NOT NULL,
|
|
57951
|
+
updated_by_user_id VARCHAR(384) NULL,
|
|
57952
|
+
created_at BIGINT NOT NULL,
|
|
57953
|
+
updated_at BIGINT NOT NULL,
|
|
57954
|
+
FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57955
|
+
FOREIGN KEY (updated_by_user_id) REFERENCES dashboard_users(id) ON DELETE SET NULL
|
|
57956
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57957
|
+
`ALTER TABLE pentest_sandboxes
|
|
57958
|
+
ADD COLUMN IF NOT EXISTS provisioning_lease_owner VARCHAR(128) NULL,
|
|
57959
|
+
ADD COLUMN IF NOT EXISTS provisioning_lease_until BIGINT NULL,
|
|
57960
|
+
ADD COLUMN IF NOT EXISTS provisioning_stage VARCHAR(32) NOT NULL DEFAULT 'requested',
|
|
57961
|
+
ADD COLUMN IF NOT EXISTS provisioning_generation INT NOT NULL DEFAULT 0`
|
|
57962
|
+
]
|
|
57963
|
+
};
|
|
57964
|
+
migration0068 = {
|
|
57965
|
+
version: 68,
|
|
57966
|
+
name: "sandbox-investigations",
|
|
57967
|
+
statements: [
|
|
57968
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_investigations (
|
|
57969
|
+
id VARCHAR(64) PRIMARY KEY,
|
|
57970
|
+
project_id VARCHAR(255) NOT NULL,
|
|
57971
|
+
request_id VARCHAR(255) NOT NULL,
|
|
57972
|
+
assessment_id VARCHAR(255) NULL,
|
|
57973
|
+
scenario_id VARCHAR(128) NOT NULL,
|
|
57974
|
+
variant_id VARCHAR(128) NOT NULL,
|
|
57975
|
+
sandbox_id VARCHAR(64) NOT NULL,
|
|
57976
|
+
runtime_generation INT NOT NULL DEFAULT 1,
|
|
57977
|
+
recipe_version INT NOT NULL DEFAULT 1,
|
|
57978
|
+
created_by_user_id VARCHAR(384) NULL,
|
|
57979
|
+
created_at BIGINT NOT NULL,
|
|
57980
|
+
updated_at BIGINT NOT NULL,
|
|
57981
|
+
FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
|
57982
|
+
FOREIGN KEY (created_by_user_id) REFERENCES dashboard_users(id) ON DELETE SET NULL,
|
|
57983
|
+
INDEX idx_investigations_req_scen (request_id, scenario_id),
|
|
57984
|
+
INDEX idx_investigations_sandbox (sandbox_id)
|
|
57985
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
57986
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_attempts (
|
|
57987
|
+
id VARCHAR(64) PRIMARY KEY,
|
|
57988
|
+
investigation_id VARCHAR(64) NOT NULL,
|
|
57989
|
+
runtime_generation INT NOT NULL DEFAULT 1,
|
|
57990
|
+
plan_version INT NOT NULL DEFAULT 1,
|
|
57991
|
+
fixture_version INT NOT NULL DEFAULT 1,
|
|
57992
|
+
state VARCHAR(32) NOT NULL DEFAULT 'draft',
|
|
57993
|
+
outcome VARCHAR(32) NULL,
|
|
57994
|
+
steps_json MEDIUMTEXT NOT NULL,
|
|
57995
|
+
precondition_checks_json TEXT NOT NULL,
|
|
57996
|
+
principal_labels_json TEXT NOT NULL,
|
|
57997
|
+
evidence_refs_json TEXT NOT NULL,
|
|
57998
|
+
coverage_gaps_json TEXT NOT NULL,
|
|
57999
|
+
explanation_json MEDIUMTEXT NULL,
|
|
58000
|
+
started_at BIGINT NOT NULL,
|
|
58001
|
+
finished_at BIGINT NULL,
|
|
58002
|
+
created_at BIGINT NOT NULL,
|
|
58003
|
+
updated_at BIGINT NOT NULL,
|
|
58004
|
+
FOREIGN KEY (investigation_id) REFERENCES pentest_sandbox_investigations(id) ON DELETE CASCADE,
|
|
58005
|
+
INDEX idx_attempts_investigation (investigation_id, state)
|
|
58006
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`,
|
|
58007
|
+
`CREATE TABLE IF NOT EXISTS pentest_sandbox_evidence (
|
|
58008
|
+
id VARCHAR(64) PRIMARY KEY,
|
|
58009
|
+
attempt_id VARCHAR(64) NOT NULL,
|
|
58010
|
+
step_id VARCHAR(64) NULL,
|
|
58011
|
+
source VARCHAR(128) NOT NULL,
|
|
58012
|
+
checksum VARCHAR(64) NOT NULL,
|
|
58013
|
+
type VARCHAR(32) NOT NULL,
|
|
58014
|
+
safe_content_json MEDIUMTEXT NOT NULL,
|
|
58015
|
+
retention_expires_at BIGINT NOT NULL,
|
|
58016
|
+
created_at BIGINT NOT NULL,
|
|
58017
|
+
FOREIGN KEY (attempt_id) REFERENCES pentest_sandbox_attempts(id) ON DELETE CASCADE,
|
|
58018
|
+
INDEX idx_evidence_attempt (attempt_id)
|
|
58019
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`
|
|
58020
|
+
]
|
|
58021
|
+
};
|
|
57796
58022
|
MARIADB_MIGRATIONS = [
|
|
57797
58023
|
migration0001,
|
|
57798
58024
|
migration0002,
|
|
@@ -57856,7 +58082,12 @@ var init_dist9 = __esm({
|
|
|
57856
58082
|
migration0060,
|
|
57857
58083
|
migration0061,
|
|
57858
58084
|
migration0062,
|
|
57859
|
-
migration0063
|
|
58085
|
+
migration0063,
|
|
58086
|
+
migration0064,
|
|
58087
|
+
migration0065,
|
|
58088
|
+
migration0066,
|
|
58089
|
+
migration0067,
|
|
58090
|
+
migration0068
|
|
57860
58091
|
];
|
|
57861
58092
|
MARIADB_MIGRATIONS[MARIADB_MIGRATIONS.length - 1]?.version ?? 0;
|
|
57862
58093
|
}
|
|
@@ -59890,11 +60121,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
|
|
|
59890
60121
|
var getCliBuildMetadata = (version2) => ({
|
|
59891
60122
|
version: version2,
|
|
59892
60123
|
gitSha: definedBuildValue(
|
|
59893
|
-
"
|
|
60124
|
+
"f60caa7079ae" ,
|
|
59894
60125
|
"unknown"
|
|
59895
60126
|
),
|
|
59896
60127
|
buildTimestamp: definedBuildValue(
|
|
59897
|
-
"2026-10-
|
|
60128
|
+
"2026-10-08T09:39:44.167Z" ,
|
|
59898
60129
|
"unknown"
|
|
59899
60130
|
),
|
|
59900
60131
|
configSchemaRange: definedBuildValue(
|
|
@@ -61250,7 +61481,7 @@ var SecretCommandError = class extends Error {
|
|
|
61250
61481
|
code;
|
|
61251
61482
|
};
|
|
61252
61483
|
var nativeRunner = {
|
|
61253
|
-
run: (command, args, input4) => new Promise((
|
|
61484
|
+
run: (command, args, input4) => new Promise((resolve62, reject) => {
|
|
61254
61485
|
const child = spawn(command, args, { stdio: ["pipe", "pipe", "pipe"] });
|
|
61255
61486
|
let stdout = "";
|
|
61256
61487
|
let stderr = "";
|
|
@@ -61264,7 +61495,7 @@ var nativeRunner = {
|
|
|
61264
61495
|
});
|
|
61265
61496
|
child.on("error", (error) => reject(error));
|
|
61266
61497
|
child.on("close", (code) => {
|
|
61267
|
-
if (code === 0)
|
|
61498
|
+
if (code === 0) resolve62(stdout);
|
|
61268
61499
|
else reject(new SecretCommandError(command, code, stderr.trim() || `${command} failed`));
|
|
61269
61500
|
});
|
|
61270
61501
|
if (input4 !== void 0) child.stdin.end(input4);
|
|
@@ -61314,109 +61545,24 @@ var LinuxSecretServiceStore = class {
|
|
|
61314
61545
|
}
|
|
61315
61546
|
}
|
|
61316
61547
|
};
|
|
61317
|
-
var
|
|
61318
|
-
|
|
61319
|
-
|
|
61320
|
-
|
|
61321
|
-
using System;
|
|
61322
|
-
using System.Runtime.InteropServices;
|
|
61323
|
-
public static class CodeSentinelCredentialNative {
|
|
61324
|
-
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
|
61325
|
-
public struct CREDENTIAL {
|
|
61326
|
-
public UInt32 Flags; public UInt32 Type; public IntPtr TargetName; public IntPtr Comment;
|
|
61327
|
-
public System.Runtime.InteropServices.ComTypes.FILETIME LastWritten;
|
|
61328
|
-
public UInt32 CredentialBlobSize; public IntPtr CredentialBlob; public Int32 Persist; public UInt32 AttributeCount;
|
|
61329
|
-
public IntPtr Attributes; public IntPtr TargetAlias; public IntPtr UserName;
|
|
61330
|
-
}
|
|
61331
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61332
|
-
public static extern bool CredRead(string target, UInt32 type, UInt32 flags, out IntPtr credentialPtr);
|
|
61333
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61334
|
-
public static extern bool CredWrite([In] ref CREDENTIAL credential, UInt32 flags);
|
|
61335
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61336
|
-
public static extern bool CredDelete(string target, UInt32 type, UInt32 flags);
|
|
61337
|
-
[DllImport("Advapi32.dll", SetLastError = true)]
|
|
61338
|
-
public static extern void CredFree(IntPtr credential);
|
|
61339
|
-
}
|
|
61340
|
-
'@
|
|
61341
|
-
Add-Type -TypeDefinition $native
|
|
61342
|
-
`;
|
|
61343
|
-
var encodedPowerShell = (script) => Buffer.from(script, "utf16le").toString("base64");
|
|
61344
|
-
var powerShellTarget = (service, account) => `${service}:${account}`;
|
|
61548
|
+
var nativeWindowsEntry = async (service, account) => {
|
|
61549
|
+
const { AsyncEntry } = await import('@napi-rs/keyring');
|
|
61550
|
+
return AsyncEntry.withTarget(`${service}:${account}`, service, account);
|
|
61551
|
+
};
|
|
61345
61552
|
var WindowsCredentialManagerStore = class {
|
|
61346
|
-
constructor(
|
|
61347
|
-
this.
|
|
61348
|
-
}
|
|
61349
|
-
commands;
|
|
61350
|
-
run(target, body, input4) {
|
|
61351
|
-
return this.commands.run(
|
|
61352
|
-
"powershell.exe",
|
|
61353
|
-
[
|
|
61354
|
-
"-NoProfile",
|
|
61355
|
-
"-NonInteractive",
|
|
61356
|
-
"-EncodedCommand",
|
|
61357
|
-
encodedPowerShell(powershellPrelude(target) + body)
|
|
61358
|
-
],
|
|
61359
|
-
input4
|
|
61360
|
-
);
|
|
61553
|
+
constructor(entry = nativeWindowsEntry) {
|
|
61554
|
+
this.entry = entry;
|
|
61361
61555
|
}
|
|
61556
|
+
entry;
|
|
61362
61557
|
async read(service, account) {
|
|
61363
|
-
const
|
|
61364
|
-
|
|
61365
|
-
`
|
|
61366
|
-
$credentialPtr = [IntPtr]::Zero
|
|
61367
|
-
if (-not [CodeSentinelCredentialNative]::CredRead($target, 1, 0, [ref] $credentialPtr)) {
|
|
61368
|
-
if ([Runtime.InteropServices.Marshal]::GetLastWin32Error() -eq 1168) { exit 0 }
|
|
61369
|
-
throw "Credential Manager read failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61370
|
-
}
|
|
61371
|
-
try {
|
|
61372
|
-
$credential = [Runtime.InteropServices.Marshal]::PtrToStructure($credentialPtr, [type][CodeSentinelCredentialNative+CREDENTIAL])
|
|
61373
|
-
$bytes = New-Object byte[] $credential.CredentialBlobSize
|
|
61374
|
-
[Runtime.InteropServices.Marshal]::Copy($credential.CredentialBlob, $bytes, 0, $bytes.Length)
|
|
61375
|
-
[Console]::Out.WriteLine("___CS_CLI_B64_START___$([Convert]::ToBase64String($bytes))___CS_CLI_B64_END___")
|
|
61376
|
-
} finally { [CodeSentinelCredentialNative]::CredFree($credentialPtr) }
|
|
61377
|
-
`
|
|
61378
|
-
);
|
|
61379
|
-
const match = output2.match(/___CS_CLI_B64_START___(.*?)___CS_CLI_B64_END___/);
|
|
61380
|
-
if (match?.[1]) return Buffer.from(match[1], "base64").toString("utf8");
|
|
61381
|
-
return null;
|
|
61558
|
+
const bytes = await (await this.entry(service, account)).getSecret();
|
|
61559
|
+
return bytes === void 0 ? null : Buffer.from(bytes).toString("utf8");
|
|
61382
61560
|
}
|
|
61383
61561
|
async write(service, account, value) {
|
|
61384
|
-
await this.
|
|
61385
|
-
powerShellTarget(service, account),
|
|
61386
|
-
`
|
|
61387
|
-
$bytes = [Convert]::FromBase64String([Console]::In.ReadToEnd())
|
|
61388
|
-
$credential = New-Object CodeSentinelCredentialNative+CREDENTIAL
|
|
61389
|
-
$credential.Type = 1
|
|
61390
|
-
$credential.TargetName = [Runtime.InteropServices.Marshal]::StringToCoTaskMemUni($target)
|
|
61391
|
-
$credential.UserName = [Runtime.InteropServices.Marshal]::StringToCoTaskMemUni('Code Sentinel CLI')
|
|
61392
|
-
$credential.CredentialBlobSize = $bytes.Length
|
|
61393
|
-
$credential.Persist = 2
|
|
61394
|
-
$credential.CredentialBlob = [Runtime.InteropServices.Marshal]::AllocCoTaskMem($bytes.Length)
|
|
61395
|
-
try {
|
|
61396
|
-
[Runtime.InteropServices.Marshal]::Copy($bytes, 0, $credential.CredentialBlob, $bytes.Length)
|
|
61397
|
-
if (-not [CodeSentinelCredentialNative]::CredWrite([ref] $credential, 0)) {
|
|
61398
|
-
throw "Credential Manager write failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61399
|
-
}
|
|
61400
|
-
} finally {
|
|
61401
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.TargetName)
|
|
61402
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.UserName)
|
|
61403
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.CredentialBlob)
|
|
61404
|
-
}
|
|
61405
|
-
`,
|
|
61406
|
-
Buffer.from(value, "utf8").toString("base64")
|
|
61407
|
-
);
|
|
61562
|
+
await (await this.entry(service, account)).setSecret(Buffer.from(value, "utf8"));
|
|
61408
61563
|
}
|
|
61409
61564
|
async remove(service, account) {
|
|
61410
|
-
await this.
|
|
61411
|
-
powerShellTarget(service, account),
|
|
61412
|
-
`
|
|
61413
|
-
if (-not [CodeSentinelCredentialNative]::CredDelete($target, 1, 0)) {
|
|
61414
|
-
if ([Runtime.InteropServices.Marshal]::GetLastWin32Error() -ne 1168) {
|
|
61415
|
-
throw "Credential Manager delete failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61416
|
-
}
|
|
61417
|
-
}
|
|
61418
|
-
`
|
|
61419
|
-
);
|
|
61565
|
+
await (await this.entry(service, account)).deleteCredential();
|
|
61420
61566
|
}
|
|
61421
61567
|
};
|
|
61422
61568
|
var createPlatformSecretStore = (platform = process.platform) => {
|
|
@@ -61856,6 +62002,88 @@ var buildRuleOverrides = (rulesCfg) => {
|
|
|
61856
62002
|
};
|
|
61857
62003
|
};
|
|
61858
62004
|
|
|
62005
|
+
// src/pentest/persistent-cache.ts
|
|
62006
|
+
init_dist4();
|
|
62007
|
+
var MAX_TTL_SECONDS = 7 * 24 * 60 * 60;
|
|
62008
|
+
function createPentestCache(logger, discriminator) {
|
|
62009
|
+
const root = process.env.CS_PENTEST_CACHE_DIR;
|
|
62010
|
+
const project = process.env.CS_PENTEST_CACHE_PROJECT;
|
|
62011
|
+
const image = process.env.CS_PENTEST_CACHE_IMAGE;
|
|
62012
|
+
const source = process.env.CS_PENTEST_SOURCE_SHA256;
|
|
62013
|
+
if (!root || !isAbsolute(root) || !project || !image || !source) {
|
|
62014
|
+
return createInMemoryCache();
|
|
62015
|
+
}
|
|
62016
|
+
const scope = createHash("sha256").update(JSON.stringify([1, project, image, source, discriminator])).digest("hex");
|
|
62017
|
+
const directory = join(root, scope);
|
|
62018
|
+
let hits = 0;
|
|
62019
|
+
const pathOf2 = (namespace, key) => join(directory, `${namespace}-${createHash("sha256").update(key).digest("hex")}.json`);
|
|
62020
|
+
return {
|
|
62021
|
+
async get(namespace, key) {
|
|
62022
|
+
const path = pathOf2(namespace, key);
|
|
62023
|
+
try {
|
|
62024
|
+
const entry = JSON.parse(await readFile(path, "utf8"));
|
|
62025
|
+
if (entry.key !== key || !Number.isFinite(entry.expiresAt)) return null;
|
|
62026
|
+
if (entry.expiresAt <= Date.now()) {
|
|
62027
|
+
await unlink(path).catch(() => {
|
|
62028
|
+
});
|
|
62029
|
+
return null;
|
|
62030
|
+
}
|
|
62031
|
+
hits++;
|
|
62032
|
+
if (hits === 1 || hits % 100 === 0) {
|
|
62033
|
+
logger.info({ namespace, hits }, "Pentest persistent cache hit");
|
|
62034
|
+
}
|
|
62035
|
+
return entry.value;
|
|
62036
|
+
} catch (error) {
|
|
62037
|
+
if (error.code !== "ENOENT") {
|
|
62038
|
+
logger.warn({ err: error, namespace }, "Pentest cache read failed; recomputing");
|
|
62039
|
+
}
|
|
62040
|
+
return null;
|
|
62041
|
+
}
|
|
62042
|
+
},
|
|
62043
|
+
async set(namespace, key, value, ttlSeconds) {
|
|
62044
|
+
const path = pathOf2(namespace, key);
|
|
62045
|
+
const temporary = `${path}.${randomUUID()}.tmp`;
|
|
62046
|
+
try {
|
|
62047
|
+
await mkdir(directory, { recursive: true, mode: 448 });
|
|
62048
|
+
await writeFile(
|
|
62049
|
+
temporary,
|
|
62050
|
+
JSON.stringify({
|
|
62051
|
+
key,
|
|
62052
|
+
expiresAt: Date.now() + Math.min(ttlSeconds ?? MAX_TTL_SECONDS, MAX_TTL_SECONDS) * 1e3,
|
|
62053
|
+
value
|
|
62054
|
+
}),
|
|
62055
|
+
{ mode: 384, flag: "wx" }
|
|
62056
|
+
);
|
|
62057
|
+
await rename(temporary, path);
|
|
62058
|
+
} catch (error) {
|
|
62059
|
+
logger.warn({ err: error, namespace }, "Pentest cache write failed; continuing");
|
|
62060
|
+
} finally {
|
|
62061
|
+
await unlink(temporary).catch(() => {
|
|
62062
|
+
});
|
|
62063
|
+
}
|
|
62064
|
+
},
|
|
62065
|
+
async invalidate(namespace, predicate) {
|
|
62066
|
+
let removed = 0;
|
|
62067
|
+
for (const file of await readdir(directory).catch(() => [])) {
|
|
62068
|
+
if (!file.startsWith(`${namespace}-`) || !file.endsWith(".json")) continue;
|
|
62069
|
+
try {
|
|
62070
|
+
const path = join(directory, file);
|
|
62071
|
+
const entry = JSON.parse(await readFile(path, "utf8"));
|
|
62072
|
+
if (typeof entry.key === "string" && predicate(entry.key)) {
|
|
62073
|
+
await unlink(path);
|
|
62074
|
+
removed++;
|
|
62075
|
+
}
|
|
62076
|
+
} catch {
|
|
62077
|
+
}
|
|
62078
|
+
}
|
|
62079
|
+
return removed;
|
|
62080
|
+
},
|
|
62081
|
+
async clear(namespace) {
|
|
62082
|
+
await this.invalidate(namespace, () => true);
|
|
62083
|
+
}
|
|
62084
|
+
};
|
|
62085
|
+
}
|
|
62086
|
+
|
|
61859
62087
|
// src/pentest/fold-rules.ts
|
|
61860
62088
|
var FOLD_STATIC_RULE_IDS = [
|
|
61861
62089
|
...new Set(REVIEW_SIGNAL_MAP.flatMap((spec) => spec.ruleIds))
|
|
@@ -61926,9 +62154,29 @@ var runFoldStaticRules = async (input4) => {
|
|
|
61926
62154
|
if (activeScopes) staged = staged.filter((r) => ruleMatchesActiveScopes(r.scope, activeScopes));
|
|
61927
62155
|
const rules = staged.map(overrides.applyOverrides);
|
|
61928
62156
|
if (rules.length === 0) return { findings: [], ranRuleIds: [], filesScanned: files.length };
|
|
62157
|
+
const cache3 = createPentestCache(logger, JSON.stringify(input4.config));
|
|
62158
|
+
const cacheKey = createHash("sha256").update(JSON.stringify([files.map((file) => [file.path, file.hash]).sort(), rules])).digest("hex");
|
|
62159
|
+
if (input4.ai === void 0 && notInCatalog.length === 0) {
|
|
62160
|
+
const cached = await cache3.get("rule", cacheKey);
|
|
62161
|
+
if (cached !== null) return cached;
|
|
62162
|
+
}
|
|
62163
|
+
let degraded = false;
|
|
62164
|
+
const executionLogger = new Proxy(logger, {
|
|
62165
|
+
get(object, property) {
|
|
62166
|
+
const method = Reflect.get(object, property);
|
|
62167
|
+
if (property === "warn" || property === "error") {
|
|
62168
|
+
return (...args) => {
|
|
62169
|
+
degraded = true;
|
|
62170
|
+
return Reflect.apply(method, object, args);
|
|
62171
|
+
};
|
|
62172
|
+
}
|
|
62173
|
+
return typeof method === "function" ? method.bind(object) : method;
|
|
62174
|
+
}
|
|
62175
|
+
});
|
|
61929
62176
|
const executor = createStaticExecutor({
|
|
61930
62177
|
parser: createParser(),
|
|
61931
|
-
logger,
|
|
62178
|
+
logger: executionLogger,
|
|
62179
|
+
cache: cache3,
|
|
61932
62180
|
ruleOptionsResolver: overrides.ruleOptionsResolver,
|
|
61933
62181
|
...overrides.hasPathOverrides ? {
|
|
61934
62182
|
findingPostFilter: (file, f) => overrides.applyPathOverrides(file, f)
|
|
@@ -61981,7 +62229,15 @@ var runFoldStaticRules = async (input4) => {
|
|
|
61981
62229
|
if (index2 >= 0) findings2[index2] = { ...finding, snippet };
|
|
61982
62230
|
}
|
|
61983
62231
|
}
|
|
61984
|
-
|
|
62232
|
+
const result = {
|
|
62233
|
+
findings: findings2,
|
|
62234
|
+
ranRuleIds: rules.map((r) => r.id).sort(),
|
|
62235
|
+
filesScanned: files.length
|
|
62236
|
+
};
|
|
62237
|
+
if (input4.ai === void 0 && notInCatalog.length === 0 && !degraded) {
|
|
62238
|
+
await cache3.set("rule", cacheKey, result);
|
|
62239
|
+
}
|
|
62240
|
+
return result;
|
|
61985
62241
|
};
|
|
61986
62242
|
|
|
61987
62243
|
// src/pentest/fold-ai-rules.ts
|
|
@@ -62044,7 +62300,7 @@ var runFoldAiRules = async (input4) => {
|
|
|
62044
62300
|
const tracker = createAiTracker({ provider: client.name });
|
|
62045
62301
|
const aiExec = createAiExecutor({
|
|
62046
62302
|
client,
|
|
62047
|
-
cache:
|
|
62303
|
+
cache: createPentestCache(logger, JSON.stringify(modelConfig)),
|
|
62048
62304
|
baseDir: builtinRulesDir,
|
|
62049
62305
|
logger,
|
|
62050
62306
|
model,
|
|
@@ -65123,7 +65379,7 @@ var openBrowser = async (url) => {
|
|
|
65123
65379
|
else await execFile3("xdg-open", [url]);
|
|
65124
65380
|
};
|
|
65125
65381
|
var credentialStore = () => createPlatformCredentialStore();
|
|
65126
|
-
var sleep = (milliseconds) => new Promise((
|
|
65382
|
+
var sleep = (milliseconds) => new Promise((resolve62) => setTimeout(resolve62, milliseconds));
|
|
65127
65383
|
var defaults = () => ({
|
|
65128
65384
|
store: credentialStore(),
|
|
65129
65385
|
start: startDeviceAuthorization,
|
|
@@ -69634,9 +69890,9 @@ var NodeFsHandler = class {
|
|
|
69634
69890
|
if (this.fsw.closed) {
|
|
69635
69891
|
return;
|
|
69636
69892
|
}
|
|
69637
|
-
const
|
|
69893
|
+
const dirname35 = sp2.dirname(file);
|
|
69638
69894
|
const basename14 = sp2.basename(file);
|
|
69639
|
-
const parent = this.fsw._getWatchedDir(
|
|
69895
|
+
const parent = this.fsw._getWatchedDir(dirname35);
|
|
69640
69896
|
let prevStats = stats;
|
|
69641
69897
|
if (parent.has(basename14))
|
|
69642
69898
|
return;
|
|
@@ -69663,7 +69919,7 @@ var NodeFsHandler = class {
|
|
|
69663
69919
|
prevStats = newStats2;
|
|
69664
69920
|
}
|
|
69665
69921
|
} catch (error) {
|
|
69666
|
-
this.fsw._remove(
|
|
69922
|
+
this.fsw._remove(dirname35, basename14);
|
|
69667
69923
|
}
|
|
69668
69924
|
} else if (parent.has(basename14)) {
|
|
69669
69925
|
const at = newStats.atimeMs;
|
|
@@ -69760,7 +70016,7 @@ var NodeFsHandler = class {
|
|
|
69760
70016
|
this._addToNodeFs(path, initialAdd, wh, depth + 1);
|
|
69761
70017
|
}
|
|
69762
70018
|
}).on(EV.ERROR, this._boundHandleError);
|
|
69763
|
-
return new Promise((
|
|
70019
|
+
return new Promise((resolve62, reject) => {
|
|
69764
70020
|
if (!stream)
|
|
69765
70021
|
return reject();
|
|
69766
70022
|
stream.once(STR_END, () => {
|
|
@@ -69769,7 +70025,7 @@ var NodeFsHandler = class {
|
|
|
69769
70025
|
return;
|
|
69770
70026
|
}
|
|
69771
70027
|
const wasThrottled = throttler ? throttler.clear() : false;
|
|
69772
|
-
|
|
70028
|
+
resolve62(void 0);
|
|
69773
70029
|
previous.getChildren().filter((item16) => {
|
|
69774
70030
|
return item16 !== directory && !current.has(item16);
|
|
69775
70031
|
}).forEach((item16) => {
|
|
@@ -69913,11 +70169,11 @@ function createPattern(matcher) {
|
|
|
69913
70169
|
if (matcher.path === string)
|
|
69914
70170
|
return true;
|
|
69915
70171
|
if (matcher.recursive) {
|
|
69916
|
-
const
|
|
69917
|
-
if (!
|
|
70172
|
+
const relative13 = sp2.relative(matcher.path, string);
|
|
70173
|
+
if (!relative13) {
|
|
69918
70174
|
return false;
|
|
69919
70175
|
}
|
|
69920
|
-
return !
|
|
70176
|
+
return !relative13.startsWith("..") && !sp2.isAbsolute(relative13);
|
|
69921
70177
|
}
|
|
69922
70178
|
return false;
|
|
69923
70179
|
};
|
|
@@ -72101,11 +72357,11 @@ var runWatchLoop = async (target, baseOptions) => {
|
|
|
72101
72357
|
ignored,
|
|
72102
72358
|
onBatch: (changed) => runIteration(changed)
|
|
72103
72359
|
});
|
|
72104
|
-
await new Promise((
|
|
72360
|
+
await new Promise((resolve62) => {
|
|
72105
72361
|
const onSigint = () => {
|
|
72106
72362
|
console.log();
|
|
72107
72363
|
console.log(dim("Stopping watcher\u2026"));
|
|
72108
|
-
|
|
72364
|
+
resolve62();
|
|
72109
72365
|
};
|
|
72110
72366
|
process.once("SIGINT", onSigint);
|
|
72111
72367
|
});
|
|
@@ -73487,10 +73743,10 @@ var runtimeSinceRef = (runtime) => {
|
|
|
73487
73743
|
if (parseGitLabMrUrl(runtime.source.repositoryUrl).ok) return null;
|
|
73488
73744
|
return runtime.baseRef;
|
|
73489
73745
|
};
|
|
73490
|
-
var fetchBaseRef = async (cloneDir, baseRef,
|
|
73746
|
+
var fetchBaseRef = async (cloneDir, baseRef, execFile7, env) => {
|
|
73491
73747
|
const branch = safeRemoteBranch(baseRef);
|
|
73492
73748
|
if (!branch) return;
|
|
73493
|
-
await
|
|
73749
|
+
await execFile7(
|
|
73494
73750
|
"git",
|
|
73495
73751
|
["fetch", "--depth", "50", "origin", `${branch}:refs/remotes/origin/${branch}`],
|
|
73496
73752
|
{
|
|
@@ -73499,7 +73755,7 @@ var fetchBaseRef = async (cloneDir, baseRef, execFile8, env) => {
|
|
|
73499
73755
|
}
|
|
73500
73756
|
);
|
|
73501
73757
|
};
|
|
73502
|
-
var prepareSource = async (runtimeDir, runtime,
|
|
73758
|
+
var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
|
|
73503
73759
|
const source = runtime.source;
|
|
73504
73760
|
if (source.mode === "local") return env.CODE_SENTINEL_SOURCE_WORKDIR?.trim() || "/work";
|
|
73505
73761
|
if (parseGitLabMrUrl(source.repositoryUrl).ok) return runtimeDir;
|
|
@@ -73508,14 +73764,14 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73508
73764
|
const githubPull = parseGitHubPullUrl(source.repositoryUrl);
|
|
73509
73765
|
if (githubPull.ok) {
|
|
73510
73766
|
const baseBranch = safeRemoteBranch(runtime.baseRef) ?? safeRemoteBranch(source.ref) ?? "main";
|
|
73511
|
-
await
|
|
73767
|
+
await execFile7(
|
|
73512
73768
|
"git",
|
|
73513
73769
|
["clone", "--no-checkout", "--depth", "1", githubPull.value.cloneUrl, cloneDir],
|
|
73514
73770
|
{
|
|
73515
73771
|
env: cloneEnv
|
|
73516
73772
|
}
|
|
73517
73773
|
);
|
|
73518
|
-
await
|
|
73774
|
+
await execFile7(
|
|
73519
73775
|
"git",
|
|
73520
73776
|
["fetch", "--depth", "50", "origin", `${baseBranch}:refs/remotes/origin/${baseBranch}`],
|
|
73521
73777
|
{
|
|
@@ -73523,7 +73779,7 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73523
73779
|
env: cloneEnv
|
|
73524
73780
|
}
|
|
73525
73781
|
);
|
|
73526
|
-
await
|
|
73782
|
+
await execFile7(
|
|
73527
73783
|
"git",
|
|
73528
73784
|
[
|
|
73529
73785
|
"fetch",
|
|
@@ -73537,7 +73793,7 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73537
73793
|
env: cloneEnv
|
|
73538
73794
|
}
|
|
73539
73795
|
);
|
|
73540
|
-
await
|
|
73796
|
+
await execFile7(
|
|
73541
73797
|
"git",
|
|
73542
73798
|
["checkout", "--detach", `refs/remotes/code-sentinel/pr-${githubPull.value.pullNumber}`],
|
|
73543
73799
|
{
|
|
@@ -73548,9 +73804,9 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73548
73804
|
return cloneDir;
|
|
73549
73805
|
}
|
|
73550
73806
|
const args = ["clone", "--depth", "1", "--branch", source.ref, source.repositoryUrl, cloneDir];
|
|
73551
|
-
await
|
|
73807
|
+
await execFile7("git", args, { env: cloneEnv });
|
|
73552
73808
|
if (shouldFetchBaseRef(runtime)) {
|
|
73553
|
-
await fetchBaseRef(cloneDir, runtime.baseRef,
|
|
73809
|
+
await fetchBaseRef(cloneDir, runtime.baseRef, execFile7, cloneEnv);
|
|
73554
73810
|
}
|
|
73555
73811
|
return cloneDir;
|
|
73556
73812
|
};
|
|
@@ -73572,7 +73828,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
|
|
|
73572
73828
|
let activePhase = "runtime-config";
|
|
73573
73829
|
try {
|
|
73574
73830
|
const fetchFn = deps.fetchFn ?? fetch;
|
|
73575
|
-
const
|
|
73831
|
+
const execFile7 = deps.execFile ?? execFileAsync3;
|
|
73576
73832
|
const confirmFn = deps.confirmFn ?? ((opts) => confirm(opts));
|
|
73577
73833
|
const interactive = isInteractive(env, deps.isTty);
|
|
73578
73834
|
const baseDir = env.CODE_SENTINEL_RUNTIME_DIR ?? await mkdtemp(
|
|
@@ -73636,7 +73892,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
|
|
|
73636
73892
|
} else {
|
|
73637
73893
|
phaseLog.start(activePhase, `mode=${runtime.source.mode}`);
|
|
73638
73894
|
}
|
|
73639
|
-
const workdir = await prepareSource(baseDir, runtime,
|
|
73895
|
+
const workdir = await prepareSource(baseDir, runtime, execFile7, env);
|
|
73640
73896
|
await access(workdir, constants.R_OK);
|
|
73641
73897
|
if (!mergeRequestSource) {
|
|
73642
73898
|
phaseLog.success(activePhase, `workdir=${workdir}`);
|
|
@@ -76692,248 +76948,6 @@ init_dist3();
|
|
|
76692
76948
|
init_dist7();
|
|
76693
76949
|
init_load();
|
|
76694
76950
|
init_git_filter();
|
|
76695
|
-
var exec = promisify(execFile$1);
|
|
76696
|
-
var MAVEN_BUNDLE_PREFIX = ".code-sentinel/maven-repository";
|
|
76697
|
-
var GO_OFFLINE = "org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline";
|
|
76698
|
-
var EFFECTIVE_SETTINGS = "org.apache.maven.plugins:maven-help-plugin:3.5.1:effective-settings";
|
|
76699
|
-
var runMaven = async (cwd, args) => {
|
|
76700
|
-
let command = "mvn";
|
|
76701
|
-
let commandArgs = [...args];
|
|
76702
|
-
if (process.platform === "win32") {
|
|
76703
|
-
const found = await exec("where.exe", ["mvn.cmd"], { encoding: "utf8" });
|
|
76704
|
-
const mavenHome = dirname(dirname(found.stdout.trim().split(/\r?\n/)[0] ?? ""));
|
|
76705
|
-
const boot = join(mavenHome, "boot");
|
|
76706
|
-
const launcher = readdirSync(boot).find((name) => /^plexus-classworlds-.*\.jar$/.test(name));
|
|
76707
|
-
if (!launcher) throw new Error("Kh\xF4ng t\xECm th\u1EA5y Maven launcher; ki\u1EC3m tra c\xE0i \u0111\u1EB7t Maven.");
|
|
76708
|
-
command = process.env.JAVA_HOME ? join(process.env.JAVA_HOME, "bin", "java.exe") : "java";
|
|
76709
|
-
commandArgs = [
|
|
76710
|
-
"-classpath",
|
|
76711
|
-
join(boot, launcher),
|
|
76712
|
-
`-Dclassworlds.conf=${join(mavenHome, "bin", "m2.conf")}`,
|
|
76713
|
-
`-Dmaven.home=${mavenHome}`,
|
|
76714
|
-
`-Dmaven.multiModuleProjectDirectory=${cwd}`,
|
|
76715
|
-
"org.codehaus.plexus.classworlds.launcher.Launcher",
|
|
76716
|
-
...args
|
|
76717
|
-
];
|
|
76718
|
-
}
|
|
76719
|
-
try {
|
|
76720
|
-
const result = await exec(command, commandArgs, {
|
|
76721
|
-
cwd,
|
|
76722
|
-
encoding: "utf8",
|
|
76723
|
-
timeout: 10 * 6e4,
|
|
76724
|
-
maxBuffer: 8 * 1024 * 1024
|
|
76725
|
-
});
|
|
76726
|
-
return { ok: true, output: result.stdout };
|
|
76727
|
-
} catch (error) {
|
|
76728
|
-
const result = error;
|
|
76729
|
-
if (result.code === "ENOENT") {
|
|
76730
|
-
throw new Error("C\u1EA7n c\xE0i Maven v\xE0 JDK tr\xEAn m\xE1y \u0111\u1EC3 t\u1EA3i th\u01B0 vi\u1EC7n tr\u01B0\u1EDBc khi ch\u1EA1y cs pentest.");
|
|
76731
|
-
}
|
|
76732
|
-
return { ok: false, output: `${result.stdout ?? ""}
|
|
76733
|
-
${result.stderr ?? ""}` };
|
|
76734
|
-
}
|
|
76735
|
-
};
|
|
76736
|
-
var existsOnCentral = async (path) => {
|
|
76737
|
-
const response = await fetch(`https://repo.maven.apache.org/maven2/${path}`, {
|
|
76738
|
-
method: "HEAD",
|
|
76739
|
-
signal: AbortSignal.timeout(15e3)
|
|
76740
|
-
});
|
|
76741
|
-
if (response.ok) return true;
|
|
76742
|
-
if (response.status === 404) return false;
|
|
76743
|
-
throw new Error(
|
|
76744
|
-
`Ch\u01B0a ki\u1EC3m tra \u0111\u01B0\u1EE3c Maven Central (HTTP ${response.status}); h\xE3y ch\u1EA1y l\u1EA1i cs pentest.`
|
|
76745
|
-
);
|
|
76746
|
-
};
|
|
76747
|
-
var xmlEscape = (text2) => text2.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
76748
|
-
var xmlDecode = (text2) => text2.replaceAll("<", "<").replaceAll(">", ">").replaceAll(""", '"').replaceAll("'", "'").replaceAll("&", "&");
|
|
76749
|
-
var appendXml = (xml, tag, content) => {
|
|
76750
|
-
if (new RegExp(`</${tag}>`).test(xml)) return xml.replace(`</${tag}>`, `${content}</${tag}>`);
|
|
76751
|
-
const empty2 = new RegExp(`<${tag}\\s*/>`);
|
|
76752
|
-
if (empty2.test(xml)) return xml.replace(empty2, `<${tag}>${content}</${tag}>`);
|
|
76753
|
-
return xml.replace("</settings>", `<${tag}>${content}</${tag}></settings>`);
|
|
76754
|
-
};
|
|
76755
|
-
var settingsWithLocalCache = (settings) => {
|
|
76756
|
-
const local = xmlDecode(
|
|
76757
|
-
settings.match(/<localRepository>\s*([^<]+)\s*<\/localRepository>/)?.[1]?.trim() ?? ""
|
|
76758
|
-
);
|
|
76759
|
-
if (!isAbsolute(local) || /<!DOCTYPE|<!ENTITY/i.test(settings)) {
|
|
76760
|
-
throw new Error("Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c \u0111\u01B0\u1EDDng d\u1EABn Maven local repository; ki\u1EC3m tra settings.xml.");
|
|
76761
|
-
}
|
|
76762
|
-
const url = xmlEscape(pathToFileURL(local).href);
|
|
76763
|
-
let merged = appendXml(
|
|
76764
|
-
settings,
|
|
76765
|
-
"profiles",
|
|
76766
|
-
`<profile><id>cs-pentest-cache</id><repositories><repository><id>cs-pentest-cache</id><url>${url}</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>cs-pentest-cache</id><url>${url}</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots></pluginRepository></pluginRepositories></profile>`
|
|
76767
|
-
);
|
|
76768
|
-
merged = appendXml(merged, "activeProfiles", "<activeProfile>cs-pentest-cache</activeProfile>");
|
|
76769
|
-
merged = appendXml(
|
|
76770
|
-
merged,
|
|
76771
|
-
"mirrors",
|
|
76772
|
-
`<mirror><id>cs-pentest-local-cache</id><mirrorOf>cs-pentest-cache</mirrorOf><url>${url}</url></mirror>`
|
|
76773
|
-
);
|
|
76774
|
-
return merged;
|
|
76775
|
-
};
|
|
76776
|
-
var repositoryFiles = (root) => {
|
|
76777
|
-
const result = [];
|
|
76778
|
-
const visit = (dir) => {
|
|
76779
|
-
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
76780
|
-
const path = join(dir, entry.name);
|
|
76781
|
-
if (entry.isDirectory()) visit(path);
|
|
76782
|
-
else if (entry.isFile()) result.push(relative(root, path).split(sep).join("/"));
|
|
76783
|
-
}
|
|
76784
|
-
};
|
|
76785
|
-
visit(root);
|
|
76786
|
-
return result.sort();
|
|
76787
|
-
};
|
|
76788
|
-
var isArtifact = (path) => {
|
|
76789
|
-
const parts = path.split("/");
|
|
76790
|
-
const file = parts.at(-1) ?? "";
|
|
76791
|
-
const artifact = parts.at(-3) ?? "";
|
|
76792
|
-
return parts.length >= 4 && parts.every((part) => /^[A-Za-z0-9._-]+$/.test(part) && part !== "..") && file.startsWith(`${artifact}-`) && /\.(?:pom|jar|aar|war|zip|gz|exe|so|dll)$/.test(file);
|
|
76793
|
-
};
|
|
76794
|
-
var coordinateFromPath = (path) => {
|
|
76795
|
-
const parts = path.split("/");
|
|
76796
|
-
return `${parts.slice(0, -3).join(".")}:${parts.at(-3)}:${parts.at(-2)}`;
|
|
76797
|
-
};
|
|
76798
|
-
var missingMavenCoordinates = (output2) => {
|
|
76799
|
-
const missing = /* @__PURE__ */ new Set();
|
|
76800
|
-
const causes = output2.matchAll(
|
|
76801
|
-
/(?:The following artifacts could not be resolved:|Could not (?:find|transfer) artifact|Failed to read artifact descriptor for|Missing) +([^\r\n]+)/g
|
|
76802
|
-
);
|
|
76803
|
-
for (const cause of causes) {
|
|
76804
|
-
for (const match of (cause[1] ?? "").matchAll(
|
|
76805
|
-
/\b[A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+:(?:jar|pom|aar|war|zip)(?::[A-Za-z0-9_.-]+){1,3}/g
|
|
76806
|
-
))
|
|
76807
|
-
missing.add(match[0]);
|
|
76808
|
-
}
|
|
76809
|
-
return [...missing];
|
|
76810
|
-
};
|
|
76811
|
-
var centralPathFor = (coordinate) => {
|
|
76812
|
-
const parts = coordinate.split(":");
|
|
76813
|
-
if (["compile", "runtime", "test", "provided", "system"].includes(parts.at(-1) ?? ""))
|
|
76814
|
-
parts.pop();
|
|
76815
|
-
const [group2 = "", artifact = "", type = "jar", ...suffix] = parts;
|
|
76816
|
-
const version2 = suffix.at(-1) ?? "";
|
|
76817
|
-
const classifier = suffix.length > 1 ? `-${suffix[0]}` : "";
|
|
76818
|
-
return `${group2.replaceAll(".", "/")}/${artifact}/${version2}/${artifact}-${version2}${classifier}.${type}`;
|
|
76819
|
-
};
|
|
76820
|
-
var resolutionError = async (output2, services) => {
|
|
76821
|
-
const missing = missingMavenCoordinates(output2);
|
|
76822
|
-
const privateMissing = (await Promise.all(
|
|
76823
|
-
missing.slice(0, 20).map(async (coordinate) => {
|
|
76824
|
-
try {
|
|
76825
|
-
return await services.existsOnCentral(centralPathFor(coordinate)) ? void 0 : coordinate;
|
|
76826
|
-
} catch {
|
|
76827
|
-
return void 0;
|
|
76828
|
-
}
|
|
76829
|
-
})
|
|
76830
|
-
)).filter((coordinate) => coordinate !== void 0);
|
|
76831
|
-
return new Error(
|
|
76832
|
-
[
|
|
76833
|
-
privateMissing.length ? `C\xF3 th\u01B0 vi\u1EC7n n\u1ED9i b\u1ED9 ho\u1EB7c ngo\xE0i Maven Central c\u1EA7n t\u1EA3i tr\xEAn m\xE1y: ${privateMissing.join(", ")}` : `M\xE1y ch\u01B0a t\u1EA3i \u0111\u1EE7 th\u01B0 vi\u1EC7n Maven${missing.length ? `: ${missing.join(", ")}` : "."}`,
|
|
76834
|
-
"B\u1EA1n c\u1EA7n k\u1EBFt n\u1ED1i VPN/kho Maven c\u1EE7a d\u1EF1 \xE1n v\xE0 t\u1EA3i th\u01B0 vi\u1EC7n v\u1EC1 m\xE1y (ho\u1EB7c c\xE0i JAR k\xE8m POM b\u1EB1ng mvn install:install-file), r\u1ED3i ch\u1EA1y l\u1EA1i cs pentest.",
|
|
76835
|
-
"Ch\u1EC9 khi t\u1EA3i \u0111\u1EE7 th\u01B0 vi\u1EC7n, ch\xFAng t\xF4i m\u1EDBi \u0111\xEDnh k\xE8m v\xE0o ZIP v\xE0 g\u1EEDi l\xEAn server. Ch\u01B0a upload source."
|
|
76836
|
-
].join(String.fromCharCode(10))
|
|
76837
|
-
);
|
|
76838
|
-
};
|
|
76839
|
-
var bundlePentestMavenDependencies = async (plan, services = { runMaven, existsOnCentral }) => {
|
|
76840
|
-
const stage = mkdtempSync(join(tmpdir(), "cs-pentest-maven-"));
|
|
76841
|
-
const cleanup = () => rmSync(stage, { recursive: true, force: true });
|
|
76842
|
-
const progress = setInterval(() => {
|
|
76843
|
-
process.stdout.write(" \u0110ang t\u1EA3i v\xE0 ki\u1EC3m tra th\u01B0 vi\u1EC7n Maven, vui l\xF2ng ch\u1EDD...\n");
|
|
76844
|
-
}, 15e3);
|
|
76845
|
-
progress.unref();
|
|
76846
|
-
try {
|
|
76847
|
-
const cwd = resolve(plan.repoRoot, plan.workspaceRoot);
|
|
76848
|
-
const effective = join(stage, "effective-settings.xml");
|
|
76849
|
-
const settings = join(stage, "client-settings.xml");
|
|
76850
|
-
const repo = join(stage, "repository");
|
|
76851
|
-
const common = [
|
|
76852
|
-
"-B",
|
|
76853
|
-
"-ntp",
|
|
76854
|
-
"-Dstyle.color=never",
|
|
76855
|
-
"-Dmaven.wagon.http.connectionTimeout=5000",
|
|
76856
|
-
"-Dmaven.wagon.http.readTimeout=30000",
|
|
76857
|
-
"-Dmaven.wagon.http.retryHandler.count=1"
|
|
76858
|
-
];
|
|
76859
|
-
const result = await services.runMaven(cwd, [
|
|
76860
|
-
...common,
|
|
76861
|
-
EFFECTIVE_SETTINGS,
|
|
76862
|
-
`-Doutput=${effective}`,
|
|
76863
|
-
"-DshowPasswords=true"
|
|
76864
|
-
]);
|
|
76865
|
-
if (!result.ok) throw await resolutionError(result.output, services);
|
|
76866
|
-
writeFileSync(settings, settingsWithLocalCache(readFileSync(effective, "utf8")), {
|
|
76867
|
-
mode: 384
|
|
76868
|
-
});
|
|
76869
|
-
mkdirSync(repo);
|
|
76870
|
-
const resolved = await services.runMaven(cwd, [
|
|
76871
|
-
...common,
|
|
76872
|
-
"-s",
|
|
76873
|
-
settings,
|
|
76874
|
-
`-Dmaven.repo.local=${repo}`,
|
|
76875
|
-
...plan.buildTarget ? ["-pl", plan.buildTarget, "-am"] : [],
|
|
76876
|
-
GO_OFFLINE,
|
|
76877
|
-
"-DexcludeReactor=true",
|
|
76878
|
-
`-DmarkersDirectory=${join(stage, "markers")}`
|
|
76879
|
-
]);
|
|
76880
|
-
if (!resolved.ok) throw await resolutionError(resolved.output, services);
|
|
76881
|
-
rmSync(effective, { force: true });
|
|
76882
|
-
rmSync(settings, { force: true });
|
|
76883
|
-
const candidates = repositoryFiles(repo).filter(isArtifact);
|
|
76884
|
-
const selected = [];
|
|
76885
|
-
let index2 = 0;
|
|
76886
|
-
let stopped = false;
|
|
76887
|
-
const probes = await Promise.allSettled(
|
|
76888
|
-
Array.from({ length: Math.min(6, candidates.length) }, async () => {
|
|
76889
|
-
while (!stopped && index2 < candidates.length) {
|
|
76890
|
-
const path = candidates[index2++];
|
|
76891
|
-
try {
|
|
76892
|
-
if (path && !await services.existsOnCentral(path)) selected.push(path);
|
|
76893
|
-
} catch (error) {
|
|
76894
|
-
stopped = true;
|
|
76895
|
-
throw error;
|
|
76896
|
-
}
|
|
76897
|
-
}
|
|
76898
|
-
})
|
|
76899
|
-
);
|
|
76900
|
-
for (const probe of probes) if (probe.status === "rejected") throw probe.reason;
|
|
76901
|
-
const entries = selected.sort().map((path) => ({ name: `${MAVEN_BUNDLE_PREFIX}/${path}`, absolutePath: join(repo, path) }));
|
|
76902
|
-
for (const dir of new Set(selected.map(dirname).filter((path) => path.endsWith("-SNAPSHOT")))) {
|
|
76903
|
-
const parts = dir.split("/");
|
|
76904
|
-
const metadata = join(stage, "snapshot-metadata", dir, "maven-metadata-local.xml");
|
|
76905
|
-
mkdirSync(dirname(metadata), { recursive: true });
|
|
76906
|
-
writeFileSync(
|
|
76907
|
-
metadata,
|
|
76908
|
-
`<metadata><groupId>${xmlEscape(parts.slice(0, -2).join("."))}</groupId><artifactId>${xmlEscape(parts.at(-2) ?? "")}</artifactId><version>${xmlEscape(parts.at(-1) ?? "")}</version><versioning><snapshot><localCopy>true</localCopy></snapshot></versioning></metadata>`
|
|
76909
|
-
);
|
|
76910
|
-
entries.push({
|
|
76911
|
-
name: `${MAVEN_BUNDLE_PREFIX}/${dir}/maven-metadata-local.xml`,
|
|
76912
|
-
absolutePath: metadata
|
|
76913
|
-
});
|
|
76914
|
-
}
|
|
76915
|
-
for (const entry of entries) {
|
|
76916
|
-
const target = join(stage, "bundle", entry.name);
|
|
76917
|
-
mkdirSync(dirname(target), { recursive: true });
|
|
76918
|
-
copyFileSync(entry.absolutePath, target);
|
|
76919
|
-
}
|
|
76920
|
-
return {
|
|
76921
|
-
entries: entries.map((entry) => ({
|
|
76922
|
-
...entry,
|
|
76923
|
-
absolutePath: join(stage, "bundle", entry.name)
|
|
76924
|
-
})),
|
|
76925
|
-
artifacts: [...new Set(selected.map(coordinateFromPath))].sort(),
|
|
76926
|
-
cleanup
|
|
76927
|
-
};
|
|
76928
|
-
} catch (error) {
|
|
76929
|
-
cleanup();
|
|
76930
|
-
throw error;
|
|
76931
|
-
} finally {
|
|
76932
|
-
clearInterval(progress);
|
|
76933
|
-
}
|
|
76934
|
-
};
|
|
76935
|
-
|
|
76936
|
-
// src/commands/package.command.ts
|
|
76937
76951
|
var HYPOTHESIS_ENTRY = ".code-sentinel/auth-hypothesis.json";
|
|
76938
76952
|
var DATA_SEED_HYPOTHESIS_ENTRY = ".code-sentinel/data-seed-hypothesis.json";
|
|
76939
76953
|
var AI_TRIAGE_ENTRY = ".code-sentinel/ai-triage-assessment.json";
|
|
@@ -77162,7 +77176,7 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77162
77176
|
const cleanEntries = rawPlan.entries.filter(
|
|
77163
77177
|
(e) => e.name !== HYPOTHESIS_ENTRY && e.name !== DATA_SEED_HYPOTHESIS_ENTRY && e.name !== AI_TRIAGE_ENTRY && !e.name.startsWith(".code-sentinel/")
|
|
77164
77178
|
);
|
|
77165
|
-
|
|
77179
|
+
const plan = {
|
|
77166
77180
|
...rawPlan,
|
|
77167
77181
|
entries: cleanEntries,
|
|
77168
77182
|
sourceRevision: gitSourceRevision(
|
|
@@ -77179,27 +77193,13 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77179
77193
|
};
|
|
77180
77194
|
const zipStem = plan.modulePath === "." || plan.modulePath === "" ? basename(plan.repoRoot) || "service" : basename(plan.modulePath.replace(/\/$/, "")) || "service";
|
|
77181
77195
|
const outPath = resolve(options.out ?? `${zipStem}.zip`);
|
|
77182
|
-
let dependencyBundle;
|
|
77183
77196
|
let bytes;
|
|
77184
77197
|
try {
|
|
77185
|
-
if (options.resolveMavenDependencies && plan.buildTool === "maven") {
|
|
77186
|
-
process.stdout.write("\u0110ang t\u1EA3i v\xE0 ki\u1EC3m tra th\u01B0 vi\u1EC7n Maven tr\xEAn m\xE1y tr\u01B0\u1EDBc khi \u0111\xF3ng g\xF3i...\n");
|
|
77187
|
-
dependencyBundle = await bundlePentestMavenDependencies(plan);
|
|
77188
|
-
plan = withAdditionalPackageEntries(plan, dependencyBundle.entries);
|
|
77189
|
-
if (dependencyBundle.artifacts.length > 0) {
|
|
77190
|
-
process.stdout.write(
|
|
77191
|
-
`\u0110\xEDnh k\xE8m th\u01B0 vi\u1EC7n n\u1ED9i b\u1ED9/ngo\xE0i Maven Central: ${dependencyBundle.artifacts.join(", ")}
|
|
77192
|
-
`
|
|
77193
|
-
);
|
|
77194
|
-
}
|
|
77195
|
-
}
|
|
77196
77198
|
bytes = writePackageZip(plan, outPath);
|
|
77197
77199
|
} catch (error) {
|
|
77198
77200
|
process.stderr.write(`cs package: ${error instanceof Error ? error.message : String(error)}
|
|
77199
77201
|
`);
|
|
77200
77202
|
return 2;
|
|
77201
|
-
} finally {
|
|
77202
|
-
dependencyBundle?.cleanup();
|
|
77203
77203
|
}
|
|
77204
77204
|
process.stdout.write(`Packaged ${plan.modulePath} \u2192 ${outPath} (${formatBytes(bytes)})
|
|
77205
77205
|
`);
|
|
@@ -77241,61 +77241,74 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77241
77241
|
`
|
|
77242
77242
|
);
|
|
77243
77243
|
}
|
|
77244
|
-
|
|
77245
|
-
|
|
77246
|
-
|
|
77244
|
+
if (!options.push) {
|
|
77245
|
+
const report2 = preflightArchive(outPath);
|
|
77246
|
+
const decision = classifyPreflight({ ...report2.signals, staticAssessmentCompleted: true });
|
|
77247
|
+
if (decision.decided) {
|
|
77248
|
+
process.stdout.write(
|
|
77249
|
+
`
|
|
77250
|
+
\u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
|
|
77251
|
+
`
|
|
77252
|
+
);
|
|
77253
|
+
for (const evidence18 of report2.evidence.slice(0, 5)) {
|
|
77254
|
+
process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
|
|
77255
|
+
`);
|
|
77256
|
+
}
|
|
77257
|
+
return 1;
|
|
77258
|
+
}
|
|
77247
77259
|
process.stdout.write("\n\u2713 preflight: ready to build\n");
|
|
77248
|
-
|
|
77249
|
-
|
|
77250
|
-
|
|
77251
|
-
|
|
77252
|
-
|
|
77253
|
-
|
|
77254
|
-
|
|
77255
|
-
|
|
77256
|
-
|
|
77257
|
-
|
|
77258
|
-
|
|
77259
|
-
|
|
77260
|
-
|
|
77261
|
-
|
|
77262
|
-
|
|
77263
|
-
|
|
77264
|
-
|
|
77265
|
-
|
|
77266
|
-
}
|
|
77267
|
-
|
|
77268
|
-
|
|
77269
|
-
|
|
77260
|
+
return 0;
|
|
77261
|
+
}
|
|
77262
|
+
if (options.push && link) {
|
|
77263
|
+
process.stdout.write("\n\u{1F680} \u0110ang \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Dashboard...\n");
|
|
77264
|
+
try {
|
|
77265
|
+
const url = `${serverUrl.replace(/\/+$/, "")}/api/projects/${encodeURIComponent(link.projectId)}/pentest-requests`;
|
|
77266
|
+
const formData = new FormData();
|
|
77267
|
+
formData.append("sourceKind", "archive");
|
|
77268
|
+
formData.append("archive", new Blob([readFileSync(outPath)]), basename(outPath));
|
|
77269
|
+
formData.append("useAi", "true");
|
|
77270
|
+
if (link.codebaseId) {
|
|
77271
|
+
formData.append("repositoryId", link.codebaseId);
|
|
77272
|
+
}
|
|
77273
|
+
if (options.preferredBuildScript) {
|
|
77274
|
+
formData.append("preferredBuildScript", options.preferredBuildScript);
|
|
77275
|
+
}
|
|
77276
|
+
const res = await fetch(url, {
|
|
77277
|
+
method: "POST",
|
|
77278
|
+
headers: { authorization: `Bearer ${token}` },
|
|
77279
|
+
body: formData
|
|
77280
|
+
});
|
|
77281
|
+
if (!res.ok) {
|
|
77282
|
+
const text2 = await res.text().catch(() => "");
|
|
77283
|
+
console.error(red(`
|
|
77270
77284
|
Server t\u1EEB ch\u1ED1i y\xEAu c\u1EA7u (HTTP ${res.status}): ${text2}`));
|
|
77271
|
-
|
|
77272
|
-
|
|
77273
|
-
|
|
77274
|
-
|
|
77275
|
-
|
|
77276
|
-
|
|
77277
|
-
|
|
77285
|
+
return 2;
|
|
77286
|
+
}
|
|
77287
|
+
const body = await res.json().catch(() => ({}));
|
|
77288
|
+
const createdId = body.request?.id ?? body.id;
|
|
77289
|
+
console.log(green(`[\u2713] \u0110\u1EA9y th\xE0nh c\xF4ng! \u0110\xE3 t\u1EA1o request ID: ${createdId ?? "unknown"}`));
|
|
77290
|
+
console.log(
|
|
77291
|
+
`\u{1F517} Link theo d\xF5i: ${serverUrl.replace(/\/+$/, "")}/runs?project=${encodeURIComponent(link.projectId)}&type=pentest`
|
|
77292
|
+
);
|
|
77293
|
+
if (body.preflightWarning) {
|
|
77294
|
+
process.stderr.write(
|
|
77295
|
+
`
|
|
77296
|
+
\u26A0 Server preflight: ${body.preflightWarning.stopReason ?? "c\u1EA7n ki\u1EC3m tra c\u1EA5u h\xECnh build"}
|
|
77297
|
+
${body.preflightWarning.hint ?? "Xem chi ti\u1EBFt tr\xEAn Dashboard."}
|
|
77298
|
+
`
|
|
77278
77299
|
);
|
|
77279
|
-
|
|
77280
|
-
|
|
77281
|
-
\u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
|
|
77282
|
-
}
|
|
77283
|
-
} catch (e) {
|
|
77300
|
+
}
|
|
77301
|
+
if (body.request?.status === "failed" && body.request.failureReason) {
|
|
77284
77302
|
console.error(red(`
|
|
77285
|
-
|
|
77286
|
-
return 2;
|
|
77303
|
+
\u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
|
|
77287
77304
|
}
|
|
77305
|
+
} catch (e) {
|
|
77306
|
+
console.error(red(`
|
|
77307
|
+
L\u1ED7i m\u1EA1ng khi upload: ${e instanceof Error ? e.message : String(e)}`));
|
|
77308
|
+
return 2;
|
|
77288
77309
|
}
|
|
77289
|
-
return 0;
|
|
77290
77310
|
}
|
|
77291
|
-
|
|
77292
|
-
\u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
|
|
77293
|
-
`);
|
|
77294
|
-
for (const evidence18 of report2.evidence.slice(0, 5)) {
|
|
77295
|
-
process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
|
|
77296
|
-
`);
|
|
77297
|
-
}
|
|
77298
|
-
return 1;
|
|
77311
|
+
return 0;
|
|
77299
77312
|
};
|
|
77300
77313
|
init_dist2();
|
|
77301
77314
|
init_dist3();
|
|
@@ -83709,7 +83722,6 @@ var buildProgram = () => {
|
|
|
83709
83722
|
targetDir,
|
|
83710
83723
|
push: true,
|
|
83711
83724
|
// Always push by default for pentest
|
|
83712
|
-
resolveMavenDependencies: true,
|
|
83713
83725
|
...typeof options.preferredBuildScript === "string" && options.preferredBuildScript.length > 0 ? { preferredBuildScript: options.preferredBuildScript } : {}
|
|
83714
83726
|
});
|
|
83715
83727
|
}
|