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