@code-sentinel-cli/code-sentinel-cli 4.0.10 → 4.0.12

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.
Files changed (43) hide show
  1. package/dist/bin.js +1036 -222
  2. package/dist/builtin-rules/static/flutter/android-cleartext-traffic.rule.js +1 -0
  3. package/dist/builtin-rules/static/flutter/android-debug-certificate-risk.rule.js +1 -0
  4. package/dist/builtin-rules/static/flutter/android-exported-component.rule.js +1 -0
  5. package/dist/builtin-rules/static/flutter/android-manifest-hardening.rule.js +1 -0
  6. package/dist/builtin-rules/static/flutter/android-minsdk-low.rule.js +1 -0
  7. package/dist/builtin-rules/static/flutter/android-release-debuggable.rule.js +1 -0
  8. package/dist/builtin-rules/static/flutter/android-sensitive-permissions.rule.js +1 -0
  9. package/dist/builtin-rules/static/flutter/bad-certificate-callback.rule.js +1 -0
  10. package/dist/builtin-rules/static/flutter/biometric-without-crypto-object.rule.js +1 -0
  11. package/dist/builtin-rules/static/flutter/cleartext-http-endpoint.rule.js +1 -0
  12. package/dist/builtin-rules/static/flutter/debug-tooling-release-risk.rule.js +12 -3
  13. package/dist/builtin-rules/static/flutter/device-fingerprint-collection.rule.js +1 -0
  14. package/dist/builtin-rules/static/flutter/dynamic-archive-risk.rule.js +1 -0
  15. package/dist/builtin-rules/static/flutter/exported-content-provider-leak.rule.js +1 -0
  16. package/dist/builtin-rules/static/flutter/hardcoded-crypto-key.rule.js +1 -0
  17. package/dist/builtin-rules/static/flutter/hardcoded-oauth-client-secret.rule.js +1 -0
  18. package/dist/builtin-rules/static/flutter/hive-sensitive-storage.rule.js +1 -0
  19. package/dist/builtin-rules/static/flutter/insecure-deep-link.rule.js +1 -0
  20. package/dist/builtin-rules/static/flutter/ios-ats-exception.rule.js +1 -0
  21. package/dist/builtin-rules/static/flutter/ios-pasteboard-leak.rule.js +1 -0
  22. package/dist/builtin-rules/static/flutter/ios-privacy-hardening.rule.js +1 -0
  23. package/dist/builtin-rules/static/flutter/missing-enforced-update.rule.js +1 -0
  24. package/dist/builtin-rules/static/flutter/oauth-missing-pkce.rule.js +1 -0
  25. package/dist/builtin-rules/static/flutter/packaged-env-risk.rule.js +1 -0
  26. package/dist/builtin-rules/static/flutter/sensitive-log-leak.rule.js +1 -0
  27. package/dist/builtin-rules/static/flutter/token-insecure-storage.rule.js +1 -0
  28. package/dist/builtin-rules/static/flutter/tracking-sdk-init.rule.js +1 -0
  29. package/dist/builtin-rules/static/flutter/weak-mobile-crypto-algorithm.rule.js +1 -0
  30. package/dist/builtin-rules/static/flutter/weak-prng-mobile.rule.js +1 -0
  31. package/dist/builtin-rules/static/flutter/webview-bridge-guard.rule.js +1 -0
  32. package/dist/builtin-rules/static/general/dockerfile-dependency-confusion.rule.js +5 -4
  33. package/dist/builtin-rules/static/general/dockerfile-no-root-user.rule.js +1 -0
  34. package/dist/builtin-rules/static/general/no-empty-encryption-key.rule.js +21 -2
  35. package/dist/builtin-rules/static/general/no-hardcoded-secret.rule.js +15 -8
  36. package/dist/builtin-rules/static/general/no-insecure-external-link.rule.js +1 -0
  37. package/dist/builtin-rules/static/general/no-insecure-password-submission.rule.js +34 -2
  38. package/dist/builtin-rules/static/general/sensitive-exception-response.rule.js +1 -0
  39. package/dist/builtin-rules/static/general/sensitive-output-exposure.rule.js +1 -0
  40. package/dist/builtin-rules/static/spring-boot/no-devtools-in-production.rule.js +1 -0
  41. package/dist/index.js +1036 -222
  42. package/node_modules/@code-sentinel/parsers/index.js +28 -0
  43. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -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 err2 = w.reduce((a, s) => a + systemicFailureCount(s.classes), 0) / n;
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 && err2 <= gate;
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 ok3 = kind === "mock-user" ? MOCK_USER_RE.test(s) : kind === "jwt" ? JWT_RE.test(s) : ANONYMOUS_RE.test(s);
1429
- if (!ok3) return null;
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 ok2 = kind === "with-mock-user" ? WITH_MOCK_USER_RE.test(a) : WITH_USER_DETAILS_RE.test(a);
1439
- if (!ok2) return null;
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
- const parser = new Parser();
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 };
@@ -11628,7 +11632,7 @@ function collectBindings(javaFiles) {
11628
11632
  const resolved = resolveUnit(file.content, field3);
11629
11633
  out.push({
11630
11634
  file: file.path,
11631
- line: lineOf26(file.content, m.index),
11635
+ line: lineOf27(file.content, m.index),
11632
11636
  property,
11633
11637
  field: field3,
11634
11638
  annotationDefault: m[2],
@@ -11653,7 +11657,7 @@ function readConfiguredValue(files, property) {
11653
11657
  for (const file of candidates) {
11654
11658
  const m = yamlRe.exec(file.content) ?? propsRe.exec(file.content);
11655
11659
  if (m?.[1]) {
11656
- return { value: Number(m[1]), file: file.path, line: lineOf26(file.content, m.index) };
11660
+ return { value: Number(m[1]), file: file.path, line: lineOf27(file.content, m.index) };
11657
11661
  }
11658
11662
  }
11659
11663
  return void 0;
@@ -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, 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, 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, lineOf16, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf17, 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, lineOf18, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf19, 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, lineOf20, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf21, 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, lineOf22, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf23, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf25, 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, lineOf26, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf27, 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, lineOf28, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf29, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf30, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf31, 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, lineOf32, 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, lineOf33, 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, lineOf34, 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, lineOf35, 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, lineOf36, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf37, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf38, 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, lineOf39, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf40, 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, lineOf41, 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, lineOf42, 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
- parser.setLanguage(lang);
11816
- const tree = parser.parse(file.content);
11817
- if (!tree) {
11818
- return err(
11819
- new ParseError(`tree-sitter returned null tree for ${file.path}`, {
11820
- context: { file: file.path }
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}`, {
@@ -13077,14 +13085,14 @@ ${errors.join("\n")}`);
13077
13085
  UNAVAILABLE_KAFKA_HOST = "127.0.0.1";
13078
13086
  UNAVAILABLE_KAFKA_PORT = "1";
13079
13087
  isBase64JwtSigningKeyPath = (propertyPath) => {
13080
- const normalizedPath = propertyPath.replace(/([a-z0-9])([A-Z])/g, "$1-$2");
13081
- if (/(?:^|[.-])(?:jwt-secret|jwtsecret|jwt-key|jwtkey)$/i.test(normalizedPath)) return true;
13082
- if (/(?:^|[.-])(?:base64-secret|base64secret)$/i.test(normalizedPath) && /(?:^|[.-])(?:jwt|authentication|password-reset|security)(?:[.-]|$)/i.test(normalizedPath))
13088
+ const normalizedPath2 = propertyPath.replace(/([a-z0-9])([A-Z])/g, "$1-$2");
13089
+ if (/(?:^|[.-])(?:jwt-secret|jwtsecret|jwt-key|jwtkey)$/i.test(normalizedPath2)) return true;
13090
+ if (/(?:^|[.-])(?:base64-secret|base64secret)$/i.test(normalizedPath2) && /(?:^|[.-])(?:jwt|authentication|password-reset|security)(?:[.-]|$)/i.test(normalizedPath2))
13083
13091
  return true;
13084
- if (/(?:^|[.-])(?:reset[-.]?)?secret[-.]?(?:b64|base64)$/i.test(normalizedPath) && /(?:^|[.-])(?:jwt|authentication|security)(?:[.-]|$)/i.test(normalizedPath))
13092
+ if (/(?:^|[.-])(?:reset[-.]?)?secret[-.]?(?:b64|base64)$/i.test(normalizedPath2) && /(?:^|[.-])(?:jwt|authentication|security)(?:[.-]|$)/i.test(normalizedPath2))
13085
13093
  return true;
13086
13094
  return /(?:^|[.-])(?:password[-.]?reset|reset[-.]?password)(?:[-.](?:jwt|token|signing))*[-.](?:secret|key)$/i.test(
13087
- normalizedPath
13095
+ normalizedPath2
13088
13096
  );
13089
13097
  };
13090
13098
  isEndpointShaped = (upperVarName) => /(^|_)(URL|URI|URIS|ENDPOINT|ADDR|ADDRESS|SERVICE|SERVER)(_|$)/.test(upperVarName);
@@ -25273,6 +25281,227 @@ ${window}`;
25273
25281
  ...kafka !== void 0 ? { kafka } : {}
25274
25282
  };
25275
25283
  };
25284
+ normalizedPath = (path2) => path2.replace(/\\/g, "/");
25285
+ lineOf16 = (content, index2) => content.slice(0, index2).split("\n").length;
25286
+ maskComments = (content) => content.replace(/\/\*[\s\S]*?\*\//g, (comment) => comment.replace(/[^\n]/g, " ")).replace(
25287
+ /(^|[^:])\/\/[^\n]*/g,
25288
+ (comment, prefix) => prefix + " ".repeat(comment.length - prefix.length)
25289
+ ).replace(/^\s*#[^\n]*/gm, (comment) => " ".repeat(comment.length));
25290
+ sourceAt = (files, path2) => files.find((file) => normalizedPath(file.path) === path2);
25291
+ addEvidence = (evidence23, file, index2, fact) => {
25292
+ evidence23.push({ file: file.path, line: lineOf16(file.content, index2), fact });
25293
+ };
25294
+ readBundleIdentity = (files, modulePath, evidence23) => {
25295
+ const bndPath = modulePath ? `${modulePath}/bnd.bnd` : "bnd.bnd";
25296
+ const bnd = sourceAt(files, bndPath);
25297
+ if (!bnd) return null;
25298
+ const symbolic = /^Bundle-SymbolicName:\s*([^\r\n]+)/m.exec(bnd.content);
25299
+ if (!symbolic?.[1]?.trim()) return null;
25300
+ const version2 = /^Bundle-Version:\s*([^\r\n]+)/m.exec(bnd.content);
25301
+ addEvidence(evidence23, bnd, symbolic.index, `bundle symbolic name ${symbolic[1].trim()}`);
25302
+ if (version2?.[1]?.trim())
25303
+ addEvidence(evidence23, bnd, version2.index, `bundle version ${version2[1].trim()}`);
25304
+ return {
25305
+ symbolicName: symbolic[1].trim(),
25306
+ ...version2?.[1]?.trim() ? { version: version2[1].trim() } : { version: null },
25307
+ file: bnd.path
25308
+ };
25309
+ };
25310
+ readPortalRelease = (files, modulePath, evidence23) => {
25311
+ const buildPath = modulePath ? `${modulePath}/build.gradle` : "build.gradle";
25312
+ const build2 = sourceAt(files, buildPath);
25313
+ if (!build2) return { value: null, conflicted: false };
25314
+ const content = maskComments(build2.content);
25315
+ const releases = /* @__PURE__ */ new Set();
25316
+ const patterns = [
25317
+ /group\s*:\s*["']com\.liferay\.portal["']\s*,\s*name\s*:\s*["']com\.liferay\.portal\.kernel["']\s*,\s*version\s*:\s*["'](\d+)\./g,
25318
+ /com\.liferay\.portal:com\.liferay\.portal\.kernel:(\d+)\./g
25319
+ ];
25320
+ for (const pattern of patterns) {
25321
+ for (const coordinate of content.matchAll(pattern)) {
25322
+ const release = coordinate[1] === "2" ? "7.0" : coordinate[1] === "3" ? "7.1" : null;
25323
+ if (!release || coordinate.index === void 0) continue;
25324
+ releases.add(release);
25325
+ addEvidence(
25326
+ evidence23,
25327
+ build2,
25328
+ coordinate.index,
25329
+ `portal kernel ${coordinate[1]}.x -> Liferay ${release} candidate`
25330
+ );
25331
+ }
25332
+ }
25333
+ if (releases.size !== 1) return { value: null, conflicted: releases.size > 1 };
25334
+ const [value] = releases;
25335
+ return value ? { value, conflicted: false } : { value: null, conflicted: false };
25336
+ };
25337
+ readSourceProduct = (files, evidence23) => {
25338
+ const gradleProperties = files.find((file) => normalizedPath(file.path) === "gradle.properties");
25339
+ if (!gradleProperties) return { value: null, conflicted: false };
25340
+ const products = /* @__PURE__ */ new Set();
25341
+ const content = maskComments(gradleProperties.content);
25342
+ for (const product of content.matchAll(/^\s*liferay\.workspace\.product\s*=\s*([^\s#\r\n]+)/gm)) {
25343
+ const value2 = product[1]?.trim();
25344
+ if (!value2 || product.index === void 0) continue;
25345
+ products.add(value2);
25346
+ addEvidence(evidence23, gradleProperties, product.index, `workspace product ${value2}`);
25347
+ }
25348
+ if (products.size !== 1) return { value: null, conflicted: products.size > 1 };
25349
+ const [value] = products;
25350
+ return value ? { value, conflicted: false } : { value: null, conflicted: false };
25351
+ };
25352
+ readToolchain = (files, evidence23) => {
25353
+ const wrapper = files.find(
25354
+ (file) => normalizedPath(file.path) === "gradle/wrapper/gradle-wrapper.properties"
25355
+ );
25356
+ if (!wrapper) return { toolchain: "unknown", jdk: null };
25357
+ const distribution = /distributionUrl=.*gradle-(\d+(?:\.\d+){1,2})-(?:bin|all)\.zip/.exec(
25358
+ wrapper.content
25359
+ );
25360
+ if (distribution?.[1] !== "4.6") return { toolchain: "unknown", jdk: null };
25361
+ addEvidence(evidence23, wrapper, distribution.index, "Gradle 4.6 wrapper -> JDK 8 runner");
25362
+ return { toolchain: "gradle-4.6", jdk: 8 };
25363
+ };
25364
+ databaseVendorOf = (value) => {
25365
+ const normalized = value.toLowerCase();
25366
+ if (normalized.includes("mariadb")) return "mariadb";
25367
+ if (normalized.includes("postgresql") || normalized.includes("postgres")) return "postgres";
25368
+ if (normalized.includes("oracle")) return "oracle";
25369
+ return null;
25370
+ };
25371
+ readDatabase = (files) => {
25372
+ const evidence23 = [];
25373
+ const vendors = /* @__PURE__ */ new Set();
25374
+ const configFiles = files.filter((file) => {
25375
+ const path2 = normalizedPath(file.path).toLowerCase();
25376
+ return path2.endsWith("portal-ext.properties") || /(?:^|\/)osgi\/configs\/[^/]+\.(?:config|cfg)$/i.test(path2);
25377
+ });
25378
+ for (const file of configFiles) {
25379
+ const content = maskComments(file.content);
25380
+ const facts = [
25381
+ /(?:jdbc\.default\.(?:url|driverclassname)|jdbc\.url)\s*[=:]\s*([^\r\n#]+)/gi,
25382
+ /(?:jdbc:)?(mariadb|postgresql|oracle):/gi,
25383
+ /(?:org\.mariadb\.jdbc\.driver|org\.postgresql\.driver|oracle\.jdbc)/gi
25384
+ ];
25385
+ for (const fact of facts) {
25386
+ for (const match of content.matchAll(fact)) {
25387
+ const vendor = databaseVendorOf(match[0]);
25388
+ if (!vendor || match.index === void 0) continue;
25389
+ vendors.add(vendor);
25390
+ addEvidence(evidence23, file, match.index, `portal database vendor ${vendor}`);
25391
+ }
25392
+ }
25393
+ }
25394
+ if (vendors.size === 1) {
25395
+ return { vendor: [...vendors][0], resolution: "source", evidence: evidence23 };
25396
+ }
25397
+ return { vendor: null, resolution: "unresolved", evidence: evidence23 };
25398
+ };
25399
+ isPortalConfigFile = (file) => {
25400
+ const path2 = normalizedPath(file.path).toLowerCase();
25401
+ return path2.endsWith("portal-ext.properties") || /(?:^|\/)osgi\/configs\/[^/]+\.(?:config|cfg)$/i.test(path2);
25402
+ };
25403
+ normalizeApplicationBase = (raw) => {
25404
+ const value = raw.trim().replace(/^['"]|['"]$/g, "");
25405
+ if (!value || value.includes("${")) return null;
25406
+ const prefixed = value.startsWith("/") ? value : `/${value}`;
25407
+ return prefixed === "/" ? prefixed : prefixed.replace(/\/+$/, "");
25408
+ };
25409
+ readApplicationBase = (files, modulePath) => {
25410
+ const evidence23 = [];
25411
+ const bases = /* @__PURE__ */ new Set();
25412
+ const modulePrefix = modulePath ? `${modulePath}/` : "";
25413
+ const candidates = files.filter((file) => {
25414
+ const path3 = normalizedPath(file.path);
25415
+ return isPortalConfigFile(file) || path3.endsWith(".java") && path3.startsWith(modulePrefix);
25416
+ });
25417
+ for (const file of candidates) {
25418
+ const content = maskComments(file.content);
25419
+ const facts = [
25420
+ /osgi\.jaxrs\.application\.base\s*[=:]\s*["']?([^"'\\\s,)};]+)/gi,
25421
+ /(?:JaxrsWhiteboardConstants\.)?JAX_RS_APPLICATION_BASE\s*\+\s*["']\s*=\s*([^"']+)["']/g,
25422
+ /@ApplicationPath\s*\(\s*["']([^"']+)["']\s*\)/g
25423
+ ];
25424
+ for (const fact of facts) {
25425
+ for (const match of content.matchAll(fact)) {
25426
+ const base = normalizeApplicationBase(match[1] ?? "");
25427
+ if (!base || match.index === void 0) continue;
25428
+ bases.add(base);
25429
+ addEvidence(evidence23, file, match.index, `JAX-RS application base ${base}`);
25430
+ }
25431
+ }
25432
+ }
25433
+ if (bases.size !== 1) return { path: null, resolution: "unresolved", evidence: evidence23 };
25434
+ const [path2] = bases;
25435
+ return path2 ? { path: path2, resolution: "source", evidence: evidence23 } : { path: null, resolution: "unresolved", evidence: evidence23 };
25436
+ };
25437
+ readSearch = (files) => {
25438
+ const evidence23 = [];
25439
+ for (const file of files.filter(isPortalConfigFile)) {
25440
+ for (const match of maskComments(file.content).matchAll(/\belasticsearch\b/gi)) {
25441
+ if (match.index === void 0) continue;
25442
+ addEvidence(evidence23, file, match.index, "portal search service elasticsearch");
25443
+ }
25444
+ }
25445
+ return evidence23.length > 0 ? { kind: "elasticsearch", resolution: "source", evidence: evidence23 } : { kind: null, resolution: "unresolved", evidence: evidence23 };
25446
+ };
25447
+ detectLiferayRuntimeProfile = (files, module) => {
25448
+ const selected = module.selected;
25449
+ if (!selected || selected.launchMode !== "liferay-osgi") return null;
25450
+ const evidence23 = [];
25451
+ const portalReleaseRead = readPortalRelease(files, selected.path, evidence23);
25452
+ const sourceProductRead = readSourceProduct(files, evidence23);
25453
+ const portalRelease = portalReleaseRead.value;
25454
+ const sourceProduct = sourceProductRead.value;
25455
+ const { toolchain: gradleToolchain, jdk: requiredJdkMajor } = readToolchain(files, evidence23);
25456
+ const bundle = readBundleIdentity(files, selected.path, evidence23);
25457
+ const applicationBase = readApplicationBase(files, selected.path);
25458
+ const database = readDatabase(files);
25459
+ const search = readSearch(files);
25460
+ const compatibilityKey = portalRelease === "7.1" && requiredJdkMajor === 8 ? "portal-7-1-jdk8" : null;
25461
+ const blockers = [];
25462
+ const limitations = [];
25463
+ if (portalReleaseRead.conflicted)
25464
+ blockers.push("Conflicting literal com.liferay.portal.kernel releases were found.");
25465
+ else if (!portalRelease)
25466
+ blockers.push("No supported literal com.liferay.portal.kernel major was found.");
25467
+ if (sourceProductRead.conflicted)
25468
+ blockers.push("Conflicting literal liferay.workspace.product declarations were found.");
25469
+ if (requiredJdkMajor === null)
25470
+ blockers.push("No supported Gradle wrapper/JDK compatibility tuple was found.");
25471
+ if (!bundle) blockers.push("The selected module has no literal Bundle-SymbolicName in bnd.bnd.");
25472
+ if (!applicationBase.path)
25473
+ limitations.push("No deterministic JAX-RS application base was found.");
25474
+ if (!database.vendor)
25475
+ limitations.push(
25476
+ "Portal database vendor is unresolved; the operator-owned disposable profile will be used."
25477
+ );
25478
+ if (database.vendor === "oracle")
25479
+ blockers.push("Oracle is source-detected but has no supported disposable portal DB adapter.");
25480
+ if (!search.kind)
25481
+ limitations.push(
25482
+ "Portal search-service requirement is unresolved; route adapters remain not-tested."
25483
+ );
25484
+ if (!compatibilityKey)
25485
+ blockers.push("No supported closed portal compatibility key matches the source tuple.");
25486
+ blockers.push(
25487
+ "No operator-approved, digest-pinned portal image mapping is embedded in submitted source."
25488
+ );
25489
+ return {
25490
+ state: portalRelease !== null && requiredJdkMajor !== null && bundle !== null ? "candidate" : "unresolved",
25491
+ compatibilityKey,
25492
+ portalRelease,
25493
+ sourceProduct,
25494
+ gradleToolchain,
25495
+ requiredJdkMajor,
25496
+ bundle,
25497
+ applicationBase,
25498
+ database,
25499
+ search,
25500
+ evidence: evidence23,
25501
+ blockers,
25502
+ limitations
25503
+ };
25504
+ };
25276
25505
  applyKafkaBrokerCoherence = (plan) => {
25277
25506
  if (plan.harness.kafka !== "disposable-broker-required") return plan.boot;
25278
25507
  const tier1KafkaKeys = [
@@ -25339,6 +25568,7 @@ ${window}`;
25339
25568
  files,
25340
25569
  options?.modulePath === void 0 ? void 0 : { modulePath: options.modulePath }
25341
25570
  );
25571
+ const liferayRuntime = detectLiferayRuntimeProfile(files, module);
25342
25572
  const harness = buildHarnessPlan(files, {
25343
25573
  ...options?.trustTier !== void 0 ? { trustTier: options.trustTier } : {},
25344
25574
  eagerKafkaStartupJars: options?.eagerKafkaStartupJars ?? []
@@ -25377,6 +25607,7 @@ ${window}`;
25377
25607
  schemaVersion: RUNTIME_PLAN_SCHEMA_VERSION,
25378
25608
  note: PLAN_NOTE,
25379
25609
  module,
25610
+ liferayRuntime,
25380
25611
  harness,
25381
25612
  dbSidecar,
25382
25613
  schemaProvisioning,
@@ -25985,7 +26216,7 @@ ${todos.join("\n")}` : "";
25985
26216
  cweId: "CWE-502"
25986
26217
  };
25987
26218
  MAX_EVIDENCE18 = 50;
25988
- lineOf16 = (content, index2) => {
26219
+ lineOf17 = (content, index2) => {
25989
26220
  let line2 = 1;
25990
26221
  for (let i = 0; i < index2 && i < content.length; i++) {
25991
26222
  if (content[i] === "\n") line2++;
@@ -26031,7 +26262,7 @@ ${todos.join("\n")}` : "";
26031
26262
  const { content, path: path2 } = f;
26032
26263
  for (const { re, note, confidence } of UNSAFE_PATTERNS) {
26033
26264
  for (const m of content.matchAll(re)) {
26034
- hits.push({ file: path2, line: lineOf16(content, m.index ?? 0), note, confidence });
26265
+ hits.push({ file: path2, line: lineOf17(content, m.index ?? 0), note, confidence });
26035
26266
  }
26036
26267
  }
26037
26268
  }
@@ -26047,7 +26278,7 @@ ${todos.join("\n")}` : "";
26047
26278
  firstSafeValidator = (javaFiles) => {
26048
26279
  for (const f of javaFiles) {
26049
26280
  const m = SAFE_VALIDATOR_RE.exec(f.content);
26050
- if (m) return { file: f.path, line: lineOf16(f.content, m.index) };
26281
+ if (m) return { file: f.path, line: lineOf17(f.content, m.index) };
26051
26282
  }
26052
26283
  return null;
26053
26284
  };
@@ -26126,7 +26357,7 @@ ${todos.join("\n")}` : "";
26126
26357
  cweId: "CWE-338"
26127
26358
  };
26128
26359
  MAX_EVIDENCE19 = 50;
26129
- lineOf17 = (content, index2) => {
26360
+ lineOf18 = (content, index2) => {
26130
26361
  let line2 = 1;
26131
26362
  for (let i = 0; i < index2 && i < content.length; i++) {
26132
26363
  if (content[i] === "\n") line2++;
@@ -26200,7 +26431,7 @@ ${todos.join("\n")}` : "";
26200
26431
  if (sec) {
26201
26432
  hits.push({
26202
26433
  file: path2,
26203
- line: lineOf17(content, idx),
26434
+ line: lineOf18(content, idx),
26204
26435
  note: `${label} d\xF9ng cho gi\xE1 tr\u1ECB b\u1EA3o m\u1EADt "${sec[0]}" \u2014 PRNG \u0111o\xE1n \u0111\u01B0\u1EE3c (CWE-338); OTP/token/secret c\xF3 th\u1EC3 b\u1ECB suy \u0111o\xE1n/brute-force. D\xF9ng java.security.SecureRandom.`
26205
26436
  });
26206
26437
  continue;
@@ -26208,7 +26439,7 @@ ${todos.join("\n")}` : "";
26208
26439
  if (reachesCookie(content, namesCarrying(content, stmt))) {
26209
26440
  hits.push({
26210
26441
  file: path2,
26211
- line: lineOf17(content, idx),
26442
+ line: lineOf18(content, idx),
26212
26443
  note: `${label} sinh gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c \u0111\u01B0a v\xE0o Cookie \u2014 token/session \u0111o\xE1n \u0111\u01B0\u1EE3c (CWE-330), b\u1EA5t k\u1EC3 bi\u1EBFn t\xEAn g\xEC. D\xF9ng java.security.SecureRandom.`
26213
26444
  });
26214
26445
  }
@@ -26228,7 +26459,7 @@ ${todos.join("\n")}` : "";
26228
26459
  for (const f of javaFiles) {
26229
26460
  if (isTestSourcePath(f.path)) continue;
26230
26461
  const m = SECURE_RANDOM_RE.exec(f.content);
26231
- if (m) return { file: f.path, line: lineOf17(f.content, m.index) };
26462
+ if (m) return { file: f.path, line: lineOf18(f.content, m.index) };
26232
26463
  }
26233
26464
  return null;
26234
26465
  };
@@ -26306,7 +26537,7 @@ ${todos.join("\n")}` : "";
26306
26537
  cweId: "CWE-345"
26307
26538
  };
26308
26539
  MAX_EVIDENCE20 = 50;
26309
- lineOf18 = (content, index2) => {
26540
+ lineOf19 = (content, index2) => {
26310
26541
  let line2 = 1;
26311
26542
  for (let i = 0; i < index2 && i < content.length; i++) {
26312
26543
  if (content[i] === "\n") line2++;
@@ -26335,7 +26566,7 @@ ${todos.join("\n")}` : "";
26335
26566
  for (const m of file.content.matchAll(re)) {
26336
26567
  hits.push({
26337
26568
  file: file.path,
26338
- line: lineOf18(file.content, m.index ?? 0),
26569
+ line: lineOf19(file.content, m.index ?? 0),
26339
26570
  note: `${label} \u2014 kh\xF4ng th\u1EA5y ki\u1EC3m tra event.origin trong file; handler tin M\u1ECCI origin g\u1EEDi t\u1EDBi (CWE-345). Ki\u1EC3m event.origin so v\u1EDBi allowlist tr\u01B0\u1EDBc khi x\u1EED l\xFD event.data.`
26340
26571
  });
26341
26572
  }
@@ -26411,7 +26642,7 @@ ${todos.join("\n")}` : "";
26411
26642
  };
26412
26643
  MAX_EVIDENCE21 = 200;
26413
26644
  MAX_PER_KIND = 100;
26414
- lineOf19 = (content, index2) => {
26645
+ lineOf20 = (content, index2) => {
26415
26646
  let line2 = 1;
26416
26647
  for (let i = 0; i < index2 && i < content.length; i++) {
26417
26648
  if (content[i] === "\n") line2++;
@@ -26482,7 +26713,7 @@ ${todos.join("\n")}` : "";
26482
26713
  kind: "route-guard",
26483
26714
  name: m[1] ?? "",
26484
26715
  file: path2,
26485
- line: lineOf19(content, m.index ?? 0),
26716
+ line: lineOf20(content, m.index ?? 0),
26486
26717
  note: "functional route guard c\xF3 type annotation (CanActivateFn/CanMatchFn/\u2026)"
26487
26718
  });
26488
26719
  guardDeclaringFiles.add(path2);
@@ -26492,7 +26723,7 @@ ${todos.join("\n")}` : "";
26492
26723
  kind: "route-guard",
26493
26724
  name: m[1] ?? "",
26494
26725
  file: path2,
26495
- line: lineOf19(content, m.index ?? 0),
26726
+ line: lineOf20(content, m.index ?? 0),
26496
26727
  note: "export function theo quy \u01B0\u1EDBc tham s\u1ED1 guard (route, state)"
26497
26728
  });
26498
26729
  guardDeclaringFiles.add(path2);
@@ -26502,7 +26733,7 @@ ${todos.join("\n")}` : "";
26502
26733
  kind: "route-guard",
26503
26734
  name: m[1] ?? "",
26504
26735
  file: path2,
26505
- line: lineOf19(content, m.index ?? 0),
26736
+ line: lineOf20(content, m.index ?? 0),
26506
26737
  note: "class implements CanActivate/CanMatch/CanDeactivate/CanLoad"
26507
26738
  });
26508
26739
  guardDeclaringFiles.add(path2);
@@ -26512,7 +26743,7 @@ ${todos.join("\n")}` : "";
26512
26743
  kind: "route-guard",
26513
26744
  name: m[0].trim(),
26514
26745
  file: path2,
26515
- line: lineOf19(content, m.index ?? 0),
26746
+ line: lineOf20(content, m.index ?? 0),
26516
26747
  note: "Vue Router guard khai b\xE1o; c\u1EA7n \u0111\u1ED1i chi\u1EBFu route t\u1EDBi sink"
26517
26748
  });
26518
26749
  guardDeclaringFiles.add(path2);
@@ -26522,7 +26753,7 @@ ${todos.join("\n")}` : "";
26522
26753
  kind: "http-interceptor",
26523
26754
  name: m[1] ?? "",
26524
26755
  file: path2,
26525
- line: lineOf19(content, m.index ?? 0),
26756
+ line: lineOf20(content, m.index ?? 0),
26526
26757
  note: "HttpInterceptorFn functional interceptor"
26527
26758
  });
26528
26759
  }
@@ -26531,7 +26762,7 @@ ${todos.join("\n")}` : "";
26531
26762
  kind: "http-interceptor",
26532
26763
  name: m[0].trim(),
26533
26764
  file: path2,
26534
- line: lineOf19(content, m.index ?? 0),
26765
+ line: lineOf20(content, m.index ?? 0),
26535
26766
  note: "Axios interceptor \u0111\u0103ng k\xFD; c\u1EA7n \u0111\u1ED1i chi\u1EBFu HTTP flow t\u1EDBi sink"
26536
26767
  });
26537
26768
  }
@@ -26540,7 +26771,7 @@ ${todos.join("\n")}` : "";
26540
26771
  kind: "http-interceptor",
26541
26772
  name: `HTTP_INTERCEPTORS \u2192 ${m[1] ?? ""}`,
26542
26773
  file: path2,
26543
- line: lineOf19(content, m.index ?? 0),
26774
+ line: lineOf20(content, m.index ?? 0),
26544
26775
  note: "DI binding v\xE0o token multi-provider HTTP_INTERCEPTORS"
26545
26776
  });
26546
26777
  }
@@ -26556,7 +26787,7 @@ ${todos.join("\n")}` : "";
26556
26787
  kind: "http-interceptor",
26557
26788
  name: m[1] ?? "",
26558
26789
  file: path2,
26559
- line: lineOf19(content, m.index ?? 0),
26790
+ line: lineOf20(content, m.index ?? 0),
26560
26791
  note: "class implements HttpInterceptor + intercept() c\xF9ng file"
26561
26792
  });
26562
26793
  }
@@ -26566,7 +26797,7 @@ ${todos.join("\n")}` : "";
26566
26797
  kind: "http-interceptor",
26567
26798
  name: "HTTP_INTERCEPTORS",
26568
26799
  file: path2,
26569
- line: lineOf19(content, tokenMention),
26800
+ line: lineOf20(content, tokenMention),
26570
26801
  note: "file tham chi\u1EBFu token HTTP_INTERCEPTORS (mention \u2014ch\u01B0a th\u1EA5y binding trong c\xF9ng file)"
26571
26802
  });
26572
26803
  }
@@ -26575,7 +26806,7 @@ ${todos.join("\n")}` : "";
26575
26806
  kind: "sanitizer",
26576
26807
  name: "DomSanitizer.sanitize",
26577
26808
  file: path2,
26578
- line: lineOf19(content, m.index ?? 0),
26809
+ line: lineOf20(content, m.index ?? 0),
26579
26810
  note: "DomSanitizer.sanitize(SecurityContext\u2026, \u2026) \u2014ch\u1EE7 \u0111\u1ED9ng sanitize \u0111\xFAng ng\u1EEF c\u1EA3nh"
26580
26811
  });
26581
26812
  }
@@ -26587,7 +26818,7 @@ ${todos.join("\n")}` : "";
26587
26818
  kind: "sanitizer",
26588
26819
  name,
26589
26820
  file: path2,
26590
- line: lineOf19(content, m.index ?? 0),
26821
+ line: lineOf20(content, m.index ?? 0),
26591
26822
  note: "helper escape/sanitize t\u1EF1 \u0111\u1ECBnh ngh\u0129a V\xC0 \u0111\u01B0\u1EE3c g\u1ECDi trong c\xF9ng file"
26592
26823
  });
26593
26824
  }
@@ -26597,7 +26828,7 @@ ${todos.join("\n")}` : "";
26597
26828
  kind: "sanitizer",
26598
26829
  name: m[0].replace(/\s*\($/, ""),
26599
26830
  file: path2,
26600
- line: lineOf19(content, m.index ?? 0),
26831
+ line: lineOf20(content, m.index ?? 0),
26601
26832
  note: "bypassSecurityTrust* \u2014file t\u1EF1 qu\u1EA3n l\xFD trust (L\u01AFU \xDD: bypass L\xC0 b\u1EC1 m\u1EB7t r\u1EE7i ro, kh\xF4ng ph\u1EA3i l\u1EDBp ch\u1EAFn)"
26602
26833
  });
26603
26834
  }
@@ -26611,7 +26842,7 @@ ${todos.join("\n")}` : "";
26611
26842
  kind: "url-check",
26612
26843
  name: label.split(" \u2014")[0] ?? "",
26613
26844
  file: path2,
26614
- line: lineOf19(content, m.index ?? 0),
26845
+ line: lineOf20(content, m.index ?? 0),
26615
26846
  note: label
26616
26847
  });
26617
26848
  }
@@ -26660,7 +26891,7 @@ ${todos.join("\n")}` : "";
26660
26891
  cweId: "CWE-1021"
26661
26892
  };
26662
26893
  MAX_EVIDENCE222 = 50;
26663
- lineOf20 = (content, index2) => {
26894
+ lineOf21 = (content, index2) => {
26664
26895
  let line2 = 1;
26665
26896
  for (let i = 0; i < index2 && i < content.length; i++) {
26666
26897
  if (content[i] === "\n") line2++;
@@ -26678,7 +26909,7 @@ ${todos.join("\n")}` : "";
26678
26909
  for (const m of content.matchAll(META_HTTP_EQUIV_RE)) {
26679
26910
  hits.push({
26680
26911
  file: path2,
26681
- line: lineOf20(content, m.index ?? 0),
26912
+ line: lineOf21(content, m.index ?? 0),
26682
26913
  headerName: (m[1] ?? "").toLowerCase(),
26683
26914
  headerValue: m[2] ?? ""
26684
26915
  });
@@ -26688,7 +26919,7 @@ ${todos.join("\n")}` : "";
26688
26919
  for (const m of content.matchAll(ADD_HEADER_RE)) {
26689
26920
  hits.push({
26690
26921
  file: path2,
26691
- line: lineOf20(content, m.index ?? 0),
26922
+ line: lineOf21(content, m.index ?? 0),
26692
26923
  headerName: (m[1] ?? "").toLowerCase(),
26693
26924
  headerValue: (m[2] ?? "").trim()
26694
26925
  });
@@ -26816,7 +27047,7 @@ ${todos.join("\n")}` : "";
26816
27047
  cweId: "CWE-614"
26817
27048
  };
26818
27049
  MAX_EVIDENCE23 = 50;
26819
- lineOf21 = (content, index2) => {
27050
+ lineOf22 = (content, index2) => {
26820
27051
  let line2 = 1;
26821
27052
  for (let i = 0; i < index2 && i < content.length; i++) {
26822
27053
  if (content[i] === "\n") line2++;
@@ -26862,7 +27093,7 @@ ${todos.join("\n")}` : "";
26862
27093
  if (!hasSameSite) missing.push("SameSite");
26863
27094
  hits.push({
26864
27095
  file: path2,
26865
- line: lineOf21(content, m.index ?? 0),
27096
+ line: lineOf22(content, m.index ?? 0),
26866
27097
  note: `${cls.note} \u2014 THI\u1EBEU c\u1EDD ${missing.join(" v\xE0 ")} (HttpOnly v\xF4 ngh\u0129a t\u1EEB JS, ch\u1EC9 ghi limitation)`,
26867
27098
  confidence: cls.confidence >= 85 ? 70 : 70
26868
27099
  });
@@ -27019,7 +27250,7 @@ ${todos.join("\n")}` : "";
27019
27250
  cweId: "CWE-611"
27020
27251
  };
27021
27252
  MAX_EVIDENCE24 = 50;
27022
- lineOf22 = (content, index2) => {
27253
+ lineOf23 = (content, index2) => {
27023
27254
  let line2 = 1;
27024
27255
  for (let i = 0; i < index2 && i < content.length; i++) {
27025
27256
  if (content[i] === "\n") line2++;
@@ -27048,7 +27279,7 @@ ${todos.join("\n")}` : "";
27048
27279
  for (const m of file.content.matchAll(re)) {
27049
27280
  hits.push({
27050
27281
  file: file.path,
27051
- line: lineOf22(file.content, m.index ?? 0),
27282
+ line: lineOf23(file.content, m.index ?? 0),
27052
27283
  note: `${label} \u2014 parser XML KH\xD4NG th\u1EA5y hardening (disable DOCTYPE/external-entities/secure-processing) trong file; XML kh\xF4ng tin c\u1EADy c\xF3 th\u1EC3 ch\xE8n external entity \u0111\u1ECDc file n\u1ED9i b\u1ED9 / SSRF / billion-laughs (CWE-611).`
27053
27284
  });
27054
27285
  }
@@ -27127,7 +27358,7 @@ ${todos.join("\n")}` : "";
27127
27358
  cweId: "CWE-295"
27128
27359
  };
27129
27360
  MAX_EVIDENCE25 = 50;
27130
- lineOf23 = (content, index2) => {
27361
+ lineOf24 = (content, index2) => {
27131
27362
  let line2 = 1;
27132
27363
  for (let i = 0; i < index2 && i < content.length; i++) {
27133
27364
  if (content[i] === "\n") line2++;
@@ -27191,7 +27422,7 @@ ${todos.join("\n")}` : "";
27191
27422
  if (isImportOrPackageLine(file.content, idx)) continue;
27192
27423
  hits.push({
27193
27424
  file: file.path,
27194
- line: lineOf23(file.content, idx),
27425
+ line: lineOf24(file.content, idx),
27195
27426
  note: `${label} (CWE-295) \u2014 client TLS ch\u1EA5p nh\u1EADn cert/hostname kh\xF4ng h\u1EE3p l\u1EC7 \u2192 m\u1EDF \u0111\u01B0\u1EDDng t\u1EA5n c\xF4ng man-in-the-middle \u0111\u1ECDc/s\u1EEDa l\u01B0u l\u01B0\u1EE3ng \u0111\xE3 m\xE3 ho\xE1.`
27196
27427
  });
27197
27428
  }
@@ -27278,6 +27509,20 @@ ${todos.join("\n")}` : "";
27278
27509
  const h = host.toLowerCase();
27279
27510
  return h === "localhost" || h === "127.0.0.1" || h === "0.0.0.0" || h === "::1";
27280
27511
  };
27512
+ UNREFERENCABLE_BASE_IMAGE = /* @__PURE__ */ new Set(["scratch"]);
27513
+ baseImageReference = (instruction) => instruction.trim().replace(/^FROM\s+/i, "").split(/\s+/).find((w) => w.length > 0 && !w.startsWith("--")) ?? "";
27514
+ FLOATING_TAG_RE = /(?:^|\.)[xX*]$|^\*$/;
27515
+ unpinnedBaseImageReason = (reference) => {
27516
+ const image = reference.trim();
27517
+ if (!image || UNREFERENCABLE_BASE_IMAGE.has(image.toLowerCase())) return null;
27518
+ if (image.includes("@")) return null;
27519
+ const lastSlash = image.lastIndexOf("/");
27520
+ const lastColon = image.lastIndexOf(":");
27521
+ const hasTag = lastColon > lastSlash;
27522
+ const tag = hasTag ? image.slice(lastColon + 1) : "";
27523
+ if (hasTag && tag && tag !== "latest" && !FLOATING_TAG_RE.test(tag)) return null;
27524
+ return hasTag && tag === "latest" ? `Base image \`${image}\` d\xF9ng tag \`latest\` \u2014 kh\xF4ng c\xF3 version r\xE0ng bu\u1ED9c, tag n\xE0y c\xF3 th\u1EC3 b\u1ECB \u0111\u1ED5i n\u1ED9i dung b\u1EA5t k\u1EF3 l\xFAc n\xE0o (CWE-427).` : `Base image \`${image}\` kh\xF4ng c\xF3 tag/digest \u2014 m\u1EB7c \u0111\u1ECBnh l\xE0 \`latest\`, ai \u0111\xF3 c\xF3 quy\u1EC1n \u0111\u1EA9y l\xEAn registry \u0111\u1EC1u thay \u0111\u01B0\u1EE3c image n\xE0y (CWE-427).`;
27525
+ };
27281
27526
  auditDockerfileDependencyConfusion = (content, filePath) => {
27282
27527
  const lines = content.split("\n");
27283
27528
  const hits = [];
@@ -27311,6 +27556,20 @@ ${todos.join("\n")}` : "";
27311
27556
  line: i + 1,
27312
27557
  reason: "Dockerfile c\u1EA5u h\xECnh kho th\u01B0 vi\u1EC7n (registry) qua giao th\u1EE9c HTTP kh\xF4ng m\xE3 h\xF3a (cleartext) \u2014 CWE-319."
27313
27558
  });
27559
+ continue;
27560
+ }
27561
+ if (/^FROM\s+\S/i.test(trimmed)) {
27562
+ const reason = unpinnedBaseImageReason(baseImageReference(trimmed));
27563
+ if (reason) {
27564
+ hits.push({
27565
+ file: filePath,
27566
+ line: i + 1,
27567
+ reason,
27568
+ severity: "warning",
27569
+ confidence: 75,
27570
+ suggestion: "Ghim base image b\u1EB1ng digest b\u1EA5t bi\u1EBFn (`image@sha256:\u2026`) ho\u1EB7c \xEDt nh\u1EA5t m\u1ED9t tag c\u1EE5 th\u1EC3 kh\xF4ng ph\u1EA3i `latest`; v\u1EDBi registry n\u1ED9i b\u1ED9, b\u1EADt immutability/tag protection."
27571
+ });
27572
+ }
27314
27573
  }
27315
27574
  }
27316
27575
  return hits;
@@ -27472,7 +27731,7 @@ ${todos.join("\n")}` : "";
27472
27731
  cweId: "CWE-644"
27473
27732
  };
27474
27733
  MAX_EVIDENCE26 = 50;
27475
- lineOf25 = (content, index2) => {
27734
+ lineOf26 = (content, index2) => {
27476
27735
  let line2 = 1;
27477
27736
  for (let i = 0; i < index2 && i < content.length; i++) {
27478
27737
  if (content[i] === "\n") line2++;
@@ -27519,7 +27778,7 @@ ${todos.join("\n")}` : "";
27519
27778
  for (const m of content.matchAll(re)) {
27520
27779
  const dot = content.lastIndexOf(".", (m.index ?? 0) + m[0].indexOf("get"));
27521
27780
  if (!isRequestReceiver(content, receiverOf(content, dot))) continue;
27522
- hits.push({ file: path2, line: lineOf25(content, m.index ?? 0), note, confidence });
27781
+ hits.push({ file: path2, line: lineOf26(content, m.index ?? 0), note, confidence });
27523
27782
  }
27524
27783
  }
27525
27784
  }
@@ -27619,7 +27878,7 @@ ${todos.join("\n")}` : "";
27619
27878
  MINUTES: 60,
27620
27879
  HOURS: 3600
27621
27880
  };
27622
- lineOf26 = (content, index2) => content.slice(0, index2).split("\n").length;
27881
+ lineOf27 = (content, index2) => content.slice(0, index2).split("\n").length;
27623
27882
  isOtpLifetimeName = (name) => hasOtpToken(name) && LIFETIME_TOKEN_RE.test(name);
27624
27883
  configRank = (path2) => /application-prod/i.test(path2) ? 0 : 1;
27625
27884
  inconclusive = (note, limitation) => (
@@ -27706,7 +27965,7 @@ ${todos.join("\n")}` : "";
27706
27965
  cweId: "CWE-521"
27707
27966
  };
27708
27967
  MAX_EVIDENCE27 = 50;
27709
- lineOf27 = (content, index2) => {
27968
+ lineOf28 = (content, index2) => {
27710
27969
  let line2 = 1;
27711
27970
  for (let i = 0; i < index2 && i < content.length; i++) {
27712
27971
  if (content[i] === "\n") line2++;
@@ -27791,7 +28050,7 @@ ${todos.join("\n")}` : "";
27791
28050
  const field3 = m[1];
27792
28051
  if (!field3 || !isPasswordName(field3)) continue;
27793
28052
  const block = precedingBlock3(file.content, m.index ?? 0);
27794
- const line2 = lineOf27(file.content, m.index ?? 0);
28053
+ const line2 = lineOf28(file.content, m.index ?? 0);
27795
28054
  const sized = SIZE_MIN_RE.exec(block);
27796
28055
  if (sized?.[1]) {
27797
28056
  sites.push({
@@ -27823,7 +28082,7 @@ ${todos.join("\n")}` : "";
27823
28082
  if (!name || !min || !isPasswordName(name)) continue;
27824
28083
  sites.push({
27825
28084
  file: file.path,
27826
- line: lineOf27(file.content, m.index ?? 0),
28085
+ line: lineOf28(file.content, m.index ?? 0),
27827
28086
  field: name,
27828
28087
  min: Number(min),
27829
28088
  how: `ki\u1EC3m tra t\u01B0\u1EDDng minh \`${name}.length()\` v\u1EDBi ng\u01B0\u1EE1ng ${min}`
@@ -27846,7 +28105,7 @@ ${todos.join("\n")}` : "";
27846
28105
  const hits = [];
27847
28106
  for (const { re, label } of POLICY_SURFACE_PATTERNS) {
27848
28107
  const index2 = firstUsageIndex(file.content, re);
27849
- if (index2 !== null) hits.push({ file: file.path, line: lineOf27(file.content, index2), label });
28108
+ if (index2 !== null) hits.push({ file: file.path, line: lineOf28(file.content, index2), label });
27850
28109
  }
27851
28110
  return hits;
27852
28111
  };
@@ -27971,7 +28230,7 @@ ${todos.join("\n")}` : "";
27971
28230
  PASSWORD_ONLY_RE = /sai\s+mật\s+khẩu|mật\s+khẩu\s+(?:không\s+đúng|không\s+chính\s+xác|sai)|wrong\s+password|incorrect\s+password|bad\s+password/i;
27972
28231
  COMBINED_RE = /(?:tên\s+đăng\s+nhập|tài\s+khoản|người\s+dùng)\s+(?:hoặc|hay|\/)\s*mật\s+khẩu|thông\s+tin\s+đăng\s+nhập\s+không|thông\s+tin\s+xác\s+thực\s+không|username\s+or\s+password|invalid\s+credentials|bad\s+credentials/i;
27973
28232
  STRING_LITERAL_RE2 = /"((?:[^"\\\n]|\\.)*)"/g;
27974
- lineOf28 = (content, index2) => {
28233
+ lineOf29 = (content, index2) => {
27975
28234
  let line2 = 1;
27976
28235
  for (let i = 0; i < index2 && i < content.length; i++) {
27977
28236
  if (content[i] === "\n") line2++;
@@ -27984,7 +28243,7 @@ ${todos.join("\n")}` : "";
27984
28243
  for (const m of content.matchAll(STRING_LITERAL_RE2)) {
27985
28244
  const text2 = m[1];
27986
28245
  if (!text2) continue;
27987
- const line2 = lineOf28(content, m.index ?? 0);
28246
+ const line2 = lineOf29(content, m.index ?? 0);
27988
28247
  if (COMBINED_RE.test(text2)) {
27989
28248
  combined.push({
27990
28249
  file: file.path,
@@ -28110,7 +28369,7 @@ ${todos.join("\n")}` : "";
28110
28369
  label: "g\u1ECDi logout endpoint c\u1EE7a identity provider (thu h\u1ED3i refresh token)"
28111
28370
  }
28112
28371
  ];
28113
- lineOf29 = (content, index2) => {
28372
+ lineOf30 = (content, index2) => {
28114
28373
  let line2 = 1;
28115
28374
  for (let i = 0; i < index2 && i < content.length; i++) {
28116
28375
  if (content[i] === "\n") line2++;
@@ -28126,7 +28385,7 @@ ${todos.join("\n")}` : "";
28126
28385
  if (m) {
28127
28386
  hits.push({
28128
28387
  file: file.path,
28129
- line: lineOf29(content, m.index),
28388
+ line: lineOf30(content, m.index),
28130
28389
  note: `${label} \u2014 b\u1EB1ng ch\u1EE9ng phi\xEAn b\u1ECB hu\u1EF7 \u1EDF SERVER, kh\xF4ng ch\u1EC9 xo\xE1 token ph\xEDa client.`
28131
28390
  });
28132
28391
  }
@@ -28197,7 +28456,7 @@ ${todos.join("\n")}` : "";
28197
28456
  dedupeSort3(
28198
28457
  endpointFiles.map((f) => ({
28199
28458
  file: f.path,
28200
- line: lineOf29(f.content, f.content.search(LOGOUT_ENDPOINT_RE)),
28459
+ line: lineOf30(f.content, f.content.search(LOGOUT_ENDPOINT_RE)),
28201
28460
  note: "Endpoint \u0111\u0103ng xu\u1EA5t \u2014 nh\u01B0ng TO\xC0N B\u1ED8 m\xE3 \u0111\xE3 soi kh\xF4ng c\xF3 b\u1EA5t k\u1EF3 c\u01A1 ch\u1EBF hu\u1EF7 phi\xEAn/token ph\xEDa server n\xE0o."
28202
28461
  }))
28203
28462
  ).map((h) => evidenceOf7(h, 70)),
@@ -28235,7 +28494,7 @@ ${todos.join("\n")}` : "";
28235
28494
  label: "rate limiter c\u1EE7a th\u01B0 vi\u1EC7n (resilience4j / Bucket4j)"
28236
28495
  }
28237
28496
  ];
28238
- lineOf30 = (content, index2) => {
28497
+ lineOf31 = (content, index2) => {
28239
28498
  let line2 = 1;
28240
28499
  for (let i = 0; i < index2 && i < content.length; i++) {
28241
28500
  if (content[i] === "\n") line2++;
@@ -28246,7 +28505,7 @@ ${todos.join("\n")}` : "";
28246
28505
  re.lastIndex = 0;
28247
28506
  const m = re.exec(content);
28248
28507
  re.lastIndex = 0;
28249
- return m ? { file: file.path, line: lineOf30(content, m.index), note } : void 0;
28508
+ return m ? { file: file.path, line: lineOf31(content, m.index), note } : void 0;
28250
28509
  };
28251
28510
  dedupeSort4 = (hits) => [...hits].sort((a, b) => a.file === b.file ? a.line - b.line : a.file < b.file ? -1 : 1).filter((h, i, arr) => i === arr.findIndex((x) => x.file === h.file && x.line === h.line)).slice(0, MAX_EVIDENCE30);
28252
28511
  evidenceOf8 = (hit, confidence) => ({
@@ -28340,7 +28599,7 @@ ${todos.join("\n")}` : "";
28340
28599
  { re: URI_TAIL_RE, sinkId: "spring/web-client-ssrf", label: "l\u1EDDi g\u1ECDi .uri() \u0111\u1EB7t \u0111\xEDch request" },
28341
28600
  { re: OPEN_CONNECTION_RE, sinkId: "spring/url-ssrf", label: "m\u1EDF k\u1EBFt n\u1ED1i ra URL" }
28342
28601
  ];
28343
- lineOf31 = (content, index2) => {
28602
+ lineOf32 = (content, index2) => {
28344
28603
  let line2 = 1;
28345
28604
  for (let i = 0; i < index2 && i < content.length; i++) {
28346
28605
  if (content[i] === "\n") line2++;
@@ -28358,7 +28617,7 @@ ${todos.join("\n")}` : "";
28358
28617
  for (let m = re.exec(f.content); m !== null; m = re.exec(f.content)) {
28359
28618
  evidence23.push({
28360
28619
  file: f.path,
28361
- line: lineOf31(f.content, m.index),
28620
+ line: lineOf32(f.content, m.index),
28362
28621
  sinkId,
28363
28622
  sourceIds: [],
28364
28623
  confidence: 60,
@@ -29134,7 +29393,7 @@ ${todos.join("\n")}` : "";
29134
29393
  if (constructedType === void 0) return "existing";
29135
29394
  return loadedTypes.has(constructedType) ? "entity-copy" : "fresh-object";
29136
29395
  };
29137
- lineOf32 = (content, index2) => {
29396
+ lineOf33 = (content, index2) => {
29138
29397
  let line2 = 1;
29139
29398
  for (let i = 0; i < index2 && i < content.length; i += 1) if (content[i] === "\n") line2 += 1;
29140
29399
  return line2;
@@ -29158,8 +29417,8 @@ ${todos.join("\n")}` : "";
29158
29417
  if (name !== void 0 && open2 >= 0) {
29159
29418
  out.push({
29160
29419
  name,
29161
- line: lineOf32(masked, m.index + 1),
29162
- endLine: lineOf32(masked, Math.min(i, masked.length - 1)),
29420
+ line: lineOf33(masked, m.index + 1),
29421
+ endLine: lineOf33(masked, Math.min(i, masked.length - 1)),
29163
29422
  body: masked.slice(open2, Math.min(i + 1, masked.length)),
29164
29423
  bodyStart: open2
29165
29424
  });
@@ -29195,7 +29454,7 @@ ${masked}`;
29195
29454
  const receiver = c[1] ?? "";
29196
29455
  const setter = c[2] ?? "";
29197
29456
  const arg = (c[3] ?? "").trim();
29198
- const line2 = lineOf32(masked, method.bodyStart + c.index);
29457
+ const line2 = lineOf33(masked, method.bodyStart + c.index);
29199
29458
  if (HTTP_STATUS_RECEIVER.test(receiver) || HTTP_STATUS_ARG.test(arg)) {
29200
29459
  if (httpExcluded.length < 3) {
29201
29460
  httpExcluded.push(`${receiver}.${setter}(${arg.slice(0, 28)})`);
@@ -29274,7 +29533,21 @@ ${masked}`;
29274
29533
  "spring-boot/security-sensitive-data-risk": "Sensitive Data Exposure (AI)",
29275
29534
  "spring-boot/io-boundary-risk": "R\u1EE7i ro bi\xEAn filesystem/HTTP/queue (AI)",
29276
29535
  "angular/route-permission-flow": "Route/permission/UI action thi\u1EBFu guard (AI)",
29277
- "angular/cross-feature-route-permission-drift": "Guard route l\u1EC7ch nhau gi\u1EEFa module (AI)"
29536
+ "angular/cross-feature-route-permission-drift": "Guard route l\u1EC7ch nhau gi\u1EEFa module (AI)",
29537
+ // Fortify coverage sweep (2026-10-01): these eight map one-to-one onto Fortify categories in
29538
+ // the Ecabinet CTO report. Seven already existed and matched, but sat outside both fold tables
29539
+ // — `cs assess` ran 18 ids and none of them were here, so those categories reported nothing at
29540
+ // all. The eighth (`dockerfile-dependency-confusion`) existed but could not match its category
29541
+ // until the base-image pinning check was added. None declares `checklistIds`, which is exactly
29542
+ // the contract this list exists for.
29543
+ "general/dockerfile-no-root-user": "Docker ch\u1EA1y v\u1EDBi quy\u1EC1n root (thi\u1EBFu ch\u1EC9 th\u1ECB USER)",
29544
+ "general/dockerfile-dependency-confusion": "Dependency Confusion / base image kh\xF4ng pin version",
29545
+ "general/no-insecure-external-link": "Li\xEAn k\u1EBFt ngo\xE0i b\u1ED9 qua HTTP cleartext",
29546
+ "general/no-insecure-password-submission": "Submit m\u1EADt kh\u1EA9u qua HTTP cleartext ho\u1EB7c GET",
29547
+ "general/no-empty-encryption-key": "Kh\xF3a m\xE3 h\xF3a r\u1ED7ng",
29548
+ "general/sensitive-output-exposure": "D\u1EEF li\u1EC7u nh\u1EA1y c\u1EA3m l\u1ECDt v\xE0o log/console",
29549
+ "general/sensitive-exception-response": "D\u1EEF li\u1EC7u nh\u1EA1y c\u1EA3m l\u1ECDt v\xE0o exception/response",
29550
+ "spring-boot/no-devtools-in-production": "Spring Boot DevTools b\u1EADt trong build/prod"
29278
29551
  };
29279
29552
  EXTRA_FINDING_RULE_IDS = Object.freeze([
29280
29553
  "general/no-sensitive-string-materialization",
@@ -29284,7 +29557,15 @@ ${masked}`;
29284
29557
  "general/no-reflective-access-override",
29285
29558
  "general/java-weak-randomness",
29286
29559
  "spring-boot/no-sql-string-concat",
29287
- "spring-boot/no-trust-boundary-violation"
29560
+ "spring-boot/no-trust-boundary-violation",
29561
+ "general/dockerfile-no-root-user",
29562
+ "general/dockerfile-dependency-confusion",
29563
+ "general/no-insecure-external-link",
29564
+ "general/no-insecure-password-submission",
29565
+ "general/no-empty-encryption-key",
29566
+ "general/sensitive-output-exposure",
29567
+ "general/sensitive-exception-response",
29568
+ "spring-boot/no-devtools-in-production"
29288
29569
  ]);
29289
29570
  EXTRA_AI_RULE_IDS = Object.freeze([
29290
29571
  "spring-boot/security-redirect-risk",
@@ -29522,7 +29803,7 @@ ${masked}`;
29522
29803
  cweId: "CWE-307"
29523
29804
  };
29524
29805
  MAX_EVIDENCE34 = 50;
29525
- lineOf33 = (content, index2) => {
29806
+ lineOf34 = (content, index2) => {
29526
29807
  let line2 = 1;
29527
29808
  for (let i = 0; i < index2 && i < content.length; i++) {
29528
29809
  if (content[i] === "\n") line2++;
@@ -29571,7 +29852,7 @@ ${masked}`;
29571
29852
  if (!name || !LIMIT_NAME_RE.test(name)) continue;
29572
29853
  hits.push({
29573
29854
  file: file.path,
29574
- line: lineOf33(content, m.index ?? 0),
29855
+ line: lineOf34(content, m.index ?? 0),
29575
29856
  note: `\`${name}\` m\u1EB7c \u0111\u1ECBnh = MAX_VALUE \u2014 kh\xF4ng b\u1ED9 \u0111\u1EBFm n\xE0o ch\u1EA1m t\u1EDBi, n\xEAn guard so v\u1EDBi n\xF3 KH\xD4NG BAO GI\u1EDC \u0111\xFAng: nh\xE1nh n\xE0y ch\u1EA1y l\xE0 m\u1EA5t h\u1EB3n gi\u1EDBi h\u1EA1n \u0111\u0103ng nh\u1EADp sai (CWE-636 fail-open).`
29576
29857
  });
29577
29858
  }
@@ -29584,7 +29865,7 @@ ${masked}`;
29584
29865
  for (const { re, label, needsLoginContext } of patterns) {
29585
29866
  re.lastIndex = 0;
29586
29867
  for (const m of content.matchAll(re)) {
29587
- const line2 = lineOf33(content, m.index ?? 0);
29868
+ const line2 = lineOf34(content, m.index ?? 0);
29588
29869
  if (needsLoginContext && !nearLoginContext(lines, line2)) continue;
29589
29870
  if (ISSUANCE_NAME_RE.test(m[0])) continue;
29590
29871
  hits.push({
@@ -33456,8 +33737,11 @@ ${bodyText}` : headerText;
33456
33737
  return noHash.length > 0 ? noHash : "/";
33457
33738
  };
33458
33739
  stripTrailingSlash = (p) => p.length > 1 ? p.replace(/\/+$/, "") : p;
33459
- pathMatches = (alertPath, targetPath) => {
33460
- const a = stripTrailingSlash(alertPath).split("/");
33740
+ pathMatches = (alertPath, targetPath, routePrefix) => {
33741
+ if (routePrefix && alertPath !== routePrefix && !alertPath.startsWith(`${routePrefix}/`))
33742
+ return false;
33743
+ const mapped = routePrefix ? alertPath.slice(routePrefix.length) || "/" : alertPath;
33744
+ const a = stripTrailingSlash(mapped).split("/");
33461
33745
  const t = stripTrailingSlash(targetPath).split("/");
33462
33746
  if (a.length !== t.length) return false;
33463
33747
  for (let i = 0; i < t.length; i++) {
@@ -33468,26 +33752,29 @@ ${bodyText}` : headerText;
33468
33752
  return true;
33469
33753
  };
33470
33754
  methodMatches = (alertMethod, targetMethod) => alertMethod.toUpperCase() === targetMethod.toUpperCase();
33471
- injectionMatches = (alert, target) => {
33472
- if (target.injectionKind === "path") return pathMatches(pathOf(alert.url), target.path);
33473
- return alert.param !== void 0 && alert.param.length > 0 && alert.param === target.injectionName && routeMatchesOrUnknown(alert, target);
33755
+ injectionMatches = (alert, target, routePrefix) => {
33756
+ if (target.injectionKind === "path")
33757
+ return pathMatches(pathOf(alert.url), target.path, routePrefix);
33758
+ return alert.param !== void 0 && alert.param.length > 0 && alert.param === target.injectionName && routeMatchesOrUnknown(alert, target, routePrefix);
33474
33759
  };
33475
- routeMatchesOrUnknown = (alert, target) => {
33760
+ routeMatchesOrUnknown = (alert, target, routePrefix) => {
33476
33761
  if (alert.url.trim().length === 0) return true;
33477
- return pathMatches(pathOf(alert.url), target.path);
33762
+ return pathMatches(pathOf(alert.url), target.path, routePrefix);
33478
33763
  };
33479
- alertMatchesTarget = (alert, target) => alert.scanRuleId === target.scanRuleId && methodMatches(alert.method, target.httpMethod) && injectionMatches(alert, target);
33764
+ alertMatchesTarget = (alert, target, routePrefix) => alert.scanRuleId === target.scanRuleId && methodMatches(alert.method, target.httpMethod) && injectionMatches(alert, target, routePrefix);
33480
33765
  queryHasParam = (query, name) => query.split("&").some((kv) => (kv.split("=", 1)[0] ?? "") === name);
33481
- messageMatchesSurface = (msg, target) => {
33766
+ messageMatchesSurface = (msg, target, routePrefix) => {
33482
33767
  if (!methodMatches(msg.method, target.httpMethod)) return false;
33483
- if (!pathMatches(msg.path, target.path)) return false;
33768
+ if (!pathMatches(msg.path, target.path, routePrefix)) return false;
33484
33769
  if (target.injectionKind === "query") return queryHasParam(msg.query, target.injectionName);
33485
33770
  return true;
33486
33771
  };
33487
- computeDastCoverage = (targets, messages, scanCompleted) => {
33772
+ computeDastCoverage = (targets, messages, scanCompleted, routePrefix) => {
33488
33773
  const coverage = /* @__PURE__ */ new Map();
33489
33774
  for (const target of targets) {
33490
- const requestCount = messages.filter((m) => messageMatchesSurface(m, target)).length;
33775
+ const requestCount = messages.filter(
33776
+ (m) => messageMatchesSurface(m, target, routePrefix)
33777
+ ).length;
33491
33778
  coverage.set(target.executionTargetId, classifyDastCoverage({ requestCount, scanCompleted }));
33492
33779
  }
33493
33780
  return coverage;
@@ -33515,7 +33802,7 @@ ${bodyText}` : headerText;
33515
33802
  for (let i = 0; i < parsed.alerts.length; i++) {
33516
33803
  const alert = parsed.alerts[i];
33517
33804
  if (!alert) continue;
33518
- const hits = manifest.targets.filter((t) => alertMatchesTarget(alert, t));
33805
+ const hits = manifest.targets.filter((t) => alertMatchesTarget(alert, t, options.routePrefix));
33519
33806
  if (hits.length === 0) continue;
33520
33807
  matchedAlerts.add(i);
33521
33808
  const unambiguous = hits.length === 1;
@@ -33576,7 +33863,12 @@ ${bodyText}` : headerText;
33576
33863
  ...parsed.reportInstant !== void 0 ? { reportInstant: parsed.reportInstant } : {},
33577
33864
  ...latestMessageAt !== void 0 ? { latestMessageAt } : {}
33578
33865
  }) : void 0;
33579
- const coverageMap = options.messages !== void 0 && coverageProv?.withdraw !== true ? computeDastCoverage(manifest.targets, options.messages, options.scanCompleted ?? true) : void 0;
33866
+ const coverageMap = options.messages !== void 0 && coverageProv?.withdraw !== true ? computeDastCoverage(
33867
+ manifest.targets,
33868
+ options.messages,
33869
+ options.scanCompleted ?? true,
33870
+ options.routePrefix
33871
+ ) : void 0;
33580
33872
  const withCoverage = (r) => {
33581
33873
  const c = coverageMap?.get(r.executionTargetId);
33582
33874
  return c !== void 0 ? { ...r, coverage: c } : r;
@@ -33883,7 +34175,7 @@ ${bodyText}` : headerText;
33883
34175
  MAX_EVIDENCE35 = 50;
33884
34176
  OWNER_SCOPED_FINDER = /\bfindByIdAnd[A-Za-z]*(?:UserId|CreatedBy|CreatedUser|OwnerId|Owner|Username)[A-Za-z]*\s*\(/;
33885
34177
  REPOSITORY_DECL = /\binterface\s+([A-Za-z_$][\w$]*Repository)\b/;
33886
- lineOf34 = (content, index2) => content.slice(0, index2).split("\n").length;
34178
+ lineOf35 = (content, index2) => content.slice(0, index2).split("\n").length;
33887
34179
  fieldNameFor = (typeName) => typeName.charAt(0).toLowerCase() + typeName.slice(1);
33888
34180
  collectOwnerScopedRepositories = (files) => {
33889
34181
  const found = /* @__PURE__ */ new Set();
@@ -33929,7 +34221,7 @@ ${bodyText}` : headerText;
33929
34221
  if (!pathParams.has(m[3] ?? "")) continue;
33930
34222
  hits.push({
33931
34223
  file: file.path,
33932
- line: lineOf34(file.content, body.start + (m.index ?? 0)),
34224
+ line: lineOf35(file.content, body.start + (m.index ?? 0)),
33933
34225
  note: `\`${m[1]}.\u2026${m[2]}(${m[3]})\` trong ${ep.httpMethod} ${ep.path} \u2014 t\u1EA3i \u0111\u1ED1i t\u01B0\u1EE3ng theo id tr\xEAn \u0111\u01B0\u1EDDng d\u1EABn m\xE0 handler kh\xF4ng g\u1ECDi ki\u1EC3m quy\u1EC1n \u0111\u1ED1i t\u01B0\u1EE3ng n\xE0o (\`hasResource\`/\`isAdmin\`/\`hasPermission\u2026\`; \`isAuth\` ch\u1EC9 l\xE0 x\xE1c th\u1EF1c)`
33934
34226
  });
33935
34227
  break;
@@ -33951,7 +34243,7 @@ ${bodyText}` : headerText;
33951
34243
  while (index2 !== -1) {
33952
34244
  hits.push({
33953
34245
  file: file.path,
33954
- line: lineOf34(file.content, index2),
34246
+ line: lineOf35(file.content, index2),
33955
34247
  note: `\`${needle}\u2026)\` \u2014 \`${repository}\` khai finder r\xE0ng bu\u1ED9c ch\u1EE7 s\u1EDF h\u1EEFu (\`findByIdAnd\u2026\`) nh\u01B0ng ch\u1ED7 n\xE0y l\u1EA5y theo id tr\u1EA7n`
33956
34248
  });
33957
34249
  index2 = file.content.indexOf(needle, index2 + 1);
@@ -34648,7 +34940,7 @@ ${bodyText}` : headerText;
34648
34940
  ACTIVE_CONTENT_EXTENSION = /["'](svg|html?|xhtml|xml)["']/gi;
34649
34941
  ACTIVE_CONTENT_DEFENCE = /\bJsoup\.clean\b|\bPolicyFactory\.sanitize\b|\bHtmlPolicyBuilder\b|\b(?:sanitize|sanitise)Svg\b|\bContentDisposition\.attachment\b|\bCONTENT_DISPOSITION\b[^\n]*\battachment\b/i;
34650
34942
  ALLOWLIST_WINDOW = 2e3;
34651
- lineOf35 = (content, index2) => content.slice(0, index2).split("\n").length;
34943
+ lineOf36 = (content, index2) => content.slice(0, index2).split("\n").length;
34652
34944
  collectUploadHandlers = (javaFiles) => {
34653
34945
  const out = [];
34654
34946
  for (const file of javaFiles) {
@@ -34661,7 +34953,7 @@ ${bodyText}` : headerText;
34661
34953
  let m = re.exec(file.content);
34662
34954
  while (m !== null) {
34663
34955
  if (!isImportOrPackageLine(file.content, m.index)) {
34664
- const line2 = lineOf35(file.content, m.index);
34956
+ const line2 = lineOf36(file.content, m.index);
34665
34957
  const last = out.at(-1);
34666
34958
  if (!(last && last.file === file.path && last.line === line2)) {
34667
34959
  out.push({ file: file.path, line: line2 });
@@ -34675,7 +34967,7 @@ ${bodyText}` : headerText;
34675
34967
  firstMatch3 = (javaFiles, re) => {
34676
34968
  for (const file of javaFiles) {
34677
34969
  const m = re.exec(file.content);
34678
- if (m !== null) return { file: file.path, line: lineOf35(file.content, m.index) };
34970
+ if (m !== null) return { file: file.path, line: lineOf36(file.content, m.index) };
34679
34971
  }
34680
34972
  return null;
34681
34973
  };
@@ -34695,7 +34987,7 @@ ${bodyText}` : headerText;
34695
34987
  const first = hits[0];
34696
34988
  return {
34697
34989
  file: file.path,
34698
- line: lineOf35(file.content, allowlist.index + (first?.index ?? 0)),
34990
+ line: lineOf36(file.content, allowlist.index + (first?.index ?? 0)),
34699
34991
  extensions
34700
34992
  };
34701
34993
  }
@@ -34828,7 +35120,7 @@ ${bodyText}` : headerText;
34828
35120
  ENV_PLACEHOLDER2 = /^\$\{[^}]*\}$/;
34829
35121
  NON_PROD_PROFILE = /application-(dev|test|local|it)\b/i;
34830
35122
  CONFIG_FILE = /(?:^|\/)(?:application|bootstrap)[^/]*\.(ya?ml|properties)$/i;
34831
- lineOf36 = (content, index2) => content.slice(0, index2).split("\n").length;
35123
+ lineOf37 = (content, index2) => content.slice(0, index2).split("\n").length;
34832
35124
  byFileLine2 = (a, b) => a.file === b.file ? a.line - b.line : a.file < b.file ? -1 : 1;
34833
35125
  collectSecrets = (files) => {
34834
35126
  const literals = [];
@@ -34847,7 +35139,7 @@ ${bodyText}` : headerText;
34847
35139
  const sep32 = inner.indexOf(":");
34848
35140
  externalized.push({
34849
35141
  file: file.path,
34850
- line: lineOf36(file.content, m.index),
35142
+ line: lineOf37(file.content, m.index),
34851
35143
  // Name only. A `${VAR:s3cr3t}` default is a secret, and this report is
34852
35144
  // shared far more widely than the config file it reads.
34853
35145
  variable: (sep32 >= 0 ? inner.slice(0, sep32) : inner).trim(),
@@ -34856,7 +35148,7 @@ ${bodyText}` : headerText;
34856
35148
  } else {
34857
35149
  literals.push({
34858
35150
  file: file.path,
34859
- line: lineOf36(file.content, m.index),
35151
+ line: lineOf37(file.content, m.index),
34860
35152
  fingerprint: sha256(raw).slice(0, 12),
34861
35153
  prod: !NON_PROD_PROFILE.test(file.path)
34862
35154
  });
@@ -34979,7 +35271,7 @@ ${bodyText}` : headerText;
34979
35271
  ["3", { release: "7.1", supportEndedBy: "2025-12-31" }]
34980
35272
  ]);
34981
35273
  stripComments2 = (path2, content) => path2.endsWith(".xml") ? content.replace(/<!--[\s\S]*?-->/g, (m) => m.replace(/[^\n]/g, " ")) : content.replace(/\/\*[\s\S]*?\*\//g, (m) => m.replace(/[^\n]/g, " ")).replace(/(^|[^:])\/\/[^\n]*/g, (m, p) => p + " ".repeat(m.length - p.length)).replace(/^\s*#[^\n]*/gm, (m) => " ".repeat(m.length));
34982
- lineOf37 = (content, index2) => content.slice(0, index2).split("\n").length;
35274
+ lineOf38 = (content, index2) => content.slice(0, index2).split("\n").length;
34983
35275
  springBootHits = (file, text2, today) => {
34984
35276
  const hits = [];
34985
35277
  const patterns = [
@@ -34996,7 +35288,7 @@ ${bodyText}` : headerText;
34996
35288
  hits.push({
34997
35289
  platform: `Spring Boot ${cycle}`,
34998
35290
  file: file.path,
34999
- line: lineOf37(text2, m.index ?? 0),
35291
+ line: lineOf38(text2, m.index ?? 0),
35000
35292
  note: `Spring Boot ${cycle} h\u1EBFt h\u1ED7 tr\u1EE3 OSS t\u1EEB ${row2.eol} (endoflife.date, ghi nh\u1EADn 2026-09-17) \u2014 kh\xF4ng c\xF2n b\u1EA3n v\xE1 b\u1EA3o m\u1EADt mi\u1EC5n ph\xED; n\u1EBFu d\u1EF1 \xE1n c\xF3 h\u1EE3p \u0111\u1ED3ng h\u1ED7 tr\u1EE3 th\u01B0\u01A1ng m\u1EA1i th\xEC ghi r\xF5, n\u1EBFu kh\xF4ng h\xE3y n\xE2ng c\u1EA5p.`
35001
35293
  });
35002
35294
  }
@@ -35012,7 +35304,7 @@ ${bodyText}` : headerText;
35012
35304
  hits.push({
35013
35305
  platform: `Liferay ${mapped.release}`,
35014
35306
  file: file.path,
35015
- line: lineOf37(text2, m.index ?? 0),
35307
+ line: lineOf38(text2, m.index ?? 0),
35016
35308
  note: `com.liferay.portal.kernel ${m[1]}.x = Liferay ${mapped.release}: theo ch\xEDnh s\xE1ch EOL c\u1EE7a Liferay (4 n\u0103m premium + 3 n\u0103m limited t\u1EEB ng\xE0y ph\xE1t h\xE0nh) d\xF2ng n\xE0y \u0111\xE3 h\u1EBFt h\u1ED7 tr\u1EE3 \u2014 kh\xF4ng c\xF2n b\u1EA3n v\xE1 b\u1EA3o m\u1EADt. N\xE2ng c\u1EA5p l\xEAn d\xF2ng c\xF2n h\u1ED7 tr\u1EE3.`
35017
35309
  });
35018
35310
  }
@@ -35065,7 +35357,7 @@ ${bodyText}` : headerText;
35065
35357
  TOKEN_COMPARE_RE = /\bAuthTokenUtil\s*\.\s*getToken\s*\([^)]*\)\s*\.\s*equals\s*\(\s*([\w$]+)\s*\)|\b([\w$]+)\s*\.\s*equals\s*\(\s*AuthTokenUtil\s*\.\s*getToken\s*\([^)]*\)\s*\)/g;
35066
35358
  CHECK_CSRF_RE = /\bAuthTokenUtil\s*\.\s*checkCSRFToken\s*\(/g;
35067
35359
  DISABLED_PROP_RE = /^\s*auth\.token\.check\.enabled\s*=\s*false\s*$/im;
35068
- lineOf38 = (content, index2) => content.slice(0, index2).split("\n").length;
35360
+ lineOf39 = (content, index2) => content.slice(0, index2).split("\n").length;
35069
35361
  enclosingCondition = (content, index2) => {
35070
35362
  const from = Math.max(0, index2 - 800);
35071
35363
  const ifs = [...content.slice(from, index2).matchAll(/\bif\s*\(/g)];
@@ -35110,7 +35402,7 @@ ${bodyText}` : headerText;
35110
35402
  absent.push(
35111
35403
  ev(
35112
35404
  f.path,
35113
- lineOf38(f.content, m?.index ?? 0),
35405
+ lineOf39(f.content, m?.index ?? 0),
35114
35406
  "`auth.token.check.enabled=false` \u2014 ki\u1EC3m tra token CSRF c\u1EE7a portal b\u1ECB T\u1EAET to\xE0n c\u1EE5c.",
35115
35407
  80
35116
35408
  )
@@ -35135,7 +35427,7 @@ ${bodyText}` : headerText;
35135
35427
  absent.push(
35136
35428
  ev(
35137
35429
  path2,
35138
- lineOf38(content, at),
35430
+ lineOf39(content, at),
35139
35431
  `Ki\u1EC3m tra token CSRF c\xF3 ${bypass}; hai gi\xE1 tr\u1ECB do client t\u1EF1 ch\u1ECDn th\xEC lu\xF4n kh\u1EDBp \u0111\u01B0\u1EE3c.`,
35140
35432
  70
35141
35433
  )
@@ -35144,7 +35436,7 @@ ${bodyText}` : headerText;
35144
35436
  present.push(
35145
35437
  ev(
35146
35438
  path2,
35147
- lineOf38(content, at),
35439
+ lineOf39(content, at),
35148
35440
  "So token request v\u1EDBi `AuthTokenUtil.getToken(...)` (token CSRF c\u1EE7a portal).",
35149
35441
  65
35150
35442
  )
@@ -35155,7 +35447,7 @@ ${bodyText}` : headerText;
35155
35447
  present.push(
35156
35448
  ev(
35157
35449
  path2,
35158
- lineOf38(content, m.index ?? 0),
35450
+ lineOf39(content, m.index ?? 0),
35159
35451
  "`AuthTokenUtil.checkCSRFToken(...)` \u2014 ki\u1EC3m tra token CSRF c\u1EE7a portal.",
35160
35452
  70
35161
35453
  )
@@ -35199,7 +35491,7 @@ ${bodyText}` : headerText;
35199
35491
  const m = AUTH_TOKEN_REF_RE.exec(f.content);
35200
35492
  return ev(
35201
35493
  f.path,
35202
- lineOf38(f.content, m?.index ?? 0),
35494
+ lineOf39(f.content, m?.index ?? 0),
35203
35495
  "Tham chi\u1EBFu `AuthTokenUtil` nh\u01B0ng kh\xF4ng th\u1EA5y ph\xE9p so token \u2014 xem c\xE1ch token \u0111\u01B0\u1EE3c d\xF9ng.",
35204
35496
  50
35205
35497
  );
@@ -36317,7 +36609,7 @@ ${script}
36317
36609
  );
36318
36610
  };
36319
36611
  HTTP_VERBS = /* @__PURE__ */ new Set(["get", "post", "put", "patch", "delete"]);
36320
- lineOf39 = (content, offset) => {
36612
+ lineOf40 = (content, offset) => {
36321
36613
  let line2 = 1;
36322
36614
  for (let i = 0; i < offset && i < content.length; i++) {
36323
36615
  if (content[i] === "\n") line2++;
@@ -36462,7 +36754,7 @@ ${script}
36462
36754
  pathTemplate: parsed.pathTemplate,
36463
36755
  urlKind: parsed.urlKind,
36464
36756
  file: path2,
36465
- line: lineOf39(content, matchIndex)
36757
+ line: lineOf40(content, matchIndex)
36466
36758
  });
36467
36759
  }
36468
36760
  }
@@ -36495,7 +36787,7 @@ ${script}
36495
36787
  pathTemplate: parsed.pathTemplate,
36496
36788
  urlKind: parsed.urlKind,
36497
36789
  file: path2,
36498
- line: lineOf39(content, openParenIndex)
36790
+ line: lineOf40(content, openParenIndex)
36499
36791
  });
36500
36792
  }
36501
36793
  }
@@ -36593,7 +36885,7 @@ ${script}
36593
36885
  cweId: "CWE-434"
36594
36886
  };
36595
36887
  MAX_EVIDENCE40 = 50;
36596
- lineOf40 = (content, index2) => {
36888
+ lineOf41 = (content, index2) => {
36597
36889
  let line2 = 1;
36598
36890
  for (let i = 0; i < index2 && i < content.length; i++) {
36599
36891
  if (content[i] === "\n") line2++;
@@ -36634,7 +36926,7 @@ ${script}
36634
36926
  for (const m of f.content.matchAll(re)) {
36635
36927
  hits.push({
36636
36928
  file: f.path,
36637
- line: lineOf40(f.content, m.index ?? 0),
36929
+ line: lineOf41(f.content, m.index ?? 0),
36638
36930
  note: `${label} \u2014 ki\u1EC3m tra \u0111\u1ECBnh d\u1EA1ng CH\u1EC8 ph\xEDa CLIENT: ng\u01B0\u1EDDi d\xF9ng/g\xF3i tin b\u1ECF qua endpoint l\xE0 bypass \u0111\u01B0\u1EE3c (CWE-434). T\xEDn hi\u1EC7u \u0111\u1EC3 review server c\xF3 whitelist + ki\u1EC3m n\u1ED9i dung (magic-byte) cho M\u1ECCI handler nh\u1EADn file \u2014 KH\xD4NG ph\u1EA3i vuln t\u1EF1 th\xE2n.`
36639
36931
  });
36640
36932
  }
@@ -36648,7 +36940,7 @@ ${script}
36648
36940
  if (f.language !== "html") return { acceptHits, uiHits };
36649
36941
  for (const m of f.content.matchAll(FILE_INPUT_RE)) {
36650
36942
  const tag = m[0] ?? "";
36651
- const line2 = lineOf40(f.content, m.index ?? 0);
36943
+ const line2 = lineOf41(f.content, m.index ?? 0);
36652
36944
  uiHits.push({
36653
36945
  file: f.path,
36654
36946
  line: line2,
@@ -36768,7 +37060,7 @@ ${script}
36768
37060
  cweId: "CWE-613"
36769
37061
  };
36770
37062
  MAX_EVIDENCE41 = 50;
36771
- lineOf41 = (content, index2) => {
37063
+ lineOf42 = (content, index2) => {
36772
37064
  let line2 = 1;
36773
37065
  for (let i = 0; i < index2 && i < content.length; i++) {
36774
37066
  if (content[i] === "\n") line2++;
@@ -36817,7 +37109,7 @@ ${script}
36817
37109
  for (const m of file.content.matchAll(re)) {
36818
37110
  hits.push({
36819
37111
  file: file.path,
36820
- line: lineOf41(file.content, m.index ?? 0),
37112
+ line: lineOf42(file.content, m.index ?? 0),
36821
37113
  label,
36822
37114
  note: `${label} t\u1EA1i d\xF2ng n\xE0y \u2014 file KH\xD4NG th\u1EA5y x\xF3a token kh\u1ECFi browser storage (localStorage.removeItem/clear, sessionStorage, accessToken = null).`
36823
37115
  });
@@ -36869,7 +37161,7 @@ ${script}
36869
37161
  const m = CLEAR_STATE_RE.exec(f.content);
36870
37162
  CLEAR_STATE_RE.lastIndex = 0;
36871
37163
  if (m !== null) {
36872
- clearSites.push({ file: f.path, line: lineOf41(f.content, m.index) });
37164
+ clearSites.push({ file: f.path, line: lineOf42(f.content, m.index) });
36873
37165
  }
36874
37166
  continue;
36875
37167
  }
@@ -36937,7 +37229,7 @@ ${script}
36937
37229
  cweId: "CWE-20"
36938
37230
  };
36939
37231
  MAX_EVIDENCE42 = 50;
36940
- lineOf42 = (content, index2) => {
37232
+ lineOf43 = (content, index2) => {
36941
37233
  let line2 = 1;
36942
37234
  for (let i = 0; i < index2 && i < content.length; i++) {
36943
37235
  if (content[i] === "\n") line2++;
@@ -36968,7 +37260,7 @@ ${script}
36968
37260
  anyMoneyField = true;
36969
37261
  hits.push({
36970
37262
  file: f.path,
36971
- line: lineOf42(content, m.index ?? 0),
37263
+ line: lineOf43(content, m.index ?? 0),
36972
37264
  name,
36973
37265
  hasPattern
36974
37266
  });
@@ -36983,7 +37275,7 @@ ${script}
36983
37275
  )) {
36984
37276
  const name = (m[1] ?? "").replace(/^\[+|\]+$/g, "");
36985
37277
  if (!isMoneyName(name)) continue;
36986
- hits.push({ file: f.path, line: lineOf42(f.content, m.index ?? 0), name, hasPattern: false });
37278
+ hits.push({ file: f.path, line: lineOf43(f.content, m.index ?? 0), name, hasPattern: false });
36987
37279
  }
36988
37280
  return { hits };
36989
37281
  };
@@ -37016,7 +37308,7 @@ ${script}
37016
37308
  const bound = /(?:^|\s)min\s*=\s*["'][^"']+["']/.exec(f.content) ?? MIN_BOUND_RE.exec(f.content);
37017
37309
  MIN_BOUND_RE.lastIndex = 0;
37018
37310
  if (bound !== null) {
37019
- configured.push({ file: f.path, line: lineOf42(f.content, bound.index) });
37311
+ configured.push({ file: f.path, line: lineOf43(f.content, bound.index) });
37020
37312
  continue;
37021
37313
  }
37022
37314
  const html = moneyInputsIn(f);
@@ -37030,7 +37322,7 @@ ${script}
37030
37322
  if (ts.bounded) {
37031
37323
  anyMoneyField = anyMoneyField || ts.anyMoneyField;
37032
37324
  const m = MIN_BOUND_RE.exec(f.content);
37033
- if (m !== null) configured.push({ file: f.path, line: lineOf42(f.content, m.index) });
37325
+ if (m !== null) configured.push({ file: f.path, line: lineOf43(f.content, m.index) });
37034
37326
  MIN_BOUND_RE.lastIndex = 0;
37035
37327
  continue;
37036
37328
  }
@@ -37316,7 +37608,7 @@ Language guard retry: the previous response contained an empty or English explan
37316
37608
  return { status: "error", vulnerable: false, reason: `L\u1ED7i th\u1EF1c thi LLM: ${message}` };
37317
37609
  }
37318
37610
  }
37319
- var OLLAMA_DEFAULT_BASE, NETMIND_DEFAULT_BASE, OPENCODE_GO_DEFAULT_BASE, stripTrailingSlash2, buildLanguageModel, resolveModelOverride, pingTarget, shouldUseRawJsonChat, openAICompatibleChatUrl, REASONING_HEADROOM_TOKENS, NETMIND_MINIMAX_M3_MODEL, NETMIND_SMALL_PROMPT_MAX_CHARS, NETMIND_MEDIUM_PROMPT_MAX_CHARS, NETMIND_SMALL_OUTPUT_TOKENS, NETMIND_MEDIUM_OUTPUT_TOKENS, NETMIND_LARGE_OUTPUT_TOKENS, NETMIND_MAX_OUTPUT_TOKENS, supportsNetmindJsonResponseFormat, emptyResponseDiagnostics, effectiveMaxTokensFor, completeRawOpenAICompatibleJsonChat, createAiSdkProvider, createFallbackClient, DEFAULT_RESET_SAFETY_MS, parseProviderRetryDelayMs, numberLines, renderPrompt, cache, loadPromptTemplate, nullableOptional, AI_VIOLATION_MESSAGE_MAX_LENGTH, aiViolationSchema, aiResponseSchema, stripCodeFence, parseAiResponse, createInMemoryCache, VIETNAMESE_OUTPUT_POLICY_VERSION, VIETNAMESE_OUTPUT_INSTRUCTION, TOKEN_BUDGET_WARN_DEFAULT, CHARS_PER_TOKEN, SAFETY_MARGIN, estimateTokens, formatTokenWarning, braceDelta, chunkSourceForAi, renderAuthorizationGuards, CACHE_NAMESPACE, DEFAULT_PROVIDER_RETRY_MAX_RETRIES, DEFAULT_PROVIDER_RETRY_MAX_DELAY_MS, DEFAULT_ADAPTIVE_RETRY_MAX_RETRIES, DEFAULT_ADAPTIVE_CONTEXT_REDUCTION_FACTOR, DEFAULT_ADAPTIVE_TIMEOUT_MULTIPLIER, DEFAULT_ADAPTIVE_MAX_DELAY_MS, DEFAULT_PROVIDER_TIMEOUT_MS, sleep2, providerRetryDelayMs, adaptiveFailureKind, compactClusterContext, findingDedupeKey, dedupeFindings, capFindings, createAiExecutor, PATH_FAST_PATHS, SPRING_BOOT_PATTERNS, ANGULAR_PATTERNS, FLUTTER_PATTERNS, ENTRY_HINTS, ALL_PATTERNS, matchesRule, classifyLayer, classifyLayers, PRIMARY_LAYER_CANDIDATES, TEST_AND_GENERATED, LAYER_SUFFIXES, FILE_SUFFIX_RE, ANY_EXT_RE, dropExt, stripPascalSuffix, normalize2, extractDomainTokens, extractDomainTokensBatch, TRIVIAL_TOKENS, sharesDomainToken, TS_IMPORT_RE, JAVA_IMPORT_RE, extractImports, POSIX_SEP_RE, sharedDirDepth, resolveImportTarget, KIND_STRENGTH, upsertEdge, buildEdges, ADVICE_ANNOTATION, isGlobalAdviceFile, findGlobalAdvicePaths, DEFAULT_MAX_CANDIDATES, DEFAULT_MAX_SUPPORT_FILES, DEFAULT_TOKEN_BUDGET, SCORE_DIRECT_NEIGHBOR, SCORE_SECOND_DEGREE, SCORE_SIBLING_STEM, SCORE_ANGULAR_TEMPLATE_SIBLING, SCORE_DOMAIN_TOKEN, PENALTY_TEST_VS_NON_TEST, PENALTY_GENERATED, SCORE_GLOBAL_ADVICE, prefilterCandidates, layerFlowBonus, isTest, isGenerated, scoreFor, tokensOf, trimToBudget, toMember, clusterIdFor, createClusterAssembler, CLUSTER_TREE_BUILDER_VERSION, DEFAULT_MODULE_DEPTH, posixDirname, moduleGroupKey, uniqueSortedPaths, memberFingerprint, featureNodeFor, moduleNodeFor, appNodeFor, countCrossModuleEdges, createClusterTreeBuilder, TRANSACTIONAL, TYPE_DECL3, METHOD_NAME2, MUTATION_CALL, LEADING_ANNOTATION2, SPRING_TX_SUPPORT_IMPORT, PROGRAMMATIC_TYPE, PROGRAMMATIC_CALL, INLINE_TEMPLATE_CALL, CONTROL_FLOW_NAMES, maskNonCode, methodNameFromHeader, methodAt, delegatedTargetAt, collectProgrammaticReceivers, readAttr, skipToDeclaration2, countMutations, lineOf24, configuredReadOnly, extractProgrammaticFromFile, extractFromFile2, extractTransactionBoundaries, renderPrDiffPrompt, nullableOptional2, prDiffResponseSchema, createPrDiffReviewer, renderGroupedRulePrompt, confidenceLabelSchema, severitySchema, groupedResponseSchema, labelToConfidence, createGroupedRuleReviewer, renderPerRulePrompt, createPerRuleReviewer, DEFAULT_MAX_TOKENS, SYSTEM_PROMPT, SCHEMA_PROMPT, clip, buildUserPrompt, extractJsonObject, describeUnusableAnswer, createRuntimeAuthHypothesisResolver, DEFAULT_MAX_TOKENS2, SYSTEM_PROMPT2, SCHEMA_PROMPT2, clip2, buildUserPrompt2, describeUnusableAnswer2, createRuntimeDataSeedResolver, endpointSchema, extractJsonObject2, HTTP_METHODS, PARAMETER_KINDS, ENGLISH_REASON_WORDS, ENGLISH_TECHNICAL_WORDS, VIETNAMESE_DIACRITICS, isLikelyEnglishReason, normalizeTriageReason, parseEndpointHint;
37611
+ var OLLAMA_DEFAULT_BASE, NETMIND_DEFAULT_BASE, OPENCODE_GO_DEFAULT_BASE, stripTrailingSlash2, buildLanguageModel, resolveModelOverride, pingTarget, shouldUseRawJsonChat, openAICompatibleChatUrl, REASONING_HEADROOM_TOKENS, NETMIND_MINIMAX_M3_MODEL, NETMIND_SMALL_PROMPT_MAX_CHARS, NETMIND_MEDIUM_PROMPT_MAX_CHARS, NETMIND_SMALL_OUTPUT_TOKENS, NETMIND_MEDIUM_OUTPUT_TOKENS, NETMIND_LARGE_OUTPUT_TOKENS, NETMIND_MAX_OUTPUT_TOKENS, supportsNetmindJsonResponseFormat, emptyResponseDiagnostics, effectiveMaxTokensFor, completeRawOpenAICompatibleJsonChat, createAiSdkProvider, createFallbackClient, DEFAULT_RESET_SAFETY_MS, parseProviderRetryDelayMs, numberLines, renderPrompt, cache, loadPromptTemplate, nullableOptional, AI_VIOLATION_MESSAGE_MAX_LENGTH, aiViolationSchema, aiResponseSchema, stripCodeFence, parseAiResponse, createInMemoryCache, VIETNAMESE_OUTPUT_POLICY_VERSION, VIETNAMESE_OUTPUT_INSTRUCTION, TOKEN_BUDGET_WARN_DEFAULT, CHARS_PER_TOKEN, SAFETY_MARGIN, estimateTokens, formatTokenWarning, braceDelta, chunkSourceForAi, renderAuthorizationGuards, CACHE_NAMESPACE, DEFAULT_PROVIDER_RETRY_MAX_RETRIES, DEFAULT_PROVIDER_RETRY_MAX_DELAY_MS, DEFAULT_ADAPTIVE_RETRY_MAX_RETRIES, DEFAULT_ADAPTIVE_CONTEXT_REDUCTION_FACTOR, DEFAULT_ADAPTIVE_TIMEOUT_MULTIPLIER, DEFAULT_ADAPTIVE_MAX_DELAY_MS, DEFAULT_PROVIDER_TIMEOUT_MS, sleep2, providerRetryDelayMs, adaptiveFailureKind, compactClusterContext, findingDedupeKey, dedupeFindings, capFindings, createAiExecutor, PATH_FAST_PATHS, SPRING_BOOT_PATTERNS, ANGULAR_PATTERNS, FLUTTER_PATTERNS, ENTRY_HINTS, ALL_PATTERNS, matchesRule, classifyLayer, classifyLayers, PRIMARY_LAYER_CANDIDATES, TEST_AND_GENERATED, LAYER_SUFFIXES, FILE_SUFFIX_RE, ANY_EXT_RE, dropExt, stripPascalSuffix, normalize2, extractDomainTokens, extractDomainTokensBatch, TRIVIAL_TOKENS, sharesDomainToken, TS_IMPORT_RE, JAVA_IMPORT_RE, extractImports, POSIX_SEP_RE, sharedDirDepth, resolveImportTarget, KIND_STRENGTH, upsertEdge, buildEdges, ADVICE_ANNOTATION, isGlobalAdviceFile, findGlobalAdvicePaths, DEFAULT_MAX_CANDIDATES, DEFAULT_MAX_SUPPORT_FILES, DEFAULT_TOKEN_BUDGET, SCORE_DIRECT_NEIGHBOR, SCORE_SECOND_DEGREE, SCORE_SIBLING_STEM, SCORE_ANGULAR_TEMPLATE_SIBLING, SCORE_DOMAIN_TOKEN, PENALTY_TEST_VS_NON_TEST, PENALTY_GENERATED, SCORE_GLOBAL_ADVICE, prefilterCandidates, layerFlowBonus, isTest, isGenerated, scoreFor, tokensOf, trimToBudget, toMember, clusterIdFor, createClusterAssembler, CLUSTER_TREE_BUILDER_VERSION, DEFAULT_MODULE_DEPTH, posixDirname, moduleGroupKey, uniqueSortedPaths, memberFingerprint, featureNodeFor, moduleNodeFor, appNodeFor, countCrossModuleEdges, createClusterTreeBuilder, TRANSACTIONAL, TYPE_DECL3, METHOD_NAME2, MUTATION_CALL, LEADING_ANNOTATION2, SPRING_TX_SUPPORT_IMPORT, PROGRAMMATIC_TYPE, PROGRAMMATIC_CALL, INLINE_TEMPLATE_CALL, CONTROL_FLOW_NAMES, maskNonCode, methodNameFromHeader, methodAt, delegatedTargetAt, collectProgrammaticReceivers, readAttr, skipToDeclaration2, countMutations, lineOf25, configuredReadOnly, extractProgrammaticFromFile, extractFromFile2, extractTransactionBoundaries, renderPrDiffPrompt, nullableOptional2, prDiffResponseSchema, createPrDiffReviewer, renderGroupedRulePrompt, confidenceLabelSchema, severitySchema, groupedResponseSchema, labelToConfidence, createGroupedRuleReviewer, renderPerRulePrompt, createPerRuleReviewer, DEFAULT_MAX_TOKENS, SYSTEM_PROMPT, SCHEMA_PROMPT, clip, buildUserPrompt, extractJsonObject, describeUnusableAnswer, createRuntimeAuthHypothesisResolver, DEFAULT_MAX_TOKENS2, SYSTEM_PROMPT2, SCHEMA_PROMPT2, clip2, buildUserPrompt2, describeUnusableAnswer2, createRuntimeDataSeedResolver, endpointSchema, extractJsonObject2, HTTP_METHODS, PARAMETER_KINDS, ENGLISH_REASON_WORDS, ENGLISH_TECHNICAL_WORDS, VIETNAMESE_DIACRITICS, isLikelyEnglishReason, normalizeTriageReason, parseEndpointHint;
37320
37612
  var init_dist4 = __esm({
37321
37613
  "../ai-engine/dist/index.js"() {
37322
37614
  init_dist();
@@ -39517,7 +39809,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39517
39809
  while (MUTATION_CALL.exec(body) !== null) count++;
39518
39810
  return count;
39519
39811
  };
39520
- lineOf24 = (content, offset) => {
39812
+ lineOf25 = (content, offset) => {
39521
39813
  let line2 = 1;
39522
39814
  for (let i = 0; i < offset && i < content.length; i++) {
39523
39815
  if (content[i] === "\n") line2++;
@@ -39554,7 +39846,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39554
39846
  seen.add(key);
39555
39847
  facts.push({
39556
39848
  file: file.path,
39557
- line: lineOf24(content, offset),
39849
+ line: lineOf25(content, offset),
39558
39850
  scope: "method",
39559
39851
  target: method.name,
39560
39852
  mechanism: `${api}.${operation}`,
@@ -39614,7 +39906,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39614
39906
  }
39615
39907
  facts.push({
39616
39908
  file: file.path,
39617
- line: lineOf24(content, m.index),
39909
+ line: lineOf25(content, m.index),
39618
39910
  scope,
39619
39911
  target,
39620
39912
  mechanism: "@Transactional",
@@ -47254,6 +47546,17 @@ var init_dist8 = __esm({
47254
47546
  relatedChecklistIds: external_exports.array(checklistIdSchema).min(1).optional(),
47255
47547
  /** [ADR-0098] External scanners this rule reproduces (see `Rule.sourceTools`). */
47256
47548
  sourceTools: external_exports.array(external_exports.enum(SOURCE_TOOLS)).min(1).optional(),
47549
+ /**
47550
+ * OWASP MASVS v2 control ids the rule's findings RELATE to (mobile static
47551
+ * rules only). Presence scopes WHERE findings surface in a report — it does
47552
+ * NOT mean the control is verified; each finding keeps its own verdict.
47553
+ */
47554
+ masvsControlIds: external_exports.array(
47555
+ external_exports.string().regex(
47556
+ /^MASVS-(STORAGE|CRYPTO|AUTH|NETWORK|PLATFORM|CODE|RESILIENCE|PRIVACY)-\d+$/,
47557
+ "Expected an OWASP MASVS v2 control id, e.g. MASVS-NETWORK-1"
47558
+ )
47559
+ ).min(1).max(10).optional(),
47257
47560
  requires: parserLayerSchema.optional(),
47258
47561
  authors: external_exports.array(external_exports.string()).optional(),
47259
47562
  docsUrl: external_exports.string().url().optional(),
@@ -48369,6 +48672,7 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
48369
48672
  }
48370
48673
  for (const file of files) {
48371
48674
  const fileStart = Date.now();
48675
+ const parsedByLayer = /* @__PURE__ */ new Map();
48372
48676
  try {
48373
48677
  const applicable = rules.filter((r) => ruleAppliesToFile(r, file));
48374
48678
  if (applicable.length === 0) continue;
@@ -48389,7 +48693,6 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
48389
48693
  const layers = new Set(
48390
48694
  applicable.filter((r) => needsParse(r) && canRunRule(r)).map(requiredLayer)
48391
48695
  );
48392
- const parsedByLayer = /* @__PURE__ */ new Map();
48393
48696
  if (!parserCanParseFile && applicable.some(needsParse)) {
48394
48697
  logger.debug(
48395
48698
  { file: file.path, language: file.language },
@@ -48642,6 +48945,7 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
48642
48945
  }
48643
48946
  }
48644
48947
  } finally {
48948
+ for (const parsed of parsedByLayer.values()) parsed.dispose?.();
48645
48949
  fireFileComplete(file, Date.now() - fileStart);
48646
48950
  }
48647
48951
  }
@@ -49588,7 +49892,7 @@ var init_sql = __esm({
49588
49892
  return new SQL([new StringChunk(str)]);
49589
49893
  }
49590
49894
  sql2.raw = raw;
49591
- function join23(chunks, separator) {
49895
+ function join24(chunks, separator) {
49592
49896
  const result = [];
49593
49897
  for (const [i, chunk] of chunks.entries()) {
49594
49898
  if (i > 0 && separator !== void 0) {
@@ -49598,7 +49902,7 @@ var init_sql = __esm({
49598
49902
  }
49599
49903
  return new SQL(result);
49600
49904
  }
49601
- sql2.join = join23;
49905
+ sql2.join = join24;
49602
49906
  function identifier(value) {
49603
49907
  return new Name(value);
49604
49908
  }
@@ -52145,7 +52449,7 @@ var init_select2 = __esm({
52145
52449
  return (table, on) => {
52146
52450
  const baseTableName = this.tableName;
52147
52451
  const tableName = getTableLikeName(table);
52148
- if (typeof tableName === "string" && this.config.joins?.some((join23) => join23.alias === tableName)) {
52452
+ if (typeof tableName === "string" && this.config.joins?.some((join24) => join24.alias === tableName)) {
52149
52453
  throw new Error(`Alias "${tableName}" is already used in this query`);
52150
52454
  }
52151
52455
  if (!this.isPartialSelect) {
@@ -52973,7 +53277,7 @@ var init_update = __esm({
52973
53277
  createJoin(joinType) {
52974
53278
  return (table, on) => {
52975
53279
  const tableName = getTableLikeName(table);
52976
- if (typeof tableName === "string" && this.config.joins.some((join23) => join23.alias === tableName)) {
53280
+ if (typeof tableName === "string" && this.config.joins.some((join24) => join24.alias === tableName)) {
52977
53281
  throw new Error(`Alias "${tableName}" is already used in this query`);
52978
53282
  }
52979
53283
  if (typeof on === "function") {
@@ -54178,7 +54482,7 @@ var init_libsql = __esm({
54178
54482
  init_session2();
54179
54483
  }
54180
54484
  });
54181
- 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, MARIADB_MIGRATIONS;
54182
54486
  var init_dist9 = __esm({
54183
54487
  "../storage/dist/index.js"() {
54184
54488
  init_libsql();
@@ -57483,6 +57787,180 @@ var init_dist9 = __esm({
57483
57787
  MODIFY COLUMN input_id VARCHAR(64) NOT NULL DEFAULT '-'`
57484
57788
  ]
57485
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
+ };
57486
57964
  MARIADB_MIGRATIONS = [
57487
57965
  migration0001,
57488
57966
  migration0002,
@@ -57546,7 +58024,11 @@ var init_dist9 = __esm({
57546
58024
  migration0060,
57547
58025
  migration0061,
57548
58026
  migration0062,
57549
- migration0063
58027
+ migration0063,
58028
+ migration0064,
58029
+ migration0065,
58030
+ migration0066,
58031
+ migration0067
57550
58032
  ];
57551
58033
  MARIADB_MIGRATIONS[MARIADB_MIGRATIONS.length - 1]?.version ?? 0;
57552
58034
  }
@@ -59580,11 +60062,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
59580
60062
  var getCliBuildMetadata = (version2) => ({
59581
60063
  version: version2,
59582
60064
  gitSha: definedBuildValue(
59583
- "fe0fb811178d" ,
60065
+ "8d01c82261f29f23ae0ffb80d684f873787900ca" ,
59584
60066
  "unknown"
59585
60067
  ),
59586
60068
  buildTimestamp: definedBuildValue(
59587
- "2026-09-29T06:59:44.887Z" ,
60069
+ "2026-10-07T09:44:57.238Z" ,
59588
60070
  "unknown"
59589
60071
  ),
59590
60072
  configSchemaRange: definedBuildValue(
@@ -61529,6 +62011,88 @@ var buildRuleOverrides = (rulesCfg) => {
61529
62011
  };
61530
62012
  };
61531
62013
 
62014
+ // src/pentest/persistent-cache.ts
62015
+ init_dist4();
62016
+ var MAX_TTL_SECONDS = 7 * 24 * 60 * 60;
62017
+ function createPentestCache(logger, discriminator) {
62018
+ const root = process.env.CS_PENTEST_CACHE_DIR;
62019
+ const project = process.env.CS_PENTEST_CACHE_PROJECT;
62020
+ const image = process.env.CS_PENTEST_CACHE_IMAGE;
62021
+ const source = process.env.CS_PENTEST_SOURCE_SHA256;
62022
+ if (!root || !isAbsolute(root) || !project || !image || !source) {
62023
+ return createInMemoryCache();
62024
+ }
62025
+ const scope = createHash("sha256").update(JSON.stringify([1, project, image, source, discriminator])).digest("hex");
62026
+ const directory = join(root, scope);
62027
+ let hits = 0;
62028
+ const pathOf2 = (namespace, key) => join(directory, `${namespace}-${createHash("sha256").update(key).digest("hex")}.json`);
62029
+ return {
62030
+ async get(namespace, key) {
62031
+ const path = pathOf2(namespace, key);
62032
+ try {
62033
+ const entry = JSON.parse(await readFile(path, "utf8"));
62034
+ if (entry.key !== key || !Number.isFinite(entry.expiresAt)) return null;
62035
+ if (entry.expiresAt <= Date.now()) {
62036
+ await unlink(path).catch(() => {
62037
+ });
62038
+ return null;
62039
+ }
62040
+ hits++;
62041
+ if (hits === 1 || hits % 100 === 0) {
62042
+ logger.info({ namespace, hits }, "Pentest persistent cache hit");
62043
+ }
62044
+ return entry.value;
62045
+ } catch (error) {
62046
+ if (error.code !== "ENOENT") {
62047
+ logger.warn({ err: error, namespace }, "Pentest cache read failed; recomputing");
62048
+ }
62049
+ return null;
62050
+ }
62051
+ },
62052
+ async set(namespace, key, value, ttlSeconds) {
62053
+ const path = pathOf2(namespace, key);
62054
+ const temporary = `${path}.${randomUUID()}.tmp`;
62055
+ try {
62056
+ await mkdir(directory, { recursive: true, mode: 448 });
62057
+ await writeFile(
62058
+ temporary,
62059
+ JSON.stringify({
62060
+ key,
62061
+ expiresAt: Date.now() + Math.min(ttlSeconds ?? MAX_TTL_SECONDS, MAX_TTL_SECONDS) * 1e3,
62062
+ value
62063
+ }),
62064
+ { mode: 384, flag: "wx" }
62065
+ );
62066
+ await rename(temporary, path);
62067
+ } catch (error) {
62068
+ logger.warn({ err: error, namespace }, "Pentest cache write failed; continuing");
62069
+ } finally {
62070
+ await unlink(temporary).catch(() => {
62071
+ });
62072
+ }
62073
+ },
62074
+ async invalidate(namespace, predicate) {
62075
+ let removed = 0;
62076
+ for (const file of await readdir(directory).catch(() => [])) {
62077
+ if (!file.startsWith(`${namespace}-`) || !file.endsWith(".json")) continue;
62078
+ try {
62079
+ const path = join(directory, file);
62080
+ const entry = JSON.parse(await readFile(path, "utf8"));
62081
+ if (typeof entry.key === "string" && predicate(entry.key)) {
62082
+ await unlink(path);
62083
+ removed++;
62084
+ }
62085
+ } catch {
62086
+ }
62087
+ }
62088
+ return removed;
62089
+ },
62090
+ async clear(namespace) {
62091
+ await this.invalidate(namespace, () => true);
62092
+ }
62093
+ };
62094
+ }
62095
+
61532
62096
  // src/pentest/fold-rules.ts
61533
62097
  var FOLD_STATIC_RULE_IDS = [
61534
62098
  ...new Set(REVIEW_SIGNAL_MAP.flatMap((spec) => spec.ruleIds))
@@ -61599,9 +62163,29 @@ var runFoldStaticRules = async (input4) => {
61599
62163
  if (activeScopes) staged = staged.filter((r) => ruleMatchesActiveScopes(r.scope, activeScopes));
61600
62164
  const rules = staged.map(overrides.applyOverrides);
61601
62165
  if (rules.length === 0) return { findings: [], ranRuleIds: [], filesScanned: files.length };
62166
+ const cache3 = createPentestCache(logger, JSON.stringify(input4.config));
62167
+ const cacheKey = createHash("sha256").update(JSON.stringify([files.map((file) => [file.path, file.hash]).sort(), rules])).digest("hex");
62168
+ if (input4.ai === void 0 && notInCatalog.length === 0) {
62169
+ const cached = await cache3.get("rule", cacheKey);
62170
+ if (cached !== null) return cached;
62171
+ }
62172
+ let degraded = false;
62173
+ const executionLogger = new Proxy(logger, {
62174
+ get(object, property) {
62175
+ const method = Reflect.get(object, property);
62176
+ if (property === "warn" || property === "error") {
62177
+ return (...args) => {
62178
+ degraded = true;
62179
+ return Reflect.apply(method, object, args);
62180
+ };
62181
+ }
62182
+ return typeof method === "function" ? method.bind(object) : method;
62183
+ }
62184
+ });
61602
62185
  const executor = createStaticExecutor({
61603
62186
  parser: createParser(),
61604
- logger,
62187
+ logger: executionLogger,
62188
+ cache: cache3,
61605
62189
  ruleOptionsResolver: overrides.ruleOptionsResolver,
61606
62190
  ...overrides.hasPathOverrides ? {
61607
62191
  findingPostFilter: (file, f) => overrides.applyPathOverrides(file, f)
@@ -61654,7 +62238,15 @@ var runFoldStaticRules = async (input4) => {
61654
62238
  if (index2 >= 0) findings2[index2] = { ...finding, snippet };
61655
62239
  }
61656
62240
  }
61657
- return { findings: findings2, ranRuleIds: rules.map((r) => r.id).sort(), filesScanned: files.length };
62241
+ const result = {
62242
+ findings: findings2,
62243
+ ranRuleIds: rules.map((r) => r.id).sort(),
62244
+ filesScanned: files.length
62245
+ };
62246
+ if (input4.ai === void 0 && notInCatalog.length === 0 && !degraded) {
62247
+ await cache3.set("rule", cacheKey, result);
62248
+ }
62249
+ return result;
61658
62250
  };
61659
62251
 
61660
62252
  // src/pentest/fold-ai-rules.ts
@@ -61717,7 +62309,7 @@ var runFoldAiRules = async (input4) => {
61717
62309
  const tracker = createAiTracker({ provider: client.name });
61718
62310
  const aiExec = createAiExecutor({
61719
62311
  client,
61720
- cache: createInMemoryCache(),
62312
+ cache: createPentestCache(logger, JSON.stringify(modelConfig)),
61721
62313
  baseDir: builtinRulesDir,
61722
62314
  logger,
61723
62315
  model,
@@ -62480,6 +63072,13 @@ var relativePosixPathSchema = (field3) => external_exports.string().min(1).max(5
62480
63072
  const segments = value.split("/");
62481
63073
  return segments.every((segment) => segment.length > 0 && segment !== "." && segment !== "..");
62482
63074
  }, `${field3} must be a relative POSIX path inside the source snapshot (no .., no absolute path, no backslash).`);
63075
+ var moduleRootSchema = external_exports.string().max(512).refine((value) => {
63076
+ if (value === "") return true;
63077
+ if (value.includes("\\")) return false;
63078
+ if (value.startsWith("/")) return false;
63079
+ const segments = value.split("/");
63080
+ return segments.every((segment) => segment.length > 0 && segment !== "." && segment !== "..");
63081
+ }, `moduleRoot must be a relative POSIX path inside the source snapshot, or '' for the snapshot root (no ., no .., no absolute path, no backslash).`);
62483
63082
  var mobilePentestManifestSchema = external_exports.object({
62484
63083
  version: external_exports.literal(1),
62485
63084
  appType: mobileAppTypeSchema,
@@ -62487,14 +63086,14 @@ var mobilePentestManifestSchema = external_exports.object({
62487
63086
  (platforms) => new Set(platforms).size === platforms.length,
62488
63087
  "Duplicate platforms are not allowed."
62489
63088
  ),
62490
- moduleRoot: relativePosixPathSchema("moduleRoot"),
63089
+ moduleRoot: moduleRootSchema,
62491
63090
  source: external_exports.object({
62492
63091
  archiveName: external_exports.string().min(1).max(512),
62493
63092
  sha256: sha256Schema2,
62494
63093
  commitSha: external_exports.string().regex(/^[0-9a-f]{7,40}$/i, "Expected a git commit SHA").optional(),
62495
63094
  dirty: external_exports.boolean().optional()
62496
63095
  }).strict(),
62497
- releases: external_exports.array(mobileReleaseInputSchema).min(1).superRefine((releases, ctx) => {
63096
+ releases: external_exports.array(mobileReleaseInputSchema).superRefine((releases, ctx) => {
62498
63097
  const seen = /* @__PURE__ */ new Set();
62499
63098
  releases.forEach((release, index2) => {
62500
63099
  const identity = `${release.platform}:${release.flavor ?? ""}:${release.scheme ?? ""}:${release.sha256}`;
@@ -62612,6 +63211,20 @@ var mobileFindingLocationSchema = external_exports.object({
62612
63211
  var mobileFindingSchema = external_exports.object({
62613
63212
  ruleId: external_exports.string().min(1).max(256),
62614
63213
  checklistId: external_exports.string().min(1).max(128).optional(),
63214
+ /**
63215
+ * Rule category the finding came from. The pentest lane only carries
63216
+ * security scopes (mobile-security, mobile-privacy) — a report consumer
63217
+ * can see the scope per item without re-resolving rule metadata, and a
63218
+ * future quality lane keeps its own categories.
63219
+ */
63220
+ category: external_exports.enum(["mobile-security", "mobile-privacy"]).optional(),
63221
+ /**
63222
+ * OWASP MASVS v2 control ids the finding relates to — report grouping
63223
+ * only; a finding mapped to a control is not a verified control.
63224
+ */
63225
+ masvsControlIds: external_exports.array(
63226
+ external_exports.string().regex(/^MASVS-(STORAGE|CRYPTO|AUTH|NETWORK|PLATFORM|CODE|RESILIENCE|PRIVACY)-\d+$/)
63227
+ ).max(10).optional(),
62615
63228
  severity: external_exports.enum(["info", "warning", "error", "blocker"]),
62616
63229
  platform: mobilePlatformSchema.optional(),
62617
63230
  /** Release input id (artifact findings); undefined for source-only findings. */
@@ -64134,7 +64747,19 @@ var runAssess = async (options, deps = {}) => {
64134
64747
  let runtimeBuildFiles = [];
64135
64748
  try {
64136
64749
  const buildPaths = await glob(
64137
- ["**/pom.xml", "**/build.gradle", "**/build.gradle.kts", "**/Dockerfile"],
64750
+ [
64751
+ "**/pom.xml",
64752
+ "**/build.gradle",
64753
+ "**/build.gradle.kts",
64754
+ "**/bnd.bnd",
64755
+ "**/portal-ext.properties",
64756
+ "**/osgi/configs/**/*.config",
64757
+ "**/osgi/configs/**/*.cfg",
64758
+ "**/service.xml",
64759
+ "gradle/wrapper/gradle-wrapper.properties",
64760
+ "gradle.properties",
64761
+ "**/Dockerfile"
64762
+ ],
64138
64763
  {
64139
64764
  cwd: target,
64140
64765
  ignore: [...config.exclude, "**/.git/**", "**/node_modules/**", "**/build/**"],
@@ -64172,7 +64797,10 @@ var runAssess = async (options, deps = {}) => {
64172
64797
  runtimeManifestFiles,
64173
64798
  report2.items.flatMap((item16) => item16.scenarios)
64174
64799
  );
64175
- const plan = buildRuntimeBringUpPlan(files, endpoints, {
64800
+ const runtimePlanFiles = [
64801
+ ...new Map([...files, ...runtimeBuildFiles].map((file) => [file.path, file])).values()
64802
+ ];
64803
+ const plan = buildRuntimeBringUpPlan(runtimePlanFiles, endpoints, {
64176
64804
  dependencyConfigFiles,
64177
64805
  dependencyJarKeys: runtimeDependencyJarKeys,
64178
64806
  eagerKafkaStartupJars: runtimeEagerKafkaStartupJars,
@@ -71986,6 +72614,10 @@ Ch\u1EA1y \`cs assess --json <path>\` \u0111\u1EC3 sinh tr\u01B0\u1EDBc.`
71986
72614
  }
71987
72615
  const hasTests = options.tests !== void 0 && options.tests.length > 0;
71988
72616
  const hasResults = options.results !== void 0 && options.results.length > 0;
72617
+ if (options.liferayE1 && (hasTests || hasResults)) {
72618
+ console.error(red("--liferay-e1 kh\xF4ng \u0111\u01B0\u1EE3c d\xF9ng c\xF9ng --tests/--results."));
72619
+ return EXIT.USAGE;
72620
+ }
71989
72621
  if (hasTests !== hasResults) {
71990
72622
  console.error(
71991
72623
  red("--tests v\xE0 --results ph\u1EA3i \u0111i C\xD9NG nhau (\u0111\u1EC3 g\u1ED9p tr\u1EE5c runtime), ho\u1EB7c b\u1ECF c\u1EA3 hai.")
@@ -72077,6 +72709,65 @@ Ch\u1EA1y \`cs assess --emit-tests <dir>\` \u0111\u1EC3 sinh suite tr\u01B0\u1ED
72077
72709
  }
72078
72710
  runtime = { manifest, report: ingestVerification(manifest, cases, ingestOptions) };
72079
72711
  }
72712
+ if (options.liferayE1) {
72713
+ try {
72714
+ const source = JSON.parse(await readFile(resolve(options.liferayE1), "utf8"));
72715
+ const parsed = external_exports.object({
72716
+ schemaVersion: external_exports.literal(1),
72717
+ adapter: external_exports.literal("liferay-http"),
72718
+ results: external_exports.array(
72719
+ external_exports.object({
72720
+ scenarioId: external_exports.string().min(1),
72721
+ checklistId: external_exports.string().min(1),
72722
+ vulnerabilityClass: external_exports.string().min(1),
72723
+ title: external_exports.string(),
72724
+ sinkFile: external_exports.string(),
72725
+ sinkLine: external_exports.number().int().positive(),
72726
+ verdict: external_exports.enum(["exploited", "not-tested"]),
72727
+ reason: external_exports.string(),
72728
+ baselineStatusCode: external_exports.number().int().optional(),
72729
+ attackStatusCode: external_exports.number().int().optional()
72730
+ })
72731
+ ).max(2e3)
72732
+ }).parse(source);
72733
+ const resolutions = parsed.results.map((result) => ({
72734
+ checklistId: result.checklistId,
72735
+ vulnerabilityClass: result.vulnerabilityClass,
72736
+ title: result.title,
72737
+ className: "LiferayExternalHttp",
72738
+ methodName: result.scenarioId,
72739
+ sinkFile: result.sinkFile,
72740
+ sinkLine: result.sinkLine,
72741
+ outcome: "external-http",
72742
+ verdict: result.verdict,
72743
+ detail: result.reason,
72744
+ ...result.baselineStatusCode !== void 0 ? { baselineStatusCode: result.baselineStatusCode } : {},
72745
+ ...result.attackStatusCode !== void 0 ? { attackStatusCode: result.attackStatusCode } : {}
72746
+ }));
72747
+ runtime = {
72748
+ manifest: {
72749
+ schemaVersion: 1,
72750
+ generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
72751
+ targetPath: "",
72752
+ tests: [],
72753
+ skipped: []
72754
+ },
72755
+ report: {
72756
+ resolutions,
72757
+ unmatchedResults: [],
72758
+ summary: {
72759
+ exploited: resolutions.filter((result) => result.verdict === "exploited").length,
72760
+ blocked: 0,
72761
+ notTested: resolutions.filter((result) => result.verdict === "not-tested").length,
72762
+ suspected: 0
72763
+ }
72764
+ }
72765
+ };
72766
+ } catch (error) {
72767
+ console.error(red(`Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c Liferay E1 HTTP report: ${error.message}`));
72768
+ return EXIT.USAGE;
72769
+ }
72770
+ }
72080
72771
  const hasDastPlan = options.dastPlan !== void 0 && options.dastPlan.length > 0;
72081
72772
  const hasDastReport = options.dastReport !== void 0 && options.dastReport.length > 0;
72082
72773
  if (hasDastPlan !== hasDastReport) {
@@ -72213,7 +72904,12 @@ Ch\u1EA1y \`cs assess --emit-dast <dir>\` \u0111\u1EC3 sinh k\u1EBF ho\u1EA1ch t
72213
72904
  try {
72214
72905
  const rawDastReport = await readFile(dastReportPathResolved, "utf8");
72215
72906
  const parsed = parseZapReport(rawDastReport);
72907
+ if (options.routePrefix && !/^\/o\/[A-Za-z0-9._~/-]+$/.test(options.routePrefix)) {
72908
+ console.error(red("--route-prefix ph\u1EA3i l\xE0 \u0111\u01B0\u1EDDng d\u1EABn JAX-RS /o/... h\u1EE3p l\u1EC7."));
72909
+ return EXIT.USAGE;
72910
+ }
72216
72911
  dast = ingestDast(dastManifest, parsed, {
72912
+ ...options.routePrefix ? { routePrefix: options.routePrefix } : {},
72217
72913
  policy: dastPolicy,
72218
72914
  coveragePolicy: dastCoveragePolicy,
72219
72915
  actualReportHash: dastReportHash(rawDastReport),
@@ -72470,7 +73166,7 @@ Ch\u1EA1y \`cs assess --emit-runtime-plan <dir>\` \u0111\u1EC3 sinh \`${RUNTIME_
72470
73166
  );
72471
73167
  console.log("");
72472
73168
  console.log(
72473
- ` ${summary.totalItems} h\u1EA1ng m\u1EE5c \xB7 ${red(`\u{1F534} ${confirmed} CONFIRMED-VULN`)}${runtime !== void 0 ? ` \xB7 E1: ${red(`${summary.confirmedExploited} khai th\xE1c`)} \xB7 ${green(`${summary.confirmedBlocked} ch\u1EB7n ${dim("(m\xE3 v\u1EABn l\u1ED7i)")}`)} \xB7 ${gray(`${summary.confirmedNotTested} ch\u01B0a x\xE1c minh`)}` : dim(" \xB7 ch\u01B0a g\u1ED9p runtime E1 (thi\u1EBFu --tests/--results)")}`
73169
+ ` ${summary.totalItems} h\u1EA1ng m\u1EE5c \xB7 ${red(`\u{1F534} ${confirmed} CONFIRMED-VULN`)}${runtime !== void 0 ? ` \xB7 E1: ${red(`${summary.confirmedExploited} khai th\xE1c`)} \xB7 ${green(`${summary.confirmedBlocked} ch\u1EB7n ${dim("(m\xE3 v\u1EABn l\u1ED7i)")}`)} \xB7 ${gray(`${summary.confirmedNotTested} ch\u01B0a x\xE1c minh`)}` : dim(" \xB7 ch\u01B0a g\u1ED9p runtime E1 (thi\u1EBFu JUnit ho\u1EB7c Liferay HTTP)")}`
72474
73170
  );
72475
73171
  if (summary.dast !== void 0) {
72476
73172
  const blockedChip = summary.dast.blocked > 0 ? ` \xB7 ${green(`${summary.dast.blocked} ch\u1EB7n ${dim("(m\xE3 v\u1EABn l\u1ED7i)")}`)}` : "";
@@ -72677,7 +73373,12 @@ Ch\u1EA1y \`cs assess --emit-dast <dir>\` \u0111\u1EC3 sinh k\u1EBF ho\u1EA1ch t
72677
73373
  );
72678
73374
  return EXIT.USAGE;
72679
73375
  }
73376
+ if (options.routePrefix && !/^\/o\/[A-Za-z0-9._~/-]+$/.test(options.routePrefix)) {
73377
+ console.error(red("--route-prefix ph\u1EA3i l\xE0 \u0111\u01B0\u1EDDng d\u1EABn JAX-RS /o/... h\u1EE3p l\u1EC7."));
73378
+ return EXIT.USAGE;
73379
+ }
72680
73380
  const ingestOptions = {
73381
+ ...options.routePrefix ? { routePrefix: options.routePrefix } : {},
72681
73382
  policy,
72682
73383
  coveragePolicy,
72683
73384
  actualReportHash: dastReportHash(rawReport),
@@ -75081,6 +75782,7 @@ var buildTextParsedFile = (file) => ({
75081
75782
  layer: "text",
75082
75783
  ast: file.content
75083
75784
  });
75785
+ var PENTEST_RULE_CATEGORIES = /* @__PURE__ */ new Set(["mobile-security", "mobile-privacy"]);
75084
75786
  var loadMobileRules = async () => {
75085
75787
  const result = await loadTsRules({
75086
75788
  dirs: [join(builtinRulesDir, "static", "flutter")],
@@ -75088,7 +75790,9 @@ var loadMobileRules = async () => {
75088
75790
  });
75089
75791
  if (result.ok) {
75090
75792
  return {
75091
- rules: result.value.rules,
75793
+ rules: result.value.rules.filter(
75794
+ (rule) => typeof rule.category === "string" && PENTEST_RULE_CATEGORIES.has(rule.category)
75795
+ ),
75092
75796
  errors: result.value.errors.map((e) => ({ file: e.file, error: e.error }))
75093
75797
  };
75094
75798
  }
@@ -75110,6 +75814,10 @@ var toMobileFinding = (raw, rule, sourceFile, runId) => {
75110
75814
  const snippet = raw.snippet?.trim() || sourceLine || `${rule.id} at line ${line2}`;
75111
75815
  return {
75112
75816
  ruleId: finding.ruleId,
75817
+ // Only the pentest categories reach this lane (loadMobileRules filters) —
75818
+ // a defensive omit beats an invalid enum value on the server schema.
75819
+ ...PENTEST_RULE_CATEGORIES.has(String(rule.category)) ? { category: rule.category } : {},
75820
+ ...rule.masvsControlIds?.length ? { masvsControlIds: [...rule.masvsControlIds] } : {},
75113
75821
  severity: finding.severity,
75114
75822
  title: finding.message,
75115
75823
  message: finding.message,
@@ -75296,6 +76004,18 @@ var resolveEnv = (options) => {
75296
76004
  }
75297
76005
  return { dashboardUrl, token, requestId, projectId };
75298
76006
  };
76007
+ var assessmentSeverityOf = (severity) => {
76008
+ switch (severity) {
76009
+ case "error":
76010
+ return "high";
76011
+ case "warning":
76012
+ return "medium";
76013
+ case "info":
76014
+ return "info";
76015
+ default:
76016
+ return "low";
76017
+ }
76018
+ };
75299
76019
  var postCallback = async (url, token, body, fetchImpl, options = {}) => {
75300
76020
  let res;
75301
76021
  try {
@@ -75427,6 +76147,29 @@ var fetchInputZip = async (ctx, inputId, fetchImpl) => {
75427
76147
  }
75428
76148
  return { path, sha256: sha2563 };
75429
76149
  };
76150
+ var findingDisplayPath = (location) => {
76151
+ const candidate = location.file || location.artifactPath || "";
76152
+ return candidate.length > 0 ? candidate : "(artifact)";
76153
+ };
76154
+ var describeCompletionRejection = (body) => {
76155
+ const trimmed = body.trim();
76156
+ if (!trimmed) return "<empty response body>";
76157
+ try {
76158
+ const parsed = JSON.parse(trimmed);
76159
+ const issues = parsed && typeof parsed === "object" && "issues" in parsed ? parsed.issues : void 0;
76160
+ if (Array.isArray(issues) && issues.length > 0) {
76161
+ const summary = issues.slice(0, 10).map((issue) => {
76162
+ const record = issue ?? {};
76163
+ const path = Array.isArray(record.path) ? record.path.join(".") : "<no path>";
76164
+ return `${path}: ${String(record.code ?? "?")} ${String(record.message ?? "")}`.trim();
76165
+ }).join("; ");
76166
+ const extra = issues.length > 10 ? ` (+${issues.length - 10} more)` : "";
76167
+ return `paths=${summary}${extra}`;
76168
+ }
76169
+ } catch {
76170
+ }
76171
+ return trimmed.length > 1e3 ? trimmed.slice(0, 1e3) : trimmed;
76172
+ };
75430
76173
  var postStageOutput = async (ctx, output2, fetchImpl) => {
75431
76174
  const res = await fetchImpl(
75432
76175
  `${ctx.dashboardUrl.replace(/\/+$/, "")}/api/pentest-runner/jobs/${encodeURIComponent(ctx.requestId)}/mobile-stage-output`,
@@ -75661,12 +76404,22 @@ var runMobileStage = async (options) => {
75661
76404
  (i) => i.kind === "release" && i.platform === platform && i.status === "received"
75662
76405
  );
75663
76406
  if (releaseInputs.length === 0) {
75664
- throw new StageError(
75665
- `platform '${platform}' declared but no release input was received`,
75666
- 1,
75667
- "release-missing",
75668
- true
76407
+ await postStageOutput(
76408
+ ctx,
76409
+ {
76410
+ schemaVersion: 1,
76411
+ requestId: ctx.requestId,
76412
+ stage: options.stage,
76413
+ status: "skipped",
76414
+ skipReason: `platform '${platform}' was declared but no release input was received (source-only run)`,
76415
+ inputIds: [],
76416
+ warnings: [],
76417
+ generatedAt: (/* @__PURE__ */ new Date()).toISOString()
76418
+ },
76419
+ fetchImpl
75669
76420
  );
76421
+ await skip(`platform '${platform}': no release input received (source-only run)`);
76422
+ break;
75670
76423
  }
75671
76424
  const releaseOutputs = [];
75672
76425
  const artifactAttemptedChecks = /* @__PURE__ */ new Set();
@@ -75711,12 +76464,14 @@ var runMobileStage = async (options) => {
75711
76464
  ...f,
75712
76465
  platform,
75713
76466
  inputId: releaseInputId,
75714
- location: { kind: "artifact", artifactPath: f.location.file ?? "(artifact)" }
76467
+ location: { kind: "artifact", artifactPath: findingDisplayPath(f.location) }
75715
76468
  }));
75716
76469
  for (const entry of archive.entries) {
75717
76470
  if (!/(^|\/)\.env(?:\.[^/]*)?$/i.test(entry.name)) continue;
75718
76471
  artifactFindings.push({
75719
76472
  ruleId: "mobile/packaged-env-file",
76473
+ category: "mobile-security",
76474
+ masvsControlIds: ["MASVS-STORAGE-2"],
75720
76475
  severity: "warning",
75721
76476
  platform,
75722
76477
  inputId: releaseInputId,
@@ -76010,7 +76765,11 @@ var runMobileStage = async (options) => {
76010
76765
  schemaVersion: 1,
76011
76766
  // Pinned source output makes a report retry byte-for-byte identical.
76012
76767
  generatedAt: source.generatedAt,
76013
- targetPath: manifest.manifest?.moduleRoot ?? "(mobile)",
76768
+ // `||` not `??`: an empty moduleRoot ('' = snapshot root, legal
76769
+ // since the root-module contract change) must fall back to a
76770
+ // DISPLAY value too — the assessment schema requires min(1) here
76771
+ // and an empty targetPath fails mobile-complete validation.
76772
+ targetPath: manifest.manifest?.moduleRoot || "(mobile)",
76014
76773
  scope: "mobile-static",
76015
76774
  toolVersion: "cs-mobile-stage"
76016
76775
  },
@@ -76044,23 +76803,36 @@ var runMobileStage = async (options) => {
76044
76803
  title: f.title,
76045
76804
  tier: "B",
76046
76805
  vulnerabilityClass: f.ruleId,
76047
- severity: f.severity,
76806
+ // Scope per item (mobile-security | mobile-privacy): lets the
76807
+ // report UI and readers separate security findings from anything
76808
+ // else a rule directory might emit in the future.
76809
+ category: f.category ?? "mobile-security",
76810
+ // MASVS v2 control ids for the assessment page's pillar strip and
76811
+ // grouping — presence scopes WHERE a finding surfaces, it is not
76812
+ // a claim that the control is verified.
76813
+ ...f.masvsControlIds?.length ? { masvsControlIds: f.masvsControlIds } : {},
76814
+ severity: assessmentSeverityOf(f.severity),
76048
76815
  verdict: "INCONCLUSIVE",
76049
76816
  evidence: [
76050
76817
  {
76051
- file: f.location.file ?? f.location.artifactPath ?? "(artifact)",
76818
+ file: findingDisplayPath(f.location),
76052
76819
  line: f.location.line ?? 1,
76053
76820
  sinkId: f.ruleId,
76054
76821
  sourceIds: [f.ruleId],
76055
76822
  confidence: f.confidence,
76056
76823
  codeContext: f.evidence[0]?.snippet,
76057
- note: [f.platform, f.inputId, f.limitation].filter(Boolean).join(" | ")
76824
+ note: [f.category, f.platform, f.inputId, f.limitation].filter(Boolean).join(" | ")
76058
76825
  }
76059
76826
  ],
76060
76827
  scenarios: []
76061
76828
  })),
76062
76829
  mobile: {
76063
76830
  mode: "static",
76831
+ // Scope disclosure — say plainly when no binary was analyzed
76832
+ // instead of leaving a silent artifactCount 0 in the coverage.
76833
+ ...releases.length > 0 ? {} : {
76834
+ scopeNote: "Source-only run: no release artifact was submitted, so binary-level checks (packaged secrets, native libraries, merged manifest) were not tested."
76835
+ },
76064
76836
  releases: releases.flatMap((output2) => output2.releaseOutputs ?? []).map((release) => ({
76065
76837
  inputId: release.inputId,
76066
76838
  platform: release.platform,
@@ -76082,7 +76854,7 @@ var runMobileStage = async (options) => {
76082
76854
  source: "static",
76083
76855
  findings: collectedFindings.map((f) => ({
76084
76856
  ruleId: f.ruleId,
76085
- file: f.location.file ?? f.location.artifactPath ?? "(artifact)",
76857
+ file: findingDisplayPath(f.location),
76086
76858
  line: f.location.line ?? 1,
76087
76859
  message: f.message,
76088
76860
  severity: f.severity,
@@ -76106,7 +76878,7 @@ var runMobileStage = async (options) => {
76106
76878
  if (!completeRes.ok) {
76107
76879
  const text2 = await completeRes.text().catch(() => "");
76108
76880
  throw new StageError(
76109
- `mobile-complete failed (HTTP ${completeRes.status}): ${text2.slice(0, 200)}`,
76881
+ `mobile-complete failed (HTTP ${completeRes.status}): ${describeCompletionRejection(text2)}`,
76110
76882
  1,
76111
76883
  "complete-failed",
76112
76884
  completeRes.status >= 500
@@ -76465,61 +77237,74 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
76465
77237
  `
76466
77238
  );
76467
77239
  }
76468
- const report2 = preflightArchive(outPath);
76469
- const decision = classifyPreflight({ ...report2.signals, staticAssessmentCompleted: true });
76470
- if (!decision.decided) {
77240
+ if (!options.push) {
77241
+ const report2 = preflightArchive(outPath);
77242
+ const decision = classifyPreflight({ ...report2.signals, staticAssessmentCompleted: true });
77243
+ if (decision.decided) {
77244
+ process.stdout.write(
77245
+ `
77246
+ \u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
77247
+ `
77248
+ );
77249
+ for (const evidence18 of report2.evidence.slice(0, 5)) {
77250
+ process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
77251
+ `);
77252
+ }
77253
+ return 1;
77254
+ }
76471
77255
  process.stdout.write("\n\u2713 preflight: ready to build\n");
76472
- if (options.push && link) {
76473
- process.stdout.write("\n\u{1F680} \u0110ang \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Dashboard...\n");
76474
- try {
76475
- const url = `${serverUrl.replace(/\/+$/, "")}/api/projects/${encodeURIComponent(link.projectId)}/pentest-requests`;
76476
- const formData = new FormData();
76477
- formData.append("sourceKind", "archive");
76478
- formData.append("archive", new Blob([readFileSync(outPath)]), basename(outPath));
76479
- formData.append("useAi", "true");
76480
- if (link.codebaseId) {
76481
- formData.append("repositoryId", link.codebaseId);
76482
- }
76483
- if (options.preferredBuildScript) {
76484
- formData.append("preferredBuildScript", options.preferredBuildScript);
76485
- }
76486
- const res = await fetch(url, {
76487
- method: "POST",
76488
- headers: { authorization: `Bearer ${token}` },
76489
- body: formData
76490
- });
76491
- if (!res.ok) {
76492
- const text2 = await res.text().catch(() => "");
76493
- console.error(red(`
77256
+ return 0;
77257
+ }
77258
+ if (options.push && link) {
77259
+ process.stdout.write("\n\u{1F680} \u0110ang \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Dashboard...\n");
77260
+ try {
77261
+ const url = `${serverUrl.replace(/\/+$/, "")}/api/projects/${encodeURIComponent(link.projectId)}/pentest-requests`;
77262
+ const formData = new FormData();
77263
+ formData.append("sourceKind", "archive");
77264
+ formData.append("archive", new Blob([readFileSync(outPath)]), basename(outPath));
77265
+ formData.append("useAi", "true");
77266
+ if (link.codebaseId) {
77267
+ formData.append("repositoryId", link.codebaseId);
77268
+ }
77269
+ if (options.preferredBuildScript) {
77270
+ formData.append("preferredBuildScript", options.preferredBuildScript);
77271
+ }
77272
+ const res = await fetch(url, {
77273
+ method: "POST",
77274
+ headers: { authorization: `Bearer ${token}` },
77275
+ body: formData
77276
+ });
77277
+ if (!res.ok) {
77278
+ const text2 = await res.text().catch(() => "");
77279
+ console.error(red(`
76494
77280
  Server t\u1EEB ch\u1ED1i y\xEAu c\u1EA7u (HTTP ${res.status}): ${text2}`));
76495
- return 2;
76496
- }
76497
- const body = await res.json().catch(() => ({}));
76498
- const createdId = body.request?.id ?? body.id;
76499
- console.log(green(`[\u2713] \u0110\u1EA9y th\xE0nh c\xF4ng! \u0110\xE3 t\u1EA1o request ID: ${createdId ?? "unknown"}`));
76500
- console.log(
76501
- `\u{1F517} Link theo d\xF5i: ${serverUrl.replace(/\/+$/, "")}/runs?project=${encodeURIComponent(link.projectId)}&type=pentest`
77281
+ return 2;
77282
+ }
77283
+ const body = await res.json().catch(() => ({}));
77284
+ const createdId = body.request?.id ?? body.id;
77285
+ console.log(green(`[\u2713] \u0110\u1EA9y th\xE0nh c\xF4ng! \u0110\xE3 t\u1EA1o request ID: ${createdId ?? "unknown"}`));
77286
+ console.log(
77287
+ `\u{1F517} Link theo d\xF5i: ${serverUrl.replace(/\/+$/, "")}/runs?project=${encodeURIComponent(link.projectId)}&type=pentest`
77288
+ );
77289
+ if (body.preflightWarning) {
77290
+ process.stderr.write(
77291
+ `
77292
+ \u26A0 Server preflight: ${body.preflightWarning.stopReason ?? "c\u1EA7n ki\u1EC3m tra c\u1EA5u h\xECnh build"}
77293
+ ${body.preflightWarning.hint ?? "Xem chi ti\u1EBFt tr\xEAn Dashboard."}
77294
+ `
76502
77295
  );
76503
- if (body.request?.status === "failed" && body.request.failureReason) {
76504
- console.error(red(`
76505
- \u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
76506
- }
76507
- } catch (e) {
77296
+ }
77297
+ if (body.request?.status === "failed" && body.request.failureReason) {
76508
77298
  console.error(red(`
76509
- L\u1ED7i m\u1EA1ng khi upload: ${e instanceof Error ? e.message : String(e)}`));
76510
- return 2;
77299
+ \u26A0 Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i: ${body.request.failureReason}`));
76511
77300
  }
77301
+ } catch (e) {
77302
+ console.error(red(`
77303
+ L\u1ED7i m\u1EA1ng khi upload: ${e instanceof Error ? e.message : String(e)}`));
77304
+ return 2;
76512
77305
  }
76513
- return 0;
76514
77306
  }
76515
- process.stdout.write(`
76516
- \u2717 preflight still stops at ${decision.tier} \u2014 ${decision.stopReason}
76517
- `);
76518
- for (const evidence18 of report2.evidence.slice(0, 5)) {
76519
- process.stdout.write(` ${evidence18.source}: ${evidence18.verbatim}
76520
- `);
76521
- }
76522
- return 1;
77307
+ return 0;
76523
77308
  };
76524
77309
  init_dist2();
76525
77310
  init_dist3();
@@ -76931,7 +77716,7 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
76931
77716
  var asFetchBody = (body) => body;
76932
77717
  var multipartFile = (fileName2, absolutePath) => {
76933
77718
  const formData = new FormData();
76934
- formData.append("file", new Blob([readFileSync(absolutePath)]), fileName2);
77719
+ formData.append("archive", new Blob([readFileSync(absolutePath)]), fileName2);
76935
77720
  return formData;
76936
77721
  };
76937
77722
  var runPentestMobileCommand = async (options) => {
@@ -76952,7 +77737,7 @@ var runPentestMobileCommand = async (options) => {
76952
77737
  const targetDirKey = realpathSafe(targetDirAbs, targetDirAbs);
76953
77738
  const repoRootCanonical = repoRootKey !== null && targetDirKey !== null ? repoRootKey : repoRoot;
76954
77739
  const modulePathInput = options.module?.trim();
76955
- const modulePath = modulePathInput && modulePathInput !== "" ? posix5(modulePathInput) : posix5(relative(repoRootCanonical, targetDirAbs)) || ".";
77740
+ const modulePath = modulePathInput && modulePathInput !== "" ? posix5(modulePathInput) : posix5(relative(repoRootCanonical, targetDirKey ?? targetDirAbs)) || ".";
76956
77741
  const moduleDir = resolve(repoRootCanonical, modulePath);
76957
77742
  const moduleRel = relative(repoRootCanonical, moduleDir);
76958
77743
  if (moduleRel === ".." || moduleRel.startsWith(`..${sep}`)) {
@@ -77011,8 +77796,8 @@ var runPentestMobileCommand = async (options) => {
77011
77796
  artifactSpecs.push(parsed.spec);
77012
77797
  }
77013
77798
  if (artifactSpecs.length === 0) {
77014
- return usageError(
77015
- "ch\u01B0a c\xF3 artifact release n\xE0o \u2014 manifest mobile (targetProfile=mobile) y\xEAu c\u1EA7u \xEDt nh\u1EA5t m\u1ED9t release; th\xEAm --artifact <android=\u2026|ios=\u2026> ho\u1EB7c d\xF9ng --build-manifest <file.json>."
77799
+ write(
77800
+ "\u26A0 Kh\xF4ng c\xF3 --artifact: run SOURCE-ONLY \u2014 ch\u1EC9 qu\xE9t m\xE3 ngu\u1ED3n, b\u1ECF qua ph\xE2n t\xEDch binary (APK/IPA)."
77016
77801
  );
77017
77802
  }
77018
77803
  const effectivePlatforms = [
@@ -77024,7 +77809,7 @@ var runPentestMobileCommand = async (options) => {
77024
77809
  );
77025
77810
  }
77026
77811
  write(
77027
- `Hi\u1EC7u l\u1EF1c: appType=${appType} \xB7 platforms=[${effectivePlatforms.join(", ")}] \xB7 artifact=${artifactSpecs.length}`
77812
+ `Hi\u1EC7u l\u1EF1c: appType=${appType} \xB7 platforms=[${effectivePlatforms.join(", ")}] \xB7 artifact=${artifactSpecs.length}${artifactSpecs.length === 0 ? " (source-only)" : ""}`
77028
77813
  );
77029
77814
  let manifest;
77030
77815
  let sourceZipPath;
@@ -77125,7 +77910,9 @@ var runPentestMobileCommand = async (options) => {
77125
77910
  version: 1,
77126
77911
  appType,
77127
77912
  platforms: effectivePlatforms,
77128
- moduleRoot: modulePath,
77913
+ // `''` is the contract's canonical spelling for "module = snapshot root"
77914
+ // (a single-app Flutter/Android/iOS repo); `.` is rejected by the schema.
77915
+ moduleRoot: modulePath === "." ? "" : modulePath,
77129
77916
  source: {
77130
77917
  archiveName: basename(outPath),
77131
77918
  sha256: sha256File(outPath),
@@ -79930,6 +80717,25 @@ var selectExtractedWorkspaceRoot = async (workspace) => {
79930
80717
  }
79931
80718
  return nestedWorkspace;
79932
80719
  };
80720
+ var isRecoverableUnzipExit = (error) => error?.code === 1;
80721
+ var countExtractedFiles = async (root) => {
80722
+ const entries = await readdir(root, { withFileTypes: true });
80723
+ let files = 0;
80724
+ for (const entry of entries) {
80725
+ if (entry.isDirectory()) files += await countExtractedFiles(join(root, entry.name));
80726
+ else files += 1;
80727
+ }
80728
+ return files;
80729
+ };
80730
+ var assertCompleteExtraction = async (workspace, entries) => {
80731
+ const expected = entries.filter((entry) => !entry.replace(/\\/g, "/").endsWith("/")).length;
80732
+ const extracted = await countExtractedFiles(workspace);
80733
+ if (extracted !== expected) {
80734
+ throw new Error(
80735
+ `zip archive extracted incompletely: ${extracted} of ${expected} files present`
80736
+ );
80737
+ }
80738
+ };
79933
80739
  var extractArchive = async (archivePath, workspace) => {
79934
80740
  const listing = await execFileAsync4("unzip", ["-Z1", archivePath], {
79935
80741
  maxBuffer: 10 * 1024 * 1024
@@ -79938,10 +80744,15 @@ var extractArchive = async (archivePath, workspace) => {
79938
80744
  if (entries.length === 0) throw new Error("zip archive has no entries");
79939
80745
  if (entries.length > 2e4) throw new Error("zip archive has too many entries");
79940
80746
  for (const entry of entries) assertSafeZipEntry(entry);
79941
- await execFileAsync4("unzip", ["-q", archivePath, "-d", workspace], {
79942
- maxBuffer: 10 * 1024 * 1024
79943
- });
80747
+ try {
80748
+ await execFileAsync4("unzip", ["-q", archivePath, "-d", workspace], {
80749
+ maxBuffer: 10 * 1024 * 1024
80750
+ });
80751
+ } catch (error) {
80752
+ if (!isRecoverableUnzipExit(error)) throw error;
80753
+ }
79944
80754
  await assertNoSymlinks(workspace);
80755
+ await assertCompleteExtraction(workspace, entries);
79945
80756
  return selectExtractedWorkspaceRoot(workspace);
79946
80757
  };
79947
80758
  var runReviewProcess = async (args) => {
@@ -83047,13 +83858,13 @@ var buildProgram = () => {
83047
83858
  ).option(
83048
83859
  "--e1-trust-tier <tier>",
83049
83860
  "trusted-internal | trusted-local | untrusted cho evidence E1"
83050
- ).option(
83861
+ ).option("--liferay-e1 <file>", "b\xE1o c\xE1o HTTP E1 c\u1EE7a portal Liferay disposable").option(
83051
83862
  "--dast-plan <dir>",
83052
83863
  "th\u01B0 m\u1EE5c k\u1EBF ho\u1EA1ch t\u1EEB `cs assess --emit-dast` (g\u1ED9p runtime E2/DAST, c\u1EA7n c\u1EA3 --dast-report)"
83053
83864
  ).option(
83054
83865
  "--dast-report <path>",
83055
83866
  "file JSON report ZAP (g\u1ED9p runtime E2/DAST, c\u1EA7n c\u1EA3 --dast-plan)"
83056
- ).option(
83867
+ ).option("--route-prefix <path>", "JAX-RS /o/... prefix c\u1EE7a portal Liferay disposable").option(
83057
83868
  "--dast-messages <file>",
83058
83869
  "export `core/view/messages` c\u1EE7a ZAP \u2014 \u0111\u1ED9 ph\u1EE7 per-target tr\xEAn tr\u1EE5c E2, CH\u1EC8 b\xE1o c\xE1o (ADR-0051 #8.4.4; c\u1EA7n c\u1EA3 --dast-plan + --dast-report)"
83059
83870
  ).option(
@@ -83111,8 +83922,10 @@ var buildProgram = () => {
83111
83922
  ...typeof opts.results === "string" && opts.results.length > 0 ? { results: opts.results } : {},
83112
83923
  ...typeof opts.e1Evidence === "string" && opts.e1Evidence.length > 0 ? { e1Evidence: opts.e1Evidence } : {},
83113
83924
  ...typeof opts.e1TrustTier === "string" && opts.e1TrustTier.length > 0 ? { e1TrustTier: opts.e1TrustTier } : {},
83925
+ ...typeof opts.liferayE1 === "string" && opts.liferayE1.length > 0 ? { liferayE1: opts.liferayE1 } : {},
83114
83926
  ...typeof opts.dastPlan === "string" && opts.dastPlan.length > 0 ? { dastPlan: opts.dastPlan } : {},
83115
83927
  ...typeof opts.dastReport === "string" && opts.dastReport.length > 0 ? { dastReport: opts.dastReport } : {},
83928
+ ...typeof opts.routePrefix === "string" && opts.routePrefix.length > 0 ? { routePrefix: opts.routePrefix } : {},
83116
83929
  ...typeof opts.dastMessages === "string" && opts.dastMessages.length > 0 ? { dastMessages: opts.dastMessages } : {},
83117
83930
  dastScanCompleted: opts.dastScanCompleted === true,
83118
83931
  ...typeof opts.dastAttestation === "string" && opts.dastAttestation.length > 0 ? { dastAttestation: opts.dastAttestation } : {},
@@ -83142,7 +83955,7 @@ var buildProgram = () => {
83142
83955
  ).requiredOption(
83143
83956
  "--report <path>",
83144
83957
  "file JSON report ZAP (traditional-json-plus ho\u1EB7c traditional-json) do l\u1EA7n ch\u1EA1y c\u1EE7a b\u1EA1n sinh"
83145
- ).option(
83958
+ ).option("--route-prefix <path>", "JAX-RS /o/... prefix c\u1EE7a portal Liferay disposable").option(
83146
83959
  "-o, --output <file>",
83147
83960
  "report output path (default code-sentinel-dast-verification.md)"
83148
83961
  ).option("--attestation <file>", "execution attestation JSON (ADR-0051 #8.3 provenance)").option(
@@ -83176,6 +83989,7 @@ var buildProgram = () => {
83176
83989
  process.exitCode = await runDastVerify({
83177
83990
  ...typeof opts.plan === "string" && opts.plan.length > 0 ? { plan: opts.plan } : {},
83178
83991
  ...typeof opts.report === "string" && opts.report.length > 0 ? { report: opts.report } : {},
83992
+ ...typeof opts.routePrefix === "string" && opts.routePrefix.length > 0 ? { routePrefix: opts.routePrefix } : {},
83179
83993
  ...opts.output ? { output: opts.output } : {},
83180
83994
  ...typeof opts.attestation === "string" && opts.attestation.length > 0 ? { attestation: opts.attestation } : {},
83181
83995
  ...typeof opts.provenancePolicy === "string" && opts.provenancePolicy.length > 0 ? { provenancePolicy: opts.provenancePolicy } : {},