@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/bin.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, mkdir, writeFile, rename, access, mkdtemp, readdir, rm, stat, unlink, chmod, lstat, realpath as realpath$1, open } from 'fs/promises';
|
|
11
11
|
import * as nativeFs from 'fs';
|
|
12
|
-
import { existsSync, readFileSync, mkdtempSync, statSync, rmSync, constants, mkdirSync, createReadStream, realpathSync, readdirSync, writeFileSync,
|
|
12
|
+
import { existsSync, readFileSync, mkdtempSync, statSync, rmSync, constants, mkdirSync, 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(
|
|
@@ -61233,7 +61464,7 @@ var SecretCommandError = class extends Error {
|
|
|
61233
61464
|
code;
|
|
61234
61465
|
};
|
|
61235
61466
|
var nativeRunner = {
|
|
61236
|
-
run: (command, args, input4) => new Promise((
|
|
61467
|
+
run: (command, args, input4) => new Promise((resolve62, reject) => {
|
|
61237
61468
|
const child = spawn(command, args, { stdio: ["pipe", "pipe", "pipe"] });
|
|
61238
61469
|
let stdout = "";
|
|
61239
61470
|
let stderr = "";
|
|
@@ -61247,7 +61478,7 @@ var nativeRunner = {
|
|
|
61247
61478
|
});
|
|
61248
61479
|
child.on("error", (error) => reject(error));
|
|
61249
61480
|
child.on("close", (code2) => {
|
|
61250
|
-
if (code2 === 0)
|
|
61481
|
+
if (code2 === 0) resolve62(stdout);
|
|
61251
61482
|
else reject(new SecretCommandError(command, code2, stderr.trim() || `${command} failed`));
|
|
61252
61483
|
});
|
|
61253
61484
|
if (input4 !== void 0) child.stdin.end(input4);
|
|
@@ -61297,109 +61528,24 @@ var LinuxSecretServiceStore = class {
|
|
|
61297
61528
|
}
|
|
61298
61529
|
}
|
|
61299
61530
|
};
|
|
61300
|
-
var
|
|
61301
|
-
|
|
61302
|
-
|
|
61303
|
-
|
|
61304
|
-
using System;
|
|
61305
|
-
using System.Runtime.InteropServices;
|
|
61306
|
-
public static class CodeSentinelCredentialNative {
|
|
61307
|
-
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
|
61308
|
-
public struct CREDENTIAL {
|
|
61309
|
-
public UInt32 Flags; public UInt32 Type; public IntPtr TargetName; public IntPtr Comment;
|
|
61310
|
-
public System.Runtime.InteropServices.ComTypes.FILETIME LastWritten;
|
|
61311
|
-
public UInt32 CredentialBlobSize; public IntPtr CredentialBlob; public Int32 Persist; public UInt32 AttributeCount;
|
|
61312
|
-
public IntPtr Attributes; public IntPtr TargetAlias; public IntPtr UserName;
|
|
61313
|
-
}
|
|
61314
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61315
|
-
public static extern bool CredRead(string target, UInt32 type, UInt32 flags, out IntPtr credentialPtr);
|
|
61316
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61317
|
-
public static extern bool CredWrite([In] ref CREDENTIAL credential, UInt32 flags);
|
|
61318
|
-
[DllImport("Advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
61319
|
-
public static extern bool CredDelete(string target, UInt32 type, UInt32 flags);
|
|
61320
|
-
[DllImport("Advapi32.dll", SetLastError = true)]
|
|
61321
|
-
public static extern void CredFree(IntPtr credential);
|
|
61322
|
-
}
|
|
61323
|
-
'@
|
|
61324
|
-
Add-Type -TypeDefinition $native
|
|
61325
|
-
`;
|
|
61326
|
-
var encodedPowerShell = (script) => Buffer.from(script, "utf16le").toString("base64");
|
|
61327
|
-
var powerShellTarget = (service, account) => `${service}:${account}`;
|
|
61531
|
+
var nativeWindowsEntry = async (service, account) => {
|
|
61532
|
+
const { AsyncEntry } = await import('@napi-rs/keyring');
|
|
61533
|
+
return AsyncEntry.withTarget(`${service}:${account}`, service, account);
|
|
61534
|
+
};
|
|
61328
61535
|
var WindowsCredentialManagerStore = class {
|
|
61329
|
-
constructor(
|
|
61330
|
-
this.
|
|
61331
|
-
}
|
|
61332
|
-
commands;
|
|
61333
|
-
run(target, body, input4) {
|
|
61334
|
-
return this.commands.run(
|
|
61335
|
-
"powershell.exe",
|
|
61336
|
-
[
|
|
61337
|
-
"-NoProfile",
|
|
61338
|
-
"-NonInteractive",
|
|
61339
|
-
"-EncodedCommand",
|
|
61340
|
-
encodedPowerShell(powershellPrelude(target) + body)
|
|
61341
|
-
],
|
|
61342
|
-
input4
|
|
61343
|
-
);
|
|
61536
|
+
constructor(entry = nativeWindowsEntry) {
|
|
61537
|
+
this.entry = entry;
|
|
61344
61538
|
}
|
|
61539
|
+
entry;
|
|
61345
61540
|
async read(service, account) {
|
|
61346
|
-
const
|
|
61347
|
-
|
|
61348
|
-
`
|
|
61349
|
-
$credentialPtr = [IntPtr]::Zero
|
|
61350
|
-
if (-not [CodeSentinelCredentialNative]::CredRead($target, 1, 0, [ref] $credentialPtr)) {
|
|
61351
|
-
if ([Runtime.InteropServices.Marshal]::GetLastWin32Error() -eq 1168) { exit 0 }
|
|
61352
|
-
throw "Credential Manager read failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61353
|
-
}
|
|
61354
|
-
try {
|
|
61355
|
-
$credential = [Runtime.InteropServices.Marshal]::PtrToStructure($credentialPtr, [type][CodeSentinelCredentialNative+CREDENTIAL])
|
|
61356
|
-
$bytes = New-Object byte[] $credential.CredentialBlobSize
|
|
61357
|
-
[Runtime.InteropServices.Marshal]::Copy($credential.CredentialBlob, $bytes, 0, $bytes.Length)
|
|
61358
|
-
[Console]::Out.WriteLine("___CS_CLI_B64_START___$([Convert]::ToBase64String($bytes))___CS_CLI_B64_END___")
|
|
61359
|
-
} finally { [CodeSentinelCredentialNative]::CredFree($credentialPtr) }
|
|
61360
|
-
`
|
|
61361
|
-
);
|
|
61362
|
-
const match = output2.match(/___CS_CLI_B64_START___(.*?)___CS_CLI_B64_END___/);
|
|
61363
|
-
if (match?.[1]) return Buffer.from(match[1], "base64").toString("utf8");
|
|
61364
|
-
return null;
|
|
61541
|
+
const bytes = await (await this.entry(service, account)).getSecret();
|
|
61542
|
+
return bytes === void 0 ? null : Buffer.from(bytes).toString("utf8");
|
|
61365
61543
|
}
|
|
61366
61544
|
async write(service, account, value) {
|
|
61367
|
-
await this.
|
|
61368
|
-
powerShellTarget(service, account),
|
|
61369
|
-
`
|
|
61370
|
-
$bytes = [Convert]::FromBase64String([Console]::In.ReadToEnd())
|
|
61371
|
-
$credential = New-Object CodeSentinelCredentialNative+CREDENTIAL
|
|
61372
|
-
$credential.Type = 1
|
|
61373
|
-
$credential.TargetName = [Runtime.InteropServices.Marshal]::StringToCoTaskMemUni($target)
|
|
61374
|
-
$credential.UserName = [Runtime.InteropServices.Marshal]::StringToCoTaskMemUni('Code Sentinel CLI')
|
|
61375
|
-
$credential.CredentialBlobSize = $bytes.Length
|
|
61376
|
-
$credential.Persist = 2
|
|
61377
|
-
$credential.CredentialBlob = [Runtime.InteropServices.Marshal]::AllocCoTaskMem($bytes.Length)
|
|
61378
|
-
try {
|
|
61379
|
-
[Runtime.InteropServices.Marshal]::Copy($bytes, 0, $credential.CredentialBlob, $bytes.Length)
|
|
61380
|
-
if (-not [CodeSentinelCredentialNative]::CredWrite([ref] $credential, 0)) {
|
|
61381
|
-
throw "Credential Manager write failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61382
|
-
}
|
|
61383
|
-
} finally {
|
|
61384
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.TargetName)
|
|
61385
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.UserName)
|
|
61386
|
-
[Runtime.InteropServices.Marshal]::FreeCoTaskMem($credential.CredentialBlob)
|
|
61387
|
-
}
|
|
61388
|
-
`,
|
|
61389
|
-
Buffer.from(value, "utf8").toString("base64")
|
|
61390
|
-
);
|
|
61545
|
+
await (await this.entry(service, account)).setSecret(Buffer.from(value, "utf8"));
|
|
61391
61546
|
}
|
|
61392
61547
|
async remove(service, account) {
|
|
61393
|
-
await this.
|
|
61394
|
-
powerShellTarget(service, account),
|
|
61395
|
-
`
|
|
61396
|
-
if (-not [CodeSentinelCredentialNative]::CredDelete($target, 1, 0)) {
|
|
61397
|
-
if ([Runtime.InteropServices.Marshal]::GetLastWin32Error() -ne 1168) {
|
|
61398
|
-
throw "Credential Manager delete failed: $([Runtime.InteropServices.Marshal]::GetLastWin32Error())"
|
|
61399
|
-
}
|
|
61400
|
-
}
|
|
61401
|
-
`
|
|
61402
|
-
);
|
|
61548
|
+
await (await this.entry(service, account)).deleteCredential();
|
|
61403
61549
|
}
|
|
61404
61550
|
};
|
|
61405
61551
|
var createPlatformSecretStore = (platform = process.platform) => {
|
|
@@ -61839,6 +61985,88 @@ var buildRuleOverrides = (rulesCfg) => {
|
|
|
61839
61985
|
};
|
|
61840
61986
|
};
|
|
61841
61987
|
|
|
61988
|
+
// src/pentest/persistent-cache.ts
|
|
61989
|
+
init_dist4();
|
|
61990
|
+
var MAX_TTL_SECONDS = 7 * 24 * 60 * 60;
|
|
61991
|
+
function createPentestCache(logger, discriminator) {
|
|
61992
|
+
const root = process.env.CS_PENTEST_CACHE_DIR;
|
|
61993
|
+
const project = process.env.CS_PENTEST_CACHE_PROJECT;
|
|
61994
|
+
const image = process.env.CS_PENTEST_CACHE_IMAGE;
|
|
61995
|
+
const source = process.env.CS_PENTEST_SOURCE_SHA256;
|
|
61996
|
+
if (!root || !isAbsolute(root) || !project || !image || !source) {
|
|
61997
|
+
return createInMemoryCache();
|
|
61998
|
+
}
|
|
61999
|
+
const scope = createHash("sha256").update(JSON.stringify([1, project, image, source, discriminator])).digest("hex");
|
|
62000
|
+
const directory = join(root, scope);
|
|
62001
|
+
let hits = 0;
|
|
62002
|
+
const pathOf2 = (namespace, key) => join(directory, `${namespace}-${createHash("sha256").update(key).digest("hex")}.json`);
|
|
62003
|
+
return {
|
|
62004
|
+
async get(namespace, key) {
|
|
62005
|
+
const path = pathOf2(namespace, key);
|
|
62006
|
+
try {
|
|
62007
|
+
const entry = JSON.parse(await readFile(path, "utf8"));
|
|
62008
|
+
if (entry.key !== key || !Number.isFinite(entry.expiresAt)) return null;
|
|
62009
|
+
if (entry.expiresAt <= Date.now()) {
|
|
62010
|
+
await unlink(path).catch(() => {
|
|
62011
|
+
});
|
|
62012
|
+
return null;
|
|
62013
|
+
}
|
|
62014
|
+
hits++;
|
|
62015
|
+
if (hits === 1 || hits % 100 === 0) {
|
|
62016
|
+
logger.info({ namespace, hits }, "Pentest persistent cache hit");
|
|
62017
|
+
}
|
|
62018
|
+
return entry.value;
|
|
62019
|
+
} catch (error) {
|
|
62020
|
+
if (error.code !== "ENOENT") {
|
|
62021
|
+
logger.warn({ err: error, namespace }, "Pentest cache read failed; recomputing");
|
|
62022
|
+
}
|
|
62023
|
+
return null;
|
|
62024
|
+
}
|
|
62025
|
+
},
|
|
62026
|
+
async set(namespace, key, value, ttlSeconds) {
|
|
62027
|
+
const path = pathOf2(namespace, key);
|
|
62028
|
+
const temporary = `${path}.${randomUUID()}.tmp`;
|
|
62029
|
+
try {
|
|
62030
|
+
await mkdir(directory, { recursive: true, mode: 448 });
|
|
62031
|
+
await writeFile(
|
|
62032
|
+
temporary,
|
|
62033
|
+
JSON.stringify({
|
|
62034
|
+
key,
|
|
62035
|
+
expiresAt: Date.now() + Math.min(ttlSeconds ?? MAX_TTL_SECONDS, MAX_TTL_SECONDS) * 1e3,
|
|
62036
|
+
value
|
|
62037
|
+
}),
|
|
62038
|
+
{ mode: 384, flag: "wx" }
|
|
62039
|
+
);
|
|
62040
|
+
await rename(temporary, path);
|
|
62041
|
+
} catch (error) {
|
|
62042
|
+
logger.warn({ err: error, namespace }, "Pentest cache write failed; continuing");
|
|
62043
|
+
} finally {
|
|
62044
|
+
await unlink(temporary).catch(() => {
|
|
62045
|
+
});
|
|
62046
|
+
}
|
|
62047
|
+
},
|
|
62048
|
+
async invalidate(namespace, predicate) {
|
|
62049
|
+
let removed = 0;
|
|
62050
|
+
for (const file of await readdir(directory).catch(() => [])) {
|
|
62051
|
+
if (!file.startsWith(`${namespace}-`) || !file.endsWith(".json")) continue;
|
|
62052
|
+
try {
|
|
62053
|
+
const path = join(directory, file);
|
|
62054
|
+
const entry = JSON.parse(await readFile(path, "utf8"));
|
|
62055
|
+
if (typeof entry.key === "string" && predicate(entry.key)) {
|
|
62056
|
+
await unlink(path);
|
|
62057
|
+
removed++;
|
|
62058
|
+
}
|
|
62059
|
+
} catch {
|
|
62060
|
+
}
|
|
62061
|
+
}
|
|
62062
|
+
return removed;
|
|
62063
|
+
},
|
|
62064
|
+
async clear(namespace) {
|
|
62065
|
+
await this.invalidate(namespace, () => true);
|
|
62066
|
+
}
|
|
62067
|
+
};
|
|
62068
|
+
}
|
|
62069
|
+
|
|
61842
62070
|
// src/pentest/fold-rules.ts
|
|
61843
62071
|
var FOLD_STATIC_RULE_IDS = [
|
|
61844
62072
|
...new Set(REVIEW_SIGNAL_MAP.flatMap((spec) => spec.ruleIds))
|
|
@@ -61909,9 +62137,29 @@ var runFoldStaticRules = async (input4) => {
|
|
|
61909
62137
|
if (activeScopes) staged = staged.filter((r) => ruleMatchesActiveScopes(r.scope, activeScopes));
|
|
61910
62138
|
const rules = staged.map(overrides.applyOverrides);
|
|
61911
62139
|
if (rules.length === 0) return { findings: [], ranRuleIds: [], filesScanned: files.length };
|
|
62140
|
+
const cache3 = createPentestCache(logger, JSON.stringify(input4.config));
|
|
62141
|
+
const cacheKey = createHash("sha256").update(JSON.stringify([files.map((file) => [file.path, file.hash]).sort(), rules])).digest("hex");
|
|
62142
|
+
if (input4.ai === void 0 && notInCatalog.length === 0) {
|
|
62143
|
+
const cached = await cache3.get("rule", cacheKey);
|
|
62144
|
+
if (cached !== null) return cached;
|
|
62145
|
+
}
|
|
62146
|
+
let degraded = false;
|
|
62147
|
+
const executionLogger = new Proxy(logger, {
|
|
62148
|
+
get(object, property) {
|
|
62149
|
+
const method = Reflect.get(object, property);
|
|
62150
|
+
if (property === "warn" || property === "error") {
|
|
62151
|
+
return (...args) => {
|
|
62152
|
+
degraded = true;
|
|
62153
|
+
return Reflect.apply(method, object, args);
|
|
62154
|
+
};
|
|
62155
|
+
}
|
|
62156
|
+
return typeof method === "function" ? method.bind(object) : method;
|
|
62157
|
+
}
|
|
62158
|
+
});
|
|
61912
62159
|
const executor = createStaticExecutor({
|
|
61913
62160
|
parser: createParser(),
|
|
61914
|
-
logger,
|
|
62161
|
+
logger: executionLogger,
|
|
62162
|
+
cache: cache3,
|
|
61915
62163
|
ruleOptionsResolver: overrides.ruleOptionsResolver,
|
|
61916
62164
|
...overrides.hasPathOverrides ? {
|
|
61917
62165
|
findingPostFilter: (file, f) => overrides.applyPathOverrides(file, f)
|
|
@@ -61964,7 +62212,15 @@ var runFoldStaticRules = async (input4) => {
|
|
|
61964
62212
|
if (index2 >= 0) findings2[index2] = { ...finding, snippet };
|
|
61965
62213
|
}
|
|
61966
62214
|
}
|
|
61967
|
-
|
|
62215
|
+
const result = {
|
|
62216
|
+
findings: findings2,
|
|
62217
|
+
ranRuleIds: rules.map((r) => r.id).sort(),
|
|
62218
|
+
filesScanned: files.length
|
|
62219
|
+
};
|
|
62220
|
+
if (input4.ai === void 0 && notInCatalog.length === 0 && !degraded) {
|
|
62221
|
+
await cache3.set("rule", cacheKey, result);
|
|
62222
|
+
}
|
|
62223
|
+
return result;
|
|
61968
62224
|
};
|
|
61969
62225
|
|
|
61970
62226
|
// src/pentest/fold-ai-rules.ts
|
|
@@ -62027,7 +62283,7 @@ var runFoldAiRules = async (input4) => {
|
|
|
62027
62283
|
const tracker = createAiTracker({ provider: client.name });
|
|
62028
62284
|
const aiExec = createAiExecutor({
|
|
62029
62285
|
client,
|
|
62030
|
-
cache:
|
|
62286
|
+
cache: createPentestCache(logger, JSON.stringify(modelConfig)),
|
|
62031
62287
|
baseDir: builtinRulesDir,
|
|
62032
62288
|
logger,
|
|
62033
62289
|
model,
|
|
@@ -65093,7 +65349,7 @@ var openBrowser = async (url) => {
|
|
|
65093
65349
|
else await execFile3("xdg-open", [url]);
|
|
65094
65350
|
};
|
|
65095
65351
|
var credentialStore = () => createPlatformCredentialStore();
|
|
65096
|
-
var sleep = (milliseconds) => new Promise((
|
|
65352
|
+
var sleep = (milliseconds) => new Promise((resolve62) => setTimeout(resolve62, milliseconds));
|
|
65097
65353
|
var defaults = () => ({
|
|
65098
65354
|
store: credentialStore(),
|
|
65099
65355
|
start: startDeviceAuthorization,
|
|
@@ -69604,9 +69860,9 @@ var NodeFsHandler = class {
|
|
|
69604
69860
|
if (this.fsw.closed) {
|
|
69605
69861
|
return;
|
|
69606
69862
|
}
|
|
69607
|
-
const
|
|
69863
|
+
const dirname35 = sp2.dirname(file);
|
|
69608
69864
|
const basename14 = sp2.basename(file);
|
|
69609
|
-
const parent = this.fsw._getWatchedDir(
|
|
69865
|
+
const parent = this.fsw._getWatchedDir(dirname35);
|
|
69610
69866
|
let prevStats = stats;
|
|
69611
69867
|
if (parent.has(basename14))
|
|
69612
69868
|
return;
|
|
@@ -69633,7 +69889,7 @@ var NodeFsHandler = class {
|
|
|
69633
69889
|
prevStats = newStats2;
|
|
69634
69890
|
}
|
|
69635
69891
|
} catch (error) {
|
|
69636
|
-
this.fsw._remove(
|
|
69892
|
+
this.fsw._remove(dirname35, basename14);
|
|
69637
69893
|
}
|
|
69638
69894
|
} else if (parent.has(basename14)) {
|
|
69639
69895
|
const at = newStats.atimeMs;
|
|
@@ -69730,7 +69986,7 @@ var NodeFsHandler = class {
|
|
|
69730
69986
|
this._addToNodeFs(path, initialAdd, wh, depth + 1);
|
|
69731
69987
|
}
|
|
69732
69988
|
}).on(EV.ERROR, this._boundHandleError);
|
|
69733
|
-
return new Promise((
|
|
69989
|
+
return new Promise((resolve62, reject) => {
|
|
69734
69990
|
if (!stream)
|
|
69735
69991
|
return reject();
|
|
69736
69992
|
stream.once(STR_END, () => {
|
|
@@ -69739,7 +69995,7 @@ var NodeFsHandler = class {
|
|
|
69739
69995
|
return;
|
|
69740
69996
|
}
|
|
69741
69997
|
const wasThrottled = throttler ? throttler.clear() : false;
|
|
69742
|
-
|
|
69998
|
+
resolve62(void 0);
|
|
69743
69999
|
previous.getChildren().filter((item16) => {
|
|
69744
70000
|
return item16 !== directory && !current.has(item16);
|
|
69745
70001
|
}).forEach((item16) => {
|
|
@@ -69883,11 +70139,11 @@ function createPattern(matcher) {
|
|
|
69883
70139
|
if (matcher.path === string)
|
|
69884
70140
|
return true;
|
|
69885
70141
|
if (matcher.recursive) {
|
|
69886
|
-
const
|
|
69887
|
-
if (!
|
|
70142
|
+
const relative13 = sp2.relative(matcher.path, string);
|
|
70143
|
+
if (!relative13) {
|
|
69888
70144
|
return false;
|
|
69889
70145
|
}
|
|
69890
|
-
return !
|
|
70146
|
+
return !relative13.startsWith("..") && !sp2.isAbsolute(relative13);
|
|
69891
70147
|
}
|
|
69892
70148
|
return false;
|
|
69893
70149
|
};
|
|
@@ -72071,11 +72327,11 @@ var runWatchLoop = async (target, baseOptions) => {
|
|
|
72071
72327
|
ignored,
|
|
72072
72328
|
onBatch: (changed) => runIteration(changed)
|
|
72073
72329
|
});
|
|
72074
|
-
await new Promise((
|
|
72330
|
+
await new Promise((resolve62) => {
|
|
72075
72331
|
const onSigint = () => {
|
|
72076
72332
|
console.log();
|
|
72077
72333
|
console.log(dim("Stopping watcher\u2026"));
|
|
72078
|
-
|
|
72334
|
+
resolve62();
|
|
72079
72335
|
};
|
|
72080
72336
|
process.once("SIGINT", onSigint);
|
|
72081
72337
|
});
|
|
@@ -73457,10 +73713,10 @@ var runtimeSinceRef = (runtime) => {
|
|
|
73457
73713
|
if (parseGitLabMrUrl(runtime.source.repositoryUrl).ok) return null;
|
|
73458
73714
|
return runtime.baseRef;
|
|
73459
73715
|
};
|
|
73460
|
-
var fetchBaseRef = async (cloneDir, baseRef,
|
|
73716
|
+
var fetchBaseRef = async (cloneDir, baseRef, execFile7, env) => {
|
|
73461
73717
|
const branch = safeRemoteBranch(baseRef);
|
|
73462
73718
|
if (!branch) return;
|
|
73463
|
-
await
|
|
73719
|
+
await execFile7(
|
|
73464
73720
|
"git",
|
|
73465
73721
|
["fetch", "--depth", "50", "origin", `${branch}:refs/remotes/origin/${branch}`],
|
|
73466
73722
|
{
|
|
@@ -73469,7 +73725,7 @@ var fetchBaseRef = async (cloneDir, baseRef, execFile8, env) => {
|
|
|
73469
73725
|
}
|
|
73470
73726
|
);
|
|
73471
73727
|
};
|
|
73472
|
-
var prepareSource = async (runtimeDir, runtime,
|
|
73728
|
+
var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
|
|
73473
73729
|
const source = runtime.source;
|
|
73474
73730
|
if (source.mode === "local") return env.CODE_SENTINEL_SOURCE_WORKDIR?.trim() || "/work";
|
|
73475
73731
|
if (parseGitLabMrUrl(source.repositoryUrl).ok) return runtimeDir;
|
|
@@ -73478,14 +73734,14 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73478
73734
|
const githubPull = parseGitHubPullUrl(source.repositoryUrl);
|
|
73479
73735
|
if (githubPull.ok) {
|
|
73480
73736
|
const baseBranch = safeRemoteBranch(runtime.baseRef) ?? safeRemoteBranch(source.ref) ?? "main";
|
|
73481
|
-
await
|
|
73737
|
+
await execFile7(
|
|
73482
73738
|
"git",
|
|
73483
73739
|
["clone", "--no-checkout", "--depth", "1", githubPull.value.cloneUrl, cloneDir],
|
|
73484
73740
|
{
|
|
73485
73741
|
env: cloneEnv
|
|
73486
73742
|
}
|
|
73487
73743
|
);
|
|
73488
|
-
await
|
|
73744
|
+
await execFile7(
|
|
73489
73745
|
"git",
|
|
73490
73746
|
["fetch", "--depth", "50", "origin", `${baseBranch}:refs/remotes/origin/${baseBranch}`],
|
|
73491
73747
|
{
|
|
@@ -73493,7 +73749,7 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73493
73749
|
env: cloneEnv
|
|
73494
73750
|
}
|
|
73495
73751
|
);
|
|
73496
|
-
await
|
|
73752
|
+
await execFile7(
|
|
73497
73753
|
"git",
|
|
73498
73754
|
[
|
|
73499
73755
|
"fetch",
|
|
@@ -73507,7 +73763,7 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73507
73763
|
env: cloneEnv
|
|
73508
73764
|
}
|
|
73509
73765
|
);
|
|
73510
|
-
await
|
|
73766
|
+
await execFile7(
|
|
73511
73767
|
"git",
|
|
73512
73768
|
["checkout", "--detach", `refs/remotes/code-sentinel/pr-${githubPull.value.pullNumber}`],
|
|
73513
73769
|
{
|
|
@@ -73518,9 +73774,9 @@ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
|
|
|
73518
73774
|
return cloneDir;
|
|
73519
73775
|
}
|
|
73520
73776
|
const args = ["clone", "--depth", "1", "--branch", source.ref, source.repositoryUrl, cloneDir];
|
|
73521
|
-
await
|
|
73777
|
+
await execFile7("git", args, { env: cloneEnv });
|
|
73522
73778
|
if (shouldFetchBaseRef(runtime)) {
|
|
73523
|
-
await fetchBaseRef(cloneDir, runtime.baseRef,
|
|
73779
|
+
await fetchBaseRef(cloneDir, runtime.baseRef, execFile7, cloneEnv);
|
|
73524
73780
|
}
|
|
73525
73781
|
return cloneDir;
|
|
73526
73782
|
};
|
|
@@ -73542,7 +73798,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
|
|
|
73542
73798
|
let activePhase = "runtime-config";
|
|
73543
73799
|
try {
|
|
73544
73800
|
const fetchFn = deps.fetchFn ?? fetch;
|
|
73545
|
-
const
|
|
73801
|
+
const execFile7 = deps.execFile ?? execFileAsync3;
|
|
73546
73802
|
const confirmFn = deps.confirmFn ?? ((opts) => confirm(opts));
|
|
73547
73803
|
const interactive = isInteractive(env, deps.isTty);
|
|
73548
73804
|
const baseDir = env.CODE_SENTINEL_RUNTIME_DIR ?? await mkdtemp(
|
|
@@ -73606,7 +73862,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
|
|
|
73606
73862
|
} else {
|
|
73607
73863
|
phaseLog.start(activePhase, `mode=${runtime.source.mode}`);
|
|
73608
73864
|
}
|
|
73609
|
-
const workdir = await prepareSource(baseDir, runtime,
|
|
73865
|
+
const workdir = await prepareSource(baseDir, runtime, execFile7, env);
|
|
73610
73866
|
await access(workdir, constants.R_OK);
|
|
73611
73867
|
if (!mergeRequestSource) {
|
|
73612
73868
|
phaseLog.success(activePhase, `workdir=${workdir}`);
|
|
@@ -76662,248 +76918,6 @@ init_dist3();
|
|
|
76662
76918
|
init_dist7();
|
|
76663
76919
|
init_load();
|
|
76664
76920
|
init_git_filter();
|
|
76665
|
-
var exec = promisify(execFile$1);
|
|
76666
|
-
var MAVEN_BUNDLE_PREFIX = ".code-sentinel/maven-repository";
|
|
76667
|
-
var GO_OFFLINE = "org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline";
|
|
76668
|
-
var EFFECTIVE_SETTINGS = "org.apache.maven.plugins:maven-help-plugin:3.5.1:effective-settings";
|
|
76669
|
-
var runMaven = async (cwd, args) => {
|
|
76670
|
-
let command = "mvn";
|
|
76671
|
-
let commandArgs = [...args];
|
|
76672
|
-
if (process.platform === "win32") {
|
|
76673
|
-
const found = await exec("where.exe", ["mvn.cmd"], { encoding: "utf8" });
|
|
76674
|
-
const mavenHome = dirname(dirname(found.stdout.trim().split(/\r?\n/)[0] ?? ""));
|
|
76675
|
-
const boot = join(mavenHome, "boot");
|
|
76676
|
-
const launcher = readdirSync(boot).find((name) => /^plexus-classworlds-.*\.jar$/.test(name));
|
|
76677
|
-
if (!launcher) throw new Error("Kh\xF4ng t\xECm th\u1EA5y Maven launcher; ki\u1EC3m tra c\xE0i \u0111\u1EB7t Maven.");
|
|
76678
|
-
command = process.env.JAVA_HOME ? join(process.env.JAVA_HOME, "bin", "java.exe") : "java";
|
|
76679
|
-
commandArgs = [
|
|
76680
|
-
"-classpath",
|
|
76681
|
-
join(boot, launcher),
|
|
76682
|
-
`-Dclassworlds.conf=${join(mavenHome, "bin", "m2.conf")}`,
|
|
76683
|
-
`-Dmaven.home=${mavenHome}`,
|
|
76684
|
-
`-Dmaven.multiModuleProjectDirectory=${cwd}`,
|
|
76685
|
-
"org.codehaus.plexus.classworlds.launcher.Launcher",
|
|
76686
|
-
...args
|
|
76687
|
-
];
|
|
76688
|
-
}
|
|
76689
|
-
try {
|
|
76690
|
-
const result = await exec(command, commandArgs, {
|
|
76691
|
-
cwd,
|
|
76692
|
-
encoding: "utf8",
|
|
76693
|
-
timeout: 10 * 6e4,
|
|
76694
|
-
maxBuffer: 8 * 1024 * 1024
|
|
76695
|
-
});
|
|
76696
|
-
return { ok: true, output: result.stdout };
|
|
76697
|
-
} catch (error) {
|
|
76698
|
-
const result = error;
|
|
76699
|
-
if (result.code === "ENOENT") {
|
|
76700
|
-
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.");
|
|
76701
|
-
}
|
|
76702
|
-
return { ok: false, output: `${result.stdout ?? ""}
|
|
76703
|
-
${result.stderr ?? ""}` };
|
|
76704
|
-
}
|
|
76705
|
-
};
|
|
76706
|
-
var existsOnCentral = async (path) => {
|
|
76707
|
-
const response = await fetch(`https://repo.maven.apache.org/maven2/${path}`, {
|
|
76708
|
-
method: "HEAD",
|
|
76709
|
-
signal: AbortSignal.timeout(15e3)
|
|
76710
|
-
});
|
|
76711
|
-
if (response.ok) return true;
|
|
76712
|
-
if (response.status === 404) return false;
|
|
76713
|
-
throw new Error(
|
|
76714
|
-
`Ch\u01B0a ki\u1EC3m tra \u0111\u01B0\u1EE3c Maven Central (HTTP ${response.status}); h\xE3y ch\u1EA1y l\u1EA1i cs pentest.`
|
|
76715
|
-
);
|
|
76716
|
-
};
|
|
76717
|
-
var xmlEscape = (text2) => text2.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
76718
|
-
var xmlDecode = (text2) => text2.replaceAll("<", "<").replaceAll(">", ">").replaceAll(""", '"').replaceAll("'", "'").replaceAll("&", "&");
|
|
76719
|
-
var appendXml = (xml, tag, content) => {
|
|
76720
|
-
if (new RegExp(`</${tag}>`).test(xml)) return xml.replace(`</${tag}>`, `${content}</${tag}>`);
|
|
76721
|
-
const empty2 = new RegExp(`<${tag}\\s*/>`);
|
|
76722
|
-
if (empty2.test(xml)) return xml.replace(empty2, `<${tag}>${content}</${tag}>`);
|
|
76723
|
-
return xml.replace("</settings>", `<${tag}>${content}</${tag}></settings>`);
|
|
76724
|
-
};
|
|
76725
|
-
var settingsWithLocalCache = (settings) => {
|
|
76726
|
-
const local = xmlDecode(
|
|
76727
|
-
settings.match(/<localRepository>\s*([^<]+)\s*<\/localRepository>/)?.[1]?.trim() ?? ""
|
|
76728
|
-
);
|
|
76729
|
-
if (!isAbsolute(local) || /<!DOCTYPE|<!ENTITY/i.test(settings)) {
|
|
76730
|
-
throw new Error("Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c \u0111\u01B0\u1EDDng d\u1EABn Maven local repository; ki\u1EC3m tra settings.xml.");
|
|
76731
|
-
}
|
|
76732
|
-
const url = xmlEscape(pathToFileURL(local).href);
|
|
76733
|
-
let merged = appendXml(
|
|
76734
|
-
settings,
|
|
76735
|
-
"profiles",
|
|
76736
|
-
`<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>`
|
|
76737
|
-
);
|
|
76738
|
-
merged = appendXml(merged, "activeProfiles", "<activeProfile>cs-pentest-cache</activeProfile>");
|
|
76739
|
-
merged = appendXml(
|
|
76740
|
-
merged,
|
|
76741
|
-
"mirrors",
|
|
76742
|
-
`<mirror><id>cs-pentest-local-cache</id><mirrorOf>cs-pentest-cache</mirrorOf><url>${url}</url></mirror>`
|
|
76743
|
-
);
|
|
76744
|
-
return merged;
|
|
76745
|
-
};
|
|
76746
|
-
var repositoryFiles = (root) => {
|
|
76747
|
-
const result = [];
|
|
76748
|
-
const visit = (dir) => {
|
|
76749
|
-
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
76750
|
-
const path = join(dir, entry.name);
|
|
76751
|
-
if (entry.isDirectory()) visit(path);
|
|
76752
|
-
else if (entry.isFile()) result.push(relative(root, path).split(sep).join("/"));
|
|
76753
|
-
}
|
|
76754
|
-
};
|
|
76755
|
-
visit(root);
|
|
76756
|
-
return result.sort();
|
|
76757
|
-
};
|
|
76758
|
-
var isArtifact = (path) => {
|
|
76759
|
-
const parts = path.split("/");
|
|
76760
|
-
const file = parts.at(-1) ?? "";
|
|
76761
|
-
const artifact = parts.at(-3) ?? "";
|
|
76762
|
-
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);
|
|
76763
|
-
};
|
|
76764
|
-
var coordinateFromPath = (path) => {
|
|
76765
|
-
const parts = path.split("/");
|
|
76766
|
-
return `${parts.slice(0, -3).join(".")}:${parts.at(-3)}:${parts.at(-2)}`;
|
|
76767
|
-
};
|
|
76768
|
-
var missingMavenCoordinates = (output2) => {
|
|
76769
|
-
const missing = /* @__PURE__ */ new Set();
|
|
76770
|
-
const causes = output2.matchAll(
|
|
76771
|
-
/(?:The following artifacts could not be resolved:|Could not (?:find|transfer) artifact|Failed to read artifact descriptor for|Missing) +([^\r\n]+)/g
|
|
76772
|
-
);
|
|
76773
|
-
for (const cause of causes) {
|
|
76774
|
-
for (const match of (cause[1] ?? "").matchAll(
|
|
76775
|
-
/\b[A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+:(?:jar|pom|aar|war|zip)(?::[A-Za-z0-9_.-]+){1,3}/g
|
|
76776
|
-
))
|
|
76777
|
-
missing.add(match[0]);
|
|
76778
|
-
}
|
|
76779
|
-
return [...missing];
|
|
76780
|
-
};
|
|
76781
|
-
var centralPathFor = (coordinate) => {
|
|
76782
|
-
const parts = coordinate.split(":");
|
|
76783
|
-
if (["compile", "runtime", "test", "provided", "system"].includes(parts.at(-1) ?? ""))
|
|
76784
|
-
parts.pop();
|
|
76785
|
-
const [group2 = "", artifact = "", type = "jar", ...suffix] = parts;
|
|
76786
|
-
const version2 = suffix.at(-1) ?? "";
|
|
76787
|
-
const classifier = suffix.length > 1 ? `-${suffix[0]}` : "";
|
|
76788
|
-
return `${group2.replaceAll(".", "/")}/${artifact}/${version2}/${artifact}-${version2}${classifier}.${type}`;
|
|
76789
|
-
};
|
|
76790
|
-
var resolutionError = async (output2, services) => {
|
|
76791
|
-
const missing = missingMavenCoordinates(output2);
|
|
76792
|
-
const privateMissing = (await Promise.all(
|
|
76793
|
-
missing.slice(0, 20).map(async (coordinate) => {
|
|
76794
|
-
try {
|
|
76795
|
-
return await services.existsOnCentral(centralPathFor(coordinate)) ? void 0 : coordinate;
|
|
76796
|
-
} catch {
|
|
76797
|
-
return void 0;
|
|
76798
|
-
}
|
|
76799
|
-
})
|
|
76800
|
-
)).filter((coordinate) => coordinate !== void 0);
|
|
76801
|
-
return new Error(
|
|
76802
|
-
[
|
|
76803
|
-
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(", ")}` : "."}`,
|
|
76804
|
-
"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.",
|
|
76805
|
-
"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."
|
|
76806
|
-
].join(String.fromCharCode(10))
|
|
76807
|
-
);
|
|
76808
|
-
};
|
|
76809
|
-
var bundlePentestMavenDependencies = async (plan, services = { runMaven, existsOnCentral }) => {
|
|
76810
|
-
const stage = mkdtempSync(join(tmpdir(), "cs-pentest-maven-"));
|
|
76811
|
-
const cleanup = () => rmSync(stage, { recursive: true, force: true });
|
|
76812
|
-
const progress = setInterval(() => {
|
|
76813
|
-
process.stdout.write(" \u0110ang t\u1EA3i v\xE0 ki\u1EC3m tra th\u01B0 vi\u1EC7n Maven, vui l\xF2ng ch\u1EDD...\n");
|
|
76814
|
-
}, 15e3);
|
|
76815
|
-
progress.unref();
|
|
76816
|
-
try {
|
|
76817
|
-
const cwd = resolve(plan.repoRoot, plan.workspaceRoot);
|
|
76818
|
-
const effective = join(stage, "effective-settings.xml");
|
|
76819
|
-
const settings = join(stage, "client-settings.xml");
|
|
76820
|
-
const repo = join(stage, "repository");
|
|
76821
|
-
const common = [
|
|
76822
|
-
"-B",
|
|
76823
|
-
"-ntp",
|
|
76824
|
-
"-Dstyle.color=never",
|
|
76825
|
-
"-Dmaven.wagon.http.connectionTimeout=5000",
|
|
76826
|
-
"-Dmaven.wagon.http.readTimeout=30000",
|
|
76827
|
-
"-Dmaven.wagon.http.retryHandler.count=1"
|
|
76828
|
-
];
|
|
76829
|
-
const result = await services.runMaven(cwd, [
|
|
76830
|
-
...common,
|
|
76831
|
-
EFFECTIVE_SETTINGS,
|
|
76832
|
-
`-Doutput=${effective}`,
|
|
76833
|
-
"-DshowPasswords=true"
|
|
76834
|
-
]);
|
|
76835
|
-
if (!result.ok) throw await resolutionError(result.output, services);
|
|
76836
|
-
writeFileSync(settings, settingsWithLocalCache(readFileSync(effective, "utf8")), {
|
|
76837
|
-
mode: 384
|
|
76838
|
-
});
|
|
76839
|
-
mkdirSync(repo);
|
|
76840
|
-
const resolved = await services.runMaven(cwd, [
|
|
76841
|
-
...common,
|
|
76842
|
-
"-s",
|
|
76843
|
-
settings,
|
|
76844
|
-
`-Dmaven.repo.local=${repo}`,
|
|
76845
|
-
...plan.buildTarget ? ["-pl", plan.buildTarget, "-am"] : [],
|
|
76846
|
-
GO_OFFLINE,
|
|
76847
|
-
"-DexcludeReactor=true",
|
|
76848
|
-
`-DmarkersDirectory=${join(stage, "markers")}`
|
|
76849
|
-
]);
|
|
76850
|
-
if (!resolved.ok) throw await resolutionError(resolved.output, services);
|
|
76851
|
-
rmSync(effective, { force: true });
|
|
76852
|
-
rmSync(settings, { force: true });
|
|
76853
|
-
const candidates = repositoryFiles(repo).filter(isArtifact);
|
|
76854
|
-
const selected = [];
|
|
76855
|
-
let index2 = 0;
|
|
76856
|
-
let stopped = false;
|
|
76857
|
-
const probes = await Promise.allSettled(
|
|
76858
|
-
Array.from({ length: Math.min(6, candidates.length) }, async () => {
|
|
76859
|
-
while (!stopped && index2 < candidates.length) {
|
|
76860
|
-
const path = candidates[index2++];
|
|
76861
|
-
try {
|
|
76862
|
-
if (path && !await services.existsOnCentral(path)) selected.push(path);
|
|
76863
|
-
} catch (error) {
|
|
76864
|
-
stopped = true;
|
|
76865
|
-
throw error;
|
|
76866
|
-
}
|
|
76867
|
-
}
|
|
76868
|
-
})
|
|
76869
|
-
);
|
|
76870
|
-
for (const probe of probes) if (probe.status === "rejected") throw probe.reason;
|
|
76871
|
-
const entries = selected.sort().map((path) => ({ name: `${MAVEN_BUNDLE_PREFIX}/${path}`, absolutePath: join(repo, path) }));
|
|
76872
|
-
for (const dir of new Set(selected.map(dirname).filter((path) => path.endsWith("-SNAPSHOT")))) {
|
|
76873
|
-
const parts = dir.split("/");
|
|
76874
|
-
const metadata = join(stage, "snapshot-metadata", dir, "maven-metadata-local.xml");
|
|
76875
|
-
mkdirSync(dirname(metadata), { recursive: true });
|
|
76876
|
-
writeFileSync(
|
|
76877
|
-
metadata,
|
|
76878
|
-
`<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>`
|
|
76879
|
-
);
|
|
76880
|
-
entries.push({
|
|
76881
|
-
name: `${MAVEN_BUNDLE_PREFIX}/${dir}/maven-metadata-local.xml`,
|
|
76882
|
-
absolutePath: metadata
|
|
76883
|
-
});
|
|
76884
|
-
}
|
|
76885
|
-
for (const entry of entries) {
|
|
76886
|
-
const target = join(stage, "bundle", entry.name);
|
|
76887
|
-
mkdirSync(dirname(target), { recursive: true });
|
|
76888
|
-
copyFileSync(entry.absolutePath, target);
|
|
76889
|
-
}
|
|
76890
|
-
return {
|
|
76891
|
-
entries: entries.map((entry) => ({
|
|
76892
|
-
...entry,
|
|
76893
|
-
absolutePath: join(stage, "bundle", entry.name)
|
|
76894
|
-
})),
|
|
76895
|
-
artifacts: [...new Set(selected.map(coordinateFromPath))].sort(),
|
|
76896
|
-
cleanup
|
|
76897
|
-
};
|
|
76898
|
-
} catch (error) {
|
|
76899
|
-
cleanup();
|
|
76900
|
-
throw error;
|
|
76901
|
-
} finally {
|
|
76902
|
-
clearInterval(progress);
|
|
76903
|
-
}
|
|
76904
|
-
};
|
|
76905
|
-
|
|
76906
|
-
// src/commands/package.command.ts
|
|
76907
76921
|
var HYPOTHESIS_ENTRY = ".code-sentinel/auth-hypothesis.json";
|
|
76908
76922
|
var DATA_SEED_HYPOTHESIS_ENTRY = ".code-sentinel/data-seed-hypothesis.json";
|
|
76909
76923
|
var AI_TRIAGE_ENTRY = ".code-sentinel/ai-triage-assessment.json";
|
|
@@ -77132,7 +77146,7 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77132
77146
|
const cleanEntries = rawPlan.entries.filter(
|
|
77133
77147
|
(e) => e.name !== HYPOTHESIS_ENTRY && e.name !== DATA_SEED_HYPOTHESIS_ENTRY && e.name !== AI_TRIAGE_ENTRY && !e.name.startsWith(".code-sentinel/")
|
|
77134
77148
|
);
|
|
77135
|
-
|
|
77149
|
+
const plan = {
|
|
77136
77150
|
...rawPlan,
|
|
77137
77151
|
entries: cleanEntries,
|
|
77138
77152
|
sourceRevision: gitSourceRevision(
|
|
@@ -77149,27 +77163,13 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77149
77163
|
};
|
|
77150
77164
|
const zipStem = plan.modulePath === "." || plan.modulePath === "" ? basename(plan.repoRoot) || "service" : basename(plan.modulePath.replace(/\/$/, "")) || "service";
|
|
77151
77165
|
const outPath = resolve(options.out ?? `${zipStem}.zip`);
|
|
77152
|
-
let dependencyBundle;
|
|
77153
77166
|
let bytes;
|
|
77154
77167
|
try {
|
|
77155
|
-
if (options.resolveMavenDependencies && plan.buildTool === "maven") {
|
|
77156
|
-
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");
|
|
77157
|
-
dependencyBundle = await bundlePentestMavenDependencies(plan);
|
|
77158
|
-
plan = withAdditionalPackageEntries(plan, dependencyBundle.entries);
|
|
77159
|
-
if (dependencyBundle.artifacts.length > 0) {
|
|
77160
|
-
process.stdout.write(
|
|
77161
|
-
`\u0110\xEDnh k\xE8m th\u01B0 vi\u1EC7n n\u1ED9i b\u1ED9/ngo\xE0i Maven Central: ${dependencyBundle.artifacts.join(", ")}
|
|
77162
|
-
`
|
|
77163
|
-
);
|
|
77164
|
-
}
|
|
77165
|
-
}
|
|
77166
77168
|
bytes = writePackageZip(plan, outPath);
|
|
77167
77169
|
} catch (error) {
|
|
77168
77170
|
process.stderr.write(`cs package: ${error instanceof Error ? error.message : String(error)}
|
|
77169
77171
|
`);
|
|
77170
77172
|
return 2;
|
|
77171
|
-
} finally {
|
|
77172
|
-
dependencyBundle?.cleanup();
|
|
77173
77173
|
}
|
|
77174
77174
|
process.stdout.write(`Packaged ${plan.modulePath} \u2192 ${outPath} (${formatBytes(bytes)})
|
|
77175
77175
|
`);
|
|
@@ -77211,61 +77211,74 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
|
|
|
77211
77211
|
`
|
|
77212
77212
|
);
|
|
77213
77213
|
}
|
|
77214
|
-
|
|
77215
|
-
|
|
77216
|
-
|
|
77214
|
+
if (!options.push) {
|
|
77215
|
+
const report2 = preflightArchive(outPath);
|
|
77216
|
+
const decision = classifyPreflight({ ...report2.signals, staticAssessmentCompleted: true });
|
|
77217
|
+
if (decision.decided) {
|
|
77218
|
+
process.stdout.write(
|
|
77219
|
+
`
|
|
77220
|
+
\u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
|
|
77221
|
+
`
|
|
77222
|
+
);
|
|
77223
|
+
for (const evidence18 of report2.evidence.slice(0, 5)) {
|
|
77224
|
+
process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
|
|
77225
|
+
`);
|
|
77226
|
+
}
|
|
77227
|
+
return 1;
|
|
77228
|
+
}
|
|
77217
77229
|
process.stdout.write("\n\u2713 preflight: ready to build\n");
|
|
77218
|
-
|
|
77219
|
-
|
|
77220
|
-
|
|
77221
|
-
|
|
77222
|
-
|
|
77223
|
-
|
|
77224
|
-
|
|
77225
|
-
|
|
77226
|
-
|
|
77227
|
-
|
|
77228
|
-
|
|
77229
|
-
|
|
77230
|
-
|
|
77231
|
-
|
|
77232
|
-
|
|
77233
|
-
|
|
77234
|
-
|
|
77235
|
-
|
|
77236
|
-
}
|
|
77237
|
-
|
|
77238
|
-
|
|
77239
|
-
|
|
77230
|
+
return 0;
|
|
77231
|
+
}
|
|
77232
|
+
if (options.push && link) {
|
|
77233
|
+
process.stdout.write("\n\u{1F680} \u0110ang \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Dashboard...\n");
|
|
77234
|
+
try {
|
|
77235
|
+
const url = `${serverUrl.replace(/\/+$/, "")}/api/projects/${encodeURIComponent(link.projectId)}/pentest-requests`;
|
|
77236
|
+
const formData = new FormData();
|
|
77237
|
+
formData.append("sourceKind", "archive");
|
|
77238
|
+
formData.append("archive", new Blob([readFileSync(outPath)]), basename(outPath));
|
|
77239
|
+
formData.append("useAi", "true");
|
|
77240
|
+
if (link.codebaseId) {
|
|
77241
|
+
formData.append("repositoryId", link.codebaseId);
|
|
77242
|
+
}
|
|
77243
|
+
if (options.preferredBuildScript) {
|
|
77244
|
+
formData.append("preferredBuildScript", options.preferredBuildScript);
|
|
77245
|
+
}
|
|
77246
|
+
const res = await fetch(url, {
|
|
77247
|
+
method: "POST",
|
|
77248
|
+
headers: { authorization: `Bearer ${token}` },
|
|
77249
|
+
body: formData
|
|
77250
|
+
});
|
|
77251
|
+
if (!res.ok) {
|
|
77252
|
+
const text2 = await res.text().catch(() => "");
|
|
77253
|
+
console.error(red(`
|
|
77240
77254
|
Server t\u1EEB ch\u1ED1i y\xEAu c\u1EA7u (HTTP ${res.status}): ${text2}`));
|
|
77241
|
-
|
|
77242
|
-
|
|
77243
|
-
|
|
77244
|
-
|
|
77245
|
-
|
|
77246
|
-
|
|
77247
|
-
|
|
77255
|
+
return 2;
|
|
77256
|
+
}
|
|
77257
|
+
const body = await res.json().catch(() => ({}));
|
|
77258
|
+
const createdId = body.request?.id ?? body.id;
|
|
77259
|
+
console.log(green(`[\u2713] \u0110\u1EA9y th\xE0nh c\xF4ng! \u0110\xE3 t\u1EA1o request ID: ${createdId ?? "unknown"}`));
|
|
77260
|
+
console.log(
|
|
77261
|
+
`\u{1F517} Link theo d\xF5i: ${serverUrl.replace(/\/+$/, "")}/runs?project=${encodeURIComponent(link.projectId)}&type=pentest`
|
|
77262
|
+
);
|
|
77263
|
+
if (body.preflightWarning) {
|
|
77264
|
+
process.stderr.write(
|
|
77265
|
+
`
|
|
77266
|
+
\u26A0 Server preflight: ${body.preflightWarning.stopReason ?? "c\u1EA7n ki\u1EC3m tra c\u1EA5u h\xECnh build"}
|
|
77267
|
+
${body.preflightWarning.hint ?? "Xem chi ti\u1EBFt tr\xEAn Dashboard."}
|
|
77268
|
+
`
|
|
77248
77269
|
);
|
|
77249
|
-
|
|
77250
|
-
|
|
77251
|
-
\u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
|
|
77252
|
-
}
|
|
77253
|
-
} catch (e) {
|
|
77270
|
+
}
|
|
77271
|
+
if (body.request?.status === "failed" && body.request.failureReason) {
|
|
77254
77272
|
console.error(red(`
|
|
77255
|
-
|
|
77256
|
-
return 2;
|
|
77273
|
+
\u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
|
|
77257
77274
|
}
|
|
77275
|
+
} catch (e) {
|
|
77276
|
+
console.error(red(`
|
|
77277
|
+
L\u1ED7i m\u1EA1ng khi upload: ${e instanceof Error ? e.message : String(e)}`));
|
|
77278
|
+
return 2;
|
|
77258
77279
|
}
|
|
77259
|
-
return 0;
|
|
77260
77280
|
}
|
|
77261
|
-
|
|
77262
|
-
\u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
|
|
77263
|
-
`);
|
|
77264
|
-
for (const evidence18 of report2.evidence.slice(0, 5)) {
|
|
77265
|
-
process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
|
|
77266
|
-
`);
|
|
77267
|
-
}
|
|
77268
|
-
return 1;
|
|
77281
|
+
return 0;
|
|
77269
77282
|
};
|
|
77270
77283
|
init_dist2();
|
|
77271
77284
|
init_dist3();
|
|
@@ -83679,7 +83692,6 @@ var buildProgram = () => {
|
|
|
83679
83692
|
targetDir,
|
|
83680
83693
|
push: true,
|
|
83681
83694
|
// Always push by default for pentest
|
|
83682
|
-
resolveMavenDependencies: true,
|
|
83683
83695
|
...typeof options.preferredBuildScript === "string" && options.preferredBuildScript.length > 0 ? { preferredBuildScript: options.preferredBuildScript } : {}
|
|
83684
83696
|
});
|
|
83685
83697
|
}
|