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

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 +958 -182
  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 +16 -1
  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 +958 -182
  42. package/node_modules/@code-sentinel/parsers/index.js +28 -0
  43. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -9,7 +9,7 @@ import { Language, Parser, Query } from 'web-tree-sitter';
9
9
  import { Project, SyntaxKind, Node, ScriptKind, VariableDeclarationKind } from 'ts-morph';
10
10
  import { readFile, mkdir, writeFile, rename, access, mkdtemp, readdir, rm, stat, unlink, chmod, lstat, realpath as realpath$1, open } from 'fs/promises';
11
11
  import * as nativeFs from 'fs';
12
- import { existsSync, readFileSync, mkdtempSync, statSync, rmSync, constants, mkdirSync, createReadStream, realpathSync, readdirSync, writeFileSync, stat as stat$1, realpath, readdir as readdir$1, unwatchFile, watchFile, watch as watch$1, openSync, readSync, closeSync, fstatSync } from 'fs';
12
+ import { existsSync, readFileSync, mkdtempSync, statSync, rmSync, constants, mkdirSync, createReadStream, realpathSync, readdirSync, writeFileSync, copyFileSync, stat as stat$1, realpath, readdir as readdir$1, unwatchFile, watchFile, watch as watch$1, openSync, readSync, closeSync, fstatSync } from 'fs';
13
13
  import { createGunzip, inflateRawSync, deflateRawSync } from 'zlib';
14
14
  import { Socket } from 'net';
15
15
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
@@ -11628,7 +11628,7 @@ function collectBindings(javaFiles) {
11628
11628
  const resolved = resolveUnit(file.content, field3);
11629
11629
  out.push({
11630
11630
  file: file.path,
11631
- line: lineOf26(file.content, m.index),
11631
+ line: lineOf27(file.content, m.index),
11632
11632
  property,
11633
11633
  field: field3,
11634
11634
  annotationDefault: m[2],
@@ -11653,7 +11653,7 @@ function readConfiguredValue(files, property) {
11653
11653
  for (const file of candidates) {
11654
11654
  const m = yamlRe.exec(file.content) ?? propsRe.exec(file.content);
11655
11655
  if (m?.[1]) {
11656
- return { value: Number(m[1]), file: file.path, line: lineOf26(file.content, m.index) };
11656
+ return { value: Number(m[1]), file: file.path, line: lineOf27(file.content, m.index) };
11657
11657
  }
11658
11658
  }
11659
11659
  return void 0;
@@ -11667,7 +11667,7 @@ function parseParams2(url) {
11667
11667
  function normalizeUrl(url) {
11668
11668
  return url.replace(/^\/+/, "");
11669
11669
  }
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;
11670
+ var createCompositeParser, SUPPORTED, createTextParser, requireFromHere, grammarCache, parserInitialized, initParser, resolveGrammarPath, loadGrammar, LANGUAGE_TO_GRAMMAR, SUPPORTED2, createTreeSitterParser, asTreeSitterTree, OPEN_SCRIPT_RE, CLOSE_SCRIPT_RE, LANG_TS_RE, SRC_ATTR_RE, OPEN_TEMPLATE_RE, CLOSE_TEMPLATE_RE, blankOut, keepOnly, templateRange, projectVueSfc, isVueSfcPath, tsMorphPathOf, SUPPORTED3, scriptKindFor, createTsMorphParser, createParser, BASE_CONFIG_RE, PROFILE_CONFIG_RE, HARNESS_PORT, KEY_LINE_RE, yamlEntries, emptyKeys, isConfigYaml, profileRank, declaresDatasource, detectDatasourceProfileBlocker, detectProfileCompositionBlocker, detectServerPortBlocker, XML_COMMENT_RE, INCLUDE_RE, CREATE_TABLE_RE, ALTER_TARGET_RE, matchAllGroups, detectUnrunnableMigrationBlocker, detectPolicyBootBlockers, composeSuggested, BINDABLE_NAME_RE, YAML_KEY_RE, PROPS_KEY_RE, configValueOf, rawTokensOf, MARK, AUTHORITY_LIKE_RE, shapeInAuthority, nextOf, shapeInPath, shapeAt, parseConfigValue, renderTemplate, DIALECT_SPECS, JDBC_URL_PATTERNS, DRIVER_PATTERNS, isConfigFile, isBuildFile, dialectsMatching, resolveDialect, DDL_AUTO_CREATE_RE, FLYWAY_RE, LIQUIBASE_RE, resolveSchemaProvisioning, detectSchemaProvisioning, detectDbTier, DB_SIDECAR_PORT, DISPOSABLE_DB, dbSidecarEnv, buildDbSidecarSpec, maskJavaComments, maskedCorpusCache, maskJavaFiles, PROFILE_GATED_JAR_BEANS, JHIPSTER_PROFILE_CONSTANTS, isJava, CLASS_DECL_RE, PROFILE_ANNOTATION_RE, CONDITIONAL_ANNOTATION_RE, CONFIG_ANNOTATION_RE, readProfileAnnotation, declarationHead, braceMatch, lineAt, parsedClasses, simpleTypeName, parseParams, beanMethods, collectProducers, detectUngatedProfileDependencies, ungatedProfileDeviationText, STANDALONE_BOOT_PROFILE, ENTITY_SCHEMA_GAPS, PROVISIONED_SIDECARS, DEFAULT_PROVISIONED_SIDECARS, NOTE, isConfigFile2, leafKey, indentOf, fullPathFor, usesJpa, detectVaultTemplateCompatibility, KAFKA_BUILD_RE, KAFKA_CONFIG_RE, STREAM_BUILD_RE, STREAM_CONFIG_RE, declaresKafka, declaresStreamBinder, hasPinnedListenerAutoStartup, ENDPOINT_PROPERTY_RULES, ENDPOINT_VALUE_RE, CLUSTER_TOPOLOGY_RULES, literalDatabaseOf, resolveSchemaResolution, buildStandaloneBootProfile, runtimeEnvKeyFor, A_SENTINEL, ENC_SENTINEL, UNAVAILABLE_KAFKA_HOST, UNAVAILABLE_KAFKA_PORT, isBase64JwtSigningKeyPath, isEndpointShaped, isEndpointPropertyPath, hasToken, dummyFor, RELAXED_ENV, envKeyFor, buildSidecars, renderSidecar, identifyByName, PATH_KINDS, PATH_LEAF_ROLES, identifyByPath, roleFromShape, shapedDummy, unavailableKafkaValue, resolveSlot, resolvePlaceholder, encSentinelFor, SHAPE_PRECEDENCE, strongerShape, buildBootResolution, RUNTIME_ENV_MANIFEST_SCHEMA_VERSION, SENSITIVE_ENV_NAME, URL_USERINFO, SENSITIVE_QUERY_VALUE, INLINE_SENSITIVE_VALUE, JWT_VALUE, EFFECTIVE_VALUE_LIMIT, displayEnvValue, UPPER_ENV_RE, RUNTIME_HTTP_STUB_AUTHORITY, parseRuntimeEnvProposal, strategyForRule, SAFE_DISABLE_ENV_ALLOWLIST, isSafeDisableCandidate, proposalStrategyFitsEntry, proposalFor, synthesizeManifestEnv, CONFIG_FILE_RE, BUILD_CONFIG_FILE_RE, ENV_FILE_RE, JAVA_FILE_RE, KOTLIN_FILE_RE, PACKAGE_MANIFEST_PATH, PLACEHOLDER_RE, GET_ENV_RE, VALUE_RE, lineOf, propertyPathAt, declaredConfigPropertyNames, shapeFor, valueConsumerShape, dependencyFor, enumValuesForConsumer, compareText, runtimeEnvScenarioId, sameSourcePath, buildRuntimeEnvManifest, buildRuntimeEnvResolutionReport, buildRuntimeEnvEffectiveReport, countsFor, applyRuntimeEnvImpact, TS_LANGUAGES, EXTENSIONS, TS_SOURCE_EXTENSIONS_BY_RUNTIME_EXT, scriptKindFor2, normalizeRelativePath, candidatePaths, normalizeConfigPath, stripJsonComments, loadTsConfigResolver, matchPathPattern, applyPathTarget, resolveAliasModule, resolveModule, aliasIfDifferent, exportedSymbols, expressionRootName, addSymbol, compareText2, variableBindingNames, importEqualsSpecifier, extractSymbols, fingerprintFor, createTsAstDependencyGraphBuilder, isTsLike, debug, warn, tryLoad, trySave, createIncrementalAstGraphBuilder, SOURCES, SINKS, SANITIZERS, DEFAULT_TS_TAINT_TABLES, JAVA_SOURCES, JAVA_SINKS, JAVA_SANITIZERS, DEFAULT_JAVA_TAINT_TABLES, PROPAGATOR_RESULT_TAILS, PROPAGATOR_STATE_TAILS, SUBJECT_CTOR_TYPES, CALLBACK_TAINT, TAINT_UNION_BINOPS, EMPTY_SUMMARY, paramSentinel, PARAM_SENTINEL_RE, MAX_CROSS_FILE_DEPTH, JAVA_LINE_TERMINATORS, HOST_FIXING_PREFIX_RE, KNOWN_STRING_CONSTANTS, MAX_CONSTANT_DEPTH, TYPE_DECLARATION, CALLABLE, SIMPLE_ESCAPES, TYPE_DECL_NODES, indexCache, SCOPE_BOUNDARY, SCOPE_BOUNDARY2, TYPE_DECL, STRING_PASSTHROUGH, ARG_PASSTHROUGH, CONTAINER_ELEMENT, BUILDER_APPENDERS, COLLECTION_MUTATORS, RECEIVER_FOLD_MUTATORS, HOST_FIXED_MARK, STRING_BUILDER_TYPES, BUILDER_PREFIX_BREAKERS, PREFIX_DROPPING_PASSTHROUGH, CONDITIONAL_CONSTRUCT, INERT_URL_ACCESSOR_RE, EMPTY_SUMMARY2, paramSentinel2, PARAM_SENTINEL_RE2, MAX_CROSS_METHOD_DEPTH, SANITIZE_CALL, BYPASS_CALL, PREFIX_GATE, MAX_VALUE_HOPS, SOURCE_PATTERNS, MAPPING_ANNOTATIONS, PARAM_ANNOTATIONS, AUTHZ_ANNOTATIONS, VALIDATION_ANNOTATIONS, annotationScanner, TYPE_DECL2, MODIFIER, METHOD_NAME, LEADING_ANNOTATION, simpleName, lineOf2, readBalanced, annotationArgs, firstStringLiteral, readMappingPath, readMappingMethod, joinPaths, skipToDeclaration, isTypeDeclaration, splitParams, parseParam, readAuthAnnotations, ROLE_ANNOTATIONS, stripRolePrefix, readAuthRoles, precedingBlock, readClassContext, extractFromFile, JAXRS_VERBS, JAXRS_PARAM_ANNOTATIONS, JAXRS_IMPORT, parseJaxRsParam, readJaxRsPath, JAXRS_TYPE_DECL, readJaxRsType, IMPLEMENTS_DECL, readImplCandidate, escapeRegExp, findImplMethod, extractJaxRsEndpoints, extractHttpEndpoints, findEnclosingEndpoint, SINK_ATTACKS, AI_TRIAGE_ATTACK_ALIASES, SINK_SHAPE_VARIANTS, SOURCE_KIND, kindsFromSources, deriveAuthContext, resolveCompanionParams, resolveInjectionPoint, buildServerRequest, buildClientRequest, generateAttackScenario, UNASSESSED_CATALOG, BY_ID, buildUnassessedItems, INJECTION_LANGUAGES, TIER_A_INJECTION_ITEMS, CONFIRMED_LIMITATION, INCONCLUSIVE_LIMITATION, evidenceFrom, byFileLine, CHECKLIST_VERDICT_RANK, mergeEqualRank, dedupeByChecklistId, scenarioByFileLine, PENTEST_CHECKLIST_TOTAL, DECLARED_CHECKLIST_IDS, buildChecklistCoverage, buildCoverage, assembleAssessment, CONFIG_ENTRY_RE, SKIPPED_ENTRY_RE, XML_COMMENT_RE2, SYSTEM_PATH_RE, declaredSystemJarEntries, declaredSystemJarPaths, readCentralDirectory, readEntryBytes, readEntryText, languageFor, detectMissingSystemJars, readJarConfigFiles, readJarClassFiles, listJarClassNames, MIN_CONSTANT_LEN, MAX_CONSTANT_LEN, MAX_CONSTANTS_PER_CLASS, NOISE_CONSTANT_RE, parseClassConstants, constantRank, readJarClassConstants, collectDependencyClassConstants, collectDependencyClassNames, collectDependencyConfigFiles, JWT_CONTEXT_MARKER_RE, BASE64_SHAPE_RE, MIN_BASE64_KEY_CHARS, MAX_BASE64_KEY_CHARS, decodedByteLength, readJarJwtKeyCandidates, collectJwtKeyCandidates, JWT_FACADE_RE, JWT_DECODE_CALL_RE, JWT_VERIFY_MARKER_RE, readJarDecodeOnlyEvidence, collectDecodeOnlyEvidence, collectEagerKafkaStartupJars, EMPTY_DEPENDENCY_GUARDS, DENY_CLASS_RE, ASPECT_DESC, ADVICE_DESC_RE, POINTCUT_DESC, ACC_INTERFACE, ACC_ANNOTATION, MAX_HOPS, operandLength, Reader, parseClass, simpleName2, packageOf, scanClassFilesForGuards, collectDependencyGuardFacts, TEST_SOURCE_SET_RE, isTestSourcePath, STANDARD_GUARD_ANNOTATIONS, MAX_HOPS2, DENY_EXCEPTION, DENY_STATUS, DENY_SEND_ERROR, isJava2, lineOf3, maskStrings, ANNOTATION_NAME, annotationNames, parseClass2, RESPONSE_STATUS_TEST, isResponseStatusTranslation, firstDenyMatch, denyHitOf, methodKey, endpointGuardKey, sourceRootOf, sameModuleFirst, calleesOf, scanAuthorizationGuards, guardForEndpoint, MAX_EVIDENCE3, REVIEW_SIGNAL_MAP, asJsonRecord, readReviewFinding, parseReviewReport, reviewReportRuleIds, evidenceOf, sortEvidence, EXTERNAL_BYPASS_MARKER, isDecisiveFinding, foldReviewSignals, MAX_EVIDENCE22, AUTHORIZATION_RISK_EVIDENCE, MASS_ASSIGNMENT_EVIDENCE, OWNERSHIP_SCOPE_EVIDENCE, STATE_TRANSITION_EVIDENCE, AI_SIGNAL_MAP, readPerRule, parseAiReviewReport, evidenceOf2, sortEvidence2, scopeClauseOf, provenanceOf, skipReasonOf, anchorResolves, anchorOf, unresolvableCitationClause, citationGateClause, citationTargetNoun, miscitationBreakdown, anchorAccepts, foldAiSignals, IMPORT_LINE_RE, isImportOrPackageLine, CSRF_SPEC, CORS_SPEC, HEADERS_SPEC, STACKTRACE_SPEC, MESSAGE_SPEC, COOKIE_SPEC, SESSION_FIXATION_SPEC, SESSION_TIMEOUT_SPEC, AUTH_CACHE_SPEC, lineOf4, SECURITY_CONFIG_RE, CSRF_DISABLE_RE, CORS_WILDCARD_RE, CROSS_ORIGIN_BARE_RE, ALLOW_CREDENTIALS_RE, CORS_EXPLICIT_ORIGIN_RE, CORS_ANY_RE, HEADERS_DISABLE_RES, HEADERS_CONFIGURED_RE, CSP_CONFIGURED_RE, STACKTRACE_EXPOSE_RE, STACKTRACE_NEVER_RE, MESSAGE_EXPOSE_RE, MESSAGE_NEVER_RE, COOKIE_CONTEXT_RE, COOKIE_INSECURE_CHECKS, COOKIE_HARDENED_RE, SESSION_FIXATION_DISABLED_RE, CACHE_CONTROL_DISABLE_RE, CACHE_CONTROL_CONFIGURED_RE, SESSION_TIMEOUT_PATH_RE, SESSION_BLOCK_HEADER_RE, SESSION_TIMEOUT_LEAF_RE, YAML_INDENT_RE, control, configEvidence, firstMatch, firstMatchAny, scanCsrf, CORS_ORIGINS_YAML_RE, CORS_CREDENTIALS_YAML_RE, isWildcardOrigins, corsConfigRank, corsOriginHits, scanCors, scanSecurityHeaders, NON_PROD_PROFILE_RE, scanStacktraceExposure, scanErrorMessageExposure, scanCookieAttributes, scanSessionFixation, scanAuthCacheControl, findSessionTimeout, timeoutNeverExpires, timeoutToMinutes, JWT_VALIDITY_RE, NON_PROD_CONFIG_RE, findJwtValidities, hoursOf, judgeJwtValidity, judgeServletTimeout, scanSessionTimeout, scanSecurityConfig, WEAK_CRYPTO_SPEC, MAX_EVIDENCE32, lineOf5, classifyAlgorithm, GET_INSTANCE_RE, COMMONS_DIGEST_RE, GUAVA_HASHING_RE, SECRET_KEY_SPEC_RE, SHORTHAND_ALGO, SECURITY_DIGEST_PURPOSE_RE, NON_SECURITY_DIGEST_PURPOSE_RE, isNonSecurityDigestUse, collectWeakHits, STRONG_CRYPTO_RE, STRONG_CRYPTO_RE_G, firstStrong, evidence, item, scanWeakCrypto, REGEX_PRECEDING_KEYWORDS, isIdentChar, regexAllowedAt, maskJsComments, maskedCorpusCache2, maskJsFiles, FRONTEND_EXT_RE, VENDOR_DIR_RE, ANGULAR_LIBRARY_SRC_RE, GENERATED_NAME_RE, JQUERY_PLUGIN_RE, KNOWN_LIBRARY_RE, BANNER_RE, MINIFIED_AVG_LINE, isThirdPartyAsset, BROWSER_STORAGE_SPEC, MAX_EVIDENCE4, lineOf6, HIGH_SENSITIVITY_RE, TOKEN_FAMILY_RE, classifyStorageKey, VALUE_TOKEN_FAMILY_RE, classifyStorageValue, keyToken, SET_ITEM_RE, BRACKET_ASSIGN_RE, STORAGE_USE_RE, IDB_CONTEXT_RE, LOCALFORAGE_SET_RE, IDB_STORE_WRITE_RE, collectStorageHits, collectIndexedDbHits, finalizeHits, firstStorageUse, evidence2, item2, scanSensitiveBrowserStorage, AT_REST_SPEC, MAX_EVIDENCE5, lineOf7, PWD_GETTER, PWD_EQUALS_RECEIVER_RE, PWD_EQUALS_ARG_RE, collectPasswordComparisonHits, SENSITIVE_FIELD_NAMES, FIELD_DECL_RE, FIELD_PROTECTED_RE, precedingBlock2, collectPlaintextFieldHits, finalizeHits2, PROTECTION_RE, firstProtection, AT_REST_SURFACE_RE, evidence3, item3, scanSensitiveDataAtRest, PADDING_ORACLE_SPEC, MAX_EVIDENCE6, lineOf8, GET_INSTANCE_RE2, collectCbcHits, BAD_PADDING_CATCH_RE, collectBadPaddingHits, finalizeHits3, AEAD_RE, firstAead, CIPHER_SURFACE_RE, evidence4, item4, scanPaddingOracle, LOGGING_SPEC, MAX_EVIDENCE7, lineOf9, JAVA_LOG_CALL_RE, JAVA_CONSOLE_CALL_RE, JS_CONSOLE_CALL_RE, LOG_SURFACE_RE, stripStringLiterals, PII_RE, findSensitiveToken, IDENTIFIER_RE, VALUE_METHOD_RE, callsPropertyAccessor, TOKEN_COUNT_PREFIXES, FLAG_PREFIXES, MASK_PREFIXES, SECRET_SEGMENTS, SECRET_SEGMENT_PAIRS, SECRET_SUBSTRING_RE, PROTECTED_SEGMENTS, segmentsOf, isSecretIdentifier, stripNonValueExpressions, collectSensitiveContainers, findSensitiveArgument, findSensitiveOutput, firstLogSurface, evidence5, item5, scanSensitiveLogging, CHECKLIST_ID, CONTROL_ID, TITLE, CWE, MAX_EVIDENCE8, ADMIN_PATH_RE, ADMIN_CONTROLLER_RE, isAdminEndpoint, ADMIN_ROLE_RE, ROLE_CAPABLE_AUTHZ, ROLE_ANNOTATION_RE, SEC_CONFIG_HINT_RE, MATCHER_RE, ACCESS_AFTER_RE, ANY_REQUEST_RE, offsetOfLine, readBalanced2, stringLiterals, antMatches, hasAdminRoleAnnotation, classHeaderOf, memberWindow, annotationStance, accessKind, collectFilterConfig, filterStanceFor, combineProtection, publicNote, item6, auditAdminSurface, CLOUD_ACL_SPEC, MAX_EVIDENCE9, lineOf10, PUBLIC_ACL_PATTERNS, finalizeHits4, collectCannedAclHits, EFFECT_ALLOW_RE, WILDCARD_PRINCIPAL_RE, S3_ACTION_RE, enclosingObject, collectBucketPolicyHits, evidence6, item7, scanCloudStorageAcl, ACTUATOR_SPEC, MAX_EVIDENCE10, CONFIG_FILE_RE2, SENSITIVE_ACTUATOR_ENDPOINTS, lineOf11, indentOf2, isBlankOrComment, splitEndpoints, classifyExposure, exposureNote, H2_NOTE, findChildKey, collectListItems, collectExposureHits, collectH2Hits, finalizeHits5, evidence7, item8, scanActuatorExposure, BACKUP_FILE_SPEC, BACKUP_FILE_GLOBS, BACKUP_FILE_RE, SENSITIVE_BASE_RE, MAX_EVIDENCE11, stripBackupSuffix, classify2, evidence8, scanBackupFiles, CROSSDOMAIN_SPEC, CROSSDOMAIN_GLOBS, MAX_EVIDENCE12, lineOf12, PERMISSIVE_PATTERNS, collectHits, evidence9, scanCrossDomainPolicy, CLIENT_INFO_SPEC, ANGULAR_CONFIG_GLOBS, MAX_EVIDENCE13, lineOf13, asRecord, sourceMapEnabled, buildConfigurations, scanConfigFile, evidence10, item9, scanClientInfoLeak, SENSITIVE_FILE_SPEC, SENSITIVE_FILE_GLOBS, SENSITIVE_FILE_RE, PEM_TEXT_RE, PRIVATE_KEY_HEADER_RE, MAX_EVIDENCE14, classify22, evidence11, scanSensitiveFiles, INSECURE_TRANSPORT_SPEC, ENVIRONMENT_FILE_RE, MAX_EVIDENCE15, lineOf14, extractStringLiterals, HTTP_URL_RE, HTTPS_PRESENCE_RE, isExcludedHost, TEMPLATE_FILE_RE, scanInsecureFormSubmission, isTestPath, scanExternalCleartextLinks, JAVA_FILE_RE2, CLEARTEXT_JAVA_CLIENT_RE, scanJavaCleartextClients, scanInsecureTransport, WEBSOCKET_SPEC, MAX_EVIDENCE16, WS_URL_RE, WSS_PRESENCE_RE, scanWebSocketSecurity, authFillKey, createStubAuthFillResolver, buildAuthFillMap, ALG_TO_HASH, SIGNING_KEY_LINE, ENV_PLACEHOLDER, lineOf15, cleanValue, discoverJwtSigningKeys, b64url, b64urlStr, signingKeyBytes, mintJwt, DEFAULT_JHIPSTER_CLAIMS, RECIPE_NOTE, DECODE_ONLY_NOTE, jarKeysToSigningKeys, sha256Hex, buildRuntimeAuthRecipe, mintTokenFromRecipe, DEFAULT_TTL_SECONDS, commandsFor, credentialFor, runtimeAuthSeedDeviation, runtimeAuthSeedDecodeOnlyDeviation, planFor, buildRuntimeAuthSeedPlan, DEFAULT_TIMEOUT_MS, CRLF, encodeResp, identify, readReply, applyRuntimeAuthSeed, describeShape, resolveRuntimeAuthHypothesis, THREW, createStubRuntimeAuthHypothesisResolver, dataSeedKey, describeShape2, THREW2, resolveRuntimeDataSeedHypothesis, createStubRuntimeDataSeedResolver, buildDataSeedPlan, buildApiCreateSeedPlan, dataSeedEndpointSummaries, IDEMPOTENT_INSERT, BACKSLASH_IS_ESCAPE, escapeSqlString, sqlLiteral, assertIdentifier, renderDataSeedSql, SEED_AUDIT_SENTINEL, AUDIT_FIELD_RE, CLASS_DECL_RE2, TABLE_RE, EXTENDS_RE, NULLABLE_FALSE_RE, LENGTH_RE, stripJavaComments, group, detectSeedAuditColumns, applySeedAuditColumns, seedAuditAddedColumns, OBJECT_SEED_BASELINE_KEY, OBJECT_SEED_BASELINE_CONTENT_BASE64, PENTEST_CANARY_BUCKET, MAX_DERIVED_TARGETS, MAX_DERIVED_EVIDENCE, CONFIG_PATH_RE, BUCKET_KEY_RE, LINE_RE, PLACEHOLDER_RE2, ENC_PREFIX_RE, BOOLEAN_VALUE_RE, HAS_LOWERCASE_RE, canonicalKey, cleanValue2, resolveValue, referencesToken, deriveObjectStoreSeedTargets, renderObjectStoreSeedTsv, REACHABILITY_MANIFEST_SCHEMA_VERSION, MANIFEST_NOTE, SCALAR_JAVA_TYPES, baseTypeName, seedForParam, METHOD_INTENT, buildHint, buildReachabilityManifest, norm, dirOf, baseName, isMavenPom, isGradleBuild, stripXmlComments, isAncestorDir, normModulePath, selectRunnableModule, PACKAGE_DECL, BOOT_CLASS, posix3, detectSpringBootClass, EOCD_SIGNATURE, CENTRAL_SIGNATURE, EOCD_SEARCH_WINDOW, MAX_COMPRESSION_RATIO, MAX_UNCOMPRESSED_BYTES, MAX_ENTRIES, fail, isUnsafeName, readArchive, readArchiveEntryText, SOURCE_EXTENSIONS, extensionOf, baseNameOf, XML_COMMENT_RE3, isAggregatorPom, declaresParentPath, declaresSystemPaths, resolveAgainst, isSafeManifestPath, isSafeBuildTarget, preflightArchive, GRAPH_SKIP_DIRS, toPosix2, isFile, isDirectory, isWithin, resolvesWithin, normalizeModulePath, readText, hasApplicationEntrySource, walkFor, XML_COMMENT_RE4, xmlValue, withoutXmlBlocks, parseMavenModule, nearestAncestorFile, resolveMaven, stripGradleComments, quotedValues, parseGradleSettings, gradleProjectDependencies, conventionalProjectDir, resolveGradle, resolveBuildPackage, discoverBuildPackageEntries, SKIP_DIRS, DEFAULT_PACKAGE_EXCLUDES, SECRET_FILE_EXACT, SECRET_EXTENSIONS, isSecretOrIgnoredFile, MAX_FILE_BYTES, MAX_PARENT_DEPTH, DEFAULT_PACKAGE_POLICY, toPosix22, isFile2, isWithin2, resolvesWithin2, packageRootFor, toRelativeName, globRegexCache, globToRegExp, considerFile, walk, fingerprintEntryData, fingerprintEntries, withAdditionalPackageEntries, XML_COMMENT_RE5, RELATIVE_PATH_RE, SYSTEM_PATH_RE2, PARENT_BLOCK_RE, EMPTY_RELATIVE_PATH_RE, readPom, localNpmTarballs, expandBasedir, planServicePackage, CRC_TABLE, crc32, writePackageZip, SIDECAR_IMAGES, HARNESS_PLAN_SCHEMA_VERSION, isConfigFile3, isBuildFile2, stripComments, SERVICE_DEPS, detectDatabaseDependency, detectServiceDependencies, detectHarnessDependencies, AUTO_CONFIGURED_LISTENER_FACTORY, KAFKA_LISTENER_ARGS_RE, LISTENER_PIN_RE, LISTENER_FACTORY_RE, SELF_OFF_FACTORY_BEAN_RE, SET_AUTO_STARTUP_FALSE_RE, classifyKafkaBootPath, buildHarnessPlan, normalizedPath, lineOf16, maskComments, sourceAt, addEvidence, readBundleIdentity, readPortalRelease, readSourceProduct, readToolchain, databaseVendorOf, readDatabase, isPortalConfigFile, normalizeApplicationBase, readApplicationBase, readSearch, detectLiferayRuntimeProfile, applyKafkaBrokerCoherence, RUNTIME_PLAN_SCHEMA_VERSION, PLAN_NOTE, describeSidecar, buildSteps, buildRuntimeBringUpPlan, RUNTIME_OVERLAY_FILE, RUNTIME_COMPOSE_FILE, RUNTIME_GUIDE_FILE, RUNTIME_BOOT_ENV_FILE, RUNTIME_VAULT_COMPATIBILITY_FILE, SIDECAR_IMAGE, REDIS_CLUSTER_COMMAND, renderNestedYaml, renderOverlay, renderVaultCompatibility, publishLine, renderCompose, renderGuide, renderBootEnv, generateRuntimeArtifacts, SUBMISSION_REQUIREMENTS_SCHEMA_VERSION, MAX_EVIDENCE17, NOTE2, capEvidence, totalSuffix, blockerEvidence, groupBy, packagingRequirements, secretRequirements, POLICY_KINDS, policyRequirements, infrastructureRequirements, authRequirements, seedRequirements, TIER_ORDER, buildSubmissionRequirements, renderSubmissionRequirements, REJECT_SIDECAR, applyRuntimeInput, DESER_SPEC, MAX_EVIDENCE18, lineOf17, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf18, WEAK_RNG_PATTERNS, SECURITY_ID_RE, statementAround, COOKIE_SINK_MAX_HOPS, namesCarrying, reachesCookie, collectHits3, SECURE_RANDOM_RE, firstSecureRandom, evidence13, item11, scanWeakSecureRandom, POSTMESSAGE_SPEC, MAX_EVIDENCE20, lineOf19, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf20, escapeRe, isScannableFrontendPath, GUARD_FN_TYPES, GUARD_CLASS_IFACES, FN_GUARD_TYPED_RE, CLASS_GUARD_RE, FN_GUARD_PARAM_RE, VUE_ROUTE_GUARD_RE, VUE_INTERCEPTOR_RE, FN_INTERCEPTOR_RE, INTERCEPTOR_BINDING_RE, CLASS_INTERCEPTOR_RE, INTERCEPT_METHOD_RE, INTERCEPTOR_TOKEN_RE, URL_CHECK_RES, DOM_SANITIZER_CALL_RE, SANITIZER_HELPER_DEF_RE, BYPASS_TRUST_RE, KIND_ORDER, KIND_LABELS, scanClientGuards, renderClientGuards, INDEX_HEADER_SPEC, MAX_EVIDENCE222, lineOf21, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf22, isFrontend2, HIGH_SENSITIVITY_RE2, TOKEN_FAMILY_RE2, SECURE_RE, SAMESITE_RE, COOKIE_WRITE_RE, COOKIE_USE_RE, classifyCookieValue, collectCookieHits, evidenceOf3, resultItem, scanClientCookie, TS_LANGS, MOUNT_VUE3, MOUNT_VUE2, TS_EXT_CANDIDATES, UNRESOLVED_PATH, unwrap, TS_LANGS2, MOUNT_ROOT, MOUNT_ANY, TS_EXT_CANDIDATES2, MAX_CHAIN_DEPTH, MAX_REEXPORT_DEPTH, UNRESOLVED_PATH2, isVueSfc, inferVueSrcBase, resolveComponentRoutesByFramework, XXE_SPEC, MAX_EVIDENCE24, lineOf23, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf24, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, UNREFERENCABLE_BASE_IMAGE, baseImageReference, FLOATING_TAG_RE, unpinnedBaseImageReason, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf26, HOST_PATTERNS, REQUEST_TYPE_RE, REQUEST_NAME_RE, receiverOf, isRequestReceiver, collectHits5, evidence19, item17, scanHostHeader, CHECKLIST_ID2, CONTROL_ID2, TITLE2, evidenceOf4, item18, VALUE_ANNOTATION_RE, FIELD_AFTER_VALUE_RE, LIFETIME_TOKEN_RE, tokenize, hasOtpToken, TIME_UNIT_RE, NAME_UNIT_HINTS, TO_SECONDS, lineOf27, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf28, precedingBlock3, PASSWORD_NAME_RE, NOT_A_SECRET_RE, isPasswordName, STRING_DECL_RE, SIZE_MIN_RE, ANNOTATION_IN_BLOCK_RE, LENGTH_CHECK_RE, CONSTRAINT_VALIDATOR_RE, ANNOTATION_DECL_RE, STRING_LITERAL_RE, QUANT_MIN_RE, POLICY_SURFACE_PATTERNS, ACCOUNT_SURFACE_RE, baseName2, isAccountSurface, collectCustomConstraintMins, sitesIn, firstUsageIndex, pointersIn, dedupeSort, evidenceOf5, item19, policyNote, scanPasswordPolicy, SPEC, MAX_EVIDENCE28, AUTH_SURFACE_RE, ACCOUNT_EXISTENCE_RE, PASSWORD_ONLY_RE, COMBINED_RE, STRING_LITERAL_RE2, lineOf29, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf30, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf31, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf32, scanSsrfEndpointHints, SPEC4, MAX_EVIDENCE322, HARD_MUTATION_HANDLER_RE, DIRECT_WRITE_RE, DELEGATION_WRITE_RE, TXN_RE, READ_ONLY_TXN_RE, offsetOfLine2, insideLiteral, extractHandlerBody, braceMatchedBlock, signatureRegion, confirmWrite, dedupeSort5, evidenceOf9, item23, scanStateChangingGet, KEY_MANAGEMENT_SPEC, JAVA_FILE_RE3, CONFIG_FILE_RE3, EMPTY_SECRET_KEY_SPEC_RE, EMPTY_KEY_VAR_RE, scanEmptyEncryptionKeys, MFA_AUTH_SPEC, JAVA_FILE_RE4, CONFIG_FILE_RE4, AUTH_SURFACE_RE2, MFA_INDICATORS_RE, MFA_VERIFY_ENDPOINT_RE, SSO_INDICATORS_RE, isTestPath2, isNonSiteLine, scanMfaAuth, PASSWORD_EXPIRY_SPEC, JAVA_FILE_RE5, CONFIG_FILE_RE5, USER_DETAILS_RE, HARDCODED_CREDENTIALS_NON_EXPIRED_RE, ACTIVE_EXPIRY_CHECK_RE, PASSWORD_AGE_SOURCE_RE, ADVISORY_EXPIRY_FLAG_RE, EXPIRY_ENFORCEMENT_RE, forcesPasswordResetViaUpdate, ENFORCEMENT_POINT_RE, LIFERAY_EXPIREABLE_RE, LIFERAY_MAX_AGE_RE, isTestPath3, scanPasswordExpiryPolicy, SETTER_RE, HTTP_STATUS_RECEIVER, HTTP_STATUS_ARG, CONSTANT_ARG, ENUM_ARG, LOADS_EXISTING, ENTITY_DECL_RE, PRINCIPAL_RE, STATE_NOUN, escapeRegExp2, stateReadBefore, hasSameReceiverStateReadBefore, hasCopySourceStateReadBefore, CONSTRUCTED_AS_RE, loadedTypesIn, receiverOriginOf, lineOf33, methodsOf, isJava3, isControllerPath, scanStateTransitionSites, RULE_TITLES, EXTRA_FINDING_RULE_IDS, EXTRA_AI_RULE_IDS, foldExtraRuleFindings, MAX_EVIDENCE33, SEVERITY_ORDER2, SCORE_FLOOR, asRecord3, asString, stripMountPrefix, severityFromTags, field, parseScaReport, effectiveScore, passesThreshold, distinctPairs, bySeverityThenName, evidenceOf10, countBySeverity, provenance, foldScaReport, BRUTE_FORCE_SPEC, MAX_EVIDENCE34, lineOf34, AUTH_CONTEXT_RE, LIMIT_NAME_RE, LOGIN_CONTEXT_RE, LOGIN_WINDOW_LINES, nearLoginContext, MAX_VALUE_ASSIGN_RE, MECHANISM_PATTERNS, RATE_LIMIT_PATTERNS, ISSUANCE_NAME_RE, failOpenHits, patternHits, dedupeSort6, evidenceOf11, item24, scanBruteForceProtection, keyOf, applyRouteConfigOverrides, CLIENT_CLASSES, MANUAL_DELIVERY_SOURCES, ENC, ROUTE_BASE_PREFIX, BENIGN_PARAM, CLIENT_ORACLE, deliveryFor, clientDeliveryKindFor, jsStr, normFile, camel, urlChunk, buildGoto, manualComment, renderMethod, renderSpec, dedupeRoutes, generateClientVerificationSuite, buildClientVerificationManifest, WSTG, TC16, MANUAL_CHECKLIST_ITEMS, NEEDS_MANUAL_LIMITATION, buildManualChecklistItems, handoffFileName, MAX_SURFACE_SAMPLE, surfaceContext, INFRA_CONTEXT, buildHandoffPackets, literal, renderIdorVerificationClass, OBJECT_STORE_PROBE_SINKS, GENERATED_PACKAGE, SERVER_CLASSES, BOOLEAN_BLIND_CLASSES, BOOLEAN_BLIND_PAIRS, CLASS_CANARY, COMMAND_CANARY, VALIDATION_REJECT_CLASSES2, CANON_HELPER, CLASS_ORACLE, javaStr, SSRF_BASELINE_WORKBOOK_ENTRIES, SSRF_BASELINE_WORKBOOK_HELPER, BENIGN_SEED, BUCKET_BENIGN_SEED, benignSeedFor, companionBenignSeed, renderAuthSuffix, RUNTIME_AUTH_SUFFIX, renderRuntimeAuthHelper, pascal, camel2, verificationTestClassName, identChunk, fillPath, companionCalls, ssrfPayloadPath, requestExpr, isVerifiable, SERVER_SKIP_REASON, renderBooleanBlind, renderCanary, isObjectStoreProbeSink, OBJECT_STORE_REJECT_CATCH_LINES, wrapObjectStoreAttackGuard, wrapObjectStoreEvidenceAttackGuard, resolveAuth, renderMethod2, renderEvidenceMethod, renderEvidenceHelpers, renderTestcontainersDbTierFields, renderExternalDbTierFields, javaSeedValue, renderSeedMethod, renderApiCreateSeedMethod, renderClass, toManifestEntries, generateVerificationSuite, buildVerificationManifest, decodeEntities, attr, stripCdata, childMessage, classify3, parseJUnitXml, simpleClassName, joinKey, DEFAULT_TRUST_TIER, resolveFromEnvelope, ingestVerification, PROVENANCE_DETAIL, applyProvenanceDowngrades, asRecord4, asString2, asBool, asInt, asHttpStatus, SIGNALS2, ATTESTATION_METHODS, parseProvenance, parseOracle, parseEffectBoundary, parseDefenseControl, parseBaseline, parseIdor, parseAttack, parseEvidenceEnvelope, asRecord5, asArray, asString3, asNumber, basename4, specOutcome, walkSuite, parsePlaywrightReport, joinKey2, ingestClientVerification, compareChecklistId, correlateVerification, EMPTY_CORRELATION, notTestedItem, groupDastByChecklist, dastAxisFor, groupClientByChecklist, clientAxisFor, correlateAssessment, ZAP_SCAN_RULES, DEFAULT_DAST_OPTIONS, DAST_PLAN_FILE, DAST_MANIFEST_FILE, DAST_PROBE_SCRIPT_FILE, DAST_API_SEED_SCRIPT_FILE, API_SEED_VAR_PREFIX, PROBE_VICTIM_BUCKET_REF, PROBE_CANARY_OBJECT_REF, PROBE_INJECTION_KINDS, isScannable, skipReason, yamlStr, baselinePath, normMethod2, toTarget, normalizeSpaRoutePath, buildSpaDastTargets, SEED_VALUE, SSRF_SEED_VALUE, seedValue, pathInjectionSeed, computeApiSeedVars, allParams, queryString, requestPath, renderRequest, renderPlanYaml, cmpChecklistId, generateDastPlan, buildProbeSpec, buildProbe, buildDastManifest, cmpStr3, compareScenarioRef, compareExecutionTarget, shq, PROBE_SCRIPT_PROLOGUE, PROBE_SCRIPT_EPILOGUE, renderDastProbeScript, shLiteral, API_SEED_PY, renderDastApiSeedScript, HTTP_EVIDENCE_MAX_HEADER_BYTES, HTTP_EVIDENCE_MAX_BODY_BYTES, REDACTION_WINDOW_BYTES, HTTP_REDACTED, SENSITIVE_HEADER_RE, NEVER_SENSITIVE_HEADER_RE, SCHEMED_HEADER_RE, COOKIE_HEADER_RE, COOKIE_ATTRIBUTE_RE, JSON_SECRET_MEMBER_RE, HEADER_LINE_RE, TOKEN_RUN_RE, redactJwtRun, redactJwts, URL_USERINFO_RE, redactInline, redactHeaderValue, redactHeaderBlock, redactBody, looksBinary, cutUtf8, boundedPart, sanitizeHttpMessage, httpStatusOf, RISK_BY_CODE, asString4, firstLine, httpEvidenceOf, parseZapReport, firstLineOf, usableTimestamp, latestMessageInstant, parseZapMessages, pathOf, stripTrailingSlash, pathMatches, methodMatches, injectionMatches, routeMatchesOrUnknown, alertMatchesTarget, queryHasParam, messageMatchesSurface, computeDastCoverage, detailOf, DAST_HTTP_EVIDENCE_MAX_RESOLUTIONS, carriesHttpText, evidenceOf12, ingestDast, SEMGREP_CWE_MAP, asRecord6, asString5, asNonNegativeInteger, compareText3, compareCwe, stringsFrom, cwesFromProperties, messageText, compareFinding, findingKey, ruleMetadata, metadataForResult, locationsOf, findingsFromRun, parseSemgrepSarif, compareChecklistId2, unmatchedKey, ingestSemgrep, CHECKLIST_ID3, CONTROL_ID3, MAX_EVIDENCE35, OWNER_SCOPED_FINDER, REPOSITORY_DECL, lineOf35, fieldNameFor, collectOwnerScopedRepositories, LIFERAY_LOAD_BY_ID_RE, OBJECT_PERMISSION_RE, methodBodyAt, liferayIdorHits, scanIdor, children, walk2, walkExecution, field2, simpleType, isReference, line, indexTypes, resolveType, propertyOf, annotations, annotationName, annotationValues, beanProperties, customAccessor, mappedOrigins, controlSignals, conventionSignals, trace, rootOrigins, scenarioFor, MAX_IDOR_AST_FILES, MAX_IDOR_AST_BYTES, scanIdorAuthorization, CHECKLIST_ID4, CONTROL_ID4, MAX_EVIDENCE36, CONTROLLER, MULTIPART_PARAM, JAXRS_IMPORT2, JAXRS_UPLOAD_PARAM, DENYLIST, ALLOWLIST, CONTENT_SNIFF, ACTIVE_CONTENT_EXTENSION, ACTIVE_CONTENT_DEFENCE, ALLOWLIST_WINDOW, lineOf36, collectUploadHandlers, firstMatch3, findActiveContentAllowlist, scanUploadValidation, CHECKLIST_ID5, CONTROL_ID5, MAX_EVIDENCE37, SECRET_KEY_LINE, SELF_IDENTIFYING_KEYS, JWT_CONTEXT_RE, PARENT_KEY_LINE, ancestorPath, ENV_PLACEHOLDER2, NON_PROD_PROFILE, CONFIG_FILE, lineOf37, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf38, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf39, enclosingCondition, isRequestValue, scanLiferayCsrf, DEVTOOLS_SPEC, BUILD_FILE_RE2, findDevToolsDeclarations, scanDevTools, PASSWORD_AUTOCOMPLETE_SPEC, HTML_TEMPLATE_FILE_RE, SECURE_AUTOCOMPLETE_VALUES, isTestPath4, auditPasswordAutocompleteContent, scanPasswordAutocomplete, SYSTEM_INFO_LEAK_SPEC, JAVA_FILE_RE6, isTestPath5, PRINT_STACK_TRACE_RE, SYSTEM_PRINT_EXCEPTION_RE, auditJavaErrorDisclosure, scanSystemInfoLeak, PLAYWRIGHT_VERSION_PIN, ESBUILD_VERSION_PIN, renderClientPackageJson, renderClientPlaywrightConfig, renderClientTsconfig, renderClientRunnablePackage, renderComponentBuildScript, renderVueComponentBuildScript, normFile2, posixDir, posixJoin, posixNormalize, candidateFilePaths, stripComments3, isAllowedFrameworkImport, extractImportSpecifiers, extractCompanionFiles, resolveInRepoPath, collectComponentClosure, CLIENT_CLASSES2, COMPONENT_NEEDS_BUILD_MARKER, COMPONENT_VUE_NOT_MOUNTED_MARKER, normFile3, jsStr2, camel3, fileChunk, isLikelyInjectable, analyzeMount, renderHarness, renderVueHarness, tieredAssert, renderMethod3, renderSpec2, generateComponentVerificationSuite, BINDING, HTML_COMMENT, inventoryVueTemplateSinks, HTTP_VERBS, lineOf40, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf41, isFrontend3, UPLOAD_CONTEXT_RE, FILE_INPUT_RE, ACCEPT_ATTR_RE, CLIENT_CHECK_PATTERNS, SHARED_CONST_SIGNAL_RE, HTTP_UPLOAD_SURFACE_RE, maskHtmlComments, clientChecksIn, fileInputsIn, evidence20, item25, dedupAndCap, scanUploadClientCheck, LOGOUT_CLEAR_SPEC, MAX_EVIDENCE41, lineOf42, isFrontend4, CALL_LABEL, LOGOUT_ENTRY_PATTERNS, CLEAR_STATE_RE, fileClearsState, LOGOUT_CALL_RE, receiverType, clearingLogoutClasses, callsDelegateClear, logoutEntriesIn, evidence21, item26, dedupAndCap2, scanLogoutClear, NUMERIC_BOUND_SPEC, MAX_EVIDENCE42, lineOf43, isFrontend5, isTsLike2, MONEY_NAME_RE, isMoneyName, MIN_BOUND_RE, PATTERN_RE, CONTROL_DECL_RE, moneyControlsIn, moneyInputsIn, evidence22, item27, scanNumericBound;
11671
11671
  var init_dist3 = __esm({
11672
11672
  "../parsers/dist/index.js"() {
11673
11673
  init_dist();
@@ -13077,14 +13077,14 @@ ${errors.join("\n")}`);
13077
13077
  UNAVAILABLE_KAFKA_HOST = "127.0.0.1";
13078
13078
  UNAVAILABLE_KAFKA_PORT = "1";
13079
13079
  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))
13080
+ const normalizedPath2 = propertyPath.replace(/([a-z0-9])([A-Z])/g, "$1-$2");
13081
+ if (/(?:^|[.-])(?:jwt-secret|jwtsecret|jwt-key|jwtkey)$/i.test(normalizedPath2)) return true;
13082
+ if (/(?:^|[.-])(?:base64-secret|base64secret)$/i.test(normalizedPath2) && /(?:^|[.-])(?:jwt|authentication|password-reset|security)(?:[.-]|$)/i.test(normalizedPath2))
13083
13083
  return true;
13084
- if (/(?:^|[.-])(?:reset[-.]?)?secret[-.]?(?:b64|base64)$/i.test(normalizedPath) && /(?:^|[.-])(?:jwt|authentication|security)(?:[.-]|$)/i.test(normalizedPath))
13084
+ if (/(?:^|[.-])(?:reset[-.]?)?secret[-.]?(?:b64|base64)$/i.test(normalizedPath2) && /(?:^|[.-])(?:jwt|authentication|security)(?:[.-]|$)/i.test(normalizedPath2))
13085
13085
  return true;
13086
13086
  return /(?:^|[.-])(?:password[-.]?reset|reset[-.]?password)(?:[-.](?:jwt|token|signing))*[-.](?:secret|key)$/i.test(
13087
- normalizedPath
13087
+ normalizedPath2
13088
13088
  );
13089
13089
  };
13090
13090
  isEndpointShaped = (upperVarName) => /(^|_)(URL|URI|URIS|ENDPOINT|ADDR|ADDRESS|SERVICE|SERVER)(_|$)/.test(upperVarName);
@@ -24664,6 +24664,21 @@ ${window}`;
24664
24664
  fingerprintEntries = (entries) => fingerprintEntryData(
24665
24665
  entries.map((entry) => ({ name: entry.name, data: readFileSync(entry.absolutePath) }))
24666
24666
  );
24667
+ withAdditionalPackageEntries = (plan, additional) => {
24668
+ const names = new Set(plan.entries.map((entry) => entry.name));
24669
+ for (const entry of additional) {
24670
+ if (names.has(entry.name) || !/^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*$/.test(entry.name) || entry.name.split("/").some((part) => part === ".." || part === ".")) {
24671
+ throw new Error(`Invalid or duplicate package entry: ${entry.name}`);
24672
+ }
24673
+ names.add(entry.name);
24674
+ }
24675
+ const entries = [...plan.entries, ...additional].sort((a, b) => a.name.localeCompare(b.name));
24676
+ const totalBytes = entries.reduce((total2, entry) => total2 + statSync(entry.absolutePath).size, 0);
24677
+ if (totalBytes > plan.maxArchiveBytes) {
24678
+ throw new Error("Source v\xE0 th\u01B0 vi\u1EC7n \u0111\xEDnh k\xE8m v\u01B0\u1EE3t gi\u1EDBi h\u1EA1n dung l\u01B0\u1EE3ng ZIP.");
24679
+ }
24680
+ return { ...plan, entries, totalBytes, sourceFingerprint: fingerprintEntries(entries) };
24681
+ };
24667
24682
  XML_COMMENT_RE5 = /<!--[\s\S]*?-->/g;
24668
24683
  RELATIVE_PATH_RE = /<relativePath>\s*([^<]+?)\s*<\/relativePath>/i;
24669
24684
  SYSTEM_PATH_RE2 = /<systemPath>\s*([^<]+?)\s*<\/systemPath>/gi;
@@ -25273,6 +25288,227 @@ ${window}`;
25273
25288
  ...kafka !== void 0 ? { kafka } : {}
25274
25289
  };
25275
25290
  };
25291
+ normalizedPath = (path2) => path2.replace(/\\/g, "/");
25292
+ lineOf16 = (content, index2) => content.slice(0, index2).split("\n").length;
25293
+ maskComments = (content) => content.replace(/\/\*[\s\S]*?\*\//g, (comment) => comment.replace(/[^\n]/g, " ")).replace(
25294
+ /(^|[^:])\/\/[^\n]*/g,
25295
+ (comment, prefix) => prefix + " ".repeat(comment.length - prefix.length)
25296
+ ).replace(/^\s*#[^\n]*/gm, (comment) => " ".repeat(comment.length));
25297
+ sourceAt = (files, path2) => files.find((file) => normalizedPath(file.path) === path2);
25298
+ addEvidence = (evidence23, file, index2, fact) => {
25299
+ evidence23.push({ file: file.path, line: lineOf16(file.content, index2), fact });
25300
+ };
25301
+ readBundleIdentity = (files, modulePath, evidence23) => {
25302
+ const bndPath = modulePath ? `${modulePath}/bnd.bnd` : "bnd.bnd";
25303
+ const bnd = sourceAt(files, bndPath);
25304
+ if (!bnd) return null;
25305
+ const symbolic = /^Bundle-SymbolicName:\s*([^\r\n]+)/m.exec(bnd.content);
25306
+ if (!symbolic?.[1]?.trim()) return null;
25307
+ const version2 = /^Bundle-Version:\s*([^\r\n]+)/m.exec(bnd.content);
25308
+ addEvidence(evidence23, bnd, symbolic.index, `bundle symbolic name ${symbolic[1].trim()}`);
25309
+ if (version2?.[1]?.trim())
25310
+ addEvidence(evidence23, bnd, version2.index, `bundle version ${version2[1].trim()}`);
25311
+ return {
25312
+ symbolicName: symbolic[1].trim(),
25313
+ ...version2?.[1]?.trim() ? { version: version2[1].trim() } : { version: null },
25314
+ file: bnd.path
25315
+ };
25316
+ };
25317
+ readPortalRelease = (files, modulePath, evidence23) => {
25318
+ const buildPath = modulePath ? `${modulePath}/build.gradle` : "build.gradle";
25319
+ const build2 = sourceAt(files, buildPath);
25320
+ if (!build2) return { value: null, conflicted: false };
25321
+ const content = maskComments(build2.content);
25322
+ const releases = /* @__PURE__ */ new Set();
25323
+ const patterns = [
25324
+ /group\s*:\s*["']com\.liferay\.portal["']\s*,\s*name\s*:\s*["']com\.liferay\.portal\.kernel["']\s*,\s*version\s*:\s*["'](\d+)\./g,
25325
+ /com\.liferay\.portal:com\.liferay\.portal\.kernel:(\d+)\./g
25326
+ ];
25327
+ for (const pattern of patterns) {
25328
+ for (const coordinate of content.matchAll(pattern)) {
25329
+ const release = coordinate[1] === "2" ? "7.0" : coordinate[1] === "3" ? "7.1" : null;
25330
+ if (!release || coordinate.index === void 0) continue;
25331
+ releases.add(release);
25332
+ addEvidence(
25333
+ evidence23,
25334
+ build2,
25335
+ coordinate.index,
25336
+ `portal kernel ${coordinate[1]}.x -> Liferay ${release} candidate`
25337
+ );
25338
+ }
25339
+ }
25340
+ if (releases.size !== 1) return { value: null, conflicted: releases.size > 1 };
25341
+ const [value] = releases;
25342
+ return value ? { value, conflicted: false } : { value: null, conflicted: false };
25343
+ };
25344
+ readSourceProduct = (files, evidence23) => {
25345
+ const gradleProperties = files.find((file) => normalizedPath(file.path) === "gradle.properties");
25346
+ if (!gradleProperties) return { value: null, conflicted: false };
25347
+ const products = /* @__PURE__ */ new Set();
25348
+ const content = maskComments(gradleProperties.content);
25349
+ for (const product of content.matchAll(/^\s*liferay\.workspace\.product\s*=\s*([^\s#\r\n]+)/gm)) {
25350
+ const value2 = product[1]?.trim();
25351
+ if (!value2 || product.index === void 0) continue;
25352
+ products.add(value2);
25353
+ addEvidence(evidence23, gradleProperties, product.index, `workspace product ${value2}`);
25354
+ }
25355
+ if (products.size !== 1) return { value: null, conflicted: products.size > 1 };
25356
+ const [value] = products;
25357
+ return value ? { value, conflicted: false } : { value: null, conflicted: false };
25358
+ };
25359
+ readToolchain = (files, evidence23) => {
25360
+ const wrapper = files.find(
25361
+ (file) => normalizedPath(file.path) === "gradle/wrapper/gradle-wrapper.properties"
25362
+ );
25363
+ if (!wrapper) return { toolchain: "unknown", jdk: null };
25364
+ const distribution = /distributionUrl=.*gradle-(\d+(?:\.\d+){1,2})-(?:bin|all)\.zip/.exec(
25365
+ wrapper.content
25366
+ );
25367
+ if (distribution?.[1] !== "4.6") return { toolchain: "unknown", jdk: null };
25368
+ addEvidence(evidence23, wrapper, distribution.index, "Gradle 4.6 wrapper -> JDK 8 runner");
25369
+ return { toolchain: "gradle-4.6", jdk: 8 };
25370
+ };
25371
+ databaseVendorOf = (value) => {
25372
+ const normalized = value.toLowerCase();
25373
+ if (normalized.includes("mariadb")) return "mariadb";
25374
+ if (normalized.includes("postgresql") || normalized.includes("postgres")) return "postgres";
25375
+ if (normalized.includes("oracle")) return "oracle";
25376
+ return null;
25377
+ };
25378
+ readDatabase = (files) => {
25379
+ const evidence23 = [];
25380
+ const vendors = /* @__PURE__ */ new Set();
25381
+ const configFiles = files.filter((file) => {
25382
+ const path2 = normalizedPath(file.path).toLowerCase();
25383
+ return path2.endsWith("portal-ext.properties") || /(?:^|\/)osgi\/configs\/[^/]+\.(?:config|cfg)$/i.test(path2);
25384
+ });
25385
+ for (const file of configFiles) {
25386
+ const content = maskComments(file.content);
25387
+ const facts = [
25388
+ /(?:jdbc\.default\.(?:url|driverclassname)|jdbc\.url)\s*[=:]\s*([^\r\n#]+)/gi,
25389
+ /(?:jdbc:)?(mariadb|postgresql|oracle):/gi,
25390
+ /(?:org\.mariadb\.jdbc\.driver|org\.postgresql\.driver|oracle\.jdbc)/gi
25391
+ ];
25392
+ for (const fact of facts) {
25393
+ for (const match of content.matchAll(fact)) {
25394
+ const vendor = databaseVendorOf(match[0]);
25395
+ if (!vendor || match.index === void 0) continue;
25396
+ vendors.add(vendor);
25397
+ addEvidence(evidence23, file, match.index, `portal database vendor ${vendor}`);
25398
+ }
25399
+ }
25400
+ }
25401
+ if (vendors.size === 1) {
25402
+ return { vendor: [...vendors][0], resolution: "source", evidence: evidence23 };
25403
+ }
25404
+ return { vendor: null, resolution: "unresolved", evidence: evidence23 };
25405
+ };
25406
+ isPortalConfigFile = (file) => {
25407
+ const path2 = normalizedPath(file.path).toLowerCase();
25408
+ return path2.endsWith("portal-ext.properties") || /(?:^|\/)osgi\/configs\/[^/]+\.(?:config|cfg)$/i.test(path2);
25409
+ };
25410
+ normalizeApplicationBase = (raw) => {
25411
+ const value = raw.trim().replace(/^['"]|['"]$/g, "");
25412
+ if (!value || value.includes("${")) return null;
25413
+ const prefixed = value.startsWith("/") ? value : `/${value}`;
25414
+ return prefixed === "/" ? prefixed : prefixed.replace(/\/+$/, "");
25415
+ };
25416
+ readApplicationBase = (files, modulePath) => {
25417
+ const evidence23 = [];
25418
+ const bases = /* @__PURE__ */ new Set();
25419
+ const modulePrefix = modulePath ? `${modulePath}/` : "";
25420
+ const candidates = files.filter((file) => {
25421
+ const path3 = normalizedPath(file.path);
25422
+ return isPortalConfigFile(file) || path3.endsWith(".java") && path3.startsWith(modulePrefix);
25423
+ });
25424
+ for (const file of candidates) {
25425
+ const content = maskComments(file.content);
25426
+ const facts = [
25427
+ /osgi\.jaxrs\.application\.base\s*[=:]\s*["']?([^"'\\\s,)};]+)/gi,
25428
+ /(?:JaxrsWhiteboardConstants\.)?JAX_RS_APPLICATION_BASE\s*\+\s*["']\s*=\s*([^"']+)["']/g,
25429
+ /@ApplicationPath\s*\(\s*["']([^"']+)["']\s*\)/g
25430
+ ];
25431
+ for (const fact of facts) {
25432
+ for (const match of content.matchAll(fact)) {
25433
+ const base = normalizeApplicationBase(match[1] ?? "");
25434
+ if (!base || match.index === void 0) continue;
25435
+ bases.add(base);
25436
+ addEvidence(evidence23, file, match.index, `JAX-RS application base ${base}`);
25437
+ }
25438
+ }
25439
+ }
25440
+ if (bases.size !== 1) return { path: null, resolution: "unresolved", evidence: evidence23 };
25441
+ const [path2] = bases;
25442
+ return path2 ? { path: path2, resolution: "source", evidence: evidence23 } : { path: null, resolution: "unresolved", evidence: evidence23 };
25443
+ };
25444
+ readSearch = (files) => {
25445
+ const evidence23 = [];
25446
+ for (const file of files.filter(isPortalConfigFile)) {
25447
+ for (const match of maskComments(file.content).matchAll(/\belasticsearch\b/gi)) {
25448
+ if (match.index === void 0) continue;
25449
+ addEvidence(evidence23, file, match.index, "portal search service elasticsearch");
25450
+ }
25451
+ }
25452
+ return evidence23.length > 0 ? { kind: "elasticsearch", resolution: "source", evidence: evidence23 } : { kind: null, resolution: "unresolved", evidence: evidence23 };
25453
+ };
25454
+ detectLiferayRuntimeProfile = (files, module) => {
25455
+ const selected = module.selected;
25456
+ if (!selected || selected.launchMode !== "liferay-osgi") return null;
25457
+ const evidence23 = [];
25458
+ const portalReleaseRead = readPortalRelease(files, selected.path, evidence23);
25459
+ const sourceProductRead = readSourceProduct(files, evidence23);
25460
+ const portalRelease = portalReleaseRead.value;
25461
+ const sourceProduct = sourceProductRead.value;
25462
+ const { toolchain: gradleToolchain, jdk: requiredJdkMajor } = readToolchain(files, evidence23);
25463
+ const bundle = readBundleIdentity(files, selected.path, evidence23);
25464
+ const applicationBase = readApplicationBase(files, selected.path);
25465
+ const database = readDatabase(files);
25466
+ const search = readSearch(files);
25467
+ const compatibilityKey = portalRelease === "7.1" && requiredJdkMajor === 8 ? "portal-7-1-jdk8" : null;
25468
+ const blockers = [];
25469
+ const limitations = [];
25470
+ if (portalReleaseRead.conflicted)
25471
+ blockers.push("Conflicting literal com.liferay.portal.kernel releases were found.");
25472
+ else if (!portalRelease)
25473
+ blockers.push("No supported literal com.liferay.portal.kernel major was found.");
25474
+ if (sourceProductRead.conflicted)
25475
+ blockers.push("Conflicting literal liferay.workspace.product declarations were found.");
25476
+ if (requiredJdkMajor === null)
25477
+ blockers.push("No supported Gradle wrapper/JDK compatibility tuple was found.");
25478
+ if (!bundle) blockers.push("The selected module has no literal Bundle-SymbolicName in bnd.bnd.");
25479
+ if (!applicationBase.path)
25480
+ limitations.push("No deterministic JAX-RS application base was found.");
25481
+ if (!database.vendor)
25482
+ limitations.push(
25483
+ "Portal database vendor is unresolved; the operator-owned disposable profile will be used."
25484
+ );
25485
+ if (database.vendor === "oracle")
25486
+ blockers.push("Oracle is source-detected but has no supported disposable portal DB adapter.");
25487
+ if (!search.kind)
25488
+ limitations.push(
25489
+ "Portal search-service requirement is unresolved; route adapters remain not-tested."
25490
+ );
25491
+ if (!compatibilityKey)
25492
+ blockers.push("No supported closed portal compatibility key matches the source tuple.");
25493
+ blockers.push(
25494
+ "No operator-approved, digest-pinned portal image mapping is embedded in submitted source."
25495
+ );
25496
+ return {
25497
+ state: portalRelease !== null && requiredJdkMajor !== null && bundle !== null ? "candidate" : "unresolved",
25498
+ compatibilityKey,
25499
+ portalRelease,
25500
+ sourceProduct,
25501
+ gradleToolchain,
25502
+ requiredJdkMajor,
25503
+ bundle,
25504
+ applicationBase,
25505
+ database,
25506
+ search,
25507
+ evidence: evidence23,
25508
+ blockers,
25509
+ limitations
25510
+ };
25511
+ };
25276
25512
  applyKafkaBrokerCoherence = (plan) => {
25277
25513
  if (plan.harness.kafka !== "disposable-broker-required") return plan.boot;
25278
25514
  const tier1KafkaKeys = [
@@ -25339,6 +25575,7 @@ ${window}`;
25339
25575
  files,
25340
25576
  options?.modulePath === void 0 ? void 0 : { modulePath: options.modulePath }
25341
25577
  );
25578
+ const liferayRuntime = detectLiferayRuntimeProfile(files, module);
25342
25579
  const harness = buildHarnessPlan(files, {
25343
25580
  ...options?.trustTier !== void 0 ? { trustTier: options.trustTier } : {},
25344
25581
  eagerKafkaStartupJars: options?.eagerKafkaStartupJars ?? []
@@ -25377,6 +25614,7 @@ ${window}`;
25377
25614
  schemaVersion: RUNTIME_PLAN_SCHEMA_VERSION,
25378
25615
  note: PLAN_NOTE,
25379
25616
  module,
25617
+ liferayRuntime,
25380
25618
  harness,
25381
25619
  dbSidecar,
25382
25620
  schemaProvisioning,
@@ -25985,7 +26223,7 @@ ${todos.join("\n")}` : "";
25985
26223
  cweId: "CWE-502"
25986
26224
  };
25987
26225
  MAX_EVIDENCE18 = 50;
25988
- lineOf16 = (content, index2) => {
26226
+ lineOf17 = (content, index2) => {
25989
26227
  let line2 = 1;
25990
26228
  for (let i = 0; i < index2 && i < content.length; i++) {
25991
26229
  if (content[i] === "\n") line2++;
@@ -26031,7 +26269,7 @@ ${todos.join("\n")}` : "";
26031
26269
  const { content, path: path2 } = f;
26032
26270
  for (const { re, note, confidence } of UNSAFE_PATTERNS) {
26033
26271
  for (const m of content.matchAll(re)) {
26034
- hits.push({ file: path2, line: lineOf16(content, m.index ?? 0), note, confidence });
26272
+ hits.push({ file: path2, line: lineOf17(content, m.index ?? 0), note, confidence });
26035
26273
  }
26036
26274
  }
26037
26275
  }
@@ -26047,7 +26285,7 @@ ${todos.join("\n")}` : "";
26047
26285
  firstSafeValidator = (javaFiles) => {
26048
26286
  for (const f of javaFiles) {
26049
26287
  const m = SAFE_VALIDATOR_RE.exec(f.content);
26050
- if (m) return { file: f.path, line: lineOf16(f.content, m.index) };
26288
+ if (m) return { file: f.path, line: lineOf17(f.content, m.index) };
26051
26289
  }
26052
26290
  return null;
26053
26291
  };
@@ -26126,7 +26364,7 @@ ${todos.join("\n")}` : "";
26126
26364
  cweId: "CWE-338"
26127
26365
  };
26128
26366
  MAX_EVIDENCE19 = 50;
26129
- lineOf17 = (content, index2) => {
26367
+ lineOf18 = (content, index2) => {
26130
26368
  let line2 = 1;
26131
26369
  for (let i = 0; i < index2 && i < content.length; i++) {
26132
26370
  if (content[i] === "\n") line2++;
@@ -26200,7 +26438,7 @@ ${todos.join("\n")}` : "";
26200
26438
  if (sec) {
26201
26439
  hits.push({
26202
26440
  file: path2,
26203
- line: lineOf17(content, idx),
26441
+ line: lineOf18(content, idx),
26204
26442
  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
26443
  });
26206
26444
  continue;
@@ -26208,7 +26446,7 @@ ${todos.join("\n")}` : "";
26208
26446
  if (reachesCookie(content, namesCarrying(content, stmt))) {
26209
26447
  hits.push({
26210
26448
  file: path2,
26211
- line: lineOf17(content, idx),
26449
+ line: lineOf18(content, idx),
26212
26450
  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
26451
  });
26214
26452
  }
@@ -26228,7 +26466,7 @@ ${todos.join("\n")}` : "";
26228
26466
  for (const f of javaFiles) {
26229
26467
  if (isTestSourcePath(f.path)) continue;
26230
26468
  const m = SECURE_RANDOM_RE.exec(f.content);
26231
- if (m) return { file: f.path, line: lineOf17(f.content, m.index) };
26469
+ if (m) return { file: f.path, line: lineOf18(f.content, m.index) };
26232
26470
  }
26233
26471
  return null;
26234
26472
  };
@@ -26306,7 +26544,7 @@ ${todos.join("\n")}` : "";
26306
26544
  cweId: "CWE-345"
26307
26545
  };
26308
26546
  MAX_EVIDENCE20 = 50;
26309
- lineOf18 = (content, index2) => {
26547
+ lineOf19 = (content, index2) => {
26310
26548
  let line2 = 1;
26311
26549
  for (let i = 0; i < index2 && i < content.length; i++) {
26312
26550
  if (content[i] === "\n") line2++;
@@ -26335,7 +26573,7 @@ ${todos.join("\n")}` : "";
26335
26573
  for (const m of file.content.matchAll(re)) {
26336
26574
  hits.push({
26337
26575
  file: file.path,
26338
- line: lineOf18(file.content, m.index ?? 0),
26576
+ line: lineOf19(file.content, m.index ?? 0),
26339
26577
  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
26578
  });
26341
26579
  }
@@ -26411,7 +26649,7 @@ ${todos.join("\n")}` : "";
26411
26649
  };
26412
26650
  MAX_EVIDENCE21 = 200;
26413
26651
  MAX_PER_KIND = 100;
26414
- lineOf19 = (content, index2) => {
26652
+ lineOf20 = (content, index2) => {
26415
26653
  let line2 = 1;
26416
26654
  for (let i = 0; i < index2 && i < content.length; i++) {
26417
26655
  if (content[i] === "\n") line2++;
@@ -26482,7 +26720,7 @@ ${todos.join("\n")}` : "";
26482
26720
  kind: "route-guard",
26483
26721
  name: m[1] ?? "",
26484
26722
  file: path2,
26485
- line: lineOf19(content, m.index ?? 0),
26723
+ line: lineOf20(content, m.index ?? 0),
26486
26724
  note: "functional route guard c\xF3 type annotation (CanActivateFn/CanMatchFn/\u2026)"
26487
26725
  });
26488
26726
  guardDeclaringFiles.add(path2);
@@ -26492,7 +26730,7 @@ ${todos.join("\n")}` : "";
26492
26730
  kind: "route-guard",
26493
26731
  name: m[1] ?? "",
26494
26732
  file: path2,
26495
- line: lineOf19(content, m.index ?? 0),
26733
+ line: lineOf20(content, m.index ?? 0),
26496
26734
  note: "export function theo quy \u01B0\u1EDBc tham s\u1ED1 guard (route, state)"
26497
26735
  });
26498
26736
  guardDeclaringFiles.add(path2);
@@ -26502,7 +26740,7 @@ ${todos.join("\n")}` : "";
26502
26740
  kind: "route-guard",
26503
26741
  name: m[1] ?? "",
26504
26742
  file: path2,
26505
- line: lineOf19(content, m.index ?? 0),
26743
+ line: lineOf20(content, m.index ?? 0),
26506
26744
  note: "class implements CanActivate/CanMatch/CanDeactivate/CanLoad"
26507
26745
  });
26508
26746
  guardDeclaringFiles.add(path2);
@@ -26512,7 +26750,7 @@ ${todos.join("\n")}` : "";
26512
26750
  kind: "route-guard",
26513
26751
  name: m[0].trim(),
26514
26752
  file: path2,
26515
- line: lineOf19(content, m.index ?? 0),
26753
+ line: lineOf20(content, m.index ?? 0),
26516
26754
  note: "Vue Router guard khai b\xE1o; c\u1EA7n \u0111\u1ED1i chi\u1EBFu route t\u1EDBi sink"
26517
26755
  });
26518
26756
  guardDeclaringFiles.add(path2);
@@ -26522,7 +26760,7 @@ ${todos.join("\n")}` : "";
26522
26760
  kind: "http-interceptor",
26523
26761
  name: m[1] ?? "",
26524
26762
  file: path2,
26525
- line: lineOf19(content, m.index ?? 0),
26763
+ line: lineOf20(content, m.index ?? 0),
26526
26764
  note: "HttpInterceptorFn functional interceptor"
26527
26765
  });
26528
26766
  }
@@ -26531,7 +26769,7 @@ ${todos.join("\n")}` : "";
26531
26769
  kind: "http-interceptor",
26532
26770
  name: m[0].trim(),
26533
26771
  file: path2,
26534
- line: lineOf19(content, m.index ?? 0),
26772
+ line: lineOf20(content, m.index ?? 0),
26535
26773
  note: "Axios interceptor \u0111\u0103ng k\xFD; c\u1EA7n \u0111\u1ED1i chi\u1EBFu HTTP flow t\u1EDBi sink"
26536
26774
  });
26537
26775
  }
@@ -26540,7 +26778,7 @@ ${todos.join("\n")}` : "";
26540
26778
  kind: "http-interceptor",
26541
26779
  name: `HTTP_INTERCEPTORS \u2192 ${m[1] ?? ""}`,
26542
26780
  file: path2,
26543
- line: lineOf19(content, m.index ?? 0),
26781
+ line: lineOf20(content, m.index ?? 0),
26544
26782
  note: "DI binding v\xE0o token multi-provider HTTP_INTERCEPTORS"
26545
26783
  });
26546
26784
  }
@@ -26556,7 +26794,7 @@ ${todos.join("\n")}` : "";
26556
26794
  kind: "http-interceptor",
26557
26795
  name: m[1] ?? "",
26558
26796
  file: path2,
26559
- line: lineOf19(content, m.index ?? 0),
26797
+ line: lineOf20(content, m.index ?? 0),
26560
26798
  note: "class implements HttpInterceptor + intercept() c\xF9ng file"
26561
26799
  });
26562
26800
  }
@@ -26566,7 +26804,7 @@ ${todos.join("\n")}` : "";
26566
26804
  kind: "http-interceptor",
26567
26805
  name: "HTTP_INTERCEPTORS",
26568
26806
  file: path2,
26569
- line: lineOf19(content, tokenMention),
26807
+ line: lineOf20(content, tokenMention),
26570
26808
  note: "file tham chi\u1EBFu token HTTP_INTERCEPTORS (mention \u2014ch\u01B0a th\u1EA5y binding trong c\xF9ng file)"
26571
26809
  });
26572
26810
  }
@@ -26575,7 +26813,7 @@ ${todos.join("\n")}` : "";
26575
26813
  kind: "sanitizer",
26576
26814
  name: "DomSanitizer.sanitize",
26577
26815
  file: path2,
26578
- line: lineOf19(content, m.index ?? 0),
26816
+ line: lineOf20(content, m.index ?? 0),
26579
26817
  note: "DomSanitizer.sanitize(SecurityContext\u2026, \u2026) \u2014ch\u1EE7 \u0111\u1ED9ng sanitize \u0111\xFAng ng\u1EEF c\u1EA3nh"
26580
26818
  });
26581
26819
  }
@@ -26587,7 +26825,7 @@ ${todos.join("\n")}` : "";
26587
26825
  kind: "sanitizer",
26588
26826
  name,
26589
26827
  file: path2,
26590
- line: lineOf19(content, m.index ?? 0),
26828
+ line: lineOf20(content, m.index ?? 0),
26591
26829
  note: "helper escape/sanitize t\u1EF1 \u0111\u1ECBnh ngh\u0129a V\xC0 \u0111\u01B0\u1EE3c g\u1ECDi trong c\xF9ng file"
26592
26830
  });
26593
26831
  }
@@ -26597,7 +26835,7 @@ ${todos.join("\n")}` : "";
26597
26835
  kind: "sanitizer",
26598
26836
  name: m[0].replace(/\s*\($/, ""),
26599
26837
  file: path2,
26600
- line: lineOf19(content, m.index ?? 0),
26838
+ line: lineOf20(content, m.index ?? 0),
26601
26839
  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
26840
  });
26603
26841
  }
@@ -26611,7 +26849,7 @@ ${todos.join("\n")}` : "";
26611
26849
  kind: "url-check",
26612
26850
  name: label.split(" \u2014")[0] ?? "",
26613
26851
  file: path2,
26614
- line: lineOf19(content, m.index ?? 0),
26852
+ line: lineOf20(content, m.index ?? 0),
26615
26853
  note: label
26616
26854
  });
26617
26855
  }
@@ -26660,7 +26898,7 @@ ${todos.join("\n")}` : "";
26660
26898
  cweId: "CWE-1021"
26661
26899
  };
26662
26900
  MAX_EVIDENCE222 = 50;
26663
- lineOf20 = (content, index2) => {
26901
+ lineOf21 = (content, index2) => {
26664
26902
  let line2 = 1;
26665
26903
  for (let i = 0; i < index2 && i < content.length; i++) {
26666
26904
  if (content[i] === "\n") line2++;
@@ -26678,7 +26916,7 @@ ${todos.join("\n")}` : "";
26678
26916
  for (const m of content.matchAll(META_HTTP_EQUIV_RE)) {
26679
26917
  hits.push({
26680
26918
  file: path2,
26681
- line: lineOf20(content, m.index ?? 0),
26919
+ line: lineOf21(content, m.index ?? 0),
26682
26920
  headerName: (m[1] ?? "").toLowerCase(),
26683
26921
  headerValue: m[2] ?? ""
26684
26922
  });
@@ -26688,7 +26926,7 @@ ${todos.join("\n")}` : "";
26688
26926
  for (const m of content.matchAll(ADD_HEADER_RE)) {
26689
26927
  hits.push({
26690
26928
  file: path2,
26691
- line: lineOf20(content, m.index ?? 0),
26929
+ line: lineOf21(content, m.index ?? 0),
26692
26930
  headerName: (m[1] ?? "").toLowerCase(),
26693
26931
  headerValue: (m[2] ?? "").trim()
26694
26932
  });
@@ -26816,7 +27054,7 @@ ${todos.join("\n")}` : "";
26816
27054
  cweId: "CWE-614"
26817
27055
  };
26818
27056
  MAX_EVIDENCE23 = 50;
26819
- lineOf21 = (content, index2) => {
27057
+ lineOf22 = (content, index2) => {
26820
27058
  let line2 = 1;
26821
27059
  for (let i = 0; i < index2 && i < content.length; i++) {
26822
27060
  if (content[i] === "\n") line2++;
@@ -26862,7 +27100,7 @@ ${todos.join("\n")}` : "";
26862
27100
  if (!hasSameSite) missing.push("SameSite");
26863
27101
  hits.push({
26864
27102
  file: path2,
26865
- line: lineOf21(content, m.index ?? 0),
27103
+ line: lineOf22(content, m.index ?? 0),
26866
27104
  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
27105
  confidence: cls.confidence >= 85 ? 70 : 70
26868
27106
  });
@@ -27019,7 +27257,7 @@ ${todos.join("\n")}` : "";
27019
27257
  cweId: "CWE-611"
27020
27258
  };
27021
27259
  MAX_EVIDENCE24 = 50;
27022
- lineOf22 = (content, index2) => {
27260
+ lineOf23 = (content, index2) => {
27023
27261
  let line2 = 1;
27024
27262
  for (let i = 0; i < index2 && i < content.length; i++) {
27025
27263
  if (content[i] === "\n") line2++;
@@ -27048,7 +27286,7 @@ ${todos.join("\n")}` : "";
27048
27286
  for (const m of file.content.matchAll(re)) {
27049
27287
  hits.push({
27050
27288
  file: file.path,
27051
- line: lineOf22(file.content, m.index ?? 0),
27289
+ line: lineOf23(file.content, m.index ?? 0),
27052
27290
  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
27291
  });
27054
27292
  }
@@ -27127,7 +27365,7 @@ ${todos.join("\n")}` : "";
27127
27365
  cweId: "CWE-295"
27128
27366
  };
27129
27367
  MAX_EVIDENCE25 = 50;
27130
- lineOf23 = (content, index2) => {
27368
+ lineOf24 = (content, index2) => {
27131
27369
  let line2 = 1;
27132
27370
  for (let i = 0; i < index2 && i < content.length; i++) {
27133
27371
  if (content[i] === "\n") line2++;
@@ -27191,7 +27429,7 @@ ${todos.join("\n")}` : "";
27191
27429
  if (isImportOrPackageLine(file.content, idx)) continue;
27192
27430
  hits.push({
27193
27431
  file: file.path,
27194
- line: lineOf23(file.content, idx),
27432
+ line: lineOf24(file.content, idx),
27195
27433
  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
27434
  });
27197
27435
  }
@@ -27278,6 +27516,20 @@ ${todos.join("\n")}` : "";
27278
27516
  const h = host.toLowerCase();
27279
27517
  return h === "localhost" || h === "127.0.0.1" || h === "0.0.0.0" || h === "::1";
27280
27518
  };
27519
+ UNREFERENCABLE_BASE_IMAGE = /* @__PURE__ */ new Set(["scratch"]);
27520
+ baseImageReference = (instruction) => instruction.trim().replace(/^FROM\s+/i, "").split(/\s+/).find((w) => w.length > 0 && !w.startsWith("--")) ?? "";
27521
+ FLOATING_TAG_RE = /(?:^|\.)[xX*]$|^\*$/;
27522
+ unpinnedBaseImageReason = (reference) => {
27523
+ const image = reference.trim();
27524
+ if (!image || UNREFERENCABLE_BASE_IMAGE.has(image.toLowerCase())) return null;
27525
+ if (image.includes("@")) return null;
27526
+ const lastSlash = image.lastIndexOf("/");
27527
+ const lastColon = image.lastIndexOf(":");
27528
+ const hasTag = lastColon > lastSlash;
27529
+ const tag = hasTag ? image.slice(lastColon + 1) : "";
27530
+ if (hasTag && tag && tag !== "latest" && !FLOATING_TAG_RE.test(tag)) return null;
27531
+ 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).`;
27532
+ };
27281
27533
  auditDockerfileDependencyConfusion = (content, filePath) => {
27282
27534
  const lines = content.split("\n");
27283
27535
  const hits = [];
@@ -27311,6 +27563,20 @@ ${todos.join("\n")}` : "";
27311
27563
  line: i + 1,
27312
27564
  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
27565
  });
27566
+ continue;
27567
+ }
27568
+ if (/^FROM\s+\S/i.test(trimmed)) {
27569
+ const reason = unpinnedBaseImageReason(baseImageReference(trimmed));
27570
+ if (reason) {
27571
+ hits.push({
27572
+ file: filePath,
27573
+ line: i + 1,
27574
+ reason,
27575
+ severity: "warning",
27576
+ confidence: 75,
27577
+ 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."
27578
+ });
27579
+ }
27314
27580
  }
27315
27581
  }
27316
27582
  return hits;
@@ -27472,7 +27738,7 @@ ${todos.join("\n")}` : "";
27472
27738
  cweId: "CWE-644"
27473
27739
  };
27474
27740
  MAX_EVIDENCE26 = 50;
27475
- lineOf25 = (content, index2) => {
27741
+ lineOf26 = (content, index2) => {
27476
27742
  let line2 = 1;
27477
27743
  for (let i = 0; i < index2 && i < content.length; i++) {
27478
27744
  if (content[i] === "\n") line2++;
@@ -27519,7 +27785,7 @@ ${todos.join("\n")}` : "";
27519
27785
  for (const m of content.matchAll(re)) {
27520
27786
  const dot = content.lastIndexOf(".", (m.index ?? 0) + m[0].indexOf("get"));
27521
27787
  if (!isRequestReceiver(content, receiverOf(content, dot))) continue;
27522
- hits.push({ file: path2, line: lineOf25(content, m.index ?? 0), note, confidence });
27788
+ hits.push({ file: path2, line: lineOf26(content, m.index ?? 0), note, confidence });
27523
27789
  }
27524
27790
  }
27525
27791
  }
@@ -27619,7 +27885,7 @@ ${todos.join("\n")}` : "";
27619
27885
  MINUTES: 60,
27620
27886
  HOURS: 3600
27621
27887
  };
27622
- lineOf26 = (content, index2) => content.slice(0, index2).split("\n").length;
27888
+ lineOf27 = (content, index2) => content.slice(0, index2).split("\n").length;
27623
27889
  isOtpLifetimeName = (name) => hasOtpToken(name) && LIFETIME_TOKEN_RE.test(name);
27624
27890
  configRank = (path2) => /application-prod/i.test(path2) ? 0 : 1;
27625
27891
  inconclusive = (note, limitation) => (
@@ -27706,7 +27972,7 @@ ${todos.join("\n")}` : "";
27706
27972
  cweId: "CWE-521"
27707
27973
  };
27708
27974
  MAX_EVIDENCE27 = 50;
27709
- lineOf27 = (content, index2) => {
27975
+ lineOf28 = (content, index2) => {
27710
27976
  let line2 = 1;
27711
27977
  for (let i = 0; i < index2 && i < content.length; i++) {
27712
27978
  if (content[i] === "\n") line2++;
@@ -27791,7 +28057,7 @@ ${todos.join("\n")}` : "";
27791
28057
  const field3 = m[1];
27792
28058
  if (!field3 || !isPasswordName(field3)) continue;
27793
28059
  const block = precedingBlock3(file.content, m.index ?? 0);
27794
- const line2 = lineOf27(file.content, m.index ?? 0);
28060
+ const line2 = lineOf28(file.content, m.index ?? 0);
27795
28061
  const sized = SIZE_MIN_RE.exec(block);
27796
28062
  if (sized?.[1]) {
27797
28063
  sites.push({
@@ -27823,7 +28089,7 @@ ${todos.join("\n")}` : "";
27823
28089
  if (!name || !min || !isPasswordName(name)) continue;
27824
28090
  sites.push({
27825
28091
  file: file.path,
27826
- line: lineOf27(file.content, m.index ?? 0),
28092
+ line: lineOf28(file.content, m.index ?? 0),
27827
28093
  field: name,
27828
28094
  min: Number(min),
27829
28095
  how: `ki\u1EC3m tra t\u01B0\u1EDDng minh \`${name}.length()\` v\u1EDBi ng\u01B0\u1EE1ng ${min}`
@@ -27846,7 +28112,7 @@ ${todos.join("\n")}` : "";
27846
28112
  const hits = [];
27847
28113
  for (const { re, label } of POLICY_SURFACE_PATTERNS) {
27848
28114
  const index2 = firstUsageIndex(file.content, re);
27849
- if (index2 !== null) hits.push({ file: file.path, line: lineOf27(file.content, index2), label });
28115
+ if (index2 !== null) hits.push({ file: file.path, line: lineOf28(file.content, index2), label });
27850
28116
  }
27851
28117
  return hits;
27852
28118
  };
@@ -27971,7 +28237,7 @@ ${todos.join("\n")}` : "";
27971
28237
  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
28238
  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
28239
  STRING_LITERAL_RE2 = /"((?:[^"\\\n]|\\.)*)"/g;
27974
- lineOf28 = (content, index2) => {
28240
+ lineOf29 = (content, index2) => {
27975
28241
  let line2 = 1;
27976
28242
  for (let i = 0; i < index2 && i < content.length; i++) {
27977
28243
  if (content[i] === "\n") line2++;
@@ -27984,7 +28250,7 @@ ${todos.join("\n")}` : "";
27984
28250
  for (const m of content.matchAll(STRING_LITERAL_RE2)) {
27985
28251
  const text2 = m[1];
27986
28252
  if (!text2) continue;
27987
- const line2 = lineOf28(content, m.index ?? 0);
28253
+ const line2 = lineOf29(content, m.index ?? 0);
27988
28254
  if (COMBINED_RE.test(text2)) {
27989
28255
  combined.push({
27990
28256
  file: file.path,
@@ -28110,7 +28376,7 @@ ${todos.join("\n")}` : "";
28110
28376
  label: "g\u1ECDi logout endpoint c\u1EE7a identity provider (thu h\u1ED3i refresh token)"
28111
28377
  }
28112
28378
  ];
28113
- lineOf29 = (content, index2) => {
28379
+ lineOf30 = (content, index2) => {
28114
28380
  let line2 = 1;
28115
28381
  for (let i = 0; i < index2 && i < content.length; i++) {
28116
28382
  if (content[i] === "\n") line2++;
@@ -28126,7 +28392,7 @@ ${todos.join("\n")}` : "";
28126
28392
  if (m) {
28127
28393
  hits.push({
28128
28394
  file: file.path,
28129
- line: lineOf29(content, m.index),
28395
+ line: lineOf30(content, m.index),
28130
28396
  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
28397
  });
28132
28398
  }
@@ -28197,7 +28463,7 @@ ${todos.join("\n")}` : "";
28197
28463
  dedupeSort3(
28198
28464
  endpointFiles.map((f) => ({
28199
28465
  file: f.path,
28200
- line: lineOf29(f.content, f.content.search(LOGOUT_ENDPOINT_RE)),
28466
+ line: lineOf30(f.content, f.content.search(LOGOUT_ENDPOINT_RE)),
28201
28467
  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
28468
  }))
28203
28469
  ).map((h) => evidenceOf7(h, 70)),
@@ -28235,7 +28501,7 @@ ${todos.join("\n")}` : "";
28235
28501
  label: "rate limiter c\u1EE7a th\u01B0 vi\u1EC7n (resilience4j / Bucket4j)"
28236
28502
  }
28237
28503
  ];
28238
- lineOf30 = (content, index2) => {
28504
+ lineOf31 = (content, index2) => {
28239
28505
  let line2 = 1;
28240
28506
  for (let i = 0; i < index2 && i < content.length; i++) {
28241
28507
  if (content[i] === "\n") line2++;
@@ -28246,7 +28512,7 @@ ${todos.join("\n")}` : "";
28246
28512
  re.lastIndex = 0;
28247
28513
  const m = re.exec(content);
28248
28514
  re.lastIndex = 0;
28249
- return m ? { file: file.path, line: lineOf30(content, m.index), note } : void 0;
28515
+ return m ? { file: file.path, line: lineOf31(content, m.index), note } : void 0;
28250
28516
  };
28251
28517
  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
28518
  evidenceOf8 = (hit, confidence) => ({
@@ -28340,7 +28606,7 @@ ${todos.join("\n")}` : "";
28340
28606
  { re: URI_TAIL_RE, sinkId: "spring/web-client-ssrf", label: "l\u1EDDi g\u1ECDi .uri() \u0111\u1EB7t \u0111\xEDch request" },
28341
28607
  { re: OPEN_CONNECTION_RE, sinkId: "spring/url-ssrf", label: "m\u1EDF k\u1EBFt n\u1ED1i ra URL" }
28342
28608
  ];
28343
- lineOf31 = (content, index2) => {
28609
+ lineOf32 = (content, index2) => {
28344
28610
  let line2 = 1;
28345
28611
  for (let i = 0; i < index2 && i < content.length; i++) {
28346
28612
  if (content[i] === "\n") line2++;
@@ -28358,7 +28624,7 @@ ${todos.join("\n")}` : "";
28358
28624
  for (let m = re.exec(f.content); m !== null; m = re.exec(f.content)) {
28359
28625
  evidence23.push({
28360
28626
  file: f.path,
28361
- line: lineOf31(f.content, m.index),
28627
+ line: lineOf32(f.content, m.index),
28362
28628
  sinkId,
28363
28629
  sourceIds: [],
28364
28630
  confidence: 60,
@@ -29134,7 +29400,7 @@ ${todos.join("\n")}` : "";
29134
29400
  if (constructedType === void 0) return "existing";
29135
29401
  return loadedTypes.has(constructedType) ? "entity-copy" : "fresh-object";
29136
29402
  };
29137
- lineOf32 = (content, index2) => {
29403
+ lineOf33 = (content, index2) => {
29138
29404
  let line2 = 1;
29139
29405
  for (let i = 0; i < index2 && i < content.length; i += 1) if (content[i] === "\n") line2 += 1;
29140
29406
  return line2;
@@ -29158,8 +29424,8 @@ ${todos.join("\n")}` : "";
29158
29424
  if (name !== void 0 && open2 >= 0) {
29159
29425
  out.push({
29160
29426
  name,
29161
- line: lineOf32(masked, m.index + 1),
29162
- endLine: lineOf32(masked, Math.min(i, masked.length - 1)),
29427
+ line: lineOf33(masked, m.index + 1),
29428
+ endLine: lineOf33(masked, Math.min(i, masked.length - 1)),
29163
29429
  body: masked.slice(open2, Math.min(i + 1, masked.length)),
29164
29430
  bodyStart: open2
29165
29431
  });
@@ -29195,7 +29461,7 @@ ${masked}`;
29195
29461
  const receiver = c[1] ?? "";
29196
29462
  const setter = c[2] ?? "";
29197
29463
  const arg = (c[3] ?? "").trim();
29198
- const line2 = lineOf32(masked, method.bodyStart + c.index);
29464
+ const line2 = lineOf33(masked, method.bodyStart + c.index);
29199
29465
  if (HTTP_STATUS_RECEIVER.test(receiver) || HTTP_STATUS_ARG.test(arg)) {
29200
29466
  if (httpExcluded.length < 3) {
29201
29467
  httpExcluded.push(`${receiver}.${setter}(${arg.slice(0, 28)})`);
@@ -29274,7 +29540,21 @@ ${masked}`;
29274
29540
  "spring-boot/security-sensitive-data-risk": "Sensitive Data Exposure (AI)",
29275
29541
  "spring-boot/io-boundary-risk": "R\u1EE7i ro bi\xEAn filesystem/HTTP/queue (AI)",
29276
29542
  "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)"
29543
+ "angular/cross-feature-route-permission-drift": "Guard route l\u1EC7ch nhau gi\u1EEFa module (AI)",
29544
+ // Fortify coverage sweep (2026-10-01): these eight map one-to-one onto Fortify categories in
29545
+ // the Ecabinet CTO report. Seven already existed and matched, but sat outside both fold tables
29546
+ // — `cs assess` ran 18 ids and none of them were here, so those categories reported nothing at
29547
+ // all. The eighth (`dockerfile-dependency-confusion`) existed but could not match its category
29548
+ // until the base-image pinning check was added. None declares `checklistIds`, which is exactly
29549
+ // the contract this list exists for.
29550
+ "general/dockerfile-no-root-user": "Docker ch\u1EA1y v\u1EDBi quy\u1EC1n root (thi\u1EBFu ch\u1EC9 th\u1ECB USER)",
29551
+ "general/dockerfile-dependency-confusion": "Dependency Confusion / base image kh\xF4ng pin version",
29552
+ "general/no-insecure-external-link": "Li\xEAn k\u1EBFt ngo\xE0i b\u1ED9 qua HTTP cleartext",
29553
+ "general/no-insecure-password-submission": "Submit m\u1EADt kh\u1EA9u qua HTTP cleartext ho\u1EB7c GET",
29554
+ "general/no-empty-encryption-key": "Kh\xF3a m\xE3 h\xF3a r\u1ED7ng",
29555
+ "general/sensitive-output-exposure": "D\u1EEF li\u1EC7u nh\u1EA1y c\u1EA3m l\u1ECDt v\xE0o log/console",
29556
+ "general/sensitive-exception-response": "D\u1EEF li\u1EC7u nh\u1EA1y c\u1EA3m l\u1ECDt v\xE0o exception/response",
29557
+ "spring-boot/no-devtools-in-production": "Spring Boot DevTools b\u1EADt trong build/prod"
29278
29558
  };
29279
29559
  EXTRA_FINDING_RULE_IDS = Object.freeze([
29280
29560
  "general/no-sensitive-string-materialization",
@@ -29284,7 +29564,15 @@ ${masked}`;
29284
29564
  "general/no-reflective-access-override",
29285
29565
  "general/java-weak-randomness",
29286
29566
  "spring-boot/no-sql-string-concat",
29287
- "spring-boot/no-trust-boundary-violation"
29567
+ "spring-boot/no-trust-boundary-violation",
29568
+ "general/dockerfile-no-root-user",
29569
+ "general/dockerfile-dependency-confusion",
29570
+ "general/no-insecure-external-link",
29571
+ "general/no-insecure-password-submission",
29572
+ "general/no-empty-encryption-key",
29573
+ "general/sensitive-output-exposure",
29574
+ "general/sensitive-exception-response",
29575
+ "spring-boot/no-devtools-in-production"
29288
29576
  ]);
29289
29577
  EXTRA_AI_RULE_IDS = Object.freeze([
29290
29578
  "spring-boot/security-redirect-risk",
@@ -29522,7 +29810,7 @@ ${masked}`;
29522
29810
  cweId: "CWE-307"
29523
29811
  };
29524
29812
  MAX_EVIDENCE34 = 50;
29525
- lineOf33 = (content, index2) => {
29813
+ lineOf34 = (content, index2) => {
29526
29814
  let line2 = 1;
29527
29815
  for (let i = 0; i < index2 && i < content.length; i++) {
29528
29816
  if (content[i] === "\n") line2++;
@@ -29571,7 +29859,7 @@ ${masked}`;
29571
29859
  if (!name || !LIMIT_NAME_RE.test(name)) continue;
29572
29860
  hits.push({
29573
29861
  file: file.path,
29574
- line: lineOf33(content, m.index ?? 0),
29862
+ line: lineOf34(content, m.index ?? 0),
29575
29863
  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
29864
  });
29577
29865
  }
@@ -29584,7 +29872,7 @@ ${masked}`;
29584
29872
  for (const { re, label, needsLoginContext } of patterns) {
29585
29873
  re.lastIndex = 0;
29586
29874
  for (const m of content.matchAll(re)) {
29587
- const line2 = lineOf33(content, m.index ?? 0);
29875
+ const line2 = lineOf34(content, m.index ?? 0);
29588
29876
  if (needsLoginContext && !nearLoginContext(lines, line2)) continue;
29589
29877
  if (ISSUANCE_NAME_RE.test(m[0])) continue;
29590
29878
  hits.push({
@@ -33456,8 +33744,11 @@ ${bodyText}` : headerText;
33456
33744
  return noHash.length > 0 ? noHash : "/";
33457
33745
  };
33458
33746
  stripTrailingSlash = (p) => p.length > 1 ? p.replace(/\/+$/, "") : p;
33459
- pathMatches = (alertPath, targetPath) => {
33460
- const a = stripTrailingSlash(alertPath).split("/");
33747
+ pathMatches = (alertPath, targetPath, routePrefix) => {
33748
+ if (routePrefix && alertPath !== routePrefix && !alertPath.startsWith(`${routePrefix}/`))
33749
+ return false;
33750
+ const mapped = routePrefix ? alertPath.slice(routePrefix.length) || "/" : alertPath;
33751
+ const a = stripTrailingSlash(mapped).split("/");
33461
33752
  const t = stripTrailingSlash(targetPath).split("/");
33462
33753
  if (a.length !== t.length) return false;
33463
33754
  for (let i = 0; i < t.length; i++) {
@@ -33468,26 +33759,29 @@ ${bodyText}` : headerText;
33468
33759
  return true;
33469
33760
  };
33470
33761
  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);
33762
+ injectionMatches = (alert, target, routePrefix) => {
33763
+ if (target.injectionKind === "path")
33764
+ return pathMatches(pathOf(alert.url), target.path, routePrefix);
33765
+ return alert.param !== void 0 && alert.param.length > 0 && alert.param === target.injectionName && routeMatchesOrUnknown(alert, target, routePrefix);
33474
33766
  };
33475
- routeMatchesOrUnknown = (alert, target) => {
33767
+ routeMatchesOrUnknown = (alert, target, routePrefix) => {
33476
33768
  if (alert.url.trim().length === 0) return true;
33477
- return pathMatches(pathOf(alert.url), target.path);
33769
+ return pathMatches(pathOf(alert.url), target.path, routePrefix);
33478
33770
  };
33479
- alertMatchesTarget = (alert, target) => alert.scanRuleId === target.scanRuleId && methodMatches(alert.method, target.httpMethod) && injectionMatches(alert, target);
33771
+ alertMatchesTarget = (alert, target, routePrefix) => alert.scanRuleId === target.scanRuleId && methodMatches(alert.method, target.httpMethod) && injectionMatches(alert, target, routePrefix);
33480
33772
  queryHasParam = (query, name) => query.split("&").some((kv) => (kv.split("=", 1)[0] ?? "") === name);
33481
- messageMatchesSurface = (msg, target) => {
33773
+ messageMatchesSurface = (msg, target, routePrefix) => {
33482
33774
  if (!methodMatches(msg.method, target.httpMethod)) return false;
33483
- if (!pathMatches(msg.path, target.path)) return false;
33775
+ if (!pathMatches(msg.path, target.path, routePrefix)) return false;
33484
33776
  if (target.injectionKind === "query") return queryHasParam(msg.query, target.injectionName);
33485
33777
  return true;
33486
33778
  };
33487
- computeDastCoverage = (targets, messages, scanCompleted) => {
33779
+ computeDastCoverage = (targets, messages, scanCompleted, routePrefix) => {
33488
33780
  const coverage = /* @__PURE__ */ new Map();
33489
33781
  for (const target of targets) {
33490
- const requestCount = messages.filter((m) => messageMatchesSurface(m, target)).length;
33782
+ const requestCount = messages.filter(
33783
+ (m) => messageMatchesSurface(m, target, routePrefix)
33784
+ ).length;
33491
33785
  coverage.set(target.executionTargetId, classifyDastCoverage({ requestCount, scanCompleted }));
33492
33786
  }
33493
33787
  return coverage;
@@ -33515,7 +33809,7 @@ ${bodyText}` : headerText;
33515
33809
  for (let i = 0; i < parsed.alerts.length; i++) {
33516
33810
  const alert = parsed.alerts[i];
33517
33811
  if (!alert) continue;
33518
- const hits = manifest.targets.filter((t) => alertMatchesTarget(alert, t));
33812
+ const hits = manifest.targets.filter((t) => alertMatchesTarget(alert, t, options.routePrefix));
33519
33813
  if (hits.length === 0) continue;
33520
33814
  matchedAlerts.add(i);
33521
33815
  const unambiguous = hits.length === 1;
@@ -33576,7 +33870,12 @@ ${bodyText}` : headerText;
33576
33870
  ...parsed.reportInstant !== void 0 ? { reportInstant: parsed.reportInstant } : {},
33577
33871
  ...latestMessageAt !== void 0 ? { latestMessageAt } : {}
33578
33872
  }) : void 0;
33579
- const coverageMap = options.messages !== void 0 && coverageProv?.withdraw !== true ? computeDastCoverage(manifest.targets, options.messages, options.scanCompleted ?? true) : void 0;
33873
+ const coverageMap = options.messages !== void 0 && coverageProv?.withdraw !== true ? computeDastCoverage(
33874
+ manifest.targets,
33875
+ options.messages,
33876
+ options.scanCompleted ?? true,
33877
+ options.routePrefix
33878
+ ) : void 0;
33580
33879
  const withCoverage = (r) => {
33581
33880
  const c = coverageMap?.get(r.executionTargetId);
33582
33881
  return c !== void 0 ? { ...r, coverage: c } : r;
@@ -33883,7 +34182,7 @@ ${bodyText}` : headerText;
33883
34182
  MAX_EVIDENCE35 = 50;
33884
34183
  OWNER_SCOPED_FINDER = /\bfindByIdAnd[A-Za-z]*(?:UserId|CreatedBy|CreatedUser|OwnerId|Owner|Username)[A-Za-z]*\s*\(/;
33885
34184
  REPOSITORY_DECL = /\binterface\s+([A-Za-z_$][\w$]*Repository)\b/;
33886
- lineOf34 = (content, index2) => content.slice(0, index2).split("\n").length;
34185
+ lineOf35 = (content, index2) => content.slice(0, index2).split("\n").length;
33887
34186
  fieldNameFor = (typeName) => typeName.charAt(0).toLowerCase() + typeName.slice(1);
33888
34187
  collectOwnerScopedRepositories = (files) => {
33889
34188
  const found = /* @__PURE__ */ new Set();
@@ -33929,7 +34228,7 @@ ${bodyText}` : headerText;
33929
34228
  if (!pathParams.has(m[3] ?? "")) continue;
33930
34229
  hits.push({
33931
34230
  file: file.path,
33932
- line: lineOf34(file.content, body.start + (m.index ?? 0)),
34231
+ line: lineOf35(file.content, body.start + (m.index ?? 0)),
33933
34232
  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
34233
  });
33935
34234
  break;
@@ -33951,7 +34250,7 @@ ${bodyText}` : headerText;
33951
34250
  while (index2 !== -1) {
33952
34251
  hits.push({
33953
34252
  file: file.path,
33954
- line: lineOf34(file.content, index2),
34253
+ line: lineOf35(file.content, index2),
33955
34254
  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
34255
  });
33957
34256
  index2 = file.content.indexOf(needle, index2 + 1);
@@ -34648,7 +34947,7 @@ ${bodyText}` : headerText;
34648
34947
  ACTIVE_CONTENT_EXTENSION = /["'](svg|html?|xhtml|xml)["']/gi;
34649
34948
  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
34949
  ALLOWLIST_WINDOW = 2e3;
34651
- lineOf35 = (content, index2) => content.slice(0, index2).split("\n").length;
34950
+ lineOf36 = (content, index2) => content.slice(0, index2).split("\n").length;
34652
34951
  collectUploadHandlers = (javaFiles) => {
34653
34952
  const out = [];
34654
34953
  for (const file of javaFiles) {
@@ -34661,7 +34960,7 @@ ${bodyText}` : headerText;
34661
34960
  let m = re.exec(file.content);
34662
34961
  while (m !== null) {
34663
34962
  if (!isImportOrPackageLine(file.content, m.index)) {
34664
- const line2 = lineOf35(file.content, m.index);
34963
+ const line2 = lineOf36(file.content, m.index);
34665
34964
  const last = out.at(-1);
34666
34965
  if (!(last && last.file === file.path && last.line === line2)) {
34667
34966
  out.push({ file: file.path, line: line2 });
@@ -34675,7 +34974,7 @@ ${bodyText}` : headerText;
34675
34974
  firstMatch3 = (javaFiles, re) => {
34676
34975
  for (const file of javaFiles) {
34677
34976
  const m = re.exec(file.content);
34678
- if (m !== null) return { file: file.path, line: lineOf35(file.content, m.index) };
34977
+ if (m !== null) return { file: file.path, line: lineOf36(file.content, m.index) };
34679
34978
  }
34680
34979
  return null;
34681
34980
  };
@@ -34695,7 +34994,7 @@ ${bodyText}` : headerText;
34695
34994
  const first = hits[0];
34696
34995
  return {
34697
34996
  file: file.path,
34698
- line: lineOf35(file.content, allowlist.index + (first?.index ?? 0)),
34997
+ line: lineOf36(file.content, allowlist.index + (first?.index ?? 0)),
34699
34998
  extensions
34700
34999
  };
34701
35000
  }
@@ -34828,7 +35127,7 @@ ${bodyText}` : headerText;
34828
35127
  ENV_PLACEHOLDER2 = /^\$\{[^}]*\}$/;
34829
35128
  NON_PROD_PROFILE = /application-(dev|test|local|it)\b/i;
34830
35129
  CONFIG_FILE = /(?:^|\/)(?:application|bootstrap)[^/]*\.(ya?ml|properties)$/i;
34831
- lineOf36 = (content, index2) => content.slice(0, index2).split("\n").length;
35130
+ lineOf37 = (content, index2) => content.slice(0, index2).split("\n").length;
34832
35131
  byFileLine2 = (a, b) => a.file === b.file ? a.line - b.line : a.file < b.file ? -1 : 1;
34833
35132
  collectSecrets = (files) => {
34834
35133
  const literals = [];
@@ -34847,7 +35146,7 @@ ${bodyText}` : headerText;
34847
35146
  const sep32 = inner.indexOf(":");
34848
35147
  externalized.push({
34849
35148
  file: file.path,
34850
- line: lineOf36(file.content, m.index),
35149
+ line: lineOf37(file.content, m.index),
34851
35150
  // Name only. A `${VAR:s3cr3t}` default is a secret, and this report is
34852
35151
  // shared far more widely than the config file it reads.
34853
35152
  variable: (sep32 >= 0 ? inner.slice(0, sep32) : inner).trim(),
@@ -34856,7 +35155,7 @@ ${bodyText}` : headerText;
34856
35155
  } else {
34857
35156
  literals.push({
34858
35157
  file: file.path,
34859
- line: lineOf36(file.content, m.index),
35158
+ line: lineOf37(file.content, m.index),
34860
35159
  fingerprint: sha256(raw).slice(0, 12),
34861
35160
  prod: !NON_PROD_PROFILE.test(file.path)
34862
35161
  });
@@ -34979,7 +35278,7 @@ ${bodyText}` : headerText;
34979
35278
  ["3", { release: "7.1", supportEndedBy: "2025-12-31" }]
34980
35279
  ]);
34981
35280
  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;
35281
+ lineOf38 = (content, index2) => content.slice(0, index2).split("\n").length;
34983
35282
  springBootHits = (file, text2, today) => {
34984
35283
  const hits = [];
34985
35284
  const patterns = [
@@ -34996,7 +35295,7 @@ ${bodyText}` : headerText;
34996
35295
  hits.push({
34997
35296
  platform: `Spring Boot ${cycle}`,
34998
35297
  file: file.path,
34999
- line: lineOf37(text2, m.index ?? 0),
35298
+ line: lineOf38(text2, m.index ?? 0),
35000
35299
  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
35300
  });
35002
35301
  }
@@ -35012,7 +35311,7 @@ ${bodyText}` : headerText;
35012
35311
  hits.push({
35013
35312
  platform: `Liferay ${mapped.release}`,
35014
35313
  file: file.path,
35015
- line: lineOf37(text2, m.index ?? 0),
35314
+ line: lineOf38(text2, m.index ?? 0),
35016
35315
  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
35316
  });
35018
35317
  }
@@ -35065,7 +35364,7 @@ ${bodyText}` : headerText;
35065
35364
  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
35365
  CHECK_CSRF_RE = /\bAuthTokenUtil\s*\.\s*checkCSRFToken\s*\(/g;
35067
35366
  DISABLED_PROP_RE = /^\s*auth\.token\.check\.enabled\s*=\s*false\s*$/im;
35068
- lineOf38 = (content, index2) => content.slice(0, index2).split("\n").length;
35367
+ lineOf39 = (content, index2) => content.slice(0, index2).split("\n").length;
35069
35368
  enclosingCondition = (content, index2) => {
35070
35369
  const from = Math.max(0, index2 - 800);
35071
35370
  const ifs = [...content.slice(from, index2).matchAll(/\bif\s*\(/g)];
@@ -35110,7 +35409,7 @@ ${bodyText}` : headerText;
35110
35409
  absent.push(
35111
35410
  ev(
35112
35411
  f.path,
35113
- lineOf38(f.content, m?.index ?? 0),
35412
+ lineOf39(f.content, m?.index ?? 0),
35114
35413
  "`auth.token.check.enabled=false` \u2014 ki\u1EC3m tra token CSRF c\u1EE7a portal b\u1ECB T\u1EAET to\xE0n c\u1EE5c.",
35115
35414
  80
35116
35415
  )
@@ -35135,7 +35434,7 @@ ${bodyText}` : headerText;
35135
35434
  absent.push(
35136
35435
  ev(
35137
35436
  path2,
35138
- lineOf38(content, at),
35437
+ lineOf39(content, at),
35139
35438
  `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
35439
  70
35141
35440
  )
@@ -35144,7 +35443,7 @@ ${bodyText}` : headerText;
35144
35443
  present.push(
35145
35444
  ev(
35146
35445
  path2,
35147
- lineOf38(content, at),
35446
+ lineOf39(content, at),
35148
35447
  "So token request v\u1EDBi `AuthTokenUtil.getToken(...)` (token CSRF c\u1EE7a portal).",
35149
35448
  65
35150
35449
  )
@@ -35155,7 +35454,7 @@ ${bodyText}` : headerText;
35155
35454
  present.push(
35156
35455
  ev(
35157
35456
  path2,
35158
- lineOf38(content, m.index ?? 0),
35457
+ lineOf39(content, m.index ?? 0),
35159
35458
  "`AuthTokenUtil.checkCSRFToken(...)` \u2014 ki\u1EC3m tra token CSRF c\u1EE7a portal.",
35160
35459
  70
35161
35460
  )
@@ -35199,7 +35498,7 @@ ${bodyText}` : headerText;
35199
35498
  const m = AUTH_TOKEN_REF_RE.exec(f.content);
35200
35499
  return ev(
35201
35500
  f.path,
35202
- lineOf38(f.content, m?.index ?? 0),
35501
+ lineOf39(f.content, m?.index ?? 0),
35203
35502
  "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
35503
  50
35205
35504
  );
@@ -36317,7 +36616,7 @@ ${script}
36317
36616
  );
36318
36617
  };
36319
36618
  HTTP_VERBS = /* @__PURE__ */ new Set(["get", "post", "put", "patch", "delete"]);
36320
- lineOf39 = (content, offset) => {
36619
+ lineOf40 = (content, offset) => {
36321
36620
  let line2 = 1;
36322
36621
  for (let i = 0; i < offset && i < content.length; i++) {
36323
36622
  if (content[i] === "\n") line2++;
@@ -36462,7 +36761,7 @@ ${script}
36462
36761
  pathTemplate: parsed.pathTemplate,
36463
36762
  urlKind: parsed.urlKind,
36464
36763
  file: path2,
36465
- line: lineOf39(content, matchIndex)
36764
+ line: lineOf40(content, matchIndex)
36466
36765
  });
36467
36766
  }
36468
36767
  }
@@ -36495,7 +36794,7 @@ ${script}
36495
36794
  pathTemplate: parsed.pathTemplate,
36496
36795
  urlKind: parsed.urlKind,
36497
36796
  file: path2,
36498
- line: lineOf39(content, openParenIndex)
36797
+ line: lineOf40(content, openParenIndex)
36499
36798
  });
36500
36799
  }
36501
36800
  }
@@ -36593,7 +36892,7 @@ ${script}
36593
36892
  cweId: "CWE-434"
36594
36893
  };
36595
36894
  MAX_EVIDENCE40 = 50;
36596
- lineOf40 = (content, index2) => {
36895
+ lineOf41 = (content, index2) => {
36597
36896
  let line2 = 1;
36598
36897
  for (let i = 0; i < index2 && i < content.length; i++) {
36599
36898
  if (content[i] === "\n") line2++;
@@ -36634,7 +36933,7 @@ ${script}
36634
36933
  for (const m of f.content.matchAll(re)) {
36635
36934
  hits.push({
36636
36935
  file: f.path,
36637
- line: lineOf40(f.content, m.index ?? 0),
36936
+ line: lineOf41(f.content, m.index ?? 0),
36638
36937
  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
36938
  });
36640
36939
  }
@@ -36648,7 +36947,7 @@ ${script}
36648
36947
  if (f.language !== "html") return { acceptHits, uiHits };
36649
36948
  for (const m of f.content.matchAll(FILE_INPUT_RE)) {
36650
36949
  const tag = m[0] ?? "";
36651
- const line2 = lineOf40(f.content, m.index ?? 0);
36950
+ const line2 = lineOf41(f.content, m.index ?? 0);
36652
36951
  uiHits.push({
36653
36952
  file: f.path,
36654
36953
  line: line2,
@@ -36768,7 +37067,7 @@ ${script}
36768
37067
  cweId: "CWE-613"
36769
37068
  };
36770
37069
  MAX_EVIDENCE41 = 50;
36771
- lineOf41 = (content, index2) => {
37070
+ lineOf42 = (content, index2) => {
36772
37071
  let line2 = 1;
36773
37072
  for (let i = 0; i < index2 && i < content.length; i++) {
36774
37073
  if (content[i] === "\n") line2++;
@@ -36817,7 +37116,7 @@ ${script}
36817
37116
  for (const m of file.content.matchAll(re)) {
36818
37117
  hits.push({
36819
37118
  file: file.path,
36820
- line: lineOf41(file.content, m.index ?? 0),
37119
+ line: lineOf42(file.content, m.index ?? 0),
36821
37120
  label,
36822
37121
  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
37122
  });
@@ -36869,7 +37168,7 @@ ${script}
36869
37168
  const m = CLEAR_STATE_RE.exec(f.content);
36870
37169
  CLEAR_STATE_RE.lastIndex = 0;
36871
37170
  if (m !== null) {
36872
- clearSites.push({ file: f.path, line: lineOf41(f.content, m.index) });
37171
+ clearSites.push({ file: f.path, line: lineOf42(f.content, m.index) });
36873
37172
  }
36874
37173
  continue;
36875
37174
  }
@@ -36937,7 +37236,7 @@ ${script}
36937
37236
  cweId: "CWE-20"
36938
37237
  };
36939
37238
  MAX_EVIDENCE42 = 50;
36940
- lineOf42 = (content, index2) => {
37239
+ lineOf43 = (content, index2) => {
36941
37240
  let line2 = 1;
36942
37241
  for (let i = 0; i < index2 && i < content.length; i++) {
36943
37242
  if (content[i] === "\n") line2++;
@@ -36968,7 +37267,7 @@ ${script}
36968
37267
  anyMoneyField = true;
36969
37268
  hits.push({
36970
37269
  file: f.path,
36971
- line: lineOf42(content, m.index ?? 0),
37270
+ line: lineOf43(content, m.index ?? 0),
36972
37271
  name,
36973
37272
  hasPattern
36974
37273
  });
@@ -36983,7 +37282,7 @@ ${script}
36983
37282
  )) {
36984
37283
  const name = (m[1] ?? "").replace(/^\[+|\]+$/g, "");
36985
37284
  if (!isMoneyName(name)) continue;
36986
- hits.push({ file: f.path, line: lineOf42(f.content, m.index ?? 0), name, hasPattern: false });
37285
+ hits.push({ file: f.path, line: lineOf43(f.content, m.index ?? 0), name, hasPattern: false });
36987
37286
  }
36988
37287
  return { hits };
36989
37288
  };
@@ -37016,7 +37315,7 @@ ${script}
37016
37315
  const bound = /(?:^|\s)min\s*=\s*["'][^"']+["']/.exec(f.content) ?? MIN_BOUND_RE.exec(f.content);
37017
37316
  MIN_BOUND_RE.lastIndex = 0;
37018
37317
  if (bound !== null) {
37019
- configured.push({ file: f.path, line: lineOf42(f.content, bound.index) });
37318
+ configured.push({ file: f.path, line: lineOf43(f.content, bound.index) });
37020
37319
  continue;
37021
37320
  }
37022
37321
  const html = moneyInputsIn(f);
@@ -37030,7 +37329,7 @@ ${script}
37030
37329
  if (ts.bounded) {
37031
37330
  anyMoneyField = anyMoneyField || ts.anyMoneyField;
37032
37331
  const m = MIN_BOUND_RE.exec(f.content);
37033
- if (m !== null) configured.push({ file: f.path, line: lineOf42(f.content, m.index) });
37332
+ if (m !== null) configured.push({ file: f.path, line: lineOf43(f.content, m.index) });
37034
37333
  MIN_BOUND_RE.lastIndex = 0;
37035
37334
  continue;
37036
37335
  }
@@ -37316,7 +37615,7 @@ Language guard retry: the previous response contained an empty or English explan
37316
37615
  return { status: "error", vulnerable: false, reason: `L\u1ED7i th\u1EF1c thi LLM: ${message}` };
37317
37616
  }
37318
37617
  }
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;
37618
+ 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
37619
  var init_dist4 = __esm({
37321
37620
  "../ai-engine/dist/index.js"() {
37322
37621
  init_dist();
@@ -39517,7 +39816,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39517
39816
  while (MUTATION_CALL.exec(body) !== null) count++;
39518
39817
  return count;
39519
39818
  };
39520
- lineOf24 = (content, offset) => {
39819
+ lineOf25 = (content, offset) => {
39521
39820
  let line2 = 1;
39522
39821
  for (let i = 0; i < offset && i < content.length; i++) {
39523
39822
  if (content[i] === "\n") line2++;
@@ -39554,7 +39853,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39554
39853
  seen.add(key);
39555
39854
  facts.push({
39556
39855
  file: file.path,
39557
- line: lineOf24(content, offset),
39856
+ line: lineOf25(content, offset),
39558
39857
  scope: "method",
39559
39858
  target: method.name,
39560
39859
  mechanism: `${api}.${operation}`,
@@ -39614,7 +39913,7 @@ ${VIETNAMESE_OUTPUT_INSTRUCTION}`
39614
39913
  }
39615
39914
  facts.push({
39616
39915
  file: file.path,
39617
- line: lineOf24(content, m.index),
39916
+ line: lineOf25(content, m.index),
39618
39917
  scope,
39619
39918
  target,
39620
39919
  mechanism: "@Transactional",
@@ -47146,12 +47445,12 @@ function getCrawler(globInput, inputOptions = {}) {
47146
47445
  return patterns.length > 0 ? buildCrawler(options, patterns) : [];
47147
47446
  }
47148
47447
  async function glob(globInput, options) {
47149
- const [crawler, relative13] = getCrawler(globInput, options);
47150
- return crawler ? formatPaths(await crawler.withPromise(), relative13) : [];
47448
+ const [crawler, relative14] = getCrawler(globInput, options);
47449
+ return crawler ? formatPaths(await crawler.withPromise(), relative14) : [];
47151
47450
  }
47152
47451
  function globSync(globInput, options) {
47153
- const [crawler, relative13] = getCrawler(globInput, options);
47154
- return crawler ? formatPaths(crawler.sync(), relative13) : [];
47452
+ const [crawler, relative14] = getCrawler(globInput, options);
47453
+ return crawler ? formatPaths(crawler.sync(), relative14) : [];
47155
47454
  }
47156
47455
  var import_picomatch, isReadonlyArray, BACKSLASHES, isWin, ONLY_PARENT_DIRECTORIES, WIN32_ROOT_DIR, isRoot, splitPatternOptions, POSIX_UNESCAPED_GLOB_SYMBOLS, WIN32_UNESCAPED_GLOB_SYMBOLS, escapePosixPath, escapeWin32Path, escapePath, PARENT_DIRECTORY, ESCAPING_BACKSLASHES, defaultOptions;
47157
47456
  var init_dist7 = __esm({
@@ -47254,6 +47553,17 @@ var init_dist8 = __esm({
47254
47553
  relatedChecklistIds: external_exports.array(checklistIdSchema).min(1).optional(),
47255
47554
  /** [ADR-0098] External scanners this rule reproduces (see `Rule.sourceTools`). */
47256
47555
  sourceTools: external_exports.array(external_exports.enum(SOURCE_TOOLS)).min(1).optional(),
47556
+ /**
47557
+ * OWASP MASVS v2 control ids the rule's findings RELATE to (mobile static
47558
+ * rules only). Presence scopes WHERE findings surface in a report — it does
47559
+ * NOT mean the control is verified; each finding keeps its own verdict.
47560
+ */
47561
+ masvsControlIds: external_exports.array(
47562
+ external_exports.string().regex(
47563
+ /^MASVS-(STORAGE|CRYPTO|AUTH|NETWORK|PLATFORM|CODE|RESILIENCE|PRIVACY)-\d+$/,
47564
+ "Expected an OWASP MASVS v2 control id, e.g. MASVS-NETWORK-1"
47565
+ )
47566
+ ).min(1).max(10).optional(),
47257
47567
  requires: parserLayerSchema.optional(),
47258
47568
  authors: external_exports.array(external_exports.string()).optional(),
47259
47569
  docsUrl: external_exports.string().url().optional(),
@@ -49588,7 +49898,7 @@ var init_sql = __esm({
49588
49898
  return new SQL([new StringChunk(str)]);
49589
49899
  }
49590
49900
  sql2.raw = raw;
49591
- function join23(chunks, separator) {
49901
+ function join24(chunks, separator) {
49592
49902
  const result = [];
49593
49903
  for (const [i, chunk] of chunks.entries()) {
49594
49904
  if (i > 0 && separator !== void 0) {
@@ -49598,7 +49908,7 @@ var init_sql = __esm({
49598
49908
  }
49599
49909
  return new SQL(result);
49600
49910
  }
49601
- sql2.join = join23;
49911
+ sql2.join = join24;
49602
49912
  function identifier(value) {
49603
49913
  return new Name(value);
49604
49914
  }
@@ -52145,7 +52455,7 @@ var init_select2 = __esm({
52145
52455
  return (table, on) => {
52146
52456
  const baseTableName = this.tableName;
52147
52457
  const tableName = getTableLikeName(table);
52148
- if (typeof tableName === "string" && this.config.joins?.some((join23) => join23.alias === tableName)) {
52458
+ if (typeof tableName === "string" && this.config.joins?.some((join24) => join24.alias === tableName)) {
52149
52459
  throw new Error(`Alias "${tableName}" is already used in this query`);
52150
52460
  }
52151
52461
  if (!this.isPartialSelect) {
@@ -52973,7 +53283,7 @@ var init_update = __esm({
52973
53283
  createJoin(joinType) {
52974
53284
  return (table, on) => {
52975
53285
  const tableName = getTableLikeName(table);
52976
- if (typeof tableName === "string" && this.config.joins.some((join23) => join23.alias === tableName)) {
53286
+ if (typeof tableName === "string" && this.config.joins.some((join24) => join24.alias === tableName)) {
52977
53287
  throw new Error(`Alias "${tableName}" is already used in this query`);
52978
53288
  }
52979
53289
  if (typeof on === "function") {
@@ -59580,11 +59890,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
59580
59890
  var getCliBuildMetadata = (version2) => ({
59581
59891
  version: version2,
59582
59892
  gitSha: definedBuildValue(
59583
- "fe0fb811178d" ,
59893
+ "44cd30d984d9" ,
59584
59894
  "unknown"
59585
59895
  ),
59586
59896
  buildTimestamp: definedBuildValue(
59587
- "2026-09-29T06:59:44.887Z" ,
59897
+ "2026-10-02T07:20:53.150Z" ,
59588
59898
  "unknown"
59589
59899
  ),
59590
59900
  configSchemaRange: definedBuildValue(
@@ -60923,7 +61233,7 @@ var SecretCommandError = class extends Error {
60923
61233
  code;
60924
61234
  };
60925
61235
  var nativeRunner = {
60926
- run: (command, args, input4) => new Promise((resolve62, reject) => {
61236
+ run: (command, args, input4) => new Promise((resolve63, reject) => {
60927
61237
  const child = spawn(command, args, { stdio: ["pipe", "pipe", "pipe"] });
60928
61238
  let stdout = "";
60929
61239
  let stderr = "";
@@ -60937,7 +61247,7 @@ var nativeRunner = {
60937
61247
  });
60938
61248
  child.on("error", (error) => reject(error));
60939
61249
  child.on("close", (code2) => {
60940
- if (code2 === 0) resolve62(stdout);
61250
+ if (code2 === 0) resolve63(stdout);
60941
61251
  else reject(new SecretCommandError(command, code2, stderr.trim() || `${command} failed`));
60942
61252
  });
60943
61253
  if (input4 !== void 0) child.stdin.end(input4);
@@ -62480,6 +62790,13 @@ var relativePosixPathSchema = (field3) => external_exports.string().min(1).max(5
62480
62790
  const segments = value.split("/");
62481
62791
  return segments.every((segment) => segment.length > 0 && segment !== "." && segment !== "..");
62482
62792
  }, `${field3} must be a relative POSIX path inside the source snapshot (no .., no absolute path, no backslash).`);
62793
+ var moduleRootSchema = external_exports.string().max(512).refine((value) => {
62794
+ if (value === "") return true;
62795
+ if (value.includes("\\")) return false;
62796
+ if (value.startsWith("/")) return false;
62797
+ const segments = value.split("/");
62798
+ return segments.every((segment) => segment.length > 0 && segment !== "." && segment !== "..");
62799
+ }, `moduleRoot must be a relative POSIX path inside the source snapshot, or '' for the snapshot root (no ., no .., no absolute path, no backslash).`);
62483
62800
  var mobilePentestManifestSchema = external_exports.object({
62484
62801
  version: external_exports.literal(1),
62485
62802
  appType: mobileAppTypeSchema,
@@ -62487,14 +62804,14 @@ var mobilePentestManifestSchema = external_exports.object({
62487
62804
  (platforms) => new Set(platforms).size === platforms.length,
62488
62805
  "Duplicate platforms are not allowed."
62489
62806
  ),
62490
- moduleRoot: relativePosixPathSchema("moduleRoot"),
62807
+ moduleRoot: moduleRootSchema,
62491
62808
  source: external_exports.object({
62492
62809
  archiveName: external_exports.string().min(1).max(512),
62493
62810
  sha256: sha256Schema2,
62494
62811
  commitSha: external_exports.string().regex(/^[0-9a-f]{7,40}$/i, "Expected a git commit SHA").optional(),
62495
62812
  dirty: external_exports.boolean().optional()
62496
62813
  }).strict(),
62497
- releases: external_exports.array(mobileReleaseInputSchema).min(1).superRefine((releases, ctx) => {
62814
+ releases: external_exports.array(mobileReleaseInputSchema).superRefine((releases, ctx) => {
62498
62815
  const seen = /* @__PURE__ */ new Set();
62499
62816
  releases.forEach((release, index2) => {
62500
62817
  const identity = `${release.platform}:${release.flavor ?? ""}:${release.scheme ?? ""}:${release.sha256}`;
@@ -62612,6 +62929,20 @@ var mobileFindingLocationSchema = external_exports.object({
62612
62929
  var mobileFindingSchema = external_exports.object({
62613
62930
  ruleId: external_exports.string().min(1).max(256),
62614
62931
  checklistId: external_exports.string().min(1).max(128).optional(),
62932
+ /**
62933
+ * Rule category the finding came from. The pentest lane only carries
62934
+ * security scopes (mobile-security, mobile-privacy) — a report consumer
62935
+ * can see the scope per item without re-resolving rule metadata, and a
62936
+ * future quality lane keeps its own categories.
62937
+ */
62938
+ category: external_exports.enum(["mobile-security", "mobile-privacy"]).optional(),
62939
+ /**
62940
+ * OWASP MASVS v2 control ids the finding relates to — report grouping
62941
+ * only; a finding mapped to a control is not a verified control.
62942
+ */
62943
+ masvsControlIds: external_exports.array(
62944
+ external_exports.string().regex(/^MASVS-(STORAGE|CRYPTO|AUTH|NETWORK|PLATFORM|CODE|RESILIENCE|PRIVACY)-\d+$/)
62945
+ ).max(10).optional(),
62615
62946
  severity: external_exports.enum(["info", "warning", "error", "blocker"]),
62616
62947
  platform: mobilePlatformSchema.optional(),
62617
62948
  /** Release input id (artifact findings); undefined for source-only findings. */
@@ -64134,7 +64465,19 @@ var runAssess = async (options, deps = {}) => {
64134
64465
  let runtimeBuildFiles = [];
64135
64466
  try {
64136
64467
  const buildPaths = await glob(
64137
- ["**/pom.xml", "**/build.gradle", "**/build.gradle.kts", "**/Dockerfile"],
64468
+ [
64469
+ "**/pom.xml",
64470
+ "**/build.gradle",
64471
+ "**/build.gradle.kts",
64472
+ "**/bnd.bnd",
64473
+ "**/portal-ext.properties",
64474
+ "**/osgi/configs/**/*.config",
64475
+ "**/osgi/configs/**/*.cfg",
64476
+ "**/service.xml",
64477
+ "gradle/wrapper/gradle-wrapper.properties",
64478
+ "gradle.properties",
64479
+ "**/Dockerfile"
64480
+ ],
64138
64481
  {
64139
64482
  cwd: target,
64140
64483
  ignore: [...config.exclude, "**/.git/**", "**/node_modules/**", "**/build/**"],
@@ -64172,7 +64515,10 @@ var runAssess = async (options, deps = {}) => {
64172
64515
  runtimeManifestFiles,
64173
64516
  report2.items.flatMap((item16) => item16.scenarios)
64174
64517
  );
64175
- const plan = buildRuntimeBringUpPlan(files, endpoints, {
64518
+ const runtimePlanFiles = [
64519
+ ...new Map([...files, ...runtimeBuildFiles].map((file) => [file.path, file])).values()
64520
+ ];
64521
+ const plan = buildRuntimeBringUpPlan(runtimePlanFiles, endpoints, {
64176
64522
  dependencyConfigFiles,
64177
64523
  dependencyJarKeys: runtimeDependencyJarKeys,
64178
64524
  eagerKafkaStartupJars: runtimeEagerKafkaStartupJars,
@@ -64747,7 +65093,7 @@ var openBrowser = async (url) => {
64747
65093
  else await execFile3("xdg-open", [url]);
64748
65094
  };
64749
65095
  var credentialStore = () => createPlatformCredentialStore();
64750
- var sleep = (milliseconds) => new Promise((resolve62) => setTimeout(resolve62, milliseconds));
65096
+ var sleep = (milliseconds) => new Promise((resolve63) => setTimeout(resolve63, milliseconds));
64751
65097
  var defaults = () => ({
64752
65098
  store: credentialStore(),
64753
65099
  start: startDeviceAuthorization,
@@ -69258,9 +69604,9 @@ var NodeFsHandler = class {
69258
69604
  if (this.fsw.closed) {
69259
69605
  return;
69260
69606
  }
69261
- const dirname35 = sp2.dirname(file);
69607
+ const dirname36 = sp2.dirname(file);
69262
69608
  const basename14 = sp2.basename(file);
69263
- const parent = this.fsw._getWatchedDir(dirname35);
69609
+ const parent = this.fsw._getWatchedDir(dirname36);
69264
69610
  let prevStats = stats;
69265
69611
  if (parent.has(basename14))
69266
69612
  return;
@@ -69287,7 +69633,7 @@ var NodeFsHandler = class {
69287
69633
  prevStats = newStats2;
69288
69634
  }
69289
69635
  } catch (error) {
69290
- this.fsw._remove(dirname35, basename14);
69636
+ this.fsw._remove(dirname36, basename14);
69291
69637
  }
69292
69638
  } else if (parent.has(basename14)) {
69293
69639
  const at = newStats.atimeMs;
@@ -69384,7 +69730,7 @@ var NodeFsHandler = class {
69384
69730
  this._addToNodeFs(path, initialAdd, wh, depth + 1);
69385
69731
  }
69386
69732
  }).on(EV.ERROR, this._boundHandleError);
69387
- return new Promise((resolve62, reject) => {
69733
+ return new Promise((resolve63, reject) => {
69388
69734
  if (!stream)
69389
69735
  return reject();
69390
69736
  stream.once(STR_END, () => {
@@ -69393,7 +69739,7 @@ var NodeFsHandler = class {
69393
69739
  return;
69394
69740
  }
69395
69741
  const wasThrottled = throttler ? throttler.clear() : false;
69396
- resolve62(void 0);
69742
+ resolve63(void 0);
69397
69743
  previous.getChildren().filter((item16) => {
69398
69744
  return item16 !== directory && !current.has(item16);
69399
69745
  }).forEach((item16) => {
@@ -69537,11 +69883,11 @@ function createPattern(matcher) {
69537
69883
  if (matcher.path === string)
69538
69884
  return true;
69539
69885
  if (matcher.recursive) {
69540
- const relative13 = sp2.relative(matcher.path, string);
69541
- if (!relative13) {
69886
+ const relative14 = sp2.relative(matcher.path, string);
69887
+ if (!relative14) {
69542
69888
  return false;
69543
69889
  }
69544
- return !relative13.startsWith("..") && !sp2.isAbsolute(relative13);
69890
+ return !relative14.startsWith("..") && !sp2.isAbsolute(relative14);
69545
69891
  }
69546
69892
  return false;
69547
69893
  };
@@ -71725,11 +72071,11 @@ var runWatchLoop = async (target, baseOptions) => {
71725
72071
  ignored,
71726
72072
  onBatch: (changed) => runIteration(changed)
71727
72073
  });
71728
- await new Promise((resolve62) => {
72074
+ await new Promise((resolve63) => {
71729
72075
  const onSigint = () => {
71730
72076
  console.log();
71731
72077
  console.log(dim("Stopping watcher\u2026"));
71732
- resolve62();
72078
+ resolve63();
71733
72079
  };
71734
72080
  process.once("SIGINT", onSigint);
71735
72081
  });
@@ -71986,6 +72332,10 @@ Ch\u1EA1y \`cs assess --json <path>\` \u0111\u1EC3 sinh tr\u01B0\u1EDBc.`
71986
72332
  }
71987
72333
  const hasTests = options.tests !== void 0 && options.tests.length > 0;
71988
72334
  const hasResults = options.results !== void 0 && options.results.length > 0;
72335
+ if (options.liferayE1 && (hasTests || hasResults)) {
72336
+ console.error(red("--liferay-e1 kh\xF4ng \u0111\u01B0\u1EE3c d\xF9ng c\xF9ng --tests/--results."));
72337
+ return EXIT.USAGE;
72338
+ }
71989
72339
  if (hasTests !== hasResults) {
71990
72340
  console.error(
71991
72341
  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 +72427,65 @@ Ch\u1EA1y \`cs assess --emit-tests <dir>\` \u0111\u1EC3 sinh suite tr\u01B0\u1ED
72077
72427
  }
72078
72428
  runtime = { manifest, report: ingestVerification(manifest, cases, ingestOptions) };
72079
72429
  }
72430
+ if (options.liferayE1) {
72431
+ try {
72432
+ const source = JSON.parse(await readFile(resolve(options.liferayE1), "utf8"));
72433
+ const parsed = external_exports.object({
72434
+ schemaVersion: external_exports.literal(1),
72435
+ adapter: external_exports.literal("liferay-http"),
72436
+ results: external_exports.array(
72437
+ external_exports.object({
72438
+ scenarioId: external_exports.string().min(1),
72439
+ checklistId: external_exports.string().min(1),
72440
+ vulnerabilityClass: external_exports.string().min(1),
72441
+ title: external_exports.string(),
72442
+ sinkFile: external_exports.string(),
72443
+ sinkLine: external_exports.number().int().positive(),
72444
+ verdict: external_exports.enum(["exploited", "not-tested"]),
72445
+ reason: external_exports.string(),
72446
+ baselineStatusCode: external_exports.number().int().optional(),
72447
+ attackStatusCode: external_exports.number().int().optional()
72448
+ })
72449
+ ).max(2e3)
72450
+ }).parse(source);
72451
+ const resolutions = parsed.results.map((result) => ({
72452
+ checklistId: result.checklistId,
72453
+ vulnerabilityClass: result.vulnerabilityClass,
72454
+ title: result.title,
72455
+ className: "LiferayExternalHttp",
72456
+ methodName: result.scenarioId,
72457
+ sinkFile: result.sinkFile,
72458
+ sinkLine: result.sinkLine,
72459
+ outcome: "external-http",
72460
+ verdict: result.verdict,
72461
+ detail: result.reason,
72462
+ ...result.baselineStatusCode !== void 0 ? { baselineStatusCode: result.baselineStatusCode } : {},
72463
+ ...result.attackStatusCode !== void 0 ? { attackStatusCode: result.attackStatusCode } : {}
72464
+ }));
72465
+ runtime = {
72466
+ manifest: {
72467
+ schemaVersion: 1,
72468
+ generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
72469
+ targetPath: "",
72470
+ tests: [],
72471
+ skipped: []
72472
+ },
72473
+ report: {
72474
+ resolutions,
72475
+ unmatchedResults: [],
72476
+ summary: {
72477
+ exploited: resolutions.filter((result) => result.verdict === "exploited").length,
72478
+ blocked: 0,
72479
+ notTested: resolutions.filter((result) => result.verdict === "not-tested").length,
72480
+ suspected: 0
72481
+ }
72482
+ }
72483
+ };
72484
+ } catch (error) {
72485
+ console.error(red(`Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c Liferay E1 HTTP report: ${error.message}`));
72486
+ return EXIT.USAGE;
72487
+ }
72488
+ }
72080
72489
  const hasDastPlan = options.dastPlan !== void 0 && options.dastPlan.length > 0;
72081
72490
  const hasDastReport = options.dastReport !== void 0 && options.dastReport.length > 0;
72082
72491
  if (hasDastPlan !== hasDastReport) {
@@ -72213,7 +72622,12 @@ Ch\u1EA1y \`cs assess --emit-dast <dir>\` \u0111\u1EC3 sinh k\u1EBF ho\u1EA1ch t
72213
72622
  try {
72214
72623
  const rawDastReport = await readFile(dastReportPathResolved, "utf8");
72215
72624
  const parsed = parseZapReport(rawDastReport);
72625
+ if (options.routePrefix && !/^\/o\/[A-Za-z0-9._~/-]+$/.test(options.routePrefix)) {
72626
+ console.error(red("--route-prefix ph\u1EA3i l\xE0 \u0111\u01B0\u1EDDng d\u1EABn JAX-RS /o/... h\u1EE3p l\u1EC7."));
72627
+ return EXIT.USAGE;
72628
+ }
72216
72629
  dast = ingestDast(dastManifest, parsed, {
72630
+ ...options.routePrefix ? { routePrefix: options.routePrefix } : {},
72217
72631
  policy: dastPolicy,
72218
72632
  coveragePolicy: dastCoveragePolicy,
72219
72633
  actualReportHash: dastReportHash(rawDastReport),
@@ -72470,7 +72884,7 @@ Ch\u1EA1y \`cs assess --emit-runtime-plan <dir>\` \u0111\u1EC3 sinh \`${RUNTIME_
72470
72884
  );
72471
72885
  console.log("");
72472
72886
  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)")}`
72887
+ ` ${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
72888
  );
72475
72889
  if (summary.dast !== void 0) {
72476
72890
  const blockedChip = summary.dast.blocked > 0 ? ` \xB7 ${green(`${summary.dast.blocked} ch\u1EB7n ${dim("(m\xE3 v\u1EABn l\u1ED7i)")}`)}` : "";
@@ -72677,7 +73091,12 @@ Ch\u1EA1y \`cs assess --emit-dast <dir>\` \u0111\u1EC3 sinh k\u1EBF ho\u1EA1ch t
72677
73091
  );
72678
73092
  return EXIT.USAGE;
72679
73093
  }
73094
+ if (options.routePrefix && !/^\/o\/[A-Za-z0-9._~/-]+$/.test(options.routePrefix)) {
73095
+ console.error(red("--route-prefix ph\u1EA3i l\xE0 \u0111\u01B0\u1EDDng d\u1EABn JAX-RS /o/... h\u1EE3p l\u1EC7."));
73096
+ return EXIT.USAGE;
73097
+ }
72680
73098
  const ingestOptions = {
73099
+ ...options.routePrefix ? { routePrefix: options.routePrefix } : {},
72681
73100
  policy,
72682
73101
  coveragePolicy,
72683
73102
  actualReportHash: dastReportHash(rawReport),
@@ -73038,10 +73457,10 @@ var runtimeSinceRef = (runtime) => {
73038
73457
  if (parseGitLabMrUrl(runtime.source.repositoryUrl).ok) return null;
73039
73458
  return runtime.baseRef;
73040
73459
  };
73041
- var fetchBaseRef = async (cloneDir, baseRef, execFile7, env) => {
73460
+ var fetchBaseRef = async (cloneDir, baseRef, execFile8, env) => {
73042
73461
  const branch = safeRemoteBranch(baseRef);
73043
73462
  if (!branch) return;
73044
- await execFile7(
73463
+ await execFile8(
73045
73464
  "git",
73046
73465
  ["fetch", "--depth", "50", "origin", `${branch}:refs/remotes/origin/${branch}`],
73047
73466
  {
@@ -73050,7 +73469,7 @@ var fetchBaseRef = async (cloneDir, baseRef, execFile7, env) => {
73050
73469
  }
73051
73470
  );
73052
73471
  };
73053
- var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
73472
+ var prepareSource = async (runtimeDir, runtime, execFile8, env) => {
73054
73473
  const source = runtime.source;
73055
73474
  if (source.mode === "local") return env.CODE_SENTINEL_SOURCE_WORKDIR?.trim() || "/work";
73056
73475
  if (parseGitLabMrUrl(source.repositoryUrl).ok) return runtimeDir;
@@ -73059,14 +73478,14 @@ var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
73059
73478
  const githubPull = parseGitHubPullUrl(source.repositoryUrl);
73060
73479
  if (githubPull.ok) {
73061
73480
  const baseBranch = safeRemoteBranch(runtime.baseRef) ?? safeRemoteBranch(source.ref) ?? "main";
73062
- await execFile7(
73481
+ await execFile8(
73063
73482
  "git",
73064
73483
  ["clone", "--no-checkout", "--depth", "1", githubPull.value.cloneUrl, cloneDir],
73065
73484
  {
73066
73485
  env: cloneEnv
73067
73486
  }
73068
73487
  );
73069
- await execFile7(
73488
+ await execFile8(
73070
73489
  "git",
73071
73490
  ["fetch", "--depth", "50", "origin", `${baseBranch}:refs/remotes/origin/${baseBranch}`],
73072
73491
  {
@@ -73074,7 +73493,7 @@ var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
73074
73493
  env: cloneEnv
73075
73494
  }
73076
73495
  );
73077
- await execFile7(
73496
+ await execFile8(
73078
73497
  "git",
73079
73498
  [
73080
73499
  "fetch",
@@ -73088,7 +73507,7 @@ var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
73088
73507
  env: cloneEnv
73089
73508
  }
73090
73509
  );
73091
- await execFile7(
73510
+ await execFile8(
73092
73511
  "git",
73093
73512
  ["checkout", "--detach", `refs/remotes/code-sentinel/pr-${githubPull.value.pullNumber}`],
73094
73513
  {
@@ -73099,9 +73518,9 @@ var prepareSource = async (runtimeDir, runtime, execFile7, env) => {
73099
73518
  return cloneDir;
73100
73519
  }
73101
73520
  const args = ["clone", "--depth", "1", "--branch", source.ref, source.repositoryUrl, cloneDir];
73102
- await execFile7("git", args, { env: cloneEnv });
73521
+ await execFile8("git", args, { env: cloneEnv });
73103
73522
  if (shouldFetchBaseRef(runtime)) {
73104
- await fetchBaseRef(cloneDir, runtime.baseRef, execFile7, cloneEnv);
73523
+ await fetchBaseRef(cloneDir, runtime.baseRef, execFile8, cloneEnv);
73105
73524
  }
73106
73525
  return cloneDir;
73107
73526
  };
@@ -73123,7 +73542,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
73123
73542
  let activePhase = "runtime-config";
73124
73543
  try {
73125
73544
  const fetchFn = deps.fetchFn ?? fetch;
73126
- const execFile7 = deps.execFile ?? execFileAsync3;
73545
+ const execFile8 = deps.execFile ?? execFileAsync3;
73127
73546
  const confirmFn = deps.confirmFn ?? ((opts) => confirm(opts));
73128
73547
  const interactive = isInteractive(env, deps.isTty);
73129
73548
  const baseDir = env.CODE_SENTINEL_RUNTIME_DIR ?? await mkdtemp(
@@ -73187,7 +73606,7 @@ var runDockerRuntimePrepare = async (options, deps = {}) => {
73187
73606
  } else {
73188
73607
  phaseLog.start(activePhase, `mode=${runtime.source.mode}`);
73189
73608
  }
73190
- const workdir = await prepareSource(baseDir, runtime, execFile7, env);
73609
+ const workdir = await prepareSource(baseDir, runtime, execFile8, env);
73191
73610
  await access(workdir, constants.R_OK);
73192
73611
  if (!mergeRequestSource) {
73193
73612
  phaseLog.success(activePhase, `workdir=${workdir}`);
@@ -75081,6 +75500,7 @@ var buildTextParsedFile = (file) => ({
75081
75500
  layer: "text",
75082
75501
  ast: file.content
75083
75502
  });
75503
+ var PENTEST_RULE_CATEGORIES = /* @__PURE__ */ new Set(["mobile-security", "mobile-privacy"]);
75084
75504
  var loadMobileRules = async () => {
75085
75505
  const result = await loadTsRules({
75086
75506
  dirs: [join(builtinRulesDir, "static", "flutter")],
@@ -75088,7 +75508,9 @@ var loadMobileRules = async () => {
75088
75508
  });
75089
75509
  if (result.ok) {
75090
75510
  return {
75091
- rules: result.value.rules,
75511
+ rules: result.value.rules.filter(
75512
+ (rule) => typeof rule.category === "string" && PENTEST_RULE_CATEGORIES.has(rule.category)
75513
+ ),
75092
75514
  errors: result.value.errors.map((e) => ({ file: e.file, error: e.error }))
75093
75515
  };
75094
75516
  }
@@ -75110,6 +75532,10 @@ var toMobileFinding = (raw, rule, sourceFile, runId) => {
75110
75532
  const snippet = raw.snippet?.trim() || sourceLine || `${rule.id} at line ${line2}`;
75111
75533
  return {
75112
75534
  ruleId: finding.ruleId,
75535
+ // Only the pentest categories reach this lane (loadMobileRules filters) —
75536
+ // a defensive omit beats an invalid enum value on the server schema.
75537
+ ...PENTEST_RULE_CATEGORIES.has(String(rule.category)) ? { category: rule.category } : {},
75538
+ ...rule.masvsControlIds?.length ? { masvsControlIds: [...rule.masvsControlIds] } : {},
75113
75539
  severity: finding.severity,
75114
75540
  title: finding.message,
75115
75541
  message: finding.message,
@@ -75296,6 +75722,18 @@ var resolveEnv = (options) => {
75296
75722
  }
75297
75723
  return { dashboardUrl, token, requestId, projectId };
75298
75724
  };
75725
+ var assessmentSeverityOf = (severity) => {
75726
+ switch (severity) {
75727
+ case "error":
75728
+ return "high";
75729
+ case "warning":
75730
+ return "medium";
75731
+ case "info":
75732
+ return "info";
75733
+ default:
75734
+ return "low";
75735
+ }
75736
+ };
75299
75737
  var postCallback = async (url, token, body, fetchImpl, options = {}) => {
75300
75738
  let res;
75301
75739
  try {
@@ -75427,6 +75865,29 @@ var fetchInputZip = async (ctx, inputId, fetchImpl) => {
75427
75865
  }
75428
75866
  return { path, sha256: sha2563 };
75429
75867
  };
75868
+ var findingDisplayPath = (location) => {
75869
+ const candidate = location.file || location.artifactPath || "";
75870
+ return candidate.length > 0 ? candidate : "(artifact)";
75871
+ };
75872
+ var describeCompletionRejection = (body) => {
75873
+ const trimmed = body.trim();
75874
+ if (!trimmed) return "<empty response body>";
75875
+ try {
75876
+ const parsed = JSON.parse(trimmed);
75877
+ const issues = parsed && typeof parsed === "object" && "issues" in parsed ? parsed.issues : void 0;
75878
+ if (Array.isArray(issues) && issues.length > 0) {
75879
+ const summary = issues.slice(0, 10).map((issue) => {
75880
+ const record = issue ?? {};
75881
+ const path = Array.isArray(record.path) ? record.path.join(".") : "<no path>";
75882
+ return `${path}: ${String(record.code ?? "?")} ${String(record.message ?? "")}`.trim();
75883
+ }).join("; ");
75884
+ const extra = issues.length > 10 ? ` (+${issues.length - 10} more)` : "";
75885
+ return `paths=${summary}${extra}`;
75886
+ }
75887
+ } catch {
75888
+ }
75889
+ return trimmed.length > 1e3 ? trimmed.slice(0, 1e3) : trimmed;
75890
+ };
75430
75891
  var postStageOutput = async (ctx, output2, fetchImpl) => {
75431
75892
  const res = await fetchImpl(
75432
75893
  `${ctx.dashboardUrl.replace(/\/+$/, "")}/api/pentest-runner/jobs/${encodeURIComponent(ctx.requestId)}/mobile-stage-output`,
@@ -75661,12 +76122,22 @@ var runMobileStage = async (options) => {
75661
76122
  (i) => i.kind === "release" && i.platform === platform && i.status === "received"
75662
76123
  );
75663
76124
  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
76125
+ await postStageOutput(
76126
+ ctx,
76127
+ {
76128
+ schemaVersion: 1,
76129
+ requestId: ctx.requestId,
76130
+ stage: options.stage,
76131
+ status: "skipped",
76132
+ skipReason: `platform '${platform}' was declared but no release input was received (source-only run)`,
76133
+ inputIds: [],
76134
+ warnings: [],
76135
+ generatedAt: (/* @__PURE__ */ new Date()).toISOString()
76136
+ },
76137
+ fetchImpl
75669
76138
  );
76139
+ await skip(`platform '${platform}': no release input received (source-only run)`);
76140
+ break;
75670
76141
  }
75671
76142
  const releaseOutputs = [];
75672
76143
  const artifactAttemptedChecks = /* @__PURE__ */ new Set();
@@ -75711,12 +76182,14 @@ var runMobileStage = async (options) => {
75711
76182
  ...f,
75712
76183
  platform,
75713
76184
  inputId: releaseInputId,
75714
- location: { kind: "artifact", artifactPath: f.location.file ?? "(artifact)" }
76185
+ location: { kind: "artifact", artifactPath: findingDisplayPath(f.location) }
75715
76186
  }));
75716
76187
  for (const entry of archive.entries) {
75717
76188
  if (!/(^|\/)\.env(?:\.[^/]*)?$/i.test(entry.name)) continue;
75718
76189
  artifactFindings.push({
75719
76190
  ruleId: "mobile/packaged-env-file",
76191
+ category: "mobile-security",
76192
+ masvsControlIds: ["MASVS-STORAGE-2"],
75720
76193
  severity: "warning",
75721
76194
  platform,
75722
76195
  inputId: releaseInputId,
@@ -76010,7 +76483,11 @@ var runMobileStage = async (options) => {
76010
76483
  schemaVersion: 1,
76011
76484
  // Pinned source output makes a report retry byte-for-byte identical.
76012
76485
  generatedAt: source.generatedAt,
76013
- targetPath: manifest.manifest?.moduleRoot ?? "(mobile)",
76486
+ // `||` not `??`: an empty moduleRoot ('' = snapshot root, legal
76487
+ // since the root-module contract change) must fall back to a
76488
+ // DISPLAY value too — the assessment schema requires min(1) here
76489
+ // and an empty targetPath fails mobile-complete validation.
76490
+ targetPath: manifest.manifest?.moduleRoot || "(mobile)",
76014
76491
  scope: "mobile-static",
76015
76492
  toolVersion: "cs-mobile-stage"
76016
76493
  },
@@ -76044,23 +76521,36 @@ var runMobileStage = async (options) => {
76044
76521
  title: f.title,
76045
76522
  tier: "B",
76046
76523
  vulnerabilityClass: f.ruleId,
76047
- severity: f.severity,
76524
+ // Scope per item (mobile-security | mobile-privacy): lets the
76525
+ // report UI and readers separate security findings from anything
76526
+ // else a rule directory might emit in the future.
76527
+ category: f.category ?? "mobile-security",
76528
+ // MASVS v2 control ids for the assessment page's pillar strip and
76529
+ // grouping — presence scopes WHERE a finding surfaces, it is not
76530
+ // a claim that the control is verified.
76531
+ ...f.masvsControlIds?.length ? { masvsControlIds: f.masvsControlIds } : {},
76532
+ severity: assessmentSeverityOf(f.severity),
76048
76533
  verdict: "INCONCLUSIVE",
76049
76534
  evidence: [
76050
76535
  {
76051
- file: f.location.file ?? f.location.artifactPath ?? "(artifact)",
76536
+ file: findingDisplayPath(f.location),
76052
76537
  line: f.location.line ?? 1,
76053
76538
  sinkId: f.ruleId,
76054
76539
  sourceIds: [f.ruleId],
76055
76540
  confidence: f.confidence,
76056
76541
  codeContext: f.evidence[0]?.snippet,
76057
- note: [f.platform, f.inputId, f.limitation].filter(Boolean).join(" | ")
76542
+ note: [f.category, f.platform, f.inputId, f.limitation].filter(Boolean).join(" | ")
76058
76543
  }
76059
76544
  ],
76060
76545
  scenarios: []
76061
76546
  })),
76062
76547
  mobile: {
76063
76548
  mode: "static",
76549
+ // Scope disclosure — say plainly when no binary was analyzed
76550
+ // instead of leaving a silent artifactCount 0 in the coverage.
76551
+ ...releases.length > 0 ? {} : {
76552
+ scopeNote: "Source-only run: no release artifact was submitted, so binary-level checks (packaged secrets, native libraries, merged manifest) were not tested."
76553
+ },
76064
76554
  releases: releases.flatMap((output2) => output2.releaseOutputs ?? []).map((release) => ({
76065
76555
  inputId: release.inputId,
76066
76556
  platform: release.platform,
@@ -76082,7 +76572,7 @@ var runMobileStage = async (options) => {
76082
76572
  source: "static",
76083
76573
  findings: collectedFindings.map((f) => ({
76084
76574
  ruleId: f.ruleId,
76085
- file: f.location.file ?? f.location.artifactPath ?? "(artifact)",
76575
+ file: findingDisplayPath(f.location),
76086
76576
  line: f.location.line ?? 1,
76087
76577
  message: f.message,
76088
76578
  severity: f.severity,
@@ -76106,7 +76596,7 @@ var runMobileStage = async (options) => {
76106
76596
  if (!completeRes.ok) {
76107
76597
  const text2 = await completeRes.text().catch(() => "");
76108
76598
  throw new StageError(
76109
- `mobile-complete failed (HTTP ${completeRes.status}): ${text2.slice(0, 200)}`,
76599
+ `mobile-complete failed (HTTP ${completeRes.status}): ${describeCompletionRejection(text2)}`,
76110
76600
  1,
76111
76601
  "complete-failed",
76112
76602
  completeRes.status >= 500
@@ -76172,6 +76662,248 @@ init_dist3();
76172
76662
  init_dist7();
76173
76663
  init_load();
76174
76664
  init_git_filter();
76665
+ var exec = promisify(execFile$1);
76666
+ var MAVEN_BUNDLE_PREFIX = ".code-sentinel/maven-repository";
76667
+ var GO_OFFLINE = "org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline";
76668
+ var EFFECTIVE_SETTINGS = "org.apache.maven.plugins:maven-help-plugin:3.5.1:effective-settings";
76669
+ var runMaven = async (cwd, args) => {
76670
+ let command = "mvn";
76671
+ let commandArgs = [...args];
76672
+ if (process.platform === "win32") {
76673
+ const found = await exec("where.exe", ["mvn.cmd"], { encoding: "utf8" });
76674
+ const mavenHome = dirname(dirname(found.stdout.trim().split(/\r?\n/)[0] ?? ""));
76675
+ const boot = join(mavenHome, "boot");
76676
+ const launcher = readdirSync(boot).find((name) => /^plexus-classworlds-.*\.jar$/.test(name));
76677
+ if (!launcher) throw new Error("Kh\xF4ng t\xECm th\u1EA5y Maven launcher; ki\u1EC3m tra c\xE0i \u0111\u1EB7t Maven.");
76678
+ command = process.env.JAVA_HOME ? join(process.env.JAVA_HOME, "bin", "java.exe") : "java";
76679
+ commandArgs = [
76680
+ "-classpath",
76681
+ join(boot, launcher),
76682
+ `-Dclassworlds.conf=${join(mavenHome, "bin", "m2.conf")}`,
76683
+ `-Dmaven.home=${mavenHome}`,
76684
+ `-Dmaven.multiModuleProjectDirectory=${cwd}`,
76685
+ "org.codehaus.plexus.classworlds.launcher.Launcher",
76686
+ ...args
76687
+ ];
76688
+ }
76689
+ try {
76690
+ const result = await exec(command, commandArgs, {
76691
+ cwd,
76692
+ encoding: "utf8",
76693
+ timeout: 10 * 6e4,
76694
+ maxBuffer: 8 * 1024 * 1024
76695
+ });
76696
+ return { ok: true, output: result.stdout };
76697
+ } catch (error) {
76698
+ const result = error;
76699
+ if (result.code === "ENOENT") {
76700
+ throw new Error("C\u1EA7n c\xE0i Maven v\xE0 JDK tr\xEAn m\xE1y \u0111\u1EC3 t\u1EA3i th\u01B0 vi\u1EC7n tr\u01B0\u1EDBc khi ch\u1EA1y cs pentest.");
76701
+ }
76702
+ return { ok: false, output: `${result.stdout ?? ""}
76703
+ ${result.stderr ?? ""}` };
76704
+ }
76705
+ };
76706
+ var existsOnCentral = async (path) => {
76707
+ const response = await fetch(`https://repo.maven.apache.org/maven2/${path}`, {
76708
+ method: "HEAD",
76709
+ signal: AbortSignal.timeout(15e3)
76710
+ });
76711
+ if (response.ok) return true;
76712
+ if (response.status === 404) return false;
76713
+ throw new Error(
76714
+ `Ch\u01B0a ki\u1EC3m tra \u0111\u01B0\u1EE3c Maven Central (HTTP ${response.status}); h\xE3y ch\u1EA1y l\u1EA1i cs pentest.`
76715
+ );
76716
+ };
76717
+ var xmlEscape = (text2) => text2.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
76718
+ var xmlDecode = (text2) => text2.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&amp;", "&");
76719
+ var appendXml = (xml, tag, content) => {
76720
+ if (new RegExp(`</${tag}>`).test(xml)) return xml.replace(`</${tag}>`, `${content}</${tag}>`);
76721
+ const empty2 = new RegExp(`<${tag}\\s*/>`);
76722
+ if (empty2.test(xml)) return xml.replace(empty2, `<${tag}>${content}</${tag}>`);
76723
+ return xml.replace("</settings>", `<${tag}>${content}</${tag}></settings>`);
76724
+ };
76725
+ var settingsWithLocalCache = (settings) => {
76726
+ const local = xmlDecode(
76727
+ settings.match(/<localRepository>\s*([^<]+)\s*<\/localRepository>/)?.[1]?.trim() ?? ""
76728
+ );
76729
+ if (!isAbsolute(local) || /<!DOCTYPE|<!ENTITY/i.test(settings)) {
76730
+ throw new Error("Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c \u0111\u01B0\u1EDDng d\u1EABn Maven local repository; ki\u1EC3m tra settings.xml.");
76731
+ }
76732
+ const url = xmlEscape(pathToFileURL(local).href);
76733
+ let merged = appendXml(
76734
+ settings,
76735
+ "profiles",
76736
+ `<profile><id>cs-pentest-cache</id><repositories><repository><id>cs-pentest-cache</id><url>${url}</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>cs-pentest-cache</id><url>${url}</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots></pluginRepository></pluginRepositories></profile>`
76737
+ );
76738
+ merged = appendXml(merged, "activeProfiles", "<activeProfile>cs-pentest-cache</activeProfile>");
76739
+ merged = appendXml(
76740
+ merged,
76741
+ "mirrors",
76742
+ `<mirror><id>cs-pentest-local-cache</id><mirrorOf>cs-pentest-cache</mirrorOf><url>${url}</url></mirror>`
76743
+ );
76744
+ return merged;
76745
+ };
76746
+ var repositoryFiles = (root) => {
76747
+ const result = [];
76748
+ const visit = (dir) => {
76749
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
76750
+ const path = join(dir, entry.name);
76751
+ if (entry.isDirectory()) visit(path);
76752
+ else if (entry.isFile()) result.push(relative(root, path).split(sep).join("/"));
76753
+ }
76754
+ };
76755
+ visit(root);
76756
+ return result.sort();
76757
+ };
76758
+ var isArtifact = (path) => {
76759
+ const parts = path.split("/");
76760
+ const file = parts.at(-1) ?? "";
76761
+ const artifact = parts.at(-3) ?? "";
76762
+ return parts.length >= 4 && parts.every((part) => /^[A-Za-z0-9._-]+$/.test(part) && part !== "..") && file.startsWith(`${artifact}-`) && /\.(?:pom|jar|aar|war|zip|gz|exe|so|dll)$/.test(file);
76763
+ };
76764
+ var coordinateFromPath = (path) => {
76765
+ const parts = path.split("/");
76766
+ return `${parts.slice(0, -3).join(".")}:${parts.at(-3)}:${parts.at(-2)}`;
76767
+ };
76768
+ var missingMavenCoordinates = (output2) => {
76769
+ const missing = /* @__PURE__ */ new Set();
76770
+ const causes = output2.matchAll(
76771
+ /(?:The following artifacts could not be resolved:|Could not (?:find|transfer) artifact|Failed to read artifact descriptor for|Missing) +([^\r\n]+)/g
76772
+ );
76773
+ for (const cause of causes) {
76774
+ for (const match of (cause[1] ?? "").matchAll(
76775
+ /\b[A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+:(?:jar|pom|aar|war|zip)(?::[A-Za-z0-9_.-]+){1,3}/g
76776
+ ))
76777
+ missing.add(match[0]);
76778
+ }
76779
+ return [...missing];
76780
+ };
76781
+ var centralPathFor = (coordinate) => {
76782
+ const parts = coordinate.split(":");
76783
+ if (["compile", "runtime", "test", "provided", "system"].includes(parts.at(-1) ?? ""))
76784
+ parts.pop();
76785
+ const [group2 = "", artifact = "", type = "jar", ...suffix] = parts;
76786
+ const version2 = suffix.at(-1) ?? "";
76787
+ const classifier = suffix.length > 1 ? `-${suffix[0]}` : "";
76788
+ return `${group2.replaceAll(".", "/")}/${artifact}/${version2}/${artifact}-${version2}${classifier}.${type}`;
76789
+ };
76790
+ var resolutionError = async (output2, services) => {
76791
+ const missing = missingMavenCoordinates(output2);
76792
+ const privateMissing = (await Promise.all(
76793
+ missing.slice(0, 20).map(async (coordinate) => {
76794
+ try {
76795
+ return await services.existsOnCentral(centralPathFor(coordinate)) ? void 0 : coordinate;
76796
+ } catch {
76797
+ return void 0;
76798
+ }
76799
+ })
76800
+ )).filter((coordinate) => coordinate !== void 0);
76801
+ return new Error(
76802
+ [
76803
+ privateMissing.length ? `C\xF3 th\u01B0 vi\u1EC7n n\u1ED9i b\u1ED9 ho\u1EB7c ngo\xE0i Maven Central c\u1EA7n t\u1EA3i tr\xEAn m\xE1y: ${privateMissing.join(", ")}` : `M\xE1y ch\u01B0a t\u1EA3i \u0111\u1EE7 th\u01B0 vi\u1EC7n Maven${missing.length ? `: ${missing.join(", ")}` : "."}`,
76804
+ "B\u1EA1n c\u1EA7n k\u1EBFt n\u1ED1i VPN/kho Maven c\u1EE7a d\u1EF1 \xE1n v\xE0 t\u1EA3i th\u01B0 vi\u1EC7n v\u1EC1 m\xE1y (ho\u1EB7c c\xE0i JAR k\xE8m POM b\u1EB1ng mvn install:install-file), r\u1ED3i ch\u1EA1y l\u1EA1i cs pentest.",
76805
+ "Ch\u1EC9 khi t\u1EA3i \u0111\u1EE7 th\u01B0 vi\u1EC7n, ch\xFAng t\xF4i m\u1EDBi \u0111\xEDnh k\xE8m v\xE0o ZIP v\xE0 g\u1EEDi l\xEAn server. Ch\u01B0a upload source."
76806
+ ].join(String.fromCharCode(10))
76807
+ );
76808
+ };
76809
+ var bundlePentestMavenDependencies = async (plan, services = { runMaven, existsOnCentral }) => {
76810
+ const stage = mkdtempSync(join(tmpdir(), "cs-pentest-maven-"));
76811
+ const cleanup = () => rmSync(stage, { recursive: true, force: true });
76812
+ const progress = setInterval(() => {
76813
+ process.stdout.write(" \u0110ang t\u1EA3i v\xE0 ki\u1EC3m tra th\u01B0 vi\u1EC7n Maven, vui l\xF2ng ch\u1EDD...\n");
76814
+ }, 15e3);
76815
+ progress.unref();
76816
+ try {
76817
+ const cwd = resolve(plan.repoRoot, plan.workspaceRoot);
76818
+ const effective = join(stage, "effective-settings.xml");
76819
+ const settings = join(stage, "client-settings.xml");
76820
+ const repo = join(stage, "repository");
76821
+ const common = [
76822
+ "-B",
76823
+ "-ntp",
76824
+ "-Dstyle.color=never",
76825
+ "-Dmaven.wagon.http.connectionTimeout=5000",
76826
+ "-Dmaven.wagon.http.readTimeout=30000",
76827
+ "-Dmaven.wagon.http.retryHandler.count=1"
76828
+ ];
76829
+ const result = await services.runMaven(cwd, [
76830
+ ...common,
76831
+ EFFECTIVE_SETTINGS,
76832
+ `-Doutput=${effective}`,
76833
+ "-DshowPasswords=true"
76834
+ ]);
76835
+ if (!result.ok) throw await resolutionError(result.output, services);
76836
+ writeFileSync(settings, settingsWithLocalCache(readFileSync(effective, "utf8")), {
76837
+ mode: 384
76838
+ });
76839
+ mkdirSync(repo);
76840
+ const resolved = await services.runMaven(cwd, [
76841
+ ...common,
76842
+ "-s",
76843
+ settings,
76844
+ `-Dmaven.repo.local=${repo}`,
76845
+ ...plan.buildTarget ? ["-pl", plan.buildTarget, "-am"] : [],
76846
+ GO_OFFLINE,
76847
+ "-DexcludeReactor=true",
76848
+ `-DmarkersDirectory=${join(stage, "markers")}`
76849
+ ]);
76850
+ if (!resolved.ok) throw await resolutionError(resolved.output, services);
76851
+ rmSync(effective, { force: true });
76852
+ rmSync(settings, { force: true });
76853
+ const candidates = repositoryFiles(repo).filter(isArtifact);
76854
+ const selected = [];
76855
+ let index2 = 0;
76856
+ let stopped = false;
76857
+ const probes = await Promise.allSettled(
76858
+ Array.from({ length: Math.min(6, candidates.length) }, async () => {
76859
+ while (!stopped && index2 < candidates.length) {
76860
+ const path = candidates[index2++];
76861
+ try {
76862
+ if (path && !await services.existsOnCentral(path)) selected.push(path);
76863
+ } catch (error) {
76864
+ stopped = true;
76865
+ throw error;
76866
+ }
76867
+ }
76868
+ })
76869
+ );
76870
+ for (const probe of probes) if (probe.status === "rejected") throw probe.reason;
76871
+ const entries = selected.sort().map((path) => ({ name: `${MAVEN_BUNDLE_PREFIX}/${path}`, absolutePath: join(repo, path) }));
76872
+ for (const dir of new Set(selected.map(dirname).filter((path) => path.endsWith("-SNAPSHOT")))) {
76873
+ const parts = dir.split("/");
76874
+ const metadata = join(stage, "snapshot-metadata", dir, "maven-metadata-local.xml");
76875
+ mkdirSync(dirname(metadata), { recursive: true });
76876
+ writeFileSync(
76877
+ metadata,
76878
+ `<metadata><groupId>${xmlEscape(parts.slice(0, -2).join("."))}</groupId><artifactId>${xmlEscape(parts.at(-2) ?? "")}</artifactId><version>${xmlEscape(parts.at(-1) ?? "")}</version><versioning><snapshot><localCopy>true</localCopy></snapshot></versioning></metadata>`
76879
+ );
76880
+ entries.push({
76881
+ name: `${MAVEN_BUNDLE_PREFIX}/${dir}/maven-metadata-local.xml`,
76882
+ absolutePath: metadata
76883
+ });
76884
+ }
76885
+ for (const entry of entries) {
76886
+ const target = join(stage, "bundle", entry.name);
76887
+ mkdirSync(dirname(target), { recursive: true });
76888
+ copyFileSync(entry.absolutePath, target);
76889
+ }
76890
+ return {
76891
+ entries: entries.map((entry) => ({
76892
+ ...entry,
76893
+ absolutePath: join(stage, "bundle", entry.name)
76894
+ })),
76895
+ artifacts: [...new Set(selected.map(coordinateFromPath))].sort(),
76896
+ cleanup
76897
+ };
76898
+ } catch (error) {
76899
+ cleanup();
76900
+ throw error;
76901
+ } finally {
76902
+ clearInterval(progress);
76903
+ }
76904
+ };
76905
+
76906
+ // src/commands/package.command.ts
76175
76907
  var HYPOTHESIS_ENTRY = ".code-sentinel/auth-hypothesis.json";
76176
76908
  var DATA_SEED_HYPOTHESIS_ENTRY = ".code-sentinel/data-seed-hypothesis.json";
76177
76909
  var AI_TRIAGE_ENTRY = ".code-sentinel/ai-triage-assessment.json";
@@ -76400,7 +77132,7 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
76400
77132
  const cleanEntries = rawPlan.entries.filter(
76401
77133
  (e) => e.name !== HYPOTHESIS_ENTRY && e.name !== DATA_SEED_HYPOTHESIS_ENTRY && e.name !== AI_TRIAGE_ENTRY && !e.name.startsWith(".code-sentinel/")
76402
77134
  );
76403
- const plan = {
77135
+ let plan = {
76404
77136
  ...rawPlan,
76405
77137
  entries: cleanEntries,
76406
77138
  sourceRevision: gitSourceRevision(
@@ -76417,13 +77149,27 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
76417
77149
  };
76418
77150
  const zipStem = plan.modulePath === "." || plan.modulePath === "" ? basename(plan.repoRoot) || "service" : basename(plan.modulePath.replace(/\/$/, "")) || "service";
76419
77151
  const outPath = resolve(options.out ?? `${zipStem}.zip`);
77152
+ let dependencyBundle;
76420
77153
  let bytes;
76421
77154
  try {
77155
+ if (options.resolveMavenDependencies && plan.buildTool === "maven") {
77156
+ process.stdout.write("\u0110ang t\u1EA3i v\xE0 ki\u1EC3m tra th\u01B0 vi\u1EC7n Maven tr\xEAn m\xE1y tr\u01B0\u1EDBc khi \u0111\xF3ng g\xF3i...\n");
77157
+ dependencyBundle = await bundlePentestMavenDependencies(plan);
77158
+ plan = withAdditionalPackageEntries(plan, dependencyBundle.entries);
77159
+ if (dependencyBundle.artifacts.length > 0) {
77160
+ process.stdout.write(
77161
+ `\u0110\xEDnh k\xE8m th\u01B0 vi\u1EC7n n\u1ED9i b\u1ED9/ngo\xE0i Maven Central: ${dependencyBundle.artifacts.join(", ")}
77162
+ `
77163
+ );
77164
+ }
77165
+ }
76422
77166
  bytes = writePackageZip(plan, outPath);
76423
77167
  } catch (error) {
76424
77168
  process.stderr.write(`cs package: ${error instanceof Error ? error.message : String(error)}
76425
77169
  `);
76426
77170
  return 2;
77171
+ } finally {
77172
+ dependencyBundle?.cleanup();
76427
77173
  }
76428
77174
  process.stdout.write(`Packaged ${plan.modulePath} \u2192 ${outPath} (${formatBytes(bytes)})
76429
77175
  `);
@@ -76931,7 +77677,7 @@ H\xE3y ch\u1EA1y \`cs auth login\`.`
76931
77677
  var asFetchBody = (body) => body;
76932
77678
  var multipartFile = (fileName2, absolutePath) => {
76933
77679
  const formData = new FormData();
76934
- formData.append("file", new Blob([readFileSync(absolutePath)]), fileName2);
77680
+ formData.append("archive", new Blob([readFileSync(absolutePath)]), fileName2);
76935
77681
  return formData;
76936
77682
  };
76937
77683
  var runPentestMobileCommand = async (options) => {
@@ -76952,7 +77698,7 @@ var runPentestMobileCommand = async (options) => {
76952
77698
  const targetDirKey = realpathSafe(targetDirAbs, targetDirAbs);
76953
77699
  const repoRootCanonical = repoRootKey !== null && targetDirKey !== null ? repoRootKey : repoRoot;
76954
77700
  const modulePathInput = options.module?.trim();
76955
- const modulePath = modulePathInput && modulePathInput !== "" ? posix5(modulePathInput) : posix5(relative(repoRootCanonical, targetDirAbs)) || ".";
77701
+ const modulePath = modulePathInput && modulePathInput !== "" ? posix5(modulePathInput) : posix5(relative(repoRootCanonical, targetDirKey ?? targetDirAbs)) || ".";
76956
77702
  const moduleDir = resolve(repoRootCanonical, modulePath);
76957
77703
  const moduleRel = relative(repoRootCanonical, moduleDir);
76958
77704
  if (moduleRel === ".." || moduleRel.startsWith(`..${sep}`)) {
@@ -77011,8 +77757,8 @@ var runPentestMobileCommand = async (options) => {
77011
77757
  artifactSpecs.push(parsed.spec);
77012
77758
  }
77013
77759
  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>."
77760
+ write(
77761
+ "\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
77762
  );
77017
77763
  }
77018
77764
  const effectivePlatforms = [
@@ -77024,7 +77770,7 @@ var runPentestMobileCommand = async (options) => {
77024
77770
  );
77025
77771
  }
77026
77772
  write(
77027
- `Hi\u1EC7u l\u1EF1c: appType=${appType} \xB7 platforms=[${effectivePlatforms.join(", ")}] \xB7 artifact=${artifactSpecs.length}`
77773
+ `Hi\u1EC7u l\u1EF1c: appType=${appType} \xB7 platforms=[${effectivePlatforms.join(", ")}] \xB7 artifact=${artifactSpecs.length}${artifactSpecs.length === 0 ? " (source-only)" : ""}`
77028
77774
  );
77029
77775
  let manifest;
77030
77776
  let sourceZipPath;
@@ -77125,7 +77871,9 @@ var runPentestMobileCommand = async (options) => {
77125
77871
  version: 1,
77126
77872
  appType,
77127
77873
  platforms: effectivePlatforms,
77128
- moduleRoot: modulePath,
77874
+ // `''` is the contract's canonical spelling for "module = snapshot root"
77875
+ // (a single-app Flutter/Android/iOS repo); `.` is rejected by the schema.
77876
+ moduleRoot: modulePath === "." ? "" : modulePath,
77129
77877
  source: {
77130
77878
  archiveName: basename(outPath),
77131
77879
  sha256: sha256File(outPath),
@@ -79930,6 +80678,25 @@ var selectExtractedWorkspaceRoot = async (workspace) => {
79930
80678
  }
79931
80679
  return nestedWorkspace;
79932
80680
  };
80681
+ var isRecoverableUnzipExit = (error) => error?.code === 1;
80682
+ var countExtractedFiles = async (root) => {
80683
+ const entries = await readdir(root, { withFileTypes: true });
80684
+ let files = 0;
80685
+ for (const entry of entries) {
80686
+ if (entry.isDirectory()) files += await countExtractedFiles(join(root, entry.name));
80687
+ else files += 1;
80688
+ }
80689
+ return files;
80690
+ };
80691
+ var assertCompleteExtraction = async (workspace, entries) => {
80692
+ const expected = entries.filter((entry) => !entry.replace(/\\/g, "/").endsWith("/")).length;
80693
+ const extracted = await countExtractedFiles(workspace);
80694
+ if (extracted !== expected) {
80695
+ throw new Error(
80696
+ `zip archive extracted incompletely: ${extracted} of ${expected} files present`
80697
+ );
80698
+ }
80699
+ };
79933
80700
  var extractArchive = async (archivePath, workspace) => {
79934
80701
  const listing = await execFileAsync4("unzip", ["-Z1", archivePath], {
79935
80702
  maxBuffer: 10 * 1024 * 1024
@@ -79938,10 +80705,15 @@ var extractArchive = async (archivePath, workspace) => {
79938
80705
  if (entries.length === 0) throw new Error("zip archive has no entries");
79939
80706
  if (entries.length > 2e4) throw new Error("zip archive has too many entries");
79940
80707
  for (const entry of entries) assertSafeZipEntry(entry);
79941
- await execFileAsync4("unzip", ["-q", archivePath, "-d", workspace], {
79942
- maxBuffer: 10 * 1024 * 1024
79943
- });
80708
+ try {
80709
+ await execFileAsync4("unzip", ["-q", archivePath, "-d", workspace], {
80710
+ maxBuffer: 10 * 1024 * 1024
80711
+ });
80712
+ } catch (error) {
80713
+ if (!isRecoverableUnzipExit(error)) throw error;
80714
+ }
79944
80715
  await assertNoSymlinks(workspace);
80716
+ await assertCompleteExtraction(workspace, entries);
79945
80717
  return selectExtractedWorkspaceRoot(workspace);
79946
80718
  };
79947
80719
  var runReviewProcess = async (args) => {
@@ -82907,6 +83679,7 @@ var buildProgram = () => {
82907
83679
  targetDir,
82908
83680
  push: true,
82909
83681
  // Always push by default for pentest
83682
+ resolveMavenDependencies: true,
82910
83683
  ...typeof options.preferredBuildScript === "string" && options.preferredBuildScript.length > 0 ? { preferredBuildScript: options.preferredBuildScript } : {}
82911
83684
  });
82912
83685
  }
@@ -83047,13 +83820,13 @@ var buildProgram = () => {
83047
83820
  ).option(
83048
83821
  "--e1-trust-tier <tier>",
83049
83822
  "trusted-internal | trusted-local | untrusted cho evidence E1"
83050
- ).option(
83823
+ ).option("--liferay-e1 <file>", "b\xE1o c\xE1o HTTP E1 c\u1EE7a portal Liferay disposable").option(
83051
83824
  "--dast-plan <dir>",
83052
83825
  "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
83826
  ).option(
83054
83827
  "--dast-report <path>",
83055
83828
  "file JSON report ZAP (g\u1ED9p runtime E2/DAST, c\u1EA7n c\u1EA3 --dast-plan)"
83056
- ).option(
83829
+ ).option("--route-prefix <path>", "JAX-RS /o/... prefix c\u1EE7a portal Liferay disposable").option(
83057
83830
  "--dast-messages <file>",
83058
83831
  "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
83832
  ).option(
@@ -83111,8 +83884,10 @@ var buildProgram = () => {
83111
83884
  ...typeof opts.results === "string" && opts.results.length > 0 ? { results: opts.results } : {},
83112
83885
  ...typeof opts.e1Evidence === "string" && opts.e1Evidence.length > 0 ? { e1Evidence: opts.e1Evidence } : {},
83113
83886
  ...typeof opts.e1TrustTier === "string" && opts.e1TrustTier.length > 0 ? { e1TrustTier: opts.e1TrustTier } : {},
83887
+ ...typeof opts.liferayE1 === "string" && opts.liferayE1.length > 0 ? { liferayE1: opts.liferayE1 } : {},
83114
83888
  ...typeof opts.dastPlan === "string" && opts.dastPlan.length > 0 ? { dastPlan: opts.dastPlan } : {},
83115
83889
  ...typeof opts.dastReport === "string" && opts.dastReport.length > 0 ? { dastReport: opts.dastReport } : {},
83890
+ ...typeof opts.routePrefix === "string" && opts.routePrefix.length > 0 ? { routePrefix: opts.routePrefix } : {},
83116
83891
  ...typeof opts.dastMessages === "string" && opts.dastMessages.length > 0 ? { dastMessages: opts.dastMessages } : {},
83117
83892
  dastScanCompleted: opts.dastScanCompleted === true,
83118
83893
  ...typeof opts.dastAttestation === "string" && opts.dastAttestation.length > 0 ? { dastAttestation: opts.dastAttestation } : {},
@@ -83142,7 +83917,7 @@ var buildProgram = () => {
83142
83917
  ).requiredOption(
83143
83918
  "--report <path>",
83144
83919
  "file JSON report ZAP (traditional-json-plus ho\u1EB7c traditional-json) do l\u1EA7n ch\u1EA1y c\u1EE7a b\u1EA1n sinh"
83145
- ).option(
83920
+ ).option("--route-prefix <path>", "JAX-RS /o/... prefix c\u1EE7a portal Liferay disposable").option(
83146
83921
  "-o, --output <file>",
83147
83922
  "report output path (default code-sentinel-dast-verification.md)"
83148
83923
  ).option("--attestation <file>", "execution attestation JSON (ADR-0051 #8.3 provenance)").option(
@@ -83176,6 +83951,7 @@ var buildProgram = () => {
83176
83951
  process.exitCode = await runDastVerify({
83177
83952
  ...typeof opts.plan === "string" && opts.plan.length > 0 ? { plan: opts.plan } : {},
83178
83953
  ...typeof opts.report === "string" && opts.report.length > 0 ? { report: opts.report } : {},
83954
+ ...typeof opts.routePrefix === "string" && opts.routePrefix.length > 0 ? { routePrefix: opts.routePrefix } : {},
83179
83955
  ...opts.output ? { output: opts.output } : {},
83180
83956
  ...typeof opts.attestation === "string" && opts.attestation.length > 0 ? { attestation: opts.attestation } : {},
83181
83957
  ...typeof opts.provenancePolicy === "string" && opts.provenancePolicy.length > 0 ? { provenancePolicy: opts.provenancePolicy } : {},